Comparing version 1.20230321.0 to 1.20230404.0
@@ -32,4 +32,5 @@ var __create = Object.create; | ||
"linux x64 LE": "@cloudflare/workerd-linux-64", | ||
"win32 x64 LE": "@cloudflare/workerd-linux-64" | ||
"win32 x64 LE": "@cloudflare/workerd-windows-64" | ||
}; | ||
var maybeExeExtension = process.platform === "win32" ? ".exe" : ""; | ||
function pkgAndSubpathForCurrentPlatform() { | ||
@@ -41,3 +42,3 @@ let pkg; | ||
pkg = knownPackages[platformKey]; | ||
subpath = "bin/workerd"; | ||
subpath = `bin/workerd${maybeExeExtension}`; | ||
} else { | ||
@@ -50,3 +51,3 @@ throw new Error(`Unsupported platform: ${platformKey}`); | ||
const libDir = import_path.default.dirname(require.resolve("workerd")); | ||
return import_path.default.join(libDir, `downloaded-${pkg.replace("/", "-")}-${import_path.default.basename(subpath)}`); | ||
return import_path.default.join(libDir, `downloaded-${pkg.replace("/", "-")}-${import_path.default.basename(subpath)}${maybeExeExtension}`); | ||
} | ||
@@ -56,2 +57,3 @@ | ||
var import_fs = __toESM(require("fs")); | ||
var import_os2 = __toESM(require("os")); | ||
var import_path2 = __toESM(require("path")); | ||
@@ -79,6 +81,6 @@ var import_zlib = __toESM(require("zlib")); | ||
}).toString().trim(); | ||
if (stdout !== `workerd ${"2023-03-21"}`) { | ||
if (stdout !== `workerd ${"2023-04-04"}`) { | ||
throw new Error( | ||
`Expected ${JSON.stringify( | ||
"2023-03-21" | ||
"2023-04-04" | ||
)} but got ${JSON.stringify(stdout)}` | ||
@@ -139,3 +141,3 @@ ); | ||
import_child_process.default.execSync( | ||
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"1.20230321.0"}`, | ||
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"1.20230404.0"}`, | ||
{ cwd: installDir, stdio: "pipe", env } | ||
@@ -174,3 +176,3 @@ ); | ||
function maybeOptimizePackage(binPath) { | ||
if (!isYarn()) { | ||
if (import_os2.default.platform() !== "win32" && !isYarn()) { | ||
const tempPath = import_path2.default.join(__dirname, "bin-workerd"); | ||
@@ -188,3 +190,3 @@ try { | ||
const unscopedPkg = pkg.substring(pkg.indexOf("/") + 1); | ||
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"1.20230321.0"}.tgz`; | ||
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"1.20230404.0"}.tgz`; | ||
console.error(`[workerd] Trying to download ${JSON.stringify(url)}`); | ||
@@ -235,9 +237,7 @@ try { | ||
checkAndPreparePackage().then(() => { | ||
if (process.platform !== "win32") { | ||
if (isToPathJS) { | ||
validateBinaryVersion(process.execPath, toPath); | ||
} else { | ||
validateBinaryVersion(toPath); | ||
} | ||
if (isToPathJS) { | ||
validateBinaryVersion(process.execPath, toPath); | ||
} else { | ||
validateBinaryVersion(toPath); | ||
} | ||
}); |
@@ -48,4 +48,5 @@ #!/usr/bin/env node | ||
"linux x64 LE": "@cloudflare/workerd-linux-64", | ||
"win32 x64 LE": "@cloudflare/workerd-linux-64" | ||
"win32 x64 LE": "@cloudflare/workerd-windows-64" | ||
}; | ||
var maybeExeExtension = process.platform === "win32" ? ".exe" : ""; | ||
function pkgAndSubpathForCurrentPlatform() { | ||
@@ -57,3 +58,3 @@ let pkg; | ||
pkg = knownPackages[platformKey]; | ||
subpath = "bin/workerd"; | ||
subpath = `bin/workerd${maybeExeExtension}`; | ||
} else { | ||
@@ -83,3 +84,3 @@ throw new Error(`Unsupported platform: ${platformKey}`); | ||
const libDir = import_path.default.dirname(require.resolve("workerd")); | ||
return import_path.default.join(libDir, `downloaded-${pkg.replace("/", "-")}-${import_path.default.basename(subpath)}`); | ||
return import_path.default.join(libDir, `downloaded-${pkg.replace("/", "-")}-${import_path.default.basename(subpath)}${maybeExeExtension}`); | ||
} | ||
@@ -142,3 +143,3 @@ function generateBinPath() { | ||
"workerd", | ||
`pnpapi-${pkg.replace("/", "-")}-${"1.20230321.0"}-${import_path.default.basename(subpath)}` | ||
`pnpapi-${pkg.replace("/", "-")}-${"1.20230404.0"}-${import_path.default.basename(subpath)}` | ||
); | ||
@@ -158,4 +159,4 @@ if (!import_fs.default.existsSync(binTargetPath)) { | ||
var node_path_default = binPath; | ||
var compatibilityDate = "2023-03-21"; | ||
var version = "1.20230321.0"; | ||
var compatibilityDate = "2023-04-04"; | ||
var version = "1.20230404.0"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -162,0 +163,0 @@ 0 && (module.exports = { |
{ | ||
"name": "workerd", | ||
"version": "1.20230321.0", | ||
"version": "1.20230404.0", | ||
"description": "👷 workerd, Cloudflare's JavaScript/Wasm Runtime", | ||
@@ -17,8 +17,9 @@ "repository": "https://github.com/cloudflare/workerd", | ||
"optionalDependencies": { | ||
"@cloudflare/workerd-darwin-arm64": "1.20230321.0", | ||
"@cloudflare/workerd-darwin-64": "1.20230321.0", | ||
"@cloudflare/workerd-linux-arm64": "1.20230321.0", | ||
"@cloudflare/workerd-linux-64": "1.20230321.0" | ||
"@cloudflare/workerd-darwin-arm64": "1.20230404.0", | ||
"@cloudflare/workerd-darwin-64": "1.20230404.0", | ||
"@cloudflare/workerd-linux-arm64": "1.20230404.0", | ||
"@cloudflare/workerd-linux-64": "1.20230404.0", | ||
"@cloudflare/workerd-windows-64": "1.20230404.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
21700
385
5