Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

workerd

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

workerd - npm Package Compare versions

Comparing version 0.20230419.0 to 0.20230511.1

56

install.js

@@ -63,20 +63,40 @@ var __create = Object.create;

command.push("--version");
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 ${"2023-04-19"}`) {
let stdout;
try {
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: [
/* stdin */
"pipe",
/* stdout */
"pipe",
/* stderr */
"inherit"
]
}).toString().trim();
} catch (e) {
let msg = `[workerd] Failed to validate workerd binary
Local development will not work. This usually means you're on an unsupported
operating system, or missing some shared libraries.`;
if (process.platform === "linux") {
msg += " On Debian-based systems,\nmake sure you've installed the `libc++1` package.";
}
console.error(msg);
return;
}
if (stdout !== `workerd ${"2023-05-11"}`) {
throw new Error(
`Expected ${JSON.stringify(
"2023-04-19"
"2023-05-11"
)} but got ${JSON.stringify(stdout)}`

@@ -137,3 +157,3 @@ );

import_child_process.default.execSync(
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.20230419.0"}`,
`npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.20230511.1"}`,
{ cwd: installDir, stdio: "pipe", env }

@@ -185,3 +205,3 @@ );

const unscopedPkg = pkg.substring(pkg.indexOf("/") + 1);
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"0.20230419.0"}.tgz`;
const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"0.20230511.1"}.tgz`;
console.error(`[workerd] Trying to download ${JSON.stringify(url)}`);

@@ -188,0 +208,0 @@ try {

@@ -140,3 +140,3 @@ #!/usr/bin/env node

"workerd",
`pnpapi-${pkg.replace("/", "-")}-${"0.20230419.0"}-${import_path.default.basename(subpath)}`
`pnpapi-${pkg.replace("/", "-")}-${"0.20230511.1"}-${import_path.default.basename(subpath)}`
);

@@ -156,4 +156,4 @@ if (!import_fs.default.existsSync(binTargetPath)) {

var node_path_default = binPath;
var compatibilityDate = "2023-04-19";
var version = "0.20230419.0";
var compatibilityDate = "2023-05-11";
var version = "0.20230511.1";
// Annotate the CommonJS export names for ESM import in node:

@@ -160,0 +160,0 @@ 0 && (module.exports = {

{
"name": "workerd",
"version": "0.20230419.0",
"version": "0.20230511.1",
"description": "👷 workerd, Cloudflare's JavaScript/Wasm Runtime",

@@ -17,9 +17,9 @@ "repository": "https://github.com/cloudflare/workerd",

"optionalDependencies": {
"@cloudflare/workerd-darwin-arm64": "0.20230419.0",
"@cloudflare/workerd-darwin-64": "0.20230419.0",
"@cloudflare/workerd-linux-arm64": "0.20230419.0",
"@cloudflare/workerd-linux-64": "0.20230419.0",
"@cloudflare/workerd-windows-64": "0.20230419.0"
"@cloudflare/workerd-darwin-arm64": "0.20230511.1",
"@cloudflare/workerd-darwin-64": "0.20230511.1",
"@cloudflare/workerd-linux-arm64": "0.20230511.1",
"@cloudflare/workerd-linux-64": "0.20230511.1",
"@cloudflare/workerd-windows-64": "0.20230511.1"
},
"license": "Apache-2.0"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc