stripe-experiment-sync 1.0.9-beta.1765909347 → 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.
@@ -2,11 +2,11 @@ import {
2
2
  StripeSync,
3
3
  createStripeWebSocketClient,
4
4
  runMigrations
5
- } from "./chunk-2CYYWBTD.js";
5
+ } from "./chunk-PQ2T7XTY.js";
6
6
  import {
7
7
  install,
8
8
  uninstall
9
- } from "./chunk-SI3VFP3M.js";
9
+ } from "./chunk-OLVA37VZ.js";
10
10
 
11
11
  // src/cli/config.ts
12
12
  import dotenv from "dotenv";
@@ -18,7 +18,6 @@ async function loadConfig(options) {
18
18
  config.stripeApiKey = options.stripeKey || process.env.STRIPE_API_KEY || "";
19
19
  config.ngrokAuthToken = options.ngrokToken || process.env.NGROK_AUTH_TOKEN || "";
20
20
  config.databaseUrl = options.databaseUrl || process.env.DATABASE_URL || "";
21
- config.enableSigmaSync = options.enableSigmaSync ?? (process.env.ENABLE_SIGMA_SYNC !== void 0 ? process.env.ENABLE_SIGMA_SYNC === "true" : void 0);
22
21
  const questions = [];
23
22
  if (!config.stripeApiKey) {
24
23
  questions.push({
@@ -30,8 +29,8 @@ async function loadConfig(options) {
30
29
  if (!input || input.trim() === "") {
31
30
  return "Stripe API key is required";
32
31
  }
33
- if (!input.startsWith("sk_") && !input.startsWith("rk_")) {
34
- return 'Stripe API key should start with "sk_" or "rk_"';
32
+ if (!input.startsWith("sk_")) {
33
+ return 'Stripe API key should start with "sk_"';
35
34
  }
36
35
  return true;
37
36
  }
@@ -54,22 +53,11 @@ async function loadConfig(options) {
54
53
  }
55
54
  });
56
55
  }
57
- if (config.enableSigmaSync === void 0) {
58
- questions.push({
59
- type: "confirm",
60
- name: "enableSigmaSync",
61
- message: "Enable Sigma sync? (Requires Sigma access in Stripe API key)",
62
- default: false
63
- });
64
- }
65
56
  if (questions.length > 0) {
66
- console.log(chalk.yellow("\nMissing configuration. Please provide:"));
57
+ console.log(chalk.yellow("\nMissing required configuration. Please provide:"));
67
58
  const answers = await inquirer.prompt(questions);
68
59
  Object.assign(config, answers);
69
60
  }
70
- if (config.enableSigmaSync === void 0) {
71
- config.enableSigmaSync = false;
72
- }
73
61
  return config;
74
62
  }
75
63
 
@@ -129,9 +117,7 @@ var VALID_SYNC_OBJECTS = [
129
117
  "credit_note",
130
118
  "early_fraud_warning",
131
119
  "refund",
132
- "checkout_sessions",
133
- "subscription_item_change_events_v2_beta",
134
- "exchange_rates_from_usd"
120
+ "checkout_sessions"
135
121
  ];
136
122
  async function backfillCommand(options, entityName) {
137
123
  let stripeSync = null;
@@ -160,8 +146,8 @@ async function backfillCommand(options, entityName) {
160
146
  if (!input || input.trim() === "") {
161
147
  return "Stripe API key is required";
162
148
  }
163
- if (!input.startsWith("sk_") && !input.startsWith("rk_")) {
164
- return 'Stripe API key should start with "sk_" or "rk_"';
149
+ if (!input.startsWith("sk_")) {
150
+ return 'Stripe API key should start with "sk_"';
165
151
  }
166
152
  return true;
167
153
  }
@@ -218,7 +204,6 @@ async function backfillCommand(options, entityName) {
218
204
  stripeSync = new StripeSync({
219
205
  databaseUrl: config.databaseUrl,
220
206
  stripeSecretKey: config.stripeApiKey,
221
- enableSigmaSync: process.env.ENABLE_SIGMA_SYNC === "true",
222
207
  stripeApiVersion: process.env.STRIPE_API_VERSION || "2020-08-27",
223
208
  autoExpandLists: process.env.AUTO_EXPAND_LISTS === "true",
224
209
  backfillRelatedEntities: process.env.BACKFILL_RELATED_ENTITIES !== "false",
@@ -382,7 +367,6 @@ Mode: ${modeLabel}`));
382
367
  stripeSync = new StripeSync({
383
368
  databaseUrl: config.databaseUrl,
384
369
  stripeSecretKey: config.stripeApiKey,
385
- enableSigmaSync: config.enableSigmaSync,
386
370
  stripeApiVersion: process.env.STRIPE_API_VERSION || "2020-08-27",
387
371
  autoExpandLists: process.env.AUTO_EXPAND_LISTS === "true",
388
372
  backfillRelatedEntities: process.env.BACKFILL_RELATED_ENTITIES !== "false",
@@ -530,8 +514,7 @@ async function installCommand(options) {
530
514
  mask: "*",
531
515
  validate: (input) => {
532
516
  if (!input.trim()) return "Stripe key is required";
533
- if (!input.startsWith("sk_") && !input.startsWith("rk_"))
534
- return 'Stripe key should start with "sk_" or "rk_"';
517
+ if (!input.startsWith("sk_")) return 'Stripe key should start with "sk_"';
535
518
  return true;
536
519
  }
537
520
  });
@@ -601,8 +584,7 @@ async function uninstallCommand(options) {
601
584
  mask: "*",
602
585
  validate: (input) => {
603
586
  if (!input.trim()) return "Stripe key is required";
604
- if (!input.startsWith("sk_") && !input.startsWith("rk_"))
605
- return 'Stripe key should start with "sk_" or "rk_"';
587
+ if (!input.startsWith("sk_")) return 'Stripe key should start with "sk_"';
606
588
  return true;
607
589
  }
608
590
  });
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "stripe-experiment-sync",
4
- version: "1.0.9-beta.1765909347",
4
+ version: "1.0.9",
5
5
  private: false,
6
6
  description: "Stripe Sync Engine to sync Stripe data to Postgres",
7
7
  type: "module",
@@ -41,7 +41,6 @@ var package_default = {
41
41
  dotenv: "^16.4.7",
42
42
  express: "^4.18.2",
43
43
  inquirer: "^12.3.0",
44
- papaparse: "5.4.1",
45
44
  pg: "^8.16.3",
46
45
  "pg-node-migrations": "0.0.8",
47
46
  stripe: "^17.7.0",
@@ -53,7 +52,6 @@ var package_default = {
53
52
  "@types/express": "^4.17.21",
54
53
  "@types/inquirer": "^9.0.7",
55
54
  "@types/node": "^24.10.1",
56
- "@types/papaparse": "5.3.16",
57
55
  "@types/pg": "^8.15.5",
58
56
  "@types/ws": "^8.5.13",
59
57
  "@types/yesql": "^4.1.4",