@@ -2883,6 +2883,43 @@ function escapeProperty(s) {
28832883
28842884module . exports = require ( "assert" ) ;
28852885
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+
28862923/***/ } ) ,
28872924
28882925/***/ 413 :
@@ -6121,12 +6158,16 @@ function callAsyncFunction(args, source) {
61216158 return fn ( ...Object . values ( args ) ) ;
61226159}
61236160
6161+ // EXTERNAL MODULE: ./src/wrap-require.ts
6162+ var wrap_require = __webpack_require__ ( 366 ) ;
6163+
61246164// CONCATENATED MODULE: ./src/main.ts
61256165
61266166
61276167
61286168
61296169
6170+
61306171process . on ( 'unhandledRejection' , handleError ) ;
61316172main ( ) . catch ( handleError ) ;
61326173async function main ( ) {
@@ -6144,7 +6185,15 @@ async function main() {
61446185 const github = Object ( lib_github . getOctokit ) ( token , opts ) ;
61456186 const script = Object ( core . getInput ) ( 'script' , { required : true } ) ;
61466187 // 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 ) ;
61486197 let encoding = Object ( core . getInput ) ( 'result-encoding' ) ;
61496198 encoding = encoding ? encoding : 'json' ;
61506199 let output ;
@@ -6901,25 +6950,6 @@ function expand(str, isTop) {
69016950
69026951
69036952
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-
69236953/***/ } ) ,
69246954
69256955/***/ 877 :
@@ -8743,14 +8773,15 @@ function regExpEscape (s) {
87438773/******/ function ( __webpack_require__ ) { // webpackRuntimeModules
87448774/******/ "use strict" ;
87458775/******/
8746- /******/ /* webpack/runtime/make namespace object */
8776+ /******/ /* webpack/runtime/compat get default export */
87478777/******/ ! 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 ;
87548785/******/ } ;
87558786/******/ } ( ) ;
87568787/******/
@@ -8765,6 +8796,17 @@ function regExpEscape (s) {
87658796/******/ } ;
87668797/******/ } ( ) ;
87678798/******/
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+ /******/
87688810/******/ /* webpack/runtime/create fake namespace object */
87698811/******/ ! function ( ) {
87708812/******/ // create a fake namespace object
@@ -8784,17 +8826,5 @@ function regExpEscape (s) {
87848826/******/ } ;
87858827/******/ } ( ) ;
87868828/******/
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- /******/
87998829/******/ }
88008830) ;
0 commit comments