bun 1.2.13 → 1.2.14-canary.20250522.1

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/install.js +21 -21
  2. package/package.json +12 -12
package/install.js CHANGED
@@ -41,6 +41,9 @@ var __async = (__this, __arguments, generator) => new Promise((resolve, reject)
41
41
  step((generator = generator.apply(__this, __arguments)).next());
42
42
  });
43
43
 
44
+ // src/npm/install.ts
45
+ var import_zlib = require("zlib");
46
+
44
47
  // src/console.ts
45
48
  var isAction = !!process.env.GITHUB_ACTION, isDebug = process.env.DEBUG === "1" || process.env.LOG_LEVEL === "debug" || process.env.RUNNER_DEBUG === "1";
46
49
  function debug(...message) {
@@ -128,24 +131,8 @@ function isRedirect(status) {
128
131
  }
129
132
  __name(isRedirect, "isRedirect");
130
133
 
131
- // src/spawn.ts
132
- var import_child_process = __toESM(require("child_process"));
133
- function spawn(cmd, args, options = {}) {
134
- debug("spawn", [cmd, ...args].join(" "));
135
- let { status, stdout, stderr } = import_child_process.default.spawnSync(cmd, args, __spreadValues({
136
- stdio: "pipe",
137
- encoding: "utf-8"
138
- }, options));
139
- return {
140
- exitCode: status != null ? status : 1,
141
- stdout,
142
- stderr
143
- };
144
- }
145
- __name(spawn, "spawn");
146
-
147
134
  // src/fs.ts
148
- var import_path = __toESM(require("path")), import_fs = __toESM(require("fs")), import_os = __toESM(require("os"));
135
+ var import_fs = __toESM(require("fs")), import_os = __toESM(require("os")), import_path = __toESM(require("path"));
149
136
  function join(...paths) {
150
137
  return import_path.default.join(...paths.flat(2));
151
138
  }
@@ -237,8 +224,21 @@ function exists(path2) {
237
224
  }
238
225
  __name(exists, "exists");
239
226
 
240
- // src/npm/install.ts
241
- var import_zlib = require("zlib");
227
+ // src/spawn.ts
228
+ var import_child_process = __toESM(require("child_process"));
229
+ function spawn(cmd, args, options = {}) {
230
+ debug("spawn", [cmd, ...args].join(" "));
231
+ let { status, stdout, stderr } = import_child_process.default.spawnSync(cmd, args, __spreadValues({
232
+ stdio: "pipe",
233
+ encoding: "utf-8"
234
+ }, options));
235
+ return {
236
+ exitCode: status != null ? status : 1,
237
+ stdout,
238
+ stderr
239
+ };
240
+ }
241
+ __name(spawn, "spawn");
242
242
 
243
243
  // src/platform.ts
244
244
  var os2 = process.platform, arch = os2 === "darwin" && process.arch === "x64" && isRosetta2() ? "arm64" : process.arch, avx2 = arch === "x64" && (os2 === "linux" && isLinuxAVX2() || os2 === "darwin" && isDarwinAVX2() || os2 === "win32" && isWindowsAVX2()), abi = os2 === "linux" && isLinuxMusl() ? "musl" : void 0, platforms = [
@@ -418,7 +418,7 @@ function installBun(platform, dst) {
418
418
  write(join(cwd, "package.json"), "{}");
419
419
  let { exitCode } = spawn(
420
420
  "npm",
421
- ["install", "--loglevel=error", "--prefer-offline", "--no-audit", "--progress=false", `${module2}@1.2.13`],
421
+ ["install", "--loglevel=error", "--prefer-offline", "--no-audit", "--progress=false", `${module2}@1.2.14-canary.20250522.1+3e97c1c`],
422
422
  {
423
423
  cwd,
424
424
  stdio: "pipe",
@@ -439,7 +439,7 @@ function installBun(platform, dst) {
439
439
  __name(installBun, "installBun");
440
440
  function downloadBun(platform, dst) {
441
441
  return __async(this, null, function* () {
442
- let tgz = yield (yield fetch(`https://registry.npmjs.org/@oven/${platform.bin}/-/${platform.bin}-1.2.13.tgz`)).arrayBuffer(), buffer;
442
+ let tgz = yield (yield fetch(`https://registry.npmjs.org/@oven/${platform.bin}/-/${platform.bin}-1.2.14-canary.20250522.1+3e97c1c.tgz`)).arrayBuffer(), buffer;
443
443
  try {
444
444
  buffer = (0, import_zlib.unzipSync)(tgz);
445
445
  } catch (cause) {
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "bun",
3
3
  "description": "Bun is a fast all-in-one JavaScript runtime.",
4
- "version": "1.2.13",
4
+ "version": "1.2.14-canary.20250522.1+3e97c1c",
5
5
  "scripts": {
6
6
  "postinstall": "node install.js"
7
7
  },
8
8
  "optionalDependencies": {
9
- "@oven/bun-darwin-aarch64": "1.2.13",
10
- "@oven/bun-darwin-x64": "1.2.13",
11
- "@oven/bun-darwin-x64-baseline": "1.2.13",
12
- "@oven/bun-linux-aarch64": "1.2.13",
13
- "@oven/bun-linux-x64": "1.2.13",
14
- "@oven/bun-linux-x64-baseline": "1.2.13",
15
- "@oven/bun-linux-aarch64-musl": "1.2.13",
16
- "@oven/bun-linux-x64-musl": "1.2.13",
17
- "@oven/bun-linux-x64-musl-baseline": "1.2.13",
18
- "@oven/bun-windows-x64": "1.2.13",
19
- "@oven/bun-windows-x64-baseline": "1.2.13"
9
+ "@oven/bun-darwin-aarch64": "1.2.14-canary.20250522.1+3e97c1c",
10
+ "@oven/bun-darwin-x64": "1.2.14-canary.20250522.1+3e97c1c",
11
+ "@oven/bun-darwin-x64-baseline": "1.2.14-canary.20250522.1+3e97c1c",
12
+ "@oven/bun-linux-aarch64": "1.2.14-canary.20250522.1+3e97c1c",
13
+ "@oven/bun-linux-x64": "1.2.14-canary.20250522.1+3e97c1c",
14
+ "@oven/bun-linux-x64-baseline": "1.2.14-canary.20250522.1+3e97c1c",
15
+ "@oven/bun-linux-aarch64-musl": "1.2.14-canary.20250522.1+3e97c1c",
16
+ "@oven/bun-linux-x64-musl": "1.2.14-canary.20250522.1+3e97c1c",
17
+ "@oven/bun-linux-x64-musl-baseline": "1.2.14-canary.20250522.1+3e97c1c",
18
+ "@oven/bun-windows-x64": "1.2.14-canary.20250522.1+3e97c1c",
19
+ "@oven/bun-windows-x64-baseline": "1.2.14-canary.20250522.1+3e97c1c"
20
20
  },
21
21
  "bin": {
22
22
  "bun": "bin/bun.exe",