@yao-pkg/pkg-fetch 3.5.3 → 3.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -115,3 +115,18 @@ review.
115
115
  For example:
116
116
 
117
117
  `yarn start --node-range node18 --arch x64 --output dist`
118
+
119
+ ## Environment
120
+
121
+ | Var | Description |
122
+ | ---------------- | ------------------------------------------------------------------------------------------------------------ |
123
+ | `PKG_BUILD_PATH` | Directory to use to clone and build nodejs binaries. Default to system temporary directory |
124
+ | `PKG_CACHE_PATH` | Path to pkg-cache. Default to `~/.pkg-cache` |
125
+ | `PKG_IGNORE_TAG` | Ignore tag folder when checking local binary path |
126
+ | `PKG_NODE_PATH` | Custom path to the local nodejs binary to use |
127
+ | `HTTPS_PROXY` | Optional HTTPS proxy to use when fetching binaries |
128
+ | `HTTP_PROXY` | Optional HTTP proxy to use when fetching binaries |
129
+ | `MAKE_JOB_COUNT` | Number of parallel jobs when building binaries (value passed to `make -j` option). Default to number of cpus |
130
+ | `CFLAGS` | Flags to use when invoking C compiler |
131
+ | `CXXFLAGS` | Flags to use when invoking C++ compiler |
132
+ | `STRIP` | Path to `strip` command. Default to `strip` |
@@ -1,67 +1,43 @@
1
1
  {
2
- "node-v8.17.0-alpine-arm64": "807df81524ec8e1e266ac7fbed434c6b2281ae20b9fa7eaa524de90f3330c4d7",
3
- "node-v8.17.0-alpine-x64": "83a3914de57ee6be7d68ebaac8a10c1a2972d554800f1bee218cc4a23650e0fb",
4
- "node-v8.17.0-linux-arm64": "f06855896bfa10bead1f08fac080305fb6fbfb2cc691168a3f0f0e834e12bfba",
5
- "node-v8.17.0-linux-x64": "14d75d43de1ff86469d354bf42a83b9494e09502fa7bc23a975e2cb82b1608b0",
6
- "node-v8.17.0-linuxstatic-arm64": "84de8fe30b2bd1dcb3615cf1d1b538aa48e1fcf66620ef97dce6b7ae85b45025",
7
- "node-v8.17.0-linuxstatic-x64": "5206878079f160e75a02ad33b7559b4a869e8181ee03d51d7211b52995f9ca7b",
8
- "node-v8.17.0-macos-x64": "dffa71e39100f4daa57de73fda7b4debecd09f552b15cf11854c8475380d3817",
9
- "node-v8.17.0-win-x64": "4556a06dc59a0196453ba5962ea077ea71fe566e4de1c92f73f057446d422251",
10
2
  "node-v10.24.1-alpine-arm64": "f6a59f1ace2ef1f4bf976ff85d9a74bdc71bda098e8aa018e2a089c590aeedea",
11
- "node-v10.24.1-alpine-x64": "24f862b22a59ac0adb746d5bd3f2226c8eb2f6e1565a1cb4d2418c9cb0f3769e",
12
- "node-v10.24.1-linux-arm64": "e3a3e5197e3f3d1063e3178786890b29493b8dfc31362f3417cce90ca7eb3e98",
13
- "node-v10.24.1-linux-x64": "c59574f4ea7b1423bd7ef586887ea41c43cfb2a63431126af0de20291a3a94db",
14
- "node-v10.24.1-linuxstatic-arm64": "01bc2cfbf7a7dd1a74201ae34a6cfafc1ad1c6d77039f587111738a81637bc5b",
15
- "node-v10.24.1-linuxstatic-armv7": "4933be03e394a82f5aa5fc4600b29392b2ce7eac24bd2ef8759f9a8e8c841990",
16
- "node-v10.24.1-linuxstatic-x64": "a7bbd62b712b3a7ac54953b646f0802e84bc7ecadb0b8a0756323fcffe3310a5",
17
- "node-v10.24.1-macos-x64": "f2e4679262a1cc6f3213cc4f0453d662e48c021975b651534fcbf26d6fdab474",
18
- "node-v10.24.1-win-x64": "958647af177a9089bb4f3495e352d5348a1b42858d0111004ca26c3a2ece3f73",
19
- "node-v12.22.11-alpine-arm64": "0933ab559bb34c720f0a7e0066f32608960a4d6290977c3af15529f7abfe7265",
20
- "node-v12.22.11-alpine-x64": "2ec8d7b761f03b2172bcf3b1b56c648e844116ab08a5484d7932138c374cf18c",
21
- "node-v12.22.11-linux-arm64": "3a50d85ebd5ba7e1e62165b9df237925789ef9ed0ed92fd9d0f3a9df7503f751",
22
- "node-v12.22.11-linux-x64": "617d58e81711d3a1d34a737db39e751caa05040a1a586e6dd688241cfb3f3eed",
23
- "node-v12.22.11-linuxstatic-arm64": "0c5b03cbe32ce50f16dbb35769a2a897b30e8fdb2137c4799edb55898b475622",
24
- "node-v12.22.11-linuxstatic-x64": "37714fc3ae8b1d0c92b124f8ab353c77e40494075646e43ce8e20bd4038b5b83",
25
- "node-v12.22.11-macos-x64": "5394093f0fd2bb5ea38ee2a5eaec9e00d3d1da9e3f7c3c99c68eecfe17354286",
26
- "node-v12.22.11-win-x64": "24bedd07eb0cad64d505ec731c438765370bbed32d8e1f47129fe3612fadfcdb",
27
- "node-v14.21.3-alpine-arm64": "801f71544a48e92554d61291b63ed8addd19921075826d0ef299819a9300f996",
28
- "node-v14.21.3-alpine-x64": "62882ceabf13342eb51c5323a11e4be736bec651646071adf93e40fd02125919",
29
- "node-v14.21.3-linux-arm64": "a4c46261e179775268528f0693be44922768cff96afe5f194748c519405fcec4",
30
- "node-v14.21.3-linux-x64": "b0b1fbf8e0caa5483f5538fccc90d9c681824c26f6b3008dacc5b6928881bf39",
31
- "node-v14.21.3-linuxstatic-arm64": "d14f9dccf9c861a14a4491a8f5796c3a8cce914d36a8b802b7b72bd4dd1acb1a",
32
- "node-v14.21.3-linuxstatic-armv7": "183dd014d294ad418fb0902d3fa91dc5d780b4ae5e2e58bd77c52c60fc79be3f",
33
- "node-v14.21.3-linuxstatic-x64": "b941d79858ac45ce1400439d32fd5eba6d339417ff341491a78b5ad6fe799450",
34
- "node-v14.21.3-macos-x64": "0cff926be3b4d4ef31b2daac7c8b191c2bcc961ea90692c2c245d9a694c98832",
35
- "node-v14.21.3-win-arm64": "dfb0f0b94d50f0530aefe93b6333c4caeec34c683c29f9631555c1501d80cc98",
36
- "node-v14.21.3-win-x64": "223dc070ebf5d4528ac2f276ddf69bc83f58e68e2cc9067020c62c07d5ad4e90",
37
- "node-v16.19.1-alpine-arm64": "3020ec066271c71d72479181ac7ec24b5186df61e16b682fb7b060ad2a9a363a",
38
- "node-v16.19.1-alpine-x64": "38e6561457ee35634a071417b1234ce0e7694e45088763a4da5de915fbb02f68",
39
- "node-v16.19.1-linux-arm64": "98f0dda14f5037dafb35617de34c1f772f2b3c2e04955be62cdf125100d0962c",
40
- "node-v16.19.1-linux-x64": "07e151674f4f4a2c6641b8c818f258067f1dbd8d68f3648663c606afea34e576",
41
- "node-v16.19.1-linuxstatic-arm64": "2c40b15e6a3d40ae822bbefe5b269e15a30952be793a30a418b87eae7c1ebdff",
42
- "node-v16.19.1-linuxstatic-armv7": "8dd5d18557fb602070d1eca72a5b73d3b8167e6f3c951e0bd6aed5376597c31d",
43
- "node-v16.19.1-linuxstatic-x64": "f4ac69917aca69694101cda07902dff6d5f99bd2e62e6f72dedd045e67f11066",
44
- "node-v16.19.1-macos-x64": "9396df4caf2fdbc40bf878ef44a73e09aac6e13411dccbd8bb9b63b5a4517ca7",
45
- "node-v16.19.1-win-arm64": "a2901e03d4e3f2cfded37598160075a8867fc4147a71984477cf72250ae292db",
46
- "node-v16.19.1-win-x64": "549e8bd07950d58a325938d004936f43a99a6bcc12139ced6a2d67f6b09470c1",
47
- "node-v18.15.0-alpine-arm64": "cc758d91840c5a8893fcd7f696be38aa227e5e6036b28aeb29ebbe9efe4c55ef",
48
- "node-v18.15.0-alpine-x64": "be0b5f11290adb0eae8ab32907dae1334ee43d3023bb9870eb98515a47aa7031",
49
- "node-v18.15.0-linux-arm64": "d4420e35dd1075a23db48874d14a596503e4c7223e515b620b5036b2916ab128",
50
- "node-v18.15.0-linux-x64": "a4735a8e58c7269985c15cb9b36a700cf778e720828ee79ce6ed45982e42993e",
51
- "node-v18.15.0-linuxstatic-arm64": "60d4ac648a0782f6d8e83b79262ca7ead87f04cb2f9dce187c1e90827c4fadbe",
52
- "node-v18.15.0-linuxstatic-armv7": "3cc2753714271de3eb02e584ffa199ba33a3f72ed22647900a4c85d743c39272",
53
- "node-v18.15.0-linuxstatic-x64": "7a2dde6a5e1e9f711d100d0ae019ba785de5968bb3daa4ae658135f766f667c1",
54
- "node-v18.15.0-macos-x64": "13cc043442af8f110836e7a4abcfc4ba5cf1d9568564485f018fd93d688291e1",
55
- "node-v18.15.0-win-arm64": "d66ac1fc6bfeb25dc538f13e284d71b12684d02913eb5e666d21b2b245ffac74",
56
- "node-v18.15.0-win-x64": "1729a85e503f54ba5345d8ff10552e8706fb231f7be635e67367cb5205e0a1b4",
57
- "node-v19.8.1-alpine-arm64": "2c93c7b842be25bc6110b31278da9fd5699a42323d9e869b3d5019e15ba6724c",
58
- "node-v19.8.1-alpine-x64": "5d7944fe93d3221ca4c4a3651af2af79349a2a5b9c424c12867f44d14feefe6d",
59
- "node-v19.8.1-linux-arm64": "2ca0a267ca5fd44e29fef5a4c205e49af98a623d959958c3e66f1cf5d291bb1b",
60
- "node-v19.8.1-linux-x64": "0060edcd98f924dcac284841d941ce7aabc39ef1fd08c068ec4e24acaaa16220",
61
- "node-v19.8.1-linuxstatic-arm64": "7f4d7a8349ca0f6f8e329a86e590b8c2c7936fcfeb33c65c54315c6e534eb6c0",
62
- "node-v19.8.1-linuxstatic-armv7": "0a4b44593c11a7c5161556a35c63a83581b6fd93ab1360d4f37cdb1d642d57ed",
63
- "node-v19.8.1-linuxstatic-x64": "f995f279381bb4ff5f74f3a14086c5a3cfaa9caab60bcdf6d5278479140e3760",
64
- "node-v19.8.1-macos-x64": "df526135f58d3728f603daefc75e5173e0eb03b2cdf4341bf3bcdbd236705ae0",
65
- "node-v19.8.1-win-arm64": "69dc4c5ae7e590282c57f85db5ef9109437b600fdebdd64927a44567a8b926af",
66
- "node-v19.8.1-win-x64": "bc60b74070057e830e9d5f2d16dfae78e2a1faed9bf29fd8e55c81da21cd0309"
3
+ "node-v14.21.3-alpine-arm64": "651c2b423925c9dab1ca7695acfb1462be13264f0c1fb6c8b472474c7dbacddd",
4
+ "node-v14.21.3-alpine-x64": "4f2b5b16428f998302bbcf59ca229998be48e5dc6c2487edb603152651c182cd",
5
+ "node-v14.21.3-linux-arm64": "bb20f63ac32c4e6a0545dfcea3833e8a8a968b95e91ce01cab7f4f48f1a56064",
6
+ "node-v14.21.3-linux-x64": "4be08d8f62fc05d70d76daf1ad71aec0bdb47317e4f7b74bb0cb5ec13a137179",
7
+ "node-v14.21.3-linuxstatic-arm64": "c4812bbb6829e06fa60716a55a044f11b6bf6096ebc4945d5bccf05d860cc7a8",
8
+ "node-v14.21.3-linuxstatic-armv7": "7c4e47db71c4c7dbc071fd2be13ba34b324fbec28ccaa0beadc7dab74fec8d23",
9
+ "node-v14.21.3-linuxstatic-x64": "22b84e0d92817432cc7e25cdb5e4d984b49415f708fc0aef13110ad194c773f1",
10
+ "node-v14.21.3-macos-x64": "4b19a9555807de2119e2fb00f2ba5f04126b35afdb8264d7b2dd8e2e134fa934",
11
+ "node-v14.21.3-win-arm64": "1f9d32c4693893ce4e2e8b340648a12d37cb742866b067b85402078e70151ba7",
12
+ "node-v14.21.3-win-x64": "cb2a0bf3e063a2bc6b66a4894e6a57d334922c4bb3a337157764fd914d616666",
13
+ "node-v16.20.2-alpine-arm64": "a30cc9be5472dc0f66bf859669c742c6a47f66973c82bea0e7605c357079c8d5",
14
+ "node-v16.20.2-alpine-x64": "171381ff415321dede24c5883003a1c07301a4d7bf44aeb0ef4e72b7f78c3202",
15
+ "node-v16.20.2-linux-arm64": "12c175838b4e76dabf67f0668dbfa0889ce80aca35a5866635a3a42664cbba22",
16
+ "node-v16.20.2-linux-x64": "b8ad09f0fccf5341dc459056096aa6d413d278ca3e939e42a29e6fbaa149ca50",
17
+ "node-v16.20.2-linuxstatic-arm64": "fa6ecba685dbdd0e1a1e3a9cb7db07dc558f422a0b53baf3834b855c422a2a3a",
18
+ "node-v16.20.2-linuxstatic-armv7": "a8c63fb9523ad44fe59329ba02dba2936da4b9adc7d4238e7180f15031cb1cff",
19
+ "node-v16.20.2-linuxstatic-x64": "1a136b7c97c56a90e48d51683ca9181e53e750928a439a88da185c0d7917e432",
20
+ "node-v16.20.2-macos-x64": "cd60ba35e3305519ce4ce6398897a1c9e9e68a14c170325d9ece8d078775b3f9",
21
+ "node-v16.20.2-win-arm64": "7514915e02aedfbdc9f87ede04f1f251b014e312e3e184d5b94b42aeb28c2485",
22
+ "node-v16.20.2-win-x64": "272729724993ce07b37d328718a0152e50ec5c9d27aa972975c09b75604c0dca",
23
+ "node-v18.18.2-alpine-arm64": "244a74549a342ed74b531625c02168e1c0e72f328d8b8d53ab143a6813fd9466",
24
+ "node-v18.18.2-alpine-x64": "b9c6d08f510ce15353d9f2441b5b096697c877b1760a6f526c203b47bf3ec83a",
25
+ "node-v18.18.2-linux-arm64": "01676c5420d17a2fa53ddf4573ca21895150ae317cd54a7e26234c26d3603e7a",
26
+ "node-v18.18.2-linux-x64": "d918fd7ad7d9db0cde09c570ada58a6fb9e2bf43c032a9cb87d0e572f06db646",
27
+ "node-v18.18.2-linuxstatic-arm64": "2db35ca7c089fc78a8c6b44804a88aa1035344a7465b038f593cc337198285a6",
28
+ "node-v18.18.2-linuxstatic-armv7": "705c75ab9155069ffb8c3f800f8d49121d2b0d07343e4da9a98477e2962602f9",
29
+ "node-v18.18.2-linuxstatic-x64": "dce8f6c6f3ce48b4bbfb7a8177165c9743dba12458ccd42b9f3da3c9601fc088",
30
+ "node-v18.18.2-macos-x64": "db04d8a9338e1d2f6afd53c99d0a57ec9cc4bca84165ade0d2f5fcf9871bcdb9",
31
+ "node-v18.18.2-win-arm64": "ca08e24dfd5bae1a898d86f3241287e057c14e7fce37da1dff63f1bce6822b62",
32
+ "node-v18.18.2-win-x64": "81b25a5dc71bb3ebc8219f4cd73ad598a1eaff16ccbb2f75cf8f5db94e08149b",
33
+ "node-v19.8.1-alpine-arm64": "7d4fc8a17f116d6e77b6011201797897592fa03380e939fa8b49b00ba7ac641b",
34
+ "node-v19.8.1-alpine-x64": "aca5632e1960d763c7b9914ebfeb929c4ca0e8c2112798eca3959ba9a5076ed8",
35
+ "node-v19.8.1-linux-arm64": "4754c852da9e55591d7e54c4b9c5db1db4d52c8452b8533aab73451c1c5797f8",
36
+ "node-v19.8.1-linux-x64": "757a9e3b8a72f6eecf5cbc0b8ec4b25298375c1952165c3ef2184133ac81ff44",
37
+ "node-v19.8.1-linuxstatic-arm64": "46b343c2d948acdf36d1717ad3e4a0c1bf28ea1abf845e24ed4cbf4d047a0890",
38
+ "node-v19.8.1-linuxstatic-armv7": "63c7154dee90dd6734cdf3eaa8ab3e1ab111772612eb48271f6cfd22f84c4dee",
39
+ "node-v19.8.1-linuxstatic-x64": "39c5c208347c76d921212d7a0d885c0b54d8c698b01c0e1e4b167b87fbc6ffb1",
40
+ "node-v19.8.1-macos-x64": "7288e53e6afe4d07bc5f32965ca7a051d7e72a67f09979c561dc8dabff88a5b2",
41
+ "node-v19.8.1-win-arm64": "f288732fc5f5493367a5d60d1e227347099de3db26fd651607df07d37fb8222e",
42
+ "node-v19.8.1-win-x64": "98b22116864d72e1ccb4d557dc36785cf731051543c5c876f1bf547872de2d1d"
67
43
  }
package/lib-es5/places.js CHANGED
@@ -18,6 +18,9 @@ function tagFromVersion(version) {
18
18
  function localPlace(_a) {
19
19
  var from = _a.from, output = _a.output, version = _a.version, nodeVersion = _a.nodeVersion, platform = _a.platform, arch = _a.arch;
20
20
  var binDir;
21
+ if (process.env.PKG_NODE_PATH) {
22
+ return path_1.default.resolve(process.env.PKG_NODE_PATH);
23
+ }
21
24
  if (output) {
22
25
  binDir = path_1.default.resolve(output);
23
26
  }
package/lib-es5/verify.js CHANGED
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.verify = void 0;
40
40
  var child_process_1 = require("child_process");
41
41
  var utils_1 = require("./utils");
42
- var script = "\n var vm = require('vm');\n var assert = require('assert');\n var text = '(function () { return 42; })';\n var cd, fn, result;\n var modules = process.versions.modules | 0;\n var v8 = process.versions.v8.split('.').slice(0, 2).join('.');\n\n var s1 = new vm.Script(text, { filename: 's1', produceCachedData: true, sourceless: true });\n assert(s1.cachedDataProduced);\n cd = s1.cachedData;\n\n var kCpuFeaturesOffset, cpuFeatures;\n\n if (modules === 14) {\n } else\n if (modules === 46 || modules === 48 || modules === 51) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 57) {\n if (v8 === '6.2') {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (v8 === '5.8') {\n kCpuFeaturesOffset = 0x0c;\n } else {\n kCpuFeaturesOffset = 0x10;\n }\n } else\n if (modules === 59) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 64) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 72) {\n // no cpu features anymore\n } else\n if (modules === 79) {\n // no cpu features anymore\n } else\n if (modules === 83) {\n // no cpu features anymore\n } else {\n assert(false, modules);\n }\n\n if (modules >= 46 && // no cpu_features field in 0.12\n process.arch !== 'arm' && // non-zero features even in sourceless mode in arm\n modules < 72) { // no cpu_features field in 12+\n cpuFeatures = cd.readUInt32LE(kCpuFeaturesOffset);\n assert(cpuFeatures === 0, 'CPU_FEATURES must be zero');\n }\n\n var s2 = new vm.Script(undefined, { filename: 's2', cachedData: cd, sourceless: true });\n fn = s2.runInThisContext();\n result = fn();\n assert.equal(result, 42);\n\n if (modules === 14) {\n } else\n if (modules === 46 || modules === 48 ||\n modules === 51 || modules === 57 || modules === 59 || modules === 64) {\n var paddedPayloadOffset = 0x48; // see SerializedCodeData::Payload()\n var index = paddedPayloadOffset + 10;\n cd[index] ^= 0xf0;\n var s3 = new vm.Script(undefined, { filename: 's3', cachedData: cd, sourceless: true });\n assert(s3.cachedDataRejected, 's3.cachedDataRejected must be true');\n } else\n if (modules === 72) {\n } else\n if (modules === 79) {\n } else\n if (modules === 83) {\n } else {\n assert(false, modules);\n }\n\n var s4 = new vm.Script(text, { filename: 's4', produceCachedData: true });\n assert(s4.cachedDataProduced, 's4.cachedDataProduced must be true');\n cd = s4.cachedData;\n\n if (modules >= 46 && // no cpu_features field in 0.12\n process.arch !== 'arm' && // zero features even in non-sourceless mode in arm\n modules < 72) { // no cpu_features field in 12+\n cpuFeatures = cd.readUInt32LE(kCpuFeaturesOffset);\n assert(cpuFeatures !== 0, 'CPU_FEATURES must be non-zero');\n }\n\n console.log('ok');\n";
42
+ var script = "\n var vm = require('vm');\n var assert = require('assert');\n var text = '(function () { return 42; })';\n var cd, fn, result;\n var modules = process.versions.modules | 0;\n var v8 = process.versions.v8.split('.').slice(0, 2).join('.');\n\n var s1 = new vm.Script(text, { filename: 's1', produceCachedData: true, sourceless: true });\n assert(s1.cachedDataProduced);\n cd = s1.cachedData;\n\n var kCpuFeaturesOffset, cpuFeatures;\n\n if (modules === 14) {\n } else\n if (modules === 46 || modules === 48 || modules === 51) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 57) {\n if (v8 === '6.2') {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (v8 === '5.8') {\n kCpuFeaturesOffset = 0x0c;\n } else {\n kCpuFeaturesOffset = 0x10;\n }\n } else\n if (modules === 59) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 64) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 72) {\n // no cpu features anymore\n } else\n if (modules === 79) {\n // no cpu features anymore\n } else\n if (modules === 83) {\n // no cpu features anymore\n } else\n if (modules === 93) {\n // no cpu features anymore\n } else\n if (modules === 108) {\n // no cpu features anymore\n } else\n if (modules === 111) {\n // no cpu features anymore\n } else {\n assert(false, modules);\n }\n\n if (modules >= 46 && // no cpu_features field in 0.12\n process.arch !== 'arm' && // non-zero features even in sourceless mode in arm\n modules < 72) { // no cpu_features field in 12+\n cpuFeatures = cd.readUInt32LE(kCpuFeaturesOffset);\n assert(cpuFeatures === 0, 'CPU_FEATURES must be zero');\n }\n\n var s2 = new vm.Script(undefined, { filename: 's2', cachedData: cd, sourceless: true });\n fn = s2.runInThisContext();\n result = fn();\n assert.equal(result, 42);\n\n if (modules === 14) {\n } else\n if (modules === 46 || modules === 48 ||\n modules === 51 || modules === 57 || modules === 59 || modules === 64) {\n var paddedPayloadOffset = 0x48; // see SerializedCodeData::Payload()\n var index = paddedPayloadOffset + 10;\n cd[index] ^= 0xf0;\n var s3 = new vm.Script(undefined, { filename: 's3', cachedData: cd, sourceless: true });\n assert(s3.cachedDataRejected, 's3.cachedDataRejected must be true');\n } else\n if (modules === 72) {\n } else\n if (modules === 79) {\n } else\n if (modules === 83) {\n } else\n if (modules === 93) {\n } else\n if (modules === 108) {\n } else\n if (modules === 111) {\n } else {\n assert(false, modules);\n }\n\n var s4 = new vm.Script(text, { filename: 's4', produceCachedData: true });\n assert(s4.cachedDataProduced, 's4.cachedDataProduced must be true');\n cd = s4.cachedData;\n\n if (modules >= 46 && // no cpu_features field in 0.12\n process.arch !== 'arm' && // zero features even in non-sourceless mode in arm\n modules < 72) { // no cpu_features field in 12+\n cpuFeatures = cd.readUInt32LE(kCpuFeaturesOffset);\n assert(cpuFeatures !== 0, 'CPU_FEATURES must be non-zero');\n }\n\n console.log('ok');\n";
43
43
  function verify(local) {
44
44
  return __awaiter(this, void 0, void 0, function () {
45
45
  return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yao-pkg/pkg-fetch",
3
- "version": "3.5.3",
3
+ "version": "3.5.5",
4
4
  "description": "Compiles and stores base binaries for pkg",
5
5
  "main": "lib-es5/index.js",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  diff --git node/common.gypi node/common.gypi
2
- index cbf9c3810d..991792324e 100644
2
+ index d713ad5586..c6ee5fe47d 100644
3
3
  --- node/common.gypi
4
4
  +++ node/common.gypi
5
5
  @@ -179,7 +179,7 @@
@@ -12,10 +12,10 @@ index cbf9c3810d..991792324e 100644
12
12
  'lto': ' -flto ', # Clang
13
13
  }],
14
14
  diff --git node/configure.py node/configure.py
15
- index 1d0a1741ce..342ade8435 100755
15
+ index ce41bff4d3..7dd9d14b43 100755
16
16
  --- node/configure.py
17
17
  +++ node/configure.py
18
- @@ -1241,10 +1241,6 @@ def configure_node(o):
18
+ @@ -1259,10 +1259,6 @@ def configure_node(o):
19
19
 
20
20
  o['variables']['want_separate_host_toolset'] = int(cross_compiling)
21
21
 
@@ -251,7 +251,7 @@ index a9f463c4d0..81dd9ce272 100644
251
251
  const path = require('path');
252
252
  try {
253
253
  diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
254
- index 614ee758d2..a830dfa33d 100644
254
+ index 3943bd1edb..227cc0d171 100644
255
255
  --- node/lib/internal/modules/cjs/loader.js
256
256
  +++ node/lib/internal/modules/cjs/loader.js
257
257
  @@ -92,7 +92,7 @@ const fs = require('fs');
@@ -299,10 +299,10 @@ index 1bb199363a..18ad0f86f2 100644
299
299
  throw e; /* node-do-not-add-exception-line */
300
300
  }
301
301
  diff --git node/node.gyp node/node.gyp
302
- index 5a91d76f45..a3299211ab 100644
302
+ index de409a31f3..d26e4366ad 100644
303
303
  --- node/node.gyp
304
304
  +++ node/node.gyp
305
- @@ -113,6 +113,9 @@
305
+ @@ -111,6 +111,9 @@
306
306
  },
307
307
 
308
308
  'conditions': [
@@ -1,5 +1,5 @@
1
1
  diff --git node/common.gypi node/common.gypi
2
- index 782c871cff..c379e36569 100644
2
+ index 94fae06518..e4116f3c82 100644
3
3
  --- node/common.gypi
4
4
  +++ node/common.gypi
5
5
  @@ -174,7 +174,7 @@
@@ -12,10 +12,10 @@ index 782c871cff..c379e36569 100644
12
12
  'lto': ' -flto ', # Clang
13
13
  }],
14
14
  diff --git node/configure.py node/configure.py
15
- index 62c01aaf6a..2913940692 100755
15
+ index 7006ee6581..12fb2ac8d1 100755
16
16
  --- node/configure.py
17
17
  +++ node/configure.py
18
- @@ -1288,9 +1288,7 @@ def configure_node(o):
18
+ @@ -1289,9 +1289,7 @@ def configure_node(o):
19
19
 
20
20
  o['variables']['want_separate_host_toolset'] = int(cross_compiling)
21
21
 
@@ -75,7 +75,7 @@ index 8d224bea2e..8402afc0fb 100644
75
75
 
76
76
  RegisteredExtension::RegisteredExtension(std::unique_ptr<Extension> extension)
77
77
  diff --git node/deps/v8/src/codegen/compiler.cc node/deps/v8/src/codegen/compiler.cc
78
- index a0d2e45ffc..3f29eb7cce 100644
78
+ index d821913f65..2ec64523f3 100644
79
79
  --- node/deps/v8/src/codegen/compiler.cc
80
80
  +++ node/deps/v8/src/codegen/compiler.cc
81
81
  @@ -3026,7 +3026,7 @@ MaybeHandle<SharedFunctionInfo> GetSharedFunctionInfoForScriptImpl(
@@ -169,10 +169,10 @@ index 618cf9e975..64a57e8afe 100644
169
169
  uint32_t max_payload_length = this->size_ - kHeaderSize;
170
170
  if (payload_length > max_payload_length) {
171
171
  diff --git node/lib/child_process.js node/lib/child_process.js
172
- index 55e6b781cd..2a499d6d5f 100644
172
+ index 5bdc474c80..196778e7db 100644
173
173
  --- node/lib/child_process.js
174
174
  +++ node/lib/child_process.js
175
- @@ -167,7 +167,7 @@ function fork(modulePath, args = [], options) {
175
+ @@ -169,7 +169,7 @@ function fork(modulePath, args = [], options) {
176
176
  throw new ERR_CHILD_PROCESS_IPC_REQUIRED('options.stdio');
177
177
  }
178
178
 
@@ -183,7 +183,7 @@ index 55e6b781cd..2a499d6d5f 100644
183
183
  function _forkChild(fd, serializationMode) {
184
184
  diff --git node/lib/internal/bootstrap/pkg.js node/lib/internal/bootstrap/pkg.js
185
185
  new file mode 100644
186
- index 0000000000..e97e9e524c
186
+ index 0000000000..a697294fdf
187
187
  --- /dev/null
188
188
  +++ node/lib/internal/bootstrap/pkg.js
189
189
  @@ -0,0 +1,49 @@
@@ -237,7 +237,7 @@ index 0000000000..e97e9e524c
237
237
  + }());
238
238
  +}());
239
239
  diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
240
- index 42e5cc5010..7c4ec56082 100644
240
+ index 88bb870a8f..22bbdd9058 100644
241
241
  --- node/lib/internal/modules/cjs/loader.js
242
242
  +++ node/lib/internal/modules/cjs/loader.js
243
243
  @@ -94,7 +94,7 @@ const fs = require('fs');
@@ -250,7 +250,7 @@ index 42e5cc5010..7c4ec56082 100644
250
250
  const { safeGetenv } = internalBinding('credentials');
251
251
  const {
252
252
  diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
253
- index 09eb12bd15..2d2f196737 100644
253
+ index bb175d0df5..07f4834c07 100644
254
254
  --- node/lib/internal/modules/package_json_reader.js
255
255
  +++ node/lib/internal/modules/package_json_reader.js
256
256
  @@ -1,7 +1,7 @@
@@ -263,10 +263,10 @@ index 09eb12bd15..2d2f196737 100644
263
263
  const { toNamespacedPath } = require('path');
264
264
 
265
265
  diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
266
- index 44a9183d77..3d2268c612 100644
266
+ index b4a24bbffb..041ee4c715 100644
267
267
  --- node/lib/internal/process/pre_execution.js
268
268
  +++ node/lib/internal/process/pre_execution.js
269
- @@ -33,7 +33,12 @@ const {
269
+ @@ -36,7 +36,12 @@ const {
270
270
  isBuildingSnapshot,
271
271
  } = require('v8').startupSnapshot;
272
272
 
@@ -279,7 +279,7 @@ index 44a9183d77..3d2268c612 100644
279
279
  prepareExecution({
280
280
  expandArgv1,
281
281
  initializeModules,
282
- @@ -143,7 +148,8 @@ function patchProcessObject(expandArgv1) {
282
+ @@ -155,7 +160,8 @@ function patchProcessObject(expandArgv1) {
283
283
  process.argv[0] = process.execPath;
284
284
 
285
285
  if (expandArgv1 && process.argv[1] &&
@@ -289,19 +289,19 @@ index 44a9183d77..3d2268c612 100644
289
289
  // Expand process.argv[1] into a full path.
290
290
  const path = require('path');
291
291
  try {
292
- @@ -598,6 +604,7 @@ function loadPreloadModules() {
292
+ @@ -603,6 +609,7 @@ function loadPreloadModules() {
293
293
  // For user code, we preload modules if `-r` is passed
294
294
  const preloadModules = getOptionValue('--require');
295
295
  if (preloadModules && preloadModules.length > 0) {
296
296
  + assert(false, '--require is not supported');
297
297
  const {
298
298
  Module: {
299
- _preloadModules
299
+ _preloadModules,
300
300
  diff --git node/lib/vm.js node/lib/vm.js
301
- index ec91c8a265..5bb649a377 100644
301
+ index 21acc55e2e..8a128bcb5c 100644
302
302
  --- node/lib/vm.js
303
303
  +++ node/lib/vm.js
304
- @@ -79,6 +79,7 @@ class Script extends ContextifyScript {
304
+ @@ -77,6 +77,7 @@ class Script extends ContextifyScript {
305
305
  produceCachedData = false,
306
306
  importModuleDynamically,
307
307
  [kParsingContext]: parsingContext,
@@ -309,7 +309,7 @@ index ec91c8a265..5bb649a377 100644
309
309
  } = options;
310
310
 
311
311
  validateString(filename, 'options.filename');
312
- @@ -103,7 +104,8 @@ class Script extends ContextifyScript {
312
+ @@ -97,7 +98,8 @@ class Script extends ContextifyScript {
313
313
  columnOffset,
314
314
  cachedData,
315
315
  produceCachedData,
@@ -320,24 +320,24 @@ index ec91c8a265..5bb649a377 100644
320
320
  throw e; /* node-do-not-add-exception-line */
321
321
  }
322
322
  diff --git node/node.gyp node/node.gyp
323
- index 0b5c3ff5ba..09776d4b1f 100644
323
+ index 6b554d75d8..fce4eb4bd5 100644
324
324
  --- node/node.gyp
325
325
  +++ node/node.gyp
326
- @@ -112,6 +112,9 @@
326
+ @@ -113,6 +113,9 @@
327
327
  },
328
328
 
329
329
  'conditions': [
330
330
  + ['target_arch=="arm64"', {
331
331
  + 'cflags': ['-msign-return-address=all'], # Pointer authentication.
332
332
  + }],
333
- ['OS=="aix"', {
333
+ ['OS in "aix os400"', {
334
334
  'ldflags': [
335
335
  '-Wl,-bnoerrmsg',
336
336
  diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
337
- index 91e7beeaa0..43a8a5d7c6 100644
337
+ index b1ba86b7b0..e2478e537c 100644
338
338
  --- node/src/inspector_agent.cc
339
339
  +++ node/src/inspector_agent.cc
340
- @@ -692,8 +692,6 @@ bool Agent::Start(const std::string& path,
340
+ @@ -703,8 +703,6 @@ bool Agent::Start(const std::string& path,
341
341
  StartIoThreadAsyncCallback));
342
342
  uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
343
343
  start_io_thread_async.data = this;
@@ -347,10 +347,10 @@ index 91e7beeaa0..43a8a5d7c6 100644
347
347
  parent_env_->AddCleanupHook([](void* data) {
348
348
  Environment* env = static_cast<Environment*>(data);
349
349
  diff --git node/src/node.cc node/src/node.cc
350
- index 1067dee74c..8b32a10d08 100644
350
+ index 96cdcd3064..cef0838d53 100644
351
351
  --- node/src/node.cc
352
352
  +++ node/src/node.cc
353
- @@ -312,6 +312,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
353
+ @@ -314,6 +314,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
354
354
  return env->RunSnapshotDeserializeMain();
355
355
  }
356
356
 
@@ -359,7 +359,7 @@ index 1067dee74c..8b32a10d08 100644
359
359
  if (env->worker_context() != nullptr) {
360
360
  return StartExecution(env, "internal/main/worker_thread");
361
361
  }
362
- @@ -503,14 +505,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
362
+ @@ -546,14 +548,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
363
363
  }
364
364
 
365
365
  if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
@@ -375,7 +375,7 @@ index 1067dee74c..8b32a10d08 100644
375
375
  }
376
376
 
377
377
  diff --git node/src/node_contextify.cc node/src/node_contextify.cc
378
- index ed552ddd55..f757ac3b49 100644
378
+ index 3da8746e2c..ff60588e77 100644
379
379
  --- node/src/node_contextify.cc
380
380
  +++ node/src/node_contextify.cc
381
381
  @@ -75,6 +75,7 @@ using v8::ScriptOrigin;
@@ -386,7 +386,7 @@ index ed552ddd55..f757ac3b49 100644
386
386
  using v8::Value;
387
387
  using v8::WeakCallbackInfo;
388
388
  using v8::WeakCallbackType;
389
- @@ -771,11 +772,12 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
389
+ @@ -787,11 +788,12 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
390
390
  Local<ArrayBufferView> cached_data_buf;
391
391
  bool produce_cached_data = false;
392
392
  Local<Context> parsing_context = context;
@@ -400,7 +400,7 @@ index ed552ddd55..f757ac3b49 100644
400
400
  CHECK(args[2]->IsNumber());
401
401
  line_offset = args[2].As<Int32>()->Value();
402
402
  CHECK(args[3]->IsNumber());
403
- @@ -794,6 +796,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
403
+ @@ -810,6 +812,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
404
404
  CHECK_NOT_NULL(sandbox);
405
405
  parsing_context = sandbox->context();
406
406
  }
@@ -408,7 +408,7 @@ index ed552ddd55..f757ac3b49 100644
408
408
  }
409
409
 
410
410
  ContextifyScript* contextify_script =
411
- @@ -844,6 +847,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
411
+ @@ -860,6 +863,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
412
412
  ShouldNotAbortOnUncaughtScope no_abort_scope(env);
413
413
  Context::Scope scope(parsing_context);
414
414
 
@@ -419,7 +419,7 @@ index ed552ddd55..f757ac3b49 100644
419
419
  MaybeLocal<UnboundScript> maybe_v8_script =
420
420
  ScriptCompiler::CompileUnboundScript(isolate, &source, compile_options);
421
421
 
422
- @@ -857,6 +864,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
422
+ @@ -873,6 +880,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
423
423
  "ContextifyScript::New");
424
424
  return;
425
425
  }
@@ -433,7 +433,7 @@ index ed552ddd55..f757ac3b49 100644
433
433
  contextify_script->script_.Reset(isolate, v8_script);
434
434
 
435
435
  std::unique_ptr<ScriptCompiler::CachedData> new_cached_data;
436
- @@ -881,6 +895,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
436
+ @@ -897,6 +911,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
437
437
  .IsNothing())
438
438
  return;
439
439
 
@@ -445,7 +445,7 @@ index ed552ddd55..f757ac3b49 100644
445
445
  }
446
446
 
447
447
  diff --git node/src/node_main.cc node/src/node_main.cc
448
- index d486bbc31c..eb806b1ce4 100644
448
+ index 8099b2a3a1..9cc8a07a55 100644
449
449
  --- node/src/node_main.cc
450
450
  +++ node/src/node_main.cc
451
451
  @@ -22,6 +22,8 @@
@@ -555,19 +555,20 @@ index d486bbc31c..eb806b1ce4 100644
555
555
  + return adjacent(c, nargv);
556
556
  +}
557
557
  diff --git node/src/node_options.cc node/src/node_options.cc
558
- index 6eabf78f1b..e9be1ed5ba 100644
558
+ index 26f205bc3b..e52a31f487 100644
559
559
  --- node/src/node_options.cc
560
560
  +++ node/src/node_options.cc
561
- @@ -308,6 +308,7 @@ void Parse(
562
- // TODO(addaleax): Make that unnecessary.
563
-
564
- DebugOptionsParser::DebugOptionsParser() {
561
+ @@ -307,7 +307,7 @@ DebugOptionsParser::DebugOptionsParser() {
562
+ #ifndef DISABLE_SINGLE_EXECUTABLE_APPLICATION
563
+ if (sea::IsSingleExecutable()) return;
564
+ #endif
565
+ -
565
566
  + return;
566
567
  AddOption("--inspect-port",
567
568
  "set host:port for inspector",
568
569
  &DebugOptions::host_port,
569
570
  diff --git node/tools/icu/icu-generic.gyp node/tools/icu/icu-generic.gyp
570
- index db45e6fbdf..3e39f1fbdf 100644
571
+ index 2655b9e694..1d951571c7 100644
571
572
  --- node/tools/icu/icu-generic.gyp
572
573
  +++ node/tools/icu/icu-generic.gyp
573
574
  @@ -52,7 +52,7 @@
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "v19.8.1": ["node.v19.8.1.cpp.patch"],
3
- "v18.15.0": ["node.v18.15.0.cpp.patch"],
4
- "v16.19.1": ["node.v16.19.1.cpp.patch"],
3
+ "v18.18.2": ["node.v18.18.2.cpp.patch"],
4
+ "v16.20.2": ["node.v16.20.2.cpp.patch"],
5
5
  "v14.21.3": ["node.v14.21.3.cpp.patch"],
6
6
  "v12.22.11": ["node.v12.22.11.cpp.patch"],
7
7
  "v10.24.1": ["node.v10.24.1.cpp.patch"],