@hot-updater/supabase 0.16.3 → 0.16.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.
- package/dist/iac/index.cjs +22 -24
- package/dist/iac/index.js +22 -24
- package/package.json +4 -4
package/dist/iac/index.cjs
CHANGED
|
@@ -405,9 +405,9 @@ var require_path_key = __commonJS({
|
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
407
|
|
|
408
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
408
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
409
409
|
var require_resolveCommand = __commonJS({
|
|
410
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
410
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
411
411
|
"use strict";
|
|
412
412
|
var path7 = require("path");
|
|
413
413
|
var which = require_which();
|
|
@@ -447,9 +447,9 @@ var require_resolveCommand = __commonJS({
|
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
|
|
450
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
450
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
451
451
|
var require_escape = __commonJS({
|
|
452
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
452
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
|
|
453
453
|
"use strict";
|
|
454
454
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
455
455
|
function escapeCommand(arg) {
|
|
@@ -458,8 +458,8 @@ var require_escape = __commonJS({
|
|
|
458
458
|
}
|
|
459
459
|
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
460
460
|
arg = `${arg}`;
|
|
461
|
-
arg = arg.replace(/(
|
|
462
|
-
arg = arg.replace(/(
|
|
461
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
462
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
463
463
|
arg = `"${arg}"`;
|
|
464
464
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
465
465
|
if (doubleEscapeMetaChars) {
|
|
@@ -500,9 +500,9 @@ var require_shebang_command = __commonJS({
|
|
|
500
500
|
}
|
|
501
501
|
});
|
|
502
502
|
|
|
503
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
503
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
504
504
|
var require_readShebang = __commonJS({
|
|
505
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
505
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
506
506
|
"use strict";
|
|
507
507
|
var fs2 = require("fs");
|
|
508
508
|
var shebangCommand = require_shebang_command();
|
|
@@ -522,9 +522,9 @@ var require_readShebang = __commonJS({
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
|
|
525
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
525
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
526
526
|
var require_parse = __commonJS({
|
|
527
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
527
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
528
528
|
"use strict";
|
|
529
529
|
var path7 = require("path");
|
|
530
530
|
var resolveCommand = require_resolveCommand();
|
|
@@ -584,9 +584,9 @@ var require_parse = __commonJS({
|
|
|
584
584
|
}
|
|
585
585
|
});
|
|
586
586
|
|
|
587
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
587
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
588
588
|
var require_enoent = __commonJS({
|
|
589
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
589
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
|
|
590
590
|
"use strict";
|
|
591
591
|
var isWin = process.platform === "win32";
|
|
592
592
|
function notFoundError(original, syscall) {
|
|
@@ -605,7 +605,7 @@ var require_enoent = __commonJS({
|
|
|
605
605
|
const originalEmit = cp.emit;
|
|
606
606
|
cp.emit = function(name, arg1) {
|
|
607
607
|
if (name === "exit") {
|
|
608
|
-
const err = verifyENOENT(arg1, parsed
|
|
608
|
+
const err = verifyENOENT(arg1, parsed);
|
|
609
609
|
if (err) {
|
|
610
610
|
return originalEmit.call(cp, "error", err);
|
|
611
611
|
}
|
|
@@ -634,9 +634,9 @@ var require_enoent = __commonJS({
|
|
|
634
634
|
}
|
|
635
635
|
});
|
|
636
636
|
|
|
637
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
637
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
638
638
|
var require_cross_spawn = __commonJS({
|
|
639
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
639
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
640
640
|
"use strict";
|
|
641
641
|
var cp = require("child_process");
|
|
642
642
|
var parse = require_parse();
|
|
@@ -8082,13 +8082,13 @@ var import_path = __toESM(require("path"), 1);
|
|
|
8082
8082
|
var import_plugin_core = require("@hot-updater/plugin-core");
|
|
8083
8083
|
var import_promises12 = __toESM(require("fs/promises"), 1);
|
|
8084
8084
|
var CONFIG_TEMPLATE = `
|
|
8085
|
-
import {
|
|
8085
|
+
import { bare } from "@hot-updater/bare";
|
|
8086
8086
|
import { supabaseDatabase, supabaseStorage } from "@hot-updater/supabase";
|
|
8087
8087
|
import { defineConfig } from "hot-updater";
|
|
8088
8088
|
import "dotenv/config";
|
|
8089
8089
|
|
|
8090
8090
|
export default defineConfig({
|
|
8091
|
-
build:
|
|
8091
|
+
build: bare({ enableHermes: true }),
|
|
8092
8092
|
storage: supabaseStorage({
|
|
8093
8093
|
supabaseUrl: process.env.HOT_UPDATER_SUPABASE_URL!,
|
|
8094
8094
|
supabaseAnonKey: process.env.HOT_UPDATER_SUPABASE_ANON_KEY!,
|
|
@@ -8307,7 +8307,9 @@ var deployEdgeFunction = async (workdir, projectId) => {
|
|
|
8307
8307
|
"update-server",
|
|
8308
8308
|
"--project-ref",
|
|
8309
8309
|
projectId,
|
|
8310
|
-
"--no-verify-jwt"
|
|
8310
|
+
"--no-verify-jwt",
|
|
8311
|
+
"--workdir",
|
|
8312
|
+
workdir
|
|
8311
8313
|
],
|
|
8312
8314
|
{
|
|
8313
8315
|
cwd: workdir
|
|
@@ -8366,12 +8368,8 @@ var runInit = async () => {
|
|
|
8366
8368
|
"supabase"
|
|
8367
8369
|
);
|
|
8368
8370
|
await linkSupabase(tmpDir, project.id);
|
|
8369
|
-
const
|
|
8370
|
-
|
|
8371
|
-
"supabase",
|
|
8372
|
-
"functions",
|
|
8373
|
-
"update-server"
|
|
8374
|
-
);
|
|
8371
|
+
const supabasePath = import_path.default.join(tmpDir, "supabase");
|
|
8372
|
+
const functionsPath = import_path.default.join(supabasePath, "functions", "update-server");
|
|
8375
8373
|
const code = await import_promises12.default.readFile(import_path.default.join(functionsPath, "index.ts"), "utf-8");
|
|
8376
8374
|
const updatedCode = await (0, import_plugin_core.transformTsEnv)(code, {
|
|
8377
8375
|
BUCKET_NAME: bucket.name
|
package/dist/iac/index.js
CHANGED
|
@@ -405,9 +405,9 @@ var require_path_key = __commonJS({
|
|
|
405
405
|
}
|
|
406
406
|
});
|
|
407
407
|
|
|
408
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
408
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
409
409
|
var require_resolveCommand = __commonJS({
|
|
410
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
410
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
411
411
|
"use strict";
|
|
412
412
|
var path7 = __require("path");
|
|
413
413
|
var which = require_which();
|
|
@@ -447,9 +447,9 @@ var require_resolveCommand = __commonJS({
|
|
|
447
447
|
}
|
|
448
448
|
});
|
|
449
449
|
|
|
450
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
450
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
451
451
|
var require_escape = __commonJS({
|
|
452
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
452
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
|
|
453
453
|
"use strict";
|
|
454
454
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
455
455
|
function escapeCommand(arg) {
|
|
@@ -458,8 +458,8 @@ var require_escape = __commonJS({
|
|
|
458
458
|
}
|
|
459
459
|
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
460
460
|
arg = `${arg}`;
|
|
461
|
-
arg = arg.replace(/(
|
|
462
|
-
arg = arg.replace(/(
|
|
461
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
462
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
463
463
|
arg = `"${arg}"`;
|
|
464
464
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
465
465
|
if (doubleEscapeMetaChars) {
|
|
@@ -500,9 +500,9 @@ var require_shebang_command = __commonJS({
|
|
|
500
500
|
}
|
|
501
501
|
});
|
|
502
502
|
|
|
503
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
503
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
504
504
|
var require_readShebang = __commonJS({
|
|
505
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
505
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
506
506
|
"use strict";
|
|
507
507
|
var fs2 = __require("fs");
|
|
508
508
|
var shebangCommand = require_shebang_command();
|
|
@@ -522,9 +522,9 @@ var require_readShebang = __commonJS({
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
|
|
525
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
525
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
526
526
|
var require_parse = __commonJS({
|
|
527
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
527
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
528
528
|
"use strict";
|
|
529
529
|
var path7 = __require("path");
|
|
530
530
|
var resolveCommand = require_resolveCommand();
|
|
@@ -584,9 +584,9 @@ var require_parse = __commonJS({
|
|
|
584
584
|
}
|
|
585
585
|
});
|
|
586
586
|
|
|
587
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
587
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
588
588
|
var require_enoent = __commonJS({
|
|
589
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
589
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
590
590
|
"use strict";
|
|
591
591
|
var isWin = process.platform === "win32";
|
|
592
592
|
function notFoundError(original, syscall) {
|
|
@@ -605,7 +605,7 @@ var require_enoent = __commonJS({
|
|
|
605
605
|
const originalEmit = cp.emit;
|
|
606
606
|
cp.emit = function(name, arg1) {
|
|
607
607
|
if (name === "exit") {
|
|
608
|
-
const err = verifyENOENT(arg1, parsed
|
|
608
|
+
const err = verifyENOENT(arg1, parsed);
|
|
609
609
|
if (err) {
|
|
610
610
|
return originalEmit.call(cp, "error", err);
|
|
611
611
|
}
|
|
@@ -634,9 +634,9 @@ var require_enoent = __commonJS({
|
|
|
634
634
|
}
|
|
635
635
|
});
|
|
636
636
|
|
|
637
|
-
// ../../node_modules/.pnpm/cross-spawn@7.0.
|
|
637
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
638
638
|
var require_cross_spawn = __commonJS({
|
|
639
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.
|
|
639
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
|
|
640
640
|
"use strict";
|
|
641
641
|
var cp = __require("child_process");
|
|
642
642
|
var parse = require_parse();
|
|
@@ -8084,13 +8084,13 @@ import {
|
|
|
8084
8084
|
} from "@hot-updater/plugin-core";
|
|
8085
8085
|
import fs from "fs/promises";
|
|
8086
8086
|
var CONFIG_TEMPLATE = `
|
|
8087
|
-
import {
|
|
8087
|
+
import { bare } from "@hot-updater/bare";
|
|
8088
8088
|
import { supabaseDatabase, supabaseStorage } from "@hot-updater/supabase";
|
|
8089
8089
|
import { defineConfig } from "hot-updater";
|
|
8090
8090
|
import "dotenv/config";
|
|
8091
8091
|
|
|
8092
8092
|
export default defineConfig({
|
|
8093
|
-
build:
|
|
8093
|
+
build: bare({ enableHermes: true }),
|
|
8094
8094
|
storage: supabaseStorage({
|
|
8095
8095
|
supabaseUrl: process.env.HOT_UPDATER_SUPABASE_URL!,
|
|
8096
8096
|
supabaseAnonKey: process.env.HOT_UPDATER_SUPABASE_ANON_KEY!,
|
|
@@ -8309,7 +8309,9 @@ var deployEdgeFunction = async (workdir, projectId) => {
|
|
|
8309
8309
|
"update-server",
|
|
8310
8310
|
"--project-ref",
|
|
8311
8311
|
projectId,
|
|
8312
|
-
"--no-verify-jwt"
|
|
8312
|
+
"--no-verify-jwt",
|
|
8313
|
+
"--workdir",
|
|
8314
|
+
workdir
|
|
8313
8315
|
],
|
|
8314
8316
|
{
|
|
8315
8317
|
cwd: workdir
|
|
@@ -8368,12 +8370,8 @@ var runInit = async () => {
|
|
|
8368
8370
|
"supabase"
|
|
8369
8371
|
);
|
|
8370
8372
|
await linkSupabase(tmpDir, project.id);
|
|
8371
|
-
const
|
|
8372
|
-
|
|
8373
|
-
"supabase",
|
|
8374
|
-
"functions",
|
|
8375
|
-
"update-server"
|
|
8376
|
-
);
|
|
8373
|
+
const supabasePath = path6.join(tmpDir, "supabase");
|
|
8374
|
+
const functionsPath = path6.join(supabasePath, "functions", "update-server");
|
|
8377
8375
|
const code = await fs.readFile(path6.join(functionsPath, "index.ts"), "utf-8");
|
|
8378
8376
|
const updatedCode = await transformTsEnv(code, {
|
|
8379
8377
|
BUCKET_NAME: bucket.name
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/supabase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.4",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"package.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@hot-updater/core": "0.16.
|
|
43
|
-
"@hot-updater/plugin-core": "0.16.
|
|
42
|
+
"@hot-updater/core": "0.16.4",
|
|
43
|
+
"@hot-updater/plugin-core": "0.16.4",
|
|
44
44
|
"@supabase/supabase-js": "^2.47.10"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@clack/prompts": "0.10.0",
|
|
48
|
-
"@hot-updater/postgres": "0.16.
|
|
48
|
+
"@hot-updater/postgres": "0.16.4",
|
|
49
49
|
"dayjs": "^1.11.13",
|
|
50
50
|
"es-toolkit": "^1.32.0",
|
|
51
51
|
"execa": "^9.5.2",
|