stripe-experiment-sync 1.0.8 → 1.0.9
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/{chunk-X2OQQCC2.js → chunk-OLVA37VZ.js} +12 -1
- package/dist/{chunk-J7BH3XD6.js → chunk-PQ2T7XTY.js} +1 -1
- package/dist/{chunk-YH6KRZDQ.js → chunk-PWJLHHPY.js} +2 -2
- package/dist/{chunk-CKWVW2JK.js → chunk-RR5BGG4F.js} +1 -1
- package/dist/cli/index.cjs +14 -3
- package/dist/cli/index.js +6 -6
- package/dist/cli/lib.cjs +12 -1
- package/dist/cli/lib.js +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/supabase/index.cjs +12 -1
- package/dist/supabase/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
package_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RR5BGG4F.js";
|
|
4
4
|
|
|
5
5
|
// src/supabase/supabase.ts
|
|
6
6
|
import { SupabaseManagementAPI } from "supabase-management-js";
|
|
@@ -319,6 +319,17 @@ var SupabaseSetupClient = class {
|
|
|
319
319
|
} catch (err) {
|
|
320
320
|
console.warn("Could not delete vault secret:", err);
|
|
321
321
|
}
|
|
322
|
+
try {
|
|
323
|
+
await this.runSQL(`
|
|
324
|
+
SELECT pg_terminate_backend(pid)
|
|
325
|
+
FROM pg_stat_activity
|
|
326
|
+
WHERE datname = current_database()
|
|
327
|
+
AND pid != pg_backend_pid()
|
|
328
|
+
AND query ILIKE '%stripe.%'
|
|
329
|
+
`);
|
|
330
|
+
} catch (err) {
|
|
331
|
+
console.warn("Could not terminate connections:", err);
|
|
332
|
+
}
|
|
322
333
|
await this.runSQL(`DROP SCHEMA IF EXISTS stripe CASCADE`);
|
|
323
334
|
} catch (error) {
|
|
324
335
|
throw new Error(`Uninstall failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
StripeSync,
|
|
3
3
|
createStripeWebSocketClient,
|
|
4
4
|
runMigrations
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PQ2T7XTY.js";
|
|
6
6
|
import {
|
|
7
7
|
install,
|
|
8
8
|
uninstall
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OLVA37VZ.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/config.ts
|
|
12
12
|
import dotenv from "dotenv";
|
package/dist/cli/index.cjs
CHANGED
|
@@ -33,7 +33,7 @@ var import_commander = require("commander");
|
|
|
33
33
|
// package.json
|
|
34
34
|
var package_default = {
|
|
35
35
|
name: "stripe-experiment-sync",
|
|
36
|
-
version: "1.0.
|
|
36
|
+
version: "1.0.9",
|
|
37
37
|
private: false,
|
|
38
38
|
description: "Stripe Sync Engine to sync Stripe data to Postgres",
|
|
39
39
|
type: "module",
|
|
@@ -3944,6 +3944,17 @@ var SupabaseSetupClient = class {
|
|
|
3944
3944
|
} catch (err) {
|
|
3945
3945
|
console.warn("Could not delete vault secret:", err);
|
|
3946
3946
|
}
|
|
3947
|
+
try {
|
|
3948
|
+
await this.runSQL(`
|
|
3949
|
+
SELECT pg_terminate_backend(pid)
|
|
3950
|
+
FROM pg_stat_activity
|
|
3951
|
+
WHERE datname = current_database()
|
|
3952
|
+
AND pid != pg_backend_pid()
|
|
3953
|
+
AND query ILIKE '%stripe.%'
|
|
3954
|
+
`);
|
|
3955
|
+
} catch (err) {
|
|
3956
|
+
console.warn("Could not terminate connections:", err);
|
|
3957
|
+
}
|
|
3947
3958
|
await this.runSQL(`DROP SCHEMA IF EXISTS stripe CASCADE`);
|
|
3948
3959
|
} catch (error) {
|
|
3949
3960
|
throw new Error(`Uninstall failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -4572,14 +4583,14 @@ program.command("backfill <entityName>").description("Backfill a specific entity
|
|
|
4572
4583
|
});
|
|
4573
4584
|
var supabase = program.command("supabase").description("Supabase Edge Functions commands");
|
|
4574
4585
|
supabase.command("install").description("Install Stripe sync to Supabase Edge Functions").option("--token <token>", "Supabase access token (or SUPABASE_ACCESS_TOKEN env)").option("--project <ref>", "Supabase project ref (or SUPABASE_PROJECT_REF env)").option("--stripe-key <key>", "Stripe API key (or STRIPE_API_KEY env)").option(
|
|
4575
|
-
"--version <version>",
|
|
4586
|
+
"--package-version <version>",
|
|
4576
4587
|
"Package version to install (e.g., 1.0.8-beta.1, defaults to latest)"
|
|
4577
4588
|
).action(async (options) => {
|
|
4578
4589
|
await installCommand({
|
|
4579
4590
|
supabaseAccessToken: options.token,
|
|
4580
4591
|
supabaseProjectRef: options.project,
|
|
4581
4592
|
stripeKey: options.stripeKey,
|
|
4582
|
-
packageVersion: options.
|
|
4593
|
+
packageVersion: options.packageVersion
|
|
4583
4594
|
});
|
|
4584
4595
|
});
|
|
4585
4596
|
supabase.command("uninstall").description("Uninstall Stripe sync from Supabase Edge Functions").option("--token <token>", "Supabase access token (or SUPABASE_ACCESS_TOKEN env)").option("--project <ref>", "Supabase project ref (or SUPABASE_PROJECT_REF env)").option("--stripe-key <key>", "Stripe API key (or STRIPE_API_KEY env)").action(async (options) => {
|
package/dist/cli/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
migrateCommand,
|
|
6
6
|
syncCommand,
|
|
7
7
|
uninstallCommand
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-PWJLHHPY.js";
|
|
9
|
+
import "../chunk-PQ2T7XTY.js";
|
|
10
|
+
import "../chunk-OLVA37VZ.js";
|
|
11
11
|
import {
|
|
12
12
|
package_default
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-RR5BGG4F.js";
|
|
14
14
|
|
|
15
15
|
// src/cli/index.ts
|
|
16
16
|
import { Command } from "commander";
|
|
@@ -39,14 +39,14 @@ program.command("backfill <entityName>").description("Backfill a specific entity
|
|
|
39
39
|
});
|
|
40
40
|
var supabase = program.command("supabase").description("Supabase Edge Functions commands");
|
|
41
41
|
supabase.command("install").description("Install Stripe sync to Supabase Edge Functions").option("--token <token>", "Supabase access token (or SUPABASE_ACCESS_TOKEN env)").option("--project <ref>", "Supabase project ref (or SUPABASE_PROJECT_REF env)").option("--stripe-key <key>", "Stripe API key (or STRIPE_API_KEY env)").option(
|
|
42
|
-
"--version <version>",
|
|
42
|
+
"--package-version <version>",
|
|
43
43
|
"Package version to install (e.g., 1.0.8-beta.1, defaults to latest)"
|
|
44
44
|
).action(async (options) => {
|
|
45
45
|
await installCommand({
|
|
46
46
|
supabaseAccessToken: options.token,
|
|
47
47
|
supabaseProjectRef: options.project,
|
|
48
48
|
stripeKey: options.stripeKey,
|
|
49
|
-
packageVersion: options.
|
|
49
|
+
packageVersion: options.packageVersion
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
supabase.command("uninstall").description("Uninstall Stripe sync from Supabase Edge Functions").option("--token <token>", "Supabase access token (or SUPABASE_ACCESS_TOKEN env)").option("--project <ref>", "Supabase project ref (or SUPABASE_PROJECT_REF env)").option("--stripe-key <key>", "Stripe API key (or STRIPE_API_KEY env)").action(async (options) => {
|
package/dist/cli/lib.cjs
CHANGED
|
@@ -105,7 +105,7 @@ async function loadConfig(options) {
|
|
|
105
105
|
// package.json
|
|
106
106
|
var package_default = {
|
|
107
107
|
name: "stripe-experiment-sync",
|
|
108
|
-
version: "1.0.
|
|
108
|
+
version: "1.0.9",
|
|
109
109
|
private: false,
|
|
110
110
|
description: "Stripe Sync Engine to sync Stripe data to Postgres",
|
|
111
111
|
type: "module",
|
|
@@ -3958,6 +3958,17 @@ var SupabaseSetupClient = class {
|
|
|
3958
3958
|
} catch (err) {
|
|
3959
3959
|
console.warn("Could not delete vault secret:", err);
|
|
3960
3960
|
}
|
|
3961
|
+
try {
|
|
3962
|
+
await this.runSQL(`
|
|
3963
|
+
SELECT pg_terminate_backend(pid)
|
|
3964
|
+
FROM pg_stat_activity
|
|
3965
|
+
WHERE datname = current_database()
|
|
3966
|
+
AND pid != pg_backend_pid()
|
|
3967
|
+
AND query ILIKE '%stripe.%'
|
|
3968
|
+
`);
|
|
3969
|
+
} catch (err) {
|
|
3970
|
+
console.warn("Could not terminate connections:", err);
|
|
3971
|
+
}
|
|
3961
3972
|
await this.runSQL(`DROP SCHEMA IF EXISTS stripe CASCADE`);
|
|
3962
3973
|
} catch (error) {
|
|
3963
3974
|
throw new Error(`Uninstall failed: ${error instanceof Error ? error.message : String(error)}`);
|
package/dist/cli/lib.js
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
migrateCommand,
|
|
7
7
|
syncCommand,
|
|
8
8
|
uninstallCommand
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-PWJLHHPY.js";
|
|
10
|
+
import "../chunk-PQ2T7XTY.js";
|
|
11
|
+
import "../chunk-OLVA37VZ.js";
|
|
12
|
+
import "../chunk-RR5BGG4F.js";
|
|
13
13
|
export {
|
|
14
14
|
backfillCommand,
|
|
15
15
|
createTunnel,
|
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
|
46
46
|
// package.json
|
|
47
47
|
var package_default = {
|
|
48
48
|
name: "stripe-experiment-sync",
|
|
49
|
-
version: "1.0.
|
|
49
|
+
version: "1.0.9",
|
|
50
50
|
private: false,
|
|
51
51
|
description: "Stripe Sync Engine to sync Stripe data to Postgres",
|
|
52
52
|
type: "module",
|
package/dist/index.js
CHANGED
package/dist/supabase/index.cjs
CHANGED
|
@@ -64,7 +64,7 @@ var workerFunctionCode = stripe_worker_default;
|
|
|
64
64
|
// package.json
|
|
65
65
|
var package_default = {
|
|
66
66
|
name: "stripe-experiment-sync",
|
|
67
|
-
version: "1.0.
|
|
67
|
+
version: "1.0.9",
|
|
68
68
|
private: false,
|
|
69
69
|
description: "Stripe Sync Engine to sync Stripe data to Postgres",
|
|
70
70
|
type: "module",
|
|
@@ -443,6 +443,17 @@ var SupabaseSetupClient = class {
|
|
|
443
443
|
} catch (err) {
|
|
444
444
|
console.warn("Could not delete vault secret:", err);
|
|
445
445
|
}
|
|
446
|
+
try {
|
|
447
|
+
await this.runSQL(`
|
|
448
|
+
SELECT pg_terminate_backend(pid)
|
|
449
|
+
FROM pg_stat_activity
|
|
450
|
+
WHERE datname = current_database()
|
|
451
|
+
AND pid != pg_backend_pid()
|
|
452
|
+
AND query ILIKE '%stripe.%'
|
|
453
|
+
`);
|
|
454
|
+
} catch (err) {
|
|
455
|
+
console.warn("Could not terminate connections:", err);
|
|
456
|
+
}
|
|
446
457
|
await this.runSQL(`DROP SCHEMA IF EXISTS stripe CASCADE`);
|
|
447
458
|
} catch (error) {
|
|
448
459
|
throw new Error(`Uninstall failed: ${error instanceof Error ? error.message : String(error)}`);
|
package/dist/supabase/index.js
CHANGED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
uninstall,
|
|
10
10
|
webhookFunctionCode,
|
|
11
11
|
workerFunctionCode
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-OLVA37VZ.js";
|
|
13
|
+
import "../chunk-RR5BGG4F.js";
|
|
14
14
|
export {
|
|
15
15
|
INSTALLATION_ERROR_SUFFIX,
|
|
16
16
|
INSTALLATION_INSTALLED_SUFFIX,
|