diff --git a/.pnp.cjs b/.pnp.cjs index edb141a..3248939 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -28,7 +28,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "./",\ "packageDependencies": [\ ["@types/jest", "npm:29.5.14"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.7.0"],\ ["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.5"],\ ["ts-node", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:10.9.2"],\ @@ -881,7 +881,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["@jest/console", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["chalk", "npm:4.1.2"],\ ["jest-message-util", "npm:29.7.0"],\ ["jest-util", "npm:29.7.0"],\ @@ -907,7 +907,7 @@ const RAW_RUNTIME_STATE = ["@jest/test-result", "npm:29.7.0"],\ ["@jest/transform", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["@types/node-notifier", null],\ ["ansi-escapes", "npm:4.3.2"],\ ["chalk", "npm:4.1.2"],\ @@ -947,7 +947,7 @@ const RAW_RUNTIME_STATE = ["@jest/environment", "npm:29.7.0"],\ ["@jest/fake-timers", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["jest-mock", "npm:29.7.0"]\ ],\ "linkType": "HARD"\ @@ -989,7 +989,7 @@ const RAW_RUNTIME_STATE = ["@jest/fake-timers", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ ["@sinonjs/fake-timers", "npm:10.3.0"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["jest-message-util", "npm:29.7.0"],\ ["jest-mock", "npm:29.7.0"],\ ["jest-util", "npm:29.7.0"]\ @@ -1028,7 +1028,7 @@ const RAW_RUNTIME_STATE = ["@jest/transform", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ ["@jridgewell/trace-mapping", "npm:0.3.19"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["@types/node-notifier", null],\ ["chalk", "npm:4.1.2"],\ ["collect-v8-coverage", "npm:1.0.2"],\ @@ -1136,7 +1136,7 @@ const RAW_RUNTIME_STATE = ["@jest/schemas", "npm:29.6.3"],\ ["@types/istanbul-lib-coverage", "npm:2.0.4"],\ ["@types/istanbul-reports", "npm:3.0.1"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["@types/yargs", "npm:17.0.24"],\ ["chalk", "npm:4.1.2"]\ ],\ @@ -1345,7 +1345,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "../../../../cache/others/berry/cache/@types-graceful-fs-npm-4.1.6-1eadcf742d-10c0.zip/node_modules/@types/graceful-fs/",\ "packageDependencies": [\ ["@types/graceful-fs", "npm:4.1.6"],\ - ["@types/node", "npm:22.10.1"]\ + ["@types/node", "npm:22.10.6"]\ ],\ "linkType": "HARD"\ }]\ @@ -1391,10 +1391,10 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["@types/node", [\ - ["npm:22.10.1", {\ - "packageLocation": "../../../../cache/others/berry/cache/@types-node-npm-22.10.1-db989fc54b-10c0.zip/node_modules/@types/node/",\ + ["npm:22.10.6", {\ + "packageLocation": "../../../../cache/others/berry/cache/@types-node-npm-22.10.6-28326d30fa-10c0.zip/node_modules/@types/node/",\ "packageDependencies": [\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["undici-types", "npm:6.20.0"]\ ],\ "linkType": "HARD"\ @@ -1938,7 +1938,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["clean-architecture", "workspace:."],\ ["@types/jest", "npm:29.5.14"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.7.0"],\ ["ts-jest", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:29.2.5"],\ ["ts-node", "virtual:0bdaf34b18f64a61d994ea5745297b16ca55696ece813438927b218d5900be7b3b1afb8777870498f0544991088e71be7d6609a8d92700ec537ab224121fd8a4#npm:10.9.2"],\ @@ -2959,7 +2959,7 @@ const RAW_RUNTIME_STATE = ["@jest/expect", "npm:29.7.0"],\ ["@jest/test-result", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["chalk", "npm:4.1.2"],\ ["co", "npm:4.6.0"],\ ["dedent", "virtual:f7679858c638e2e5ade31901dd2b1e5007918fdc7d84fefb11f4200f46ba2e43b9d662fb793507b517bb1e725144e51f6d68f60f9f6100fd52144f042f58f0bc#npm:1.5.1"],\ @@ -3064,7 +3064,7 @@ const RAW_RUNTIME_STATE = ["@babel/core", "npm:7.22.15"],\ ["@jest/test-sequencer", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["@types/ts-node", null],\ ["babel-jest", "virtual:939a7fe9ef9185d9378b96533b42cb7bd61bd3e34d0edd537f69a76537c5748d3b4733d3050f6f18ab17ac63143f81e7f121e602a5d38c959251dc0768083e9b#npm:29.7.0"],\ ["chalk", "npm:4.1.2"],\ @@ -3151,7 +3151,7 @@ const RAW_RUNTIME_STATE = ["@jest/environment", "npm:29.7.0"],\ ["@jest/fake-timers", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["jest-mock", "npm:29.7.0"],\ ["jest-util", "npm:29.7.0"]\ ],\ @@ -3174,7 +3174,7 @@ const RAW_RUNTIME_STATE = ["jest-haste-map", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ ["@types/graceful-fs", "npm:4.1.6"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["anymatch", "npm:3.1.3"],\ ["fb-watchman", "npm:2.0.2"],\ ["fsevents", "patch:fsevents@npm%3A2.3.3#optional!builtin::version=2.3.3&hash=df0bf1"],\ @@ -3263,7 +3263,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["jest-mock", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["jest-util", "npm:29.7.0"]\ ],\ "linkType": "HARD"\ @@ -3339,7 +3339,7 @@ const RAW_RUNTIME_STATE = ["@jest/test-result", "npm:29.7.0"],\ ["@jest/transform", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["chalk", "npm:4.1.2"],\ ["emittery", "npm:0.13.1"],\ ["graceful-fs", "npm:4.2.11"],\ @@ -3371,7 +3371,7 @@ const RAW_RUNTIME_STATE = ["@jest/test-result", "npm:29.7.0"],\ ["@jest/transform", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["chalk", "npm:4.1.2"],\ ["cjs-module-lexer", "npm:1.2.3"],\ ["collect-v8-coverage", "npm:1.0.2"],\ @@ -3425,7 +3425,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["jest-util", "npm:29.6.3"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["chalk", "npm:4.1.2"],\ ["ci-info", "npm:3.8.0"],\ ["graceful-fs", "npm:4.2.11"],\ @@ -3438,7 +3438,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["jest-util", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["chalk", "npm:4.1.2"],\ ["ci-info", "npm:3.8.0"],\ ["graceful-fs", "npm:4.2.11"],\ @@ -3469,7 +3469,7 @@ const RAW_RUNTIME_STATE = ["jest-watcher", "npm:29.7.0"],\ ["@jest/test-result", "npm:29.7.0"],\ ["@jest/types", "npm:29.6.3"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["ansi-escapes", "npm:4.3.2"],\ ["chalk", "npm:4.1.2"],\ ["emittery", "npm:0.13.1"],\ @@ -3484,7 +3484,7 @@ const RAW_RUNTIME_STATE = "packageLocation": "../../../../cache/others/berry/cache/jest-worker-npm-29.7.0-4d3567fed6-10c0.zip/node_modules/jest-worker/",\ "packageDependencies": [\ ["jest-worker", "npm:29.7.0"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["jest-util", "npm:29.7.0"],\ ["merge-stream", "npm:2.0.0"],\ ["supports-color", "npm:8.1.1"]\ @@ -4679,7 +4679,7 @@ const RAW_RUNTIME_STATE = ["@tsconfig/node12", "npm:1.0.11"],\ ["@tsconfig/node14", "npm:1.0.3"],\ ["@tsconfig/node16", "npm:1.0.4"],\ - ["@types/node", "npm:22.10.1"],\ + ["@types/node", "npm:22.10.6"],\ ["@types/swc__core", null],\ ["@types/swc__wasm", null],\ ["@types/typescript", null],\ @@ -10577,18 +10577,20 @@ Require stack: } return false; }; - const originalExtensionJSFunction = require$$0.Module._extensions[`.js`]; - require$$0.Module._extensions[`.js`] = function(module, filename) { - if (filename.endsWith(`.js`)) { - const pkg = readPackageScope(filename); - if (pkg && pkg.data?.type === `module`) { - const err = ERR_REQUIRE_ESM(filename, module.parent?.filename); - Error.captureStackTrace(err); - throw err; + if (!process.features.require_module) { + const originalExtensionJSFunction = require$$0.Module._extensions[`.js`]; + require$$0.Module._extensions[`.js`] = function(module, filename) { + if (filename.endsWith(`.js`)) { + const pkg = readPackageScope(filename); + if (pkg && pkg.data?.type === `module`) { + const err = ERR_REQUIRE_ESM(filename, module.parent?.filename); + Error.captureStackTrace(err); + throw err; + } } - } - originalExtensionJSFunction.call(this, module, filename); - }; + originalExtensionJSFunction.call(this, module, filename); + }; + } const originalDlopen = process.dlopen; process.dlopen = function(...args) { const [module, filename, ...rest] = args; diff --git a/yarn.lock b/yarn.lock index 96724f1..7aef09e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -904,11 +904,11 @@ __metadata: linkType: hard "@types/node@npm:*, @types/node@npm:^22.7.5": - version: 22.10.1 - resolution: "@types/node@npm:22.10.1" + version: 22.10.6 + resolution: "@types/node@npm:22.10.6" dependencies: undici-types: "npm:~6.20.0" - checksum: 10c0/0fbb6d29fa35d807f0223a4db709c598ac08d66820240a2cd6a8a69b8f0bc921d65b339d850a666b43b4e779f967e6ed6cf6f0fca3575e08241e6b900364c234 + checksum: 10c0/8b67affc211e5f9c74f7949cda04ca669721e50b83d71b8772a7bed7a4a3c41d663b3a794413f618e763ca6c5da8c234c25ffebcb0737983fc3e7415818ab9a7 languageName: node linkType: hard