@hot-updater/cloudflare 0.6.3 → 0.6.4

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.
@@ -7315,6 +7315,7 @@ var {
7315
7315
  // src/utils/createWrangler.ts
7316
7316
  var createWrangler = ({
7317
7317
  stdio,
7318
+ accountId,
7318
7319
  cloudflareApiToken,
7319
7320
  cwd
7320
7321
  }) => {
@@ -7323,6 +7324,7 @@ var createWrangler = ({
7323
7324
  extendsEnv: true,
7324
7325
  cwd,
7325
7326
  env: {
7327
+ CLOUDFLARE_ACCOUNT_ID: accountId,
7326
7328
  CLOUDFLARE_API_TOKEN: cloudflareApiToken
7327
7329
  }
7328
7330
  });
package/dist/index.cjs CHANGED
@@ -7757,6 +7757,7 @@ var {
7757
7757
  // src/utils/createWrangler.ts
7758
7758
  var createWrangler = ({
7759
7759
  stdio,
7760
+ accountId,
7760
7761
  cloudflareApiToken,
7761
7762
  cwd
7762
7763
  }) => {
@@ -7765,6 +7766,7 @@ var createWrangler = ({
7765
7766
  extendsEnv: true,
7766
7767
  cwd,
7767
7768
  env: {
7769
+ CLOUDFLARE_ACCOUNT_ID: accountId,
7768
7770
  CLOUDFLARE_API_TOKEN: cloudflareApiToken
7769
7771
  }
7770
7772
  });
@@ -7880,6 +7882,7 @@ var r2Storage = (config, hooks) => (_) => {
7880
7882
  apiToken: cloudflareApiToken
7881
7883
  });
7882
7884
  const wrangler = createWrangler({
7885
+ accountId,
7883
7886
  cloudflareApiToken,
7884
7887
  cwd: process.cwd()
7885
7888
  });
@@ -7910,7 +7913,7 @@ var r2Storage = (config, hooks) => (_) => {
7910
7913
  );
7911
7914
  } catch (error) {
7912
7915
  if (error instanceof ExecaError) {
7913
- throw new Error(error.stderr);
7916
+ throw new Error(error.stderr || error.stdout);
7914
7917
  }
7915
7918
  throw error;
7916
7919
  }
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  __require,
6
6
  __toESM,
7
7
  createWrangler
8
- } from "./chunk-6TTCZ657.js";
8
+ } from "./chunk-5WASCEUU.js";
9
9
 
10
10
  // ../../node_modules/.pnpm/pg-minify@1.6.5/node_modules/pg-minify/lib/utils.js
11
11
  var require_utils = __commonJS({
@@ -560,6 +560,7 @@ var r2Storage = (config, hooks) => (_) => {
560
560
  apiToken: cloudflareApiToken
561
561
  });
562
562
  const wrangler = createWrangler({
563
+ accountId,
563
564
  cloudflareApiToken,
564
565
  cwd: process.cwd()
565
566
  });
@@ -590,7 +591,7 @@ var r2Storage = (config, hooks) => (_) => {
590
591
  );
591
592
  } catch (error) {
592
593
  if (error instanceof ExecaError) {
593
- throw new Error(error.stderr);
594
+ throw new Error(error.stderr || error.stdout);
594
595
  }
595
596
  throw error;
596
597
  }
@@ -11594,6 +11594,7 @@ var {
11594
11594
  // src/utils/createWrangler.ts
11595
11595
  var createWrangler = ({
11596
11596
  stdio,
11597
+ accountId,
11597
11598
  cloudflareApiToken,
11598
11599
  cwd
11599
11600
  }) => {
@@ -11602,6 +11603,7 @@ var createWrangler = ({
11602
11603
  extendsEnv: true,
11603
11604
  cwd,
11604
11605
  env: {
11606
+ CLOUDFLARE_ACCOUNT_ID: accountId,
11605
11607
  CLOUDFLARE_API_TOKEN: cloudflareApiToken
11606
11608
  }
11607
11609
  });
@@ -8,8 +8,9 @@ declare const getWranglerLoginAuthToken: () => {
8
8
  scopes: string[];
9
9
  } | null;
10
10
 
11
- declare const createWrangler: ({ stdio, cloudflareApiToken, cwd, }: {
11
+ declare const createWrangler: ({ stdio, accountId, cloudflareApiToken, cwd, }: {
12
12
  stdio?: "inherit" | "pipe" | "ignore" | "overlapped";
13
+ accountId: string;
13
14
  cloudflareApiToken: string;
14
15
  cwd: string;
15
16
  }) => (...command: string[]) => execa.ResultPromise<{
@@ -17,6 +18,7 @@ declare const createWrangler: ({ stdio, cloudflareApiToken, cwd, }: {
17
18
  extendsEnv: boolean;
18
19
  cwd: string;
19
20
  env: {
21
+ CLOUDFLARE_ACCOUNT_ID: string;
20
22
  CLOUDFLARE_API_TOKEN: string;
21
23
  };
22
24
  }>;
@@ -8,8 +8,9 @@ declare const getWranglerLoginAuthToken: () => {
8
8
  scopes: string[];
9
9
  } | null;
10
10
 
11
- declare const createWrangler: ({ stdio, cloudflareApiToken, cwd, }: {
11
+ declare const createWrangler: ({ stdio, accountId, cloudflareApiToken, cwd, }: {
12
12
  stdio?: "inherit" | "pipe" | "ignore" | "overlapped";
13
+ accountId: string;
13
14
  cloudflareApiToken: string;
14
15
  cwd: string;
15
16
  }) => (...command: string[]) => execa.ResultPromise<{
@@ -17,6 +18,7 @@ declare const createWrangler: ({ stdio, cloudflareApiToken, cwd, }: {
17
18
  extendsEnv: boolean;
18
19
  cwd: string;
19
20
  env: {
21
+ CLOUDFLARE_ACCOUNT_ID: string;
20
22
  CLOUDFLARE_API_TOKEN: string;
21
23
  };
22
24
  }>;
@@ -6,7 +6,7 @@ import {
6
6
  __require,
7
7
  __toESM,
8
8
  createWrangler
9
- } from "../chunk-6TTCZ657.js";
9
+ } from "../chunk-5WASCEUU.js";
10
10
 
11
11
  // ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/parser.js
12
12
  var require_parser = __commonJS({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/cloudflare",
3
3
  "type": "module",
4
- "version": "0.6.3",
4
+ "version": "0.6.4",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -39,9 +39,9 @@
39
39
  "package.json"
40
40
  ],
41
41
  "dependencies": {
42
- "@hot-updater/core": "0.6.3",
43
- "@hot-updater/js": "0.6.3",
44
- "@hot-updater/plugin-core": "0.6.3",
42
+ "@hot-updater/core": "0.6.4",
43
+ "@hot-updater/js": "0.6.4",
44
+ "@hot-updater/plugin-core": "0.6.4",
45
45
  "cloudflare": "^4.0.0"
46
46
  },
47
47
  "devDependencies": {
@@ -1 +1 @@
1
- This folder contains the built output assets for the worker "hot-updater" generated at 2025-02-04T05:31:11.284Z.
1
+ This folder contains the built output assets for the worker "hot-updater" generated at 2025-02-04T14:48:12.461Z.