@@ -2883,6 +2883,43 @@ function escapeProperty(s) {
2883
2883
2884
2884
module . exports = require ( "assert" ) ;
2885
2885
2886
+ /***/ } ) ,
2887
+
2888
+ /***/ 366 :
2889
+ /***/ ( function ( __unusedmodule , __webpack_exports__ , __webpack_require__ ) {
2890
+
2891
+ "use strict" ;
2892
+ /* harmony export (binding) */ __webpack_require__ . d ( __webpack_exports__ , "wrapRequire" , function ( ) { return wrapRequire ; } ) ;
2893
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__ ( 622 ) ;
2894
+ /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__ . n ( path__WEBPACK_IMPORTED_MODULE_0__ ) ;
2895
+
2896
+ const wrapRequire = new Proxy ( require , {
2897
+ apply : ( target , thisArg , [ moduleID ] ) => {
2898
+ if ( moduleID . startsWith ( '.' ) ) {
2899
+ moduleID = path__WEBPACK_IMPORTED_MODULE_0__ . resolve ( moduleID ) ;
2900
+ return target . apply ( thisArg , [ moduleID ] ) ;
2901
+ }
2902
+ try {
2903
+ return target . apply ( thisArg , [ moduleID ] ) ;
2904
+ }
2905
+ catch ( err ) {
2906
+ const modulePath = target . resolve . apply ( thisArg , [
2907
+ moduleID ,
2908
+ {
2909
+ // Webpack does not have an escape hatch for getting the actual
2910
+ // module, other than `eval`.
2911
+ paths : eval ( 'module' ) . paths . concat ( process . cwd ( ) )
2912
+ }
2913
+ ] ) ;
2914
+ return target . apply ( thisArg , [ modulePath ] ) ;
2915
+ }
2916
+ } ,
2917
+ get : ( target , prop , receiver ) => {
2918
+ Reflect . get ( target , prop , receiver ) ;
2919
+ }
2920
+ } ) ;
2921
+
2922
+
2886
2923
/***/ } ) ,
2887
2924
2888
2925
/***/ 413 :
@@ -6121,12 +6158,16 @@ function callAsyncFunction(args, source) {
6121
6158
return fn ( ...Object . values ( args ) ) ;
6122
6159
}
6123
6160
6161
+ // EXTERNAL MODULE: ./src/wrap-require.ts
6162
+ var wrap_require = __webpack_require__ ( 366 ) ;
6163
+
6124
6164
// CONCATENATED MODULE: ./src/main.ts
6125
6165
6126
6166
6127
6167
6128
6168
6129
6169
6170
+
6130
6171
process . on ( 'unhandledRejection' , handleError ) ;
6131
6172
main ( ) . catch ( handleError ) ;
6132
6173
async function main ( ) {
@@ -6144,7 +6185,15 @@ async function main() {
6144
6185
const github = Object ( lib_github . getOctokit ) ( token , opts ) ;
6145
6186
const script = Object ( core . getInput ) ( 'script' , { required : true } ) ;
6146
6187
// Using property/value shorthand on `require` (e.g. `{require}`) causes compilation errors.
6147
- const result = await callAsyncFunction ( { require : __webpack_require__ ( 875 ) , github, context : lib_github . context , core : core , glob : glob , io : io } , script ) ;
6188
+ const result = await callAsyncFunction ( {
6189
+ require : wrap_require . wrapRequire ,
6190
+ __original_require__ : require ,
6191
+ github,
6192
+ context : lib_github . context ,
6193
+ core : core ,
6194
+ glob : glob ,
6195
+ io : io
6196
+ } , script ) ;
6148
6197
let encoding = Object ( core . getInput ) ( 'result-encoding' ) ;
6149
6198
encoding = encoding ? encoding : 'json' ;
6150
6199
let output ;
@@ -6901,25 +6950,6 @@ function expand(str, isTop) {
6901
6950
6902
6951
6903
6952
6904
- /***/ } ) ,
6905
-
6906
- /***/ 875 :
6907
- /***/ ( function ( module ) {
6908
-
6909
- function webpackEmptyContext ( req ) {
6910
- if ( typeof req === 'number' && __webpack_require__ . m [ req ] )
6911
- return __webpack_require__ ( req ) ;
6912
- try { return require ( req ) }
6913
- catch ( e ) { if ( e . code !== 'MODULE_NOT_FOUND' ) throw e }
6914
- var e = new Error ( "Cannot find module '" + req + "'" ) ;
6915
- e . code = 'MODULE_NOT_FOUND' ;
6916
- throw e ;
6917
- }
6918
- webpackEmptyContext . keys = function ( ) { return [ ] ; } ;
6919
- webpackEmptyContext . resolve = webpackEmptyContext ;
6920
- module . exports = webpackEmptyContext ;
6921
- webpackEmptyContext . id = 875 ;
6922
-
6923
6953
/***/ } ) ,
6924
6954
6925
6955
/***/ 877 :
@@ -8743,14 +8773,15 @@ function regExpEscape (s) {
8743
8773
/******/ function ( __webpack_require__ ) { // webpackRuntimeModules
8744
8774
/******/ "use strict" ;
8745
8775
/******/
8746
- /******/ /* webpack/runtime/make namespace object */
8776
+ /******/ /* webpack/runtime/compat get default export */
8747
8777
/******/ ! function ( ) {
8748
- /******/ // define __esModule on exports
8749
- /******/ __webpack_require__ . r = function ( exports ) {
8750
- /******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
8751
- /******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
8752
- /******/ }
8753
- /******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
8778
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
8779
+ /******/ __webpack_require__ . n = function ( module ) {
8780
+ /******/ var getter = module && module . __esModule ?
8781
+ /******/ function getDefault ( ) { return module [ 'default' ] ; } :
8782
+ /******/ function getModuleExports ( ) { return module ; } ;
8783
+ /******/ __webpack_require__ . d ( getter , 'a' , getter ) ;
8784
+ /******/ return getter ;
8754
8785
/******/ } ;
8755
8786
/******/ } ( ) ;
8756
8787
/******/
@@ -8765,6 +8796,17 @@ function regExpEscape (s) {
8765
8796
/******/ } ;
8766
8797
/******/ } ( ) ;
8767
8798
/******/
8799
+ /******/ /* webpack/runtime/make namespace object */
8800
+ /******/ ! function ( ) {
8801
+ /******/ // define __esModule on exports
8802
+ /******/ __webpack_require__ . r = function ( exports ) {
8803
+ /******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
8804
+ /******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
8805
+ /******/ }
8806
+ /******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
8807
+ /******/ } ;
8808
+ /******/ } ( ) ;
8809
+ /******/
8768
8810
/******/ /* webpack/runtime/create fake namespace object */
8769
8811
/******/ ! function ( ) {
8770
8812
/******/ // create a fake namespace object
@@ -8784,17 +8826,5 @@ function regExpEscape (s) {
8784
8826
/******/ } ;
8785
8827
/******/ } ( ) ;
8786
8828
/******/
8787
- /******/ /* webpack/runtime/compat get default export */
8788
- /******/ ! function ( ) {
8789
- /******/ // getDefaultExport function for compatibility with non-harmony modules
8790
- /******/ __webpack_require__ . n = function ( module ) {
8791
- /******/ var getter = module && module . __esModule ?
8792
- /******/ function getDefault ( ) { return module [ 'default' ] ; } :
8793
- /******/ function getModuleExports ( ) { return module ; } ;
8794
- /******/ __webpack_require__ . d ( getter , 'a' , getter ) ;
8795
- /******/ return getter ;
8796
- /******/ } ;
8797
- /******/ } ( ) ;
8798
- /******/
8799
8829
/******/ }
8800
8830
) ;
0 commit comments