workerd 1.20221111.0 → 1.20221111.2
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/install.js +2 -3
- package/lib/main.js +2 -2
- package/package.json +8 -6
package/install.js
CHANGED
|
@@ -49,7 +49,6 @@ var import_path2 = __toESM(require("path"));
|
|
|
49
49
|
var import_zlib = __toESM(require("zlib"));
|
|
50
50
|
var import_https = __toESM(require("https"));
|
|
51
51
|
var import_child_process = __toESM(require("child_process"));
|
|
52
|
-
var WORKERD_VERSION2 = `1.${"2022-11-11".split("-").join("")}.0`;
|
|
53
52
|
var toPath = import_path2.default.join(__dirname, "bin", "workerd");
|
|
54
53
|
var isToPathJS = true;
|
|
55
54
|
function validateBinaryVersion(...command) {
|
|
@@ -116,7 +115,7 @@ function installUsingNPM(pkg, subpath, binPath) {
|
|
|
116
115
|
try {
|
|
117
116
|
import_fs.default.writeFileSync(import_path2.default.join(installDir, "package.json"), "{}");
|
|
118
117
|
import_child_process.default.execSync(
|
|
119
|
-
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${
|
|
118
|
+
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${WORKERD_VERSION}`,
|
|
120
119
|
{ cwd: installDir, stdio: "pipe", env }
|
|
121
120
|
);
|
|
122
121
|
const installedBinPath = import_path2.default.join(
|
|
@@ -162,7 +161,7 @@ function maybeOptimizePackage(binPath) {
|
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
163
|
async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
|
|
165
|
-
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${
|
|
164
|
+
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${WORKERD_VERSION}.tgz`;
|
|
166
165
|
console.error(`[workerd] Trying to download ${JSON.stringify(url)}`);
|
|
167
166
|
try {
|
|
168
167
|
import_fs.default.writeFileSync(
|
package/lib/main.js
CHANGED
|
@@ -131,7 +131,7 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
131
131
|
"node_modules",
|
|
132
132
|
".cache",
|
|
133
133
|
"workerd",
|
|
134
|
-
`pnpapi-${pkg}-${"1.20221111.
|
|
134
|
+
`pnpapi-${pkg}-${"1.20221111.2"}-${import_path.default.basename(subpath)}`
|
|
135
135
|
);
|
|
136
136
|
if (!import_fs.default.existsSync(binTargetPath)) {
|
|
137
137
|
import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
|
|
@@ -147,7 +147,7 @@ by workerd to install the correct binary executable for your current platform.`)
|
|
|
147
147
|
var { binPath } = generateBinPath();
|
|
148
148
|
var node_path_default = binPath;
|
|
149
149
|
var compatibilityDate = "2022-11-11";
|
|
150
|
-
var version = "1.20221111.
|
|
150
|
+
var version = "1.20221111.2";
|
|
151
151
|
// Annotate the CommonJS export names for ESM import in node:
|
|
152
152
|
0 && (module.exports = {
|
|
153
153
|
compatibilityDate,
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workerd",
|
|
3
|
-
"version": "1.20221111.
|
|
3
|
+
"version": "1.20221111.2",
|
|
4
4
|
"description": "👷 workerd, Cloudflare's JavaScript/Wasm Runtime",
|
|
5
5
|
"repository": "https://github.com/cloudflare/workerd",
|
|
6
|
-
"scripts": {
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node install.js"
|
|
8
|
+
},
|
|
7
9
|
"main": "lib/main.js",
|
|
8
10
|
"engines": {
|
|
9
11
|
"node": ">=16"
|
|
@@ -12,10 +14,10 @@
|
|
|
12
14
|
"workerd": "bin/workerd"
|
|
13
15
|
},
|
|
14
16
|
"optionalDependencies": {
|
|
15
|
-
"@cloudflare/workerd-darwin-arm64": "1.20221111.
|
|
16
|
-
"@cloudflare/workerd-darwin-64": "1.20221111.
|
|
17
|
-
"@cloudflare/workerd-linux-arm64": "1.20221111.
|
|
18
|
-
"@cloudflare/workerd-linux-64": "1.20221111.
|
|
17
|
+
"@cloudflare/workerd-darwin-arm64": "1.20221111.2",
|
|
18
|
+
"@cloudflare/workerd-darwin-64": "1.20221111.2",
|
|
19
|
+
"@cloudflare/workerd-linux-arm64": "1.20221111.2",
|
|
20
|
+
"@cloudflare/workerd-linux-64": "1.20221111.2"
|
|
19
21
|
},
|
|
20
22
|
"license": "Apache-2.0"
|
|
21
23
|
}
|