@hot-updater/supabase 0.33.0 → 0.33.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.
@@ -47,15 +47,58 @@ let node_stream_promises = require("node:stream/promises");
47
47
  let node_stream = require("node:stream");
48
48
  let node_buffer = require("node:buffer");
49
49
  let _supabase_supabase_js = require("@supabase/supabase-js");
50
- //#region ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/error/AbortError.mjs
51
- var AbortError = class extends Error {
50
+ //#region ../../node_modules/.pnpm/es-toolkit@1.47.0/node_modules/es-toolkit/dist/_internal/globalThis.mjs
51
+ const globalThis_ = typeof globalThis === "object" && globalThis || typeof window === "object" && window || typeof self === "object" && self || typeof global === "object" && global || (function() {
52
+ return this;
53
+ })() || Function("return this")();
54
+ //#endregion
55
+ //#region ../../node_modules/.pnpm/es-toolkit@1.47.0/node_modules/es-toolkit/dist/_internal/DOMException.mjs
56
+ const DOMException$1 = typeof globalThis_.DOMException !== "undefined" ? globalThis_.DOMException : Error;
57
+ //#endregion
58
+ //#region ../../node_modules/.pnpm/es-toolkit@1.47.0/node_modules/es-toolkit/dist/error/AbortError.mjs
59
+ /**
60
+ * An error class representing an aborted operation.
61
+ * @augments DOMException
62
+ */
63
+ var AbortError = class extends DOMException$1 {
52
64
  constructor(message = "The operation was aborted") {
53
65
  super(message);
54
- this.name = "AbortError";
55
66
  }
56
67
  };
57
68
  //#endregion
58
- //#region ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/promise/delay.mjs
69
+ //#region ../../node_modules/.pnpm/es-toolkit@1.47.0/node_modules/es-toolkit/dist/promise/delay.mjs
70
+ /**
71
+ * Delays the execution of code for a specified number of milliseconds.
72
+ *
73
+ * This function returns a Promise that resolves after the specified delay, allowing you to use it
74
+ * with async/await to pause execution.
75
+ *
76
+ * @param {number} ms - The number of milliseconds to delay.
77
+ * @param {DelayOptions} options - The options object.
78
+ * @param {AbortSignal} options.signal - An optional AbortSignal to cancel the delay.
79
+ * @returns {Promise<void>} A Promise that resolves after the specified delay.
80
+ *
81
+ * @example
82
+ * async function foo() {
83
+ * console.log('Start');
84
+ * await delay(1000); // Delays execution for 1 second
85
+ * console.log('End');
86
+ * }
87
+ *
88
+ * foo();
89
+ *
90
+ * // With AbortSignal
91
+ * const controller = new AbortController();
92
+ * const { signal } = controller;
93
+ *
94
+ * setTimeout(() => controller.abort(), 50); // Will cancel the delay after 50ms
95
+ * try {
96
+ * await delay(100, { signal });
97
+ * } catch (error) {
98
+ * console.error(error); // Will log 'AbortError'
99
+ * }
100
+ * }
101
+ */
59
102
  function delay(ms, { signal } = {}) {
60
103
  return new Promise((resolve, reject) => {
61
104
  const abortError = () => {
@@ -647,7 +690,7 @@ const fallbackSymbols = {
647
690
  const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
648
691
  Object.entries(specialMainSymbols);
649
692
  //#endregion
650
- //#region ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
693
+ //#region ../../node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
651
694
  const hasColors = node_tty.default?.WriteStream?.prototype?.hasColors?.() ?? false;
652
695
  const format = (open, close) => {
653
696
  if (!hasColors) return (input) => input;
@@ -659,8 +702,9 @@ const format = (open, close) => {
659
702
  if (index === -1) return openCode + string + closeCode;
660
703
  let result = openCode;
661
704
  let lastIndex = 0;
705
+ const replaceCode = (close === 22 ? closeCode : "") + openCode;
662
706
  while (index !== -1) {
663
- result += string.slice(lastIndex, index) + openCode;
707
+ result += string.slice(lastIndex, index) + replaceCode;
664
708
  lastIndex = index + closeCode.length;
665
709
  index = string.indexOf(closeCode, lastIndex);
666
710
  }
@@ -3060,7 +3104,7 @@ function parseMilliseconds(milliseconds) {
3060
3104
  throw new TypeError("Expected a finite number or bigint");
3061
3105
  }
3062
3106
  //#endregion
3063
- //#region ../../node_modules/.pnpm/pretty-ms@9.2.0/node_modules/pretty-ms/index.js
3107
+ //#region ../../node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js
3064
3108
  const isZero = (value) => value === 0 || value === 0n;
3065
3109
  const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
3066
3110
  const SECOND_ROUNDING_EPSILON = 1e-7;
@@ -3109,7 +3153,7 @@ function prettyMilliseconds(milliseconds, options) {
3109
3153
  add(Number(parsed.hours), "hour", "h");
3110
3154
  }
3111
3155
  add(Number(parsed.minutes), "minute", "m");
3112
- if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
3156
+ if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
3113
3157
  const seconds = Number(parsed.seconds);
3114
3158
  const milliseconds = Number(parsed.milliseconds);
3115
3159
  const microseconds = Number(parsed.microseconds);
@@ -42,15 +42,58 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
42
42
  }) : target, mod));
43
43
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
44
44
  //#endregion
45
- //#region ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/error/AbortError.mjs
46
- var AbortError = class extends Error {
45
+ //#region ../../node_modules/.pnpm/es-toolkit@1.47.0/node_modules/es-toolkit/dist/_internal/globalThis.mjs
46
+ const globalThis_ = typeof globalThis === "object" && globalThis || typeof window === "object" && window || typeof self === "object" && self || typeof global === "object" && global || (function() {
47
+ return this;
48
+ })() || Function("return this")();
49
+ //#endregion
50
+ //#region ../../node_modules/.pnpm/es-toolkit@1.47.0/node_modules/es-toolkit/dist/_internal/DOMException.mjs
51
+ const DOMException$1 = typeof globalThis_.DOMException !== "undefined" ? globalThis_.DOMException : Error;
52
+ //#endregion
53
+ //#region ../../node_modules/.pnpm/es-toolkit@1.47.0/node_modules/es-toolkit/dist/error/AbortError.mjs
54
+ /**
55
+ * An error class representing an aborted operation.
56
+ * @augments DOMException
57
+ */
58
+ var AbortError = class extends DOMException$1 {
47
59
  constructor(message = "The operation was aborted") {
48
60
  super(message);
49
- this.name = "AbortError";
50
61
  }
51
62
  };
52
63
  //#endregion
53
- //#region ../../node_modules/.pnpm/es-toolkit@1.32.0/node_modules/es-toolkit/dist/promise/delay.mjs
64
+ //#region ../../node_modules/.pnpm/es-toolkit@1.47.0/node_modules/es-toolkit/dist/promise/delay.mjs
65
+ /**
66
+ * Delays the execution of code for a specified number of milliseconds.
67
+ *
68
+ * This function returns a Promise that resolves after the specified delay, allowing you to use it
69
+ * with async/await to pause execution.
70
+ *
71
+ * @param {number} ms - The number of milliseconds to delay.
72
+ * @param {DelayOptions} options - The options object.
73
+ * @param {AbortSignal} options.signal - An optional AbortSignal to cancel the delay.
74
+ * @returns {Promise<void>} A Promise that resolves after the specified delay.
75
+ *
76
+ * @example
77
+ * async function foo() {
78
+ * console.log('Start');
79
+ * await delay(1000); // Delays execution for 1 second
80
+ * console.log('End');
81
+ * }
82
+ *
83
+ * foo();
84
+ *
85
+ * // With AbortSignal
86
+ * const controller = new AbortController();
87
+ * const { signal } = controller;
88
+ *
89
+ * setTimeout(() => controller.abort(), 50); // Will cancel the delay after 50ms
90
+ * try {
91
+ * await delay(100, { signal });
92
+ * } catch (error) {
93
+ * console.error(error); // Will log 'AbortError'
94
+ * }
95
+ * }
96
+ */
54
97
  function delay(ms, { signal } = {}) {
55
98
  return new Promise((resolve, reject) => {
56
99
  const abortError = () => {
@@ -642,7 +685,7 @@ const fallbackSymbols = {
642
685
  const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
643
686
  Object.entries(specialMainSymbols);
644
687
  //#endregion
645
- //#region ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
688
+ //#region ../../node_modules/.pnpm/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
646
689
  const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
647
690
  const format = (open, close) => {
648
691
  if (!hasColors) return (input) => input;
@@ -654,8 +697,9 @@ const format = (open, close) => {
654
697
  if (index === -1) return openCode + string + closeCode;
655
698
  let result = openCode;
656
699
  let lastIndex = 0;
700
+ const replaceCode = (close === 22 ? closeCode : "") + openCode;
657
701
  while (index !== -1) {
658
- result += string.slice(lastIndex, index) + openCode;
702
+ result += string.slice(lastIndex, index) + replaceCode;
659
703
  lastIndex = index + closeCode.length;
660
704
  index = string.indexOf(closeCode, lastIndex);
661
705
  }
@@ -3055,7 +3099,7 @@ function parseMilliseconds(milliseconds) {
3055
3099
  throw new TypeError("Expected a finite number or bigint");
3056
3100
  }
3057
3101
  //#endregion
3058
- //#region ../../node_modules/.pnpm/pretty-ms@9.2.0/node_modules/pretty-ms/index.js
3102
+ //#region ../../node_modules/.pnpm/pretty-ms@9.3.0/node_modules/pretty-ms/index.js
3059
3103
  const isZero = (value) => value === 0 || value === 0n;
3060
3104
  const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
3061
3105
  const SECOND_ROUNDING_EPSILON = 1e-7;
@@ -3104,7 +3148,7 @@ function prettyMilliseconds(milliseconds, options) {
3104
3148
  add(Number(parsed.hours), "hour", "h");
3105
3149
  }
3106
3150
  add(Number(parsed.minutes), "minute", "m");
3107
- if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
3151
+ if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3 && !options.subSecondsAsDecimals) {
3108
3152
  const seconds = Number(parsed.seconds);
3109
3153
  const milliseconds = Number(parsed.milliseconds);
3110
3154
  const microseconds = Number(parsed.microseconds);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/supabase",
3
3
  "type": "module",
4
- "version": "0.33.0",
4
+ "version": "0.33.1",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -27,7 +27,10 @@
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "license": "MIT",
30
- "repository": "https://github.com/gronxb/hot-updater",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/gronxb/hot-updater"
33
+ },
31
34
  "author": "gronxb <gron1gh1@gmail.com> (https://github.com/gronxb)",
32
35
  "bugs": {
33
36
  "url": "https://github.com/gronxb/hot-updater/issues"
@@ -47,23 +50,23 @@
47
50
  "@supabase/supabase-js": "2.76.1",
48
51
  "hono": "4.12.9",
49
52
  "uuidv7": "^1.0.2",
50
- "@hot-updater/core": "0.33.0",
51
- "@hot-updater/plugin-core": "0.33.0",
52
- "@hot-updater/server": "0.33.0",
53
- "@hot-updater/cli-tools": "0.33.0"
53
+ "@hot-updater/core": "0.33.1",
54
+ "@hot-updater/plugin-core": "0.33.1",
55
+ "@hot-updater/cli-tools": "0.33.1",
56
+ "@hot-updater/server": "0.33.1"
54
57
  },
55
58
  "devDependencies": {
56
- "@electric-sql/pglite": "0.2.17",
59
+ "@electric-sql/pglite": "0.4.1",
57
60
  "camelcase-keys": "^9.1.3",
58
61
  "dayjs": "^1.11.13",
59
62
  "es-toolkit": "^1.32.0",
60
63
  "execa": "9.5.2",
61
64
  "@types/node": "^20",
62
65
  "mime": "^4.0.4",
63
- "@hot-updater/js": "0.33.0",
64
- "@hot-updater/mock": "0.33.0",
65
- "@hot-updater/postgres": "0.33.0",
66
- "@hot-updater/test-utils": "0.33.0"
66
+ "@hot-updater/js": "0.33.1",
67
+ "@hot-updater/postgres": "0.33.1",
68
+ "@hot-updater/test-utils": "0.33.1",
69
+ "@hot-updater/mock": "0.33.1"
67
70
  },
68
71
  "scripts": {
69
72
  "build": "tsdown",