workerd 0.20230228.0 → 0.20230228.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/bin/workerd CHANGED
@@ -64,7 +64,7 @@ function pkgForSomeOtherPlatform() {
64
64
  }
65
65
  function downloadedBinPath(pkg, subpath) {
66
66
  const libDir = import_path.default.dirname(require.resolve("workerd"));
67
- return import_path.default.join(libDir, `downloaded-${pkg}-${import_path.default.basename(subpath)}`);
67
+ return import_path.default.join(libDir, `downloaded-${pkg.replace("/", "-")}-${import_path.default.basename(subpath)}`);
68
68
  }
69
69
  function generateBinPath() {
70
70
  const { pkg, subpath } = pkgAndSubpathForCurrentPlatform();
@@ -122,7 +122,7 @@ by workerd to install the correct binary executable for your current platform.`)
122
122
  "node_modules",
123
123
  ".cache",
124
124
  "workerd",
125
- `pnpapi-${pkg}-${WORKERD_VERSION}-${import_path.default.basename(subpath)}`
125
+ `pnpapi-${pkg.replace("/", "-")}-${"0.20230228.2"}-${import_path.default.basename(subpath)}`
126
126
  );
127
127
  if (!import_fs.default.existsSync(binTargetPath)) {
128
128
  import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
package/install.js CHANGED
@@ -45,7 +45,7 @@ function pkgAndSubpathForCurrentPlatform() {
45
45
  }
46
46
  function downloadedBinPath(pkg, subpath) {
47
47
  const libDir = import_path.default.dirname(require.resolve("workerd"));
48
- return import_path.default.join(libDir, `downloaded-${pkg}-${import_path.default.basename(subpath)}`);
48
+ return import_path.default.join(libDir, `downloaded-${pkg.replace("/", "-")}-${import_path.default.basename(subpath)}`);
49
49
  }
50
50
 
51
51
  // npm/lib/node-install.ts
@@ -131,7 +131,7 @@ function installUsingNPM(pkg, subpath, binPath) {
131
131
  try {
132
132
  import_fs.default.writeFileSync(import_path2.default.join(installDir, "package.json"), "{}");
133
133
  import_child_process.default.execSync(
134
- `npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.20230228.0"}`,
134
+ `npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${"0.20230228.2"}`,
135
135
  { cwd: installDir, stdio: "pipe", env }
136
136
  );
137
137
  const installedBinPath = import_path2.default.join(
@@ -178,7 +178,7 @@ function maybeOptimizePackage(binPath) {
178
178
  }
179
179
  async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
180
180
  const unscopedPkg = pkg.substring(pkg.indexOf("/") + 1);
181
- const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"0.20230228.0"}.tgz`;
181
+ const url = `https://registry.npmjs.org/${pkg}/-/${unscopedPkg}-${"0.20230228.2"}.tgz`;
182
182
  console.error(`[workerd] Trying to download ${JSON.stringify(url)}`);
183
183
  try {
184
184
  import_fs.default.writeFileSync(
package/lib/main.js CHANGED
@@ -78,7 +78,7 @@ function pkgForSomeOtherPlatform() {
78
78
  }
79
79
  function downloadedBinPath(pkg, subpath) {
80
80
  const libDir = import_path.default.dirname(require.resolve("workerd"));
81
- return import_path.default.join(libDir, `downloaded-${pkg}-${import_path.default.basename(subpath)}`);
81
+ return import_path.default.join(libDir, `downloaded-${pkg.replace("/", "-")}-${import_path.default.basename(subpath)}`);
82
82
  }
83
83
  function generateBinPath() {
84
84
  const { pkg, subpath } = pkgAndSubpathForCurrentPlatform();
@@ -136,7 +136,7 @@ by workerd to install the correct binary executable for your current platform.`)
136
136
  "node_modules",
137
137
  ".cache",
138
138
  "workerd",
139
- `pnpapi-${pkg}-${"0.20230228.0"}-${import_path.default.basename(subpath)}`
139
+ `pnpapi-${pkg.replace("/", "-")}-${"0.20230228.2"}-${import_path.default.basename(subpath)}`
140
140
  );
141
141
  if (!import_fs.default.existsSync(binTargetPath)) {
142
142
  import_fs.default.mkdirSync(import_path.default.dirname(binTargetPath), { recursive: true });
@@ -152,7 +152,7 @@ by workerd to install the correct binary executable for your current platform.`)
152
152
  var { binPath } = generateBinPath();
153
153
  var node_path_default = binPath;
154
154
  var compatibilityDate = "2023-02-28";
155
- var version = "0.20230228.0";
155
+ var version = "0.20230228.2";
156
156
  // Annotate the CommonJS export names for ESM import in node:
157
157
  0 && (module.exports = {
158
158
  compatibilityDate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "workerd",
3
- "version": "0.20230228.0",
3
+ "version": "0.20230228.2",
4
4
  "description": "👷 workerd, Cloudflare's JavaScript/Wasm Runtime",
5
5
  "repository": "https://github.com/cloudflare/workerd",
6
6
  "scripts": {
@@ -14,10 +14,10 @@
14
14
  "workerd": "bin/workerd"
15
15
  },
16
16
  "optionalDependencies": {
17
- "@cloudflare/workerd-darwin-arm64": "0.20230228.0",
18
- "@cloudflare/workerd-darwin-64": "0.20230228.0",
19
- "@cloudflare/workerd-linux-arm64": "0.20230228.0",
20
- "@cloudflare/workerd-linux-64": "0.20230228.0"
17
+ "@cloudflare/workerd-darwin-arm64": "0.20230228.2",
18
+ "@cloudflare/workerd-darwin-64": "0.20230228.2",
19
+ "@cloudflare/workerd-linux-arm64": "0.20230228.2",
20
+ "@cloudflare/workerd-linux-64": "0.20230228.2"
21
21
  },
22
22
  "license": "Apache-2.0"
23
23
  }