Comparing version 1.20221111.5 to 1.20230115.0
@@ -16,2 +16,6 @@ var __create = Object.create; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -59,8 +63,19 @@ mod | ||
const stdout = import_child_process.default.execFileSync(command.shift(), command, { | ||
// Without this, this install script strangely crashes with the error | ||
// "EACCES: permission denied, write" but only on Ubuntu Linux when node is | ||
// installed from the Snap Store. This is not a problem when you download | ||
// the official version of node. The problem appears to be that stderr | ||
// (i.e. file descriptor 2) isn't writable? | ||
// | ||
// More info: | ||
// - https://snapcraft.io/ (what the Snap Store is) | ||
// - https://nodejs.org/dist/ (download the official version of node) | ||
// - https://github.com/evanw/esbuild/issues/1711#issuecomment-1027554035 | ||
// | ||
stdio: "pipe" | ||
}).toString().trim(); | ||
if (stdout !== `workerd ${"2022-11-11"}`) { | ||
if (stdout !== `workerd ${"2023-01-15"}`) { | ||
throw new Error( | ||
`Expected ${JSON.stringify( | ||
"2022-11-11" | ||
"2023-01-15" | ||
)} but got ${JSON.stringify(stdout)}` | ||
@@ -121,3 +136,3 @@ ); | ||
import_child_process.default.execSync( | ||
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"1.20221111.5"}`, | ||
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"1.20230115.0"}`, | ||
{ cwd: installDir, stdio: "pipe", env } | ||
@@ -168,3 +183,3 @@ ); | ||
async function downloadDirectlyFromNPM(pkg, subpath, binPath) { | ||
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"1.20221111.5"}.tgz`; | ||
const url = `https://registry.npmjs.org/${pkg}/-/${pkg}-${"1.20230115.0"}.tgz`; | ||
console.error(`[workerd] Trying to download ${JSON.stringify(url)}`); | ||
@@ -171,0 +186,0 @@ try { |
@@ -21,2 +21,6 @@ #!/usr/bin/env node | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -136,3 +140,3 @@ mod | ||
"workerd", | ||
`pnpapi-${pkg}-${"1.20221111.5"}-${import_path.default.basename(subpath)}` | ||
`pnpapi-${pkg}-${"1.20230115.0"}-${import_path.default.basename(subpath)}` | ||
); | ||
@@ -152,4 +156,4 @@ if (!import_fs.default.existsSync(binTargetPath)) { | ||
var node_path_default = binPath; | ||
var compatibilityDate = "2022-11-11"; | ||
var version = "1.20221111.5"; | ||
var compatibilityDate = "2023-01-15"; | ||
var version = "1.20230115.0"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -156,0 +160,0 @@ 0 && (module.exports = { |
{ | ||
"name": "workerd", | ||
"version": "1.20221111.5", | ||
"version": "1.20230115.0", | ||
"description": "👷 workerd, Cloudflare's JavaScript/Wasm Runtime", | ||
@@ -17,8 +17,8 @@ "repository": "https://github.com/cloudflare/workerd", | ||
"optionalDependencies": { | ||
"@cloudflare/workerd-darwin-arm64": "1.20221111.5", | ||
"@cloudflare/workerd-darwin-64": "1.20221111.5", | ||
"@cloudflare/workerd-linux-arm64": "1.20221111.5", | ||
"@cloudflare/workerd-linux-64": "1.20221111.5" | ||
"@cloudflare/workerd-darwin-arm64": "1.20230115.0", | ||
"@cloudflare/workerd-darwin-64": "1.20230115.0", | ||
"@cloudflare/workerd-linux-arm64": "1.20230115.0", | ||
"@cloudflare/workerd-linux-64": "1.20230115.0" | ||
}, | ||
"license": "Apache-2.0" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21126
383