diff --git a/.pnp.cjs b/.pnp.cjs index a405fcbd1..fe81fce40 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -2980,6 +2980,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ "linkType": "HARD"\ }],\ + ["npm:20.11.5", {\ + "packageLocation": "./.yarn/cache/@types-node-npm-20.11.5-b807d46a1a-a542727de1.zip/node_modules/@types/node/",\ + "packageDependencies": [\ + ["@types/node", "npm:20.11.5"],\ + ["undici-types", "npm:5.26.5"]\ + ],\ + "linkType": "HARD"\ + }],\ ["npm:20.6.0", {\ "packageLocation": "./.yarn/cache/@types-node-npm-20.6.0-73d5022935-52611801af.zip/node_modules/@types/node/",\ "packageDependencies": [\ @@ -13029,7 +13037,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@types/eslint", "npm:8.44.2"],\ ["@types/mocha", "npm:10.0.1"],\ ["@types/newman", "npm:5.3.3"],\ - ["@types/node", "npm:20.6.3"],\ + ["@types/node", "npm:20.11.5"],\ ["@types/postman-collection", "npm:3.5.7"],\ ["@types/source-map-support", "npm:0.5.7"],\ ["@types/yargs", "npm:17.0.24"],\ @@ -13052,7 +13060,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["postman-collection", "npm:4.2.1"],\ ["rimraf", "npm:5.0.1"],\ ["source-map-support", "npm:0.5.21"],\ - ["ts-node", "virtual:3c6c31eedba60f6d4a0031098f0272720e7414162569ae8f58388d36f8e79683154a59f38a8e5aece9f0d5e45421fab86d5311a37a1c1aec338de3c79151496a#npm:10.9.1"],\ + ["ts-node", "virtual:4218b6600acb0c8954cf8466c426bad46f922b530cc59d6a89bb99bced31fcbe6a5d15569d569781ed3b73521fe5248efe67b2809fc9b4d1dcf8adddcf65f3df#npm:10.9.1"],\ ["typescript", "patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=f3b441"]\ ],\ "linkType": "SOFT"\ @@ -16911,6 +16919,42 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "typescript"\ ],\ "linkType": "HARD"\ + }],\ + ["virtual:4218b6600acb0c8954cf8466c426bad46f922b530cc59d6a89bb99bced31fcbe6a5d15569d569781ed3b73521fe5248efe67b2809fc9b4d1dcf8adddcf65f3df#npm:10.9.1", {\ + "packageLocation": "./.yarn/__virtual__/ts-node-virtual-baf54b7423/0/cache/ts-node-npm-10.9.1-6c268be7f4-090adff130.zip/node_modules/ts-node/",\ + "packageDependencies": [\ + ["ts-node", "virtual:4218b6600acb0c8954cf8466c426bad46f922b530cc59d6a89bb99bced31fcbe6a5d15569d569781ed3b73521fe5248efe67b2809fc9b4d1dcf8adddcf65f3df#npm:10.9.1"],\ + ["@cspotcode/source-map-support", "npm:0.8.1"],\ + ["@swc/core", null],\ + ["@swc/wasm", null],\ + ["@tsconfig/node10", "npm:1.0.9"],\ + ["@tsconfig/node12", "npm:1.0.11"],\ + ["@tsconfig/node14", "npm:1.0.3"],\ + ["@tsconfig/node16", "npm:1.0.4"],\ + ["@types/node", "npm:20.11.5"],\ + ["@types/swc__core", null],\ + ["@types/swc__wasm", null],\ + ["@types/typescript", null],\ + ["acorn", "npm:8.10.0"],\ + ["acorn-walk", "npm:8.2.0"],\ + ["arg", "npm:4.1.3"],\ + ["create-require", "npm:1.1.1"],\ + ["diff", "npm:4.0.2"],\ + ["make-error", "npm:1.3.6"],\ + ["typescript", "patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=f3b441"],\ + ["v8-compile-cache-lib", "npm:3.0.1"],\ + ["yn", "npm:3.1.1"]\ + ],\ + "packagePeers": [\ + "@swc/core",\ + "@swc/wasm",\ + "@types/node",\ + "@types/swc__core",\ + "@types/swc__wasm",\ + "@types/typescript",\ + "typescript"\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["tsconfig-paths", [\ @@ -17233,6 +17277,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD"\ }]\ ]],\ + ["undici-types", [\ + ["npm:5.26.5", {\ + "packageLocation": "./.yarn/cache/undici-types-npm-5.26.5-de4f7c7bb9-3192ef6f3f.zip/node_modules/undici-types/",\ + "packageDependencies": [\ + ["undici-types", "npm:5.26.5"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["unique-filename", [\ ["npm:3.0.0", {\ "packageLocation": "./.yarn/cache/unique-filename-npm-3.0.0-77d68e0a45-8e2f59b356.zip/node_modules/unique-filename/",\ @@ -28991,7 +29044,7 @@ function makeManager(pnpapi, opts) { apiEntry.lastRefreshCheck = timeNow; const stats = opts.fakeFs.statSync(pnpApiPath); if (stats.mtime > apiEntry.stats.mtime) { - process.emitWarning(`[Warning] The runtime detected new informations in a PnP file; reloading the API instance (${npath.fromPortablePath(pnpApiPath)})`); + process.emitWarning(`[Warning] The runtime detected new information in a PnP file; reloading the API instance (${npath.fromPortablePath(pnpApiPath)})`); apiEntry.stats = stats; apiEntry.instance = loadApiInstance(pnpApiPath); } diff --git a/.pnp.loader.mjs b/.pnp.loader.mjs index 4b7f9f843..849d760f0 100644 --- a/.pnp.loader.mjs +++ b/.pnp.loader.mjs @@ -1333,7 +1333,7 @@ const HAS_CONSOLIDATED_HOOKS = major > 16 || major === 16 && minor >= 12; const HAS_UNFLAGGED_JSON_MODULES = major > 17 || major === 17 && minor >= 5 || major === 16 && minor >= 15; const HAS_JSON_IMPORT_ASSERTION_REQUIREMENT = major > 17 || major === 17 && minor >= 1 || major === 16 && minor > 14; const WATCH_MODE_MESSAGE_USES_ARRAYS = major > 19 || major === 19 && minor >= 2 || major === 18 && minor >= 13; -const HAS_LAZY_LOADED_TRANSLATORS = major > 19 || major === 19 && minor >= 3; +const HAS_LAZY_LOADED_TRANSLATORS = major === 20 && minor < 6 || major === 19 && minor >= 3; const builtinModules = new Set(Module.builtinModules || Object.keys(process.binding(`natives`))); const isBuiltinModule = (request) => request.startsWith(`node:`) || builtinModules.has(request); @@ -2012,31 +2012,46 @@ async function resolve$1(originalSpecifier, context, nextResolve) { if (!HAS_LAZY_LOADED_TRANSLATORS) { const binding = process.binding(`fs`); - const originalfstat = binding.fstat; - const ZIP_MASK = 4278190080; - const ZIP_MAGIC = 704643072; - binding.fstat = function(...args) { - const [fd, useBigint, req] = args; - if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) { + const originalReadFile = binding.readFileUtf8 || binding.readFileSync; + if (originalReadFile) { + binding[originalReadFile.name] = function(...args) { try { - const stats = fs.fstatSync(fd); - return new Float64Array([ - stats.dev, - stats.mode, - stats.nlink, - stats.uid, - stats.gid, - stats.rdev, - stats.blksize, - stats.ino, - stats.size, - stats.blocks - ]); + return fs.readFileSync(args[0], { + encoding: `utf8`, + flag: args[1] + }); } catch { } - } - return originalfstat.apply(this, args); - }; + return originalReadFile.apply(this, args); + }; + } else { + const binding2 = process.binding(`fs`); + const originalfstat = binding2.fstat; + const ZIP_MASK = 4278190080; + const ZIP_MAGIC = 704643072; + binding2.fstat = function(...args) { + const [fd, useBigint, req] = args; + if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) { + try { + const stats = fs.fstatSync(fd); + return new Float64Array([ + stats.dev, + stats.mode, + stats.nlink, + stats.uid, + stats.gid, + stats.rdev, + stats.blksize, + stats.ino, + stats.size, + stats.blocks + ]); + } catch { + } + } + return originalfstat.apply(this, args); + }; + } } const resolve = resolve$1; diff --git a/.yarn/cache/@types-node-npm-20.11.5-b807d46a1a-a542727de1.zip b/.yarn/cache/@types-node-npm-20.11.5-b807d46a1a-a542727de1.zip new file mode 100644 index 000000000..9eddfe1fb Binary files /dev/null and b/.yarn/cache/@types-node-npm-20.11.5-b807d46a1a-a542727de1.zip differ diff --git a/.yarn/cache/undici-types-npm-5.26.5-de4f7c7bb9-3192ef6f3f.zip b/.yarn/cache/undici-types-npm-5.26.5-de4f7c7bb9-3192ef6f3f.zip new file mode 100644 index 000000000..6ab5ae67e Binary files /dev/null and b/.yarn/cache/undici-types-npm-5.26.5-de4f7c7bb9-3192ef6f3f.zip differ diff --git a/packages/newman-reporter-allure/package.json b/packages/newman-reporter-allure/package.json index f2db2eef4..9d3009cda 100644 --- a/packages/newman-reporter-allure/package.json +++ b/packages/newman-reporter-allure/package.json @@ -42,7 +42,7 @@ "@types/eslint": "^8", "@types/mocha": "^10.0.1", "@types/newman": "^5.3.3", - "@types/node": "20.6.3", + "@types/node": "20.11.5", "@types/postman-collection": "^3.5.7", "@types/source-map-support": "^0.5.7", "@types/yargs": "^17.0.24", diff --git a/yarn.lock b/yarn.lock index a145c14da..221d6dfb0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2158,10 +2158,12 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:20.6.3, @types/node@npm:^20.6.3": - version: 20.6.3 - resolution: "@types/node@npm:20.6.3" - checksum: 444a6f1f41cfa8d3e20ce0108e6e43960fb2ae0e481f233bb1c14d6252aa63a92e021de561cd317d9fdb411688f871065f40175a1f18763282dee2613a08f8a3 +"@types/node@npm:20.11.5": + version: 20.11.5 + resolution: "@types/node@npm:20.11.5" + dependencies: + undici-types: ~5.26.4 + checksum: a542727de1334ae20a3ca034b0ecf4b464a57ca01efc4f9cf43bd9ab93896125ab3c2de060ecd8f6ae23b86c6bf3463f681b643e69c032c6a662d376c98a6092 languageName: node linkType: hard @@ -2172,6 +2174,13 @@ __metadata: languageName: node linkType: hard +"@types/node@npm:^20.6.3": + version: 20.6.3 + resolution: "@types/node@npm:20.6.3" + checksum: 444a6f1f41cfa8d3e20ce0108e6e43960fb2ae0e481f233bb1c14d6252aa63a92e021de561cd317d9fdb411688f871065f40175a1f18763282dee2613a08f8a3 + languageName: node + linkType: hard + "@types/normalize-package-data@npm:^2.4.1": version: 2.4.1 resolution: "@types/normalize-package-data@npm:2.4.1" @@ -11012,7 +11021,7 @@ __metadata: "@types/eslint": ^8 "@types/mocha": ^10.0.1 "@types/newman": ^5.3.3 - "@types/node": 20.6.3 + "@types/node": 20.11.5 "@types/postman-collection": ^3.5.7 "@types/source-map-support": ^0.5.7 "@types/yargs": ^17.0.24 @@ -14947,6 +14956,13 @@ __metadata: languageName: node linkType: hard +"undici-types@npm:~5.26.4": + version: 5.26.5 + resolution: "undici-types@npm:5.26.5" + checksum: 3192ef6f3fd5df652f2dc1cd782b49d6ff14dc98e5dced492aa8a8c65425227da5da6aafe22523c67f035a272c599bb89cfe803c1db6311e44bed3042fc25487 + languageName: node + linkType: hard + "unique-filename@npm:^3.0.0": version: 3.0.0 resolution: "unique-filename@npm:3.0.0"