warpo 2.2.2 → 2.2.3

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.
Files changed (2) hide show
  1. package/dist/lib.js +2 -1
  2. package/package.json +1 -1
package/dist/lib.js CHANGED
@@ -6,8 +6,9 @@ const dirname = import.meta.dirname;
6
6
  function download_url(version) {
7
7
  const arch = os.arch();
8
8
  const platform = os.platform();
9
+ const base_url = process.env["WARPO_DOWNLOAD_BASE_URL"] ?? `https://github.com/wasm-ecosystem/warpo/releases/download`;
9
10
  if ((platform === "linux" && arch === "x64") || (platform === "darwin" && arch === "arm64")) {
10
- return `https://github.com/wasm-ecosystem/warpo/releases/download/${version}/warpo-${version}-${platform}-${arch}.tar.gz`;
11
+ return `${base_url}/${version}/warpo-${version}-${platform}-${arch}.tar.gz`;
11
12
  }
12
13
  console.log(`there is no precompiled binary for ${version} + ${platform} + ${arch}, please compile from source.`);
13
14
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warpo",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "next generation AssemblyScript compiler with optimizations",
5
5
  "type": "module",
6
6
  "bin": {