@stripe/extensibility-script-build-tools 1.5.6 → 1.5.7

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.
Files changed (26) hide show
  1. package/dist/index.cjs +120 -189
  2. package/dist/index.js +120 -189
  3. package/dist/runtime-introspect.d.ts.map +1 -1
  4. package/dist/sdk-types/extensions/billing/bill/discount_calculation.d.ts +7 -10
  5. package/dist/sdk-types/extensions/billing/bill/discount_calculation.d.ts.map +1 -1
  6. package/dist/sdk-types/extensions/billing/customer_balance_application.d.ts +7 -9
  7. package/dist/sdk-types/extensions/billing/customer_balance_application.d.ts.map +1 -1
  8. package/dist/sdk-types/extensions/billing/invoice_collection_setting.d.ts +15 -19
  9. package/dist/sdk-types/extensions/billing/invoice_collection_setting.d.ts.map +1 -1
  10. package/dist/sdk-types/extensions/billing/prorations.d.ts +25 -34
  11. package/dist/sdk-types/extensions/billing/prorations.d.ts.map +1 -1
  12. package/dist/sdk-types/extensions/billing/recurring_billing_item_handling.d.ts +29 -47
  13. package/dist/sdk-types/extensions/billing/recurring_billing_item_handling.d.ts.map +1 -1
  14. package/dist/sdk-types/extensions/billing/types.d.ts +4 -4
  15. package/dist/sdk-types/extensions/core/workflows/custom_action.d.ts +7 -12
  16. package/dist/sdk-types/extensions/core/workflows/custom_action.d.ts.map +1 -1
  17. package/dist/sdk-types/extensions/extend/workflows/custom_action.d.ts +7 -12
  18. package/dist/sdk-types/extensions/extend/workflows/custom_action.d.ts.map +1 -1
  19. package/dist/sdk-types/extensions/index.d.ts +6 -2
  20. package/dist/sdk-types/extensions/index.d.ts.map +1 -1
  21. package/dist/tsconfig.build.tsbuildinfo +1 -1
  22. package/package.json +3 -3
  23. package/dist/extensibility-script-build-tools-alpha.d.ts +0 -19
  24. package/dist/extensibility-script-build-tools-beta.d.ts +0 -19
  25. package/dist/extensibility-script-build-tools-internal.d.ts +0 -93
  26. package/dist/extensibility-script-build-tools-public.d.ts +0 -19
package/dist/index.js CHANGED
@@ -213461,9 +213461,9 @@ var require_pino_std_serializers = __commonJS({
213461
213461
  }
213462
213462
  });
213463
213463
 
213464
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js
213464
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/caller.js
213465
213465
  var require_caller = __commonJS({
213466
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js"(exports, module) {
213466
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/caller.js"(exports, module) {
213467
213467
  "use strict";
213468
213468
  init_esm_shims();
213469
213469
  function noOpPrepareStackTrace(_, stack) {
@@ -213924,9 +213924,9 @@ var require_redact = __commonJS({
213924
213924
  }
213925
213925
  });
213926
213926
 
213927
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js
213927
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/symbols.js
213928
213928
  var require_symbols = __commonJS({
213929
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js"(exports, module) {
213929
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/symbols.js"(exports, module) {
213930
213930
  "use strict";
213931
213931
  init_esm_shims();
213932
213932
  var setLevelSym = /* @__PURE__ */ Symbol("pino.setLevel");
@@ -213996,9 +213996,9 @@ var require_symbols = __commonJS({
213996
213996
  }
213997
213997
  });
213998
213998
 
213999
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js
213999
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/redaction.js
214000
214000
  var require_redaction = __commonJS({
214001
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js"(exports, module) {
214001
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/redaction.js"(exports, module) {
214002
214002
  "use strict";
214003
214003
  init_esm_shims();
214004
214004
  var Redact = require_redact();
@@ -214079,9 +214079,9 @@ var require_redaction = __commonJS({
214079
214079
  }
214080
214080
  });
214081
214081
 
214082
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/time.js
214082
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/time.js
214083
214083
  var require_time = __commonJS({
214084
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/time.js"(exports, module) {
214084
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/time.js"(exports, module) {
214085
214085
  "use strict";
214086
214086
  init_esm_shims();
214087
214087
  var nullTime = () => "";
@@ -214950,44 +214950,49 @@ var require_on_exit_leak_free = __commonJS({
214950
214950
  }
214951
214951
  });
214952
214952
 
214953
- // ../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/package.json
214953
+ // ../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/package.json
214954
214954
  var require_package = __commonJS({
214955
- "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/package.json"(exports, module) {
214955
+ "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/package.json"(exports, module) {
214956
214956
  module.exports = {
214957
214957
  name: "thread-stream",
214958
- version: "4.0.0",
214958
+ version: "3.1.0",
214959
214959
  description: "A streaming way to send data to a Node.js Worker Thread",
214960
214960
  main: "index.js",
214961
214961
  types: "index.d.ts",
214962
- engines: {
214963
- node: ">=20"
214964
- },
214965
214962
  dependencies: {
214966
214963
  "real-require": "^0.2.0"
214967
214964
  },
214968
214965
  devDependencies: {
214969
- "@types/node": "^22.0.0",
214970
- "@yao-pkg/pkg": "^6.0.0",
214971
- borp: "^0.21.0",
214966
+ "@types/node": "^20.1.0",
214967
+ "@types/tap": "^15.0.0",
214968
+ "@yao-pkg/pkg": "^5.11.5",
214972
214969
  desm: "^1.3.0",
214973
- eslint: "^9.39.1",
214974
214970
  fastbench: "^1.0.1",
214975
214971
  husky: "^9.0.6",
214976
- neostandard: "^0.12.2",
214977
214972
  "pino-elasticsearch": "^8.0.0",
214978
214973
  "sonic-boom": "^4.0.1",
214974
+ standard: "^17.0.0",
214975
+ tap: "^16.2.0",
214979
214976
  "ts-node": "^10.8.0",
214980
- typescript: "~5.7.3"
214977
+ typescript: "^5.3.2",
214978
+ "why-is-node-running": "^2.2.2"
214981
214979
  },
214982
214980
  scripts: {
214983
214981
  build: "tsc --noEmit",
214984
- lint: "eslint",
214985
- test: "npm run lint && npm run build && npm run transpile && borp --pattern 'test/*.test.{js,mjs}'",
214986
- "test:ci": "npm run lint && npm run transpile && borp --pattern 'test/*.test.{js,mjs}'",
214987
- "test:yarn": "npm run transpile && borp --pattern 'test/*.test.js'",
214982
+ test: 'standard && npm run build && npm run transpile && tap "test/**/*.test.*js" && tap --ts test/*.test.*ts',
214983
+ "test:ci": "standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts",
214984
+ "test:ci:js": 'tap --no-check-coverage --timeout=120 --coverage-report=lcovonly "test/**/*.test.*js"',
214985
+ "test:ci:ts": 'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',
214986
+ "test:yarn": 'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',
214988
214987
  transpile: "sh ./test/ts/transpile.sh",
214989
214988
  prepare: "husky install"
214990
214989
  },
214990
+ standard: {
214991
+ ignore: [
214992
+ "test/ts/**/*",
214993
+ "test/syntax-error.mjs"
214994
+ ]
214995
+ },
214991
214996
  repository: {
214992
214997
  type: "git",
214993
214998
  url: "git+https://github.com/mcollina/thread-stream.git"
@@ -215008,63 +215013,68 @@ var require_package = __commonJS({
215008
215013
  }
215009
215014
  });
215010
215015
 
215011
- // ../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/wait.js
215016
+ // ../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js
215012
215017
  var require_wait = __commonJS({
215013
- "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/wait.js"(exports, module) {
215018
+ "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js"(exports, module) {
215014
215019
  "use strict";
215015
215020
  init_esm_shims();
215016
- var WAIT_MS = 1e4;
215021
+ var MAX_TIMEOUT = 1e3;
215017
215022
  function wait(state, index, expected, timeout, done) {
215018
- const max = timeout === Infinity ? Infinity : Date.now() + timeout;
215019
- const check = () => {
215020
- const current = Atomics.load(state, index);
215021
- if (current === expected) {
215022
- done(null, "ok");
215023
- return;
215024
- }
215025
- if (max !== Infinity && Date.now() > max) {
215023
+ const max = Date.now() + timeout;
215024
+ let current = Atomics.load(state, index);
215025
+ if (current === expected) {
215026
+ done(null, "ok");
215027
+ return;
215028
+ }
215029
+ let prior = current;
215030
+ const check = (backoff) => {
215031
+ if (Date.now() > max) {
215026
215032
  done(null, "timed-out");
215027
- return;
215028
- }
215029
- const remaining = max === Infinity ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
215030
- const result = Atomics.waitAsync(state, index, current, remaining);
215031
- if (result.async) {
215032
- result.value.then(check);
215033
215033
  } else {
215034
- setImmediate(check);
215034
+ setTimeout(() => {
215035
+ prior = current;
215036
+ current = Atomics.load(state, index);
215037
+ if (current === prior) {
215038
+ check(backoff >= MAX_TIMEOUT ? MAX_TIMEOUT : backoff * 2);
215039
+ } else {
215040
+ if (current === expected) done(null, "ok");
215041
+ else done(null, "not-equal");
215042
+ }
215043
+ }, backoff);
215035
215044
  }
215036
215045
  };
215037
- check();
215046
+ check(1);
215038
215047
  }
215039
215048
  function waitDiff(state, index, expected, timeout, done) {
215040
- const max = timeout === Infinity ? Infinity : Date.now() + timeout;
215041
- const check = () => {
215042
- const current = Atomics.load(state, index);
215043
- if (current !== expected) {
215044
- done(null, "ok");
215045
- return;
215046
- }
215047
- if (max !== Infinity && Date.now() > max) {
215049
+ const max = Date.now() + timeout;
215050
+ let current = Atomics.load(state, index);
215051
+ if (current !== expected) {
215052
+ done(null, "ok");
215053
+ return;
215054
+ }
215055
+ const check = (backoff) => {
215056
+ if (Date.now() > max) {
215048
215057
  done(null, "timed-out");
215049
- return;
215050
- }
215051
- const remaining = max === Infinity ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
215052
- const result = Atomics.waitAsync(state, index, expected, remaining);
215053
- if (result.async) {
215054
- result.value.then(check);
215055
215058
  } else {
215056
- setImmediate(check);
215059
+ setTimeout(() => {
215060
+ current = Atomics.load(state, index);
215061
+ if (current !== expected) {
215062
+ done(null, "ok");
215063
+ } else {
215064
+ check(backoff >= MAX_TIMEOUT ? MAX_TIMEOUT : backoff * 2);
215065
+ }
215066
+ }, backoff);
215057
215067
  }
215058
215068
  };
215059
- check();
215069
+ check(1);
215060
215070
  }
215061
215071
  module.exports = { wait, waitDiff };
215062
215072
  }
215063
215073
  });
215064
215074
 
215065
- // ../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/indexes.js
215075
+ // ../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js
215066
215076
  var require_indexes = __commonJS({
215067
- "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/indexes.js"(exports, module) {
215077
+ "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js"(exports, module) {
215068
215078
  "use strict";
215069
215079
  init_esm_shims();
215070
215080
  var WRITE_INDEX = 4;
@@ -215076,9 +215086,9 @@ var require_indexes = __commonJS({
215076
215086
  }
215077
215087
  });
215078
215088
 
215079
- // ../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/index.js
215089
+ // ../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/index.js
215080
215090
  var require_thread_stream = __commonJS({
215081
- "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/index.js"(exports, module) {
215091
+ "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/index.js"(exports, module) {
215082
215092
  "use strict";
215083
215093
  init_esm_shims();
215084
215094
  var { version } = require_package();
@@ -215174,7 +215184,6 @@ var require_thread_stream = __commonJS({
215174
215184
  }
215175
215185
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
215176
215186
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
215177
- Atomics.notify(stream[kImpl].state, READ_INDEX);
215178
215187
  while (toWriteBytes > stream[kImpl].data.length) {
215179
215188
  leftover = leftover / 2;
215180
215189
  toWrite = stream[kImpl].buf.slice(0, leftover);
@@ -215191,7 +215200,6 @@ var require_thread_stream = __commonJS({
215191
215200
  stream.flush(() => {
215192
215201
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
215193
215202
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
215194
- Atomics.notify(stream[kImpl].state, READ_INDEX);
215195
215203
  nextFlush(stream);
215196
215204
  });
215197
215205
  } else {
@@ -215454,7 +215462,6 @@ var require_thread_stream = __commonJS({
215454
215462
  flushSync(stream);
215455
215463
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
215456
215464
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
215457
- Atomics.notify(stream[kImpl].state, READ_INDEX);
215458
215465
  continue;
215459
215466
  } else if (leftover < 0) {
215460
215467
  throw new Error("overwritten");
@@ -215468,7 +215475,6 @@ var require_thread_stream = __commonJS({
215468
215475
  flushSync(stream);
215469
215476
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
215470
215477
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
215471
- Atomics.notify(stream[kImpl].state, READ_INDEX);
215472
215478
  while (toWriteBytes > stream[kImpl].buf.length) {
215473
215479
  leftover = leftover / 2;
215474
215480
  toWrite = stream[kImpl].buf.slice(0, leftover);
@@ -215504,16 +215510,14 @@ var require_thread_stream = __commonJS({
215504
215510
  }
215505
215511
  });
215506
215512
 
215507
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js
215513
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/transport.js
215508
215514
  var require_transport = __commonJS({
215509
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js"(exports, module) {
215515
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/transport.js"(exports, module) {
215510
215516
  "use strict";
215511
215517
  init_esm_shims();
215512
215518
  var { createRequire: createRequire3 } = __require("module");
215513
- var { existsSync } = __require("fs");
215514
215519
  var getCallers = require_caller();
215515
215520
  var { join, isAbsolute, sep } = __require("path");
215516
- var { fileURLToPath: fileURLToPath3 } = __require("url");
215517
215521
  var sleep = require_atomic_sleep();
215518
215522
  var onExit = require_on_exit_leak_free();
215519
215523
  var ThreadStream = require_thread_stream();
@@ -215524,96 +215528,7 @@ var require_transport = __commonJS({
215524
215528
  onExit.unregister(stream);
215525
215529
  });
215526
215530
  }
215527
- function hasPreloadFlags() {
215528
- const execArgv = process.execArgv;
215529
- for (let i = 0; i < execArgv.length; i++) {
215530
- const arg = execArgv[i];
215531
- if (arg === "--import" || arg === "--require" || arg === "-r") {
215532
- return true;
215533
- }
215534
- if (arg.startsWith("--import=") || arg.startsWith("--require=") || arg.startsWith("-r=")) {
215535
- return true;
215536
- }
215537
- }
215538
- return false;
215539
- }
215540
- function sanitizeNodeOptions(nodeOptions) {
215541
- const tokens = nodeOptions.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);
215542
- if (!tokens) {
215543
- return nodeOptions;
215544
- }
215545
- const sanitized = [];
215546
- let changed = false;
215547
- for (let i = 0; i < tokens.length; i++) {
215548
- const token = tokens[i];
215549
- if (token === "--require" || token === "-r" || token === "--import") {
215550
- const next = tokens[i + 1];
215551
- if (next && shouldDropPreload(next)) {
215552
- changed = true;
215553
- i++;
215554
- continue;
215555
- }
215556
- sanitized.push(token);
215557
- if (next) {
215558
- sanitized.push(next);
215559
- i++;
215560
- }
215561
- continue;
215562
- }
215563
- if (token.startsWith("--require=") || token.startsWith("-r=") || token.startsWith("--import=")) {
215564
- const value = token.slice(token.indexOf("=") + 1);
215565
- if (shouldDropPreload(value)) {
215566
- changed = true;
215567
- continue;
215568
- }
215569
- }
215570
- sanitized.push(token);
215571
- }
215572
- return changed ? sanitized.join(" ") : nodeOptions;
215573
- }
215574
- function shouldDropPreload(value) {
215575
- const unquoted = stripQuotes(value);
215576
- if (!unquoted) {
215577
- return false;
215578
- }
215579
- let path5 = unquoted;
215580
- if (path5.startsWith("file://")) {
215581
- try {
215582
- path5 = fileURLToPath3(path5);
215583
- } catch {
215584
- return false;
215585
- }
215586
- }
215587
- return isAbsolute(path5) && !existsSync(path5);
215588
- }
215589
- function stripQuotes(value) {
215590
- const first = value[0];
215591
- const last = value[value.length - 1];
215592
- if (first === '"' && last === '"' || first === "'" && last === "'") {
215593
- return value.slice(1, -1);
215594
- }
215595
- return value;
215596
- }
215597
- function buildStream(filename, workerData, workerOpts, sync, name) {
215598
- if (!workerOpts.execArgv && hasPreloadFlags() && __require.main === void 0) {
215599
- workerOpts = {
215600
- ...workerOpts,
215601
- execArgv: []
215602
- };
215603
- }
215604
- if (!workerOpts.env && process.env.NODE_OPTIONS) {
215605
- const nodeOptions = sanitizeNodeOptions(process.env.NODE_OPTIONS);
215606
- if (nodeOptions !== process.env.NODE_OPTIONS) {
215607
- workerOpts = {
215608
- ...workerOpts,
215609
- env: {
215610
- ...process.env,
215611
- NODE_OPTIONS: nodeOptions
215612
- }
215613
- };
215614
- }
215615
- }
215616
- workerOpts = { ...workerOpts, name };
215531
+ function buildStream(filename, workerData, workerOpts, sync) {
215617
215532
  const stream = new ThreadStream({
215618
215533
  filename,
215619
215534
  workerData,
@@ -215659,7 +215574,7 @@ var require_transport = __commonJS({
215659
215574
  ...fullOptions.options
215660
215575
  };
215661
215576
  const callers = typeof caller === "string" ? [caller] : caller;
215662
- const bundlerOverrides = typeof globalThis === "object" && Object.prototype.hasOwnProperty.call(globalThis, "__bundlerPathsOverrides") && globalThis.__bundlerPathsOverrides && typeof globalThis.__bundlerPathsOverrides === "object" ? globalThis.__bundlerPathsOverrides : /* @__PURE__ */ Object.create(null);
215577
+ const bundlerOverrides = "__bundlerPathsOverrides" in globalThis ? globalThis.__bundlerPathsOverrides : {};
215663
215578
  let target = fullOptions.target;
215664
215579
  if (target && targets) {
215665
215580
  throw new Error("only one of target or targets can be specified");
@@ -215698,8 +215613,7 @@ var require_transport = __commonJS({
215698
215613
  options.dedupe = dedupe;
215699
215614
  }
215700
215615
  options.pinoWillSendConfig = true;
215701
- const name = targets || pipeline ? "pino.transport" : target;
215702
- return buildStream(fixTarget(target), options, worker, sync, name);
215616
+ return buildStream(fixTarget(target), options, worker, sync);
215703
215617
  function fixTarget(origin) {
215704
215618
  origin = bundlerOverrides[origin] || origin;
215705
215619
  if (isAbsolute(origin) || origin.indexOf("file://") === 0) {
@@ -215728,9 +215642,9 @@ var require_transport = __commonJS({
215728
215642
  }
215729
215643
  });
215730
215644
 
215731
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js
215645
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/tools.js
215732
215646
  var require_tools = __commonJS({
215733
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js"(exports, module) {
215647
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/tools.js"(exports, module) {
215734
215648
  "use strict";
215735
215649
  init_esm_shims();
215736
215650
  var diagChan = __require("diagnostics_channel");
@@ -215758,9 +215672,17 @@ var require_tools = __commonJS({
215758
215672
  } = require_symbols();
215759
215673
  var { isMainThread } = __require("worker_threads");
215760
215674
  var transport = require_transport();
215761
- var [nodeMajor] = process.versions.node.split(".").map((v) => Number(v));
215762
- var asJsonChan = diagChan.tracingChannel("pino_asJson");
215763
- var asString = nodeMajor >= 25 ? (str) => JSON.stringify(str) : _asString;
215675
+ var asJsonChan;
215676
+ if (typeof diagChan.tracingChannel === "function") {
215677
+ asJsonChan = diagChan.tracingChannel("pino_asJson");
215678
+ } else {
215679
+ asJsonChan = {
215680
+ hasSubscribers: false,
215681
+ traceSync(fn, store, thisArg, ...args) {
215682
+ return fn.call(thisArg, ...args);
215683
+ }
215684
+ };
215685
+ }
215764
215686
  function noop2() {
215765
215687
  }
215766
215688
  function genLog(level, hook) {
@@ -215798,7 +215720,7 @@ var require_tools = __commonJS({
215798
215720
  }
215799
215721
  }
215800
215722
  }
215801
- function _asString(str) {
215723
+ function asString(str) {
215802
215724
  let result = "";
215803
215725
  let last = 0;
215804
215726
  let found = false;
@@ -216058,9 +215980,9 @@ var require_tools = __commonJS({
216058
215980
  }
216059
215981
  });
216060
215982
 
216061
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js
215983
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/constants.js
216062
215984
  var require_constants = __commonJS({
216063
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js"(exports, module) {
215985
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/constants.js"(exports, module) {
216064
215986
  "use strict";
216065
215987
  init_esm_shims();
216066
215988
  var DEFAULT_LEVELS = {
@@ -216082,9 +216004,9 @@ var require_constants = __commonJS({
216082
216004
  }
216083
216005
  });
216084
216006
 
216085
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js
216007
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/levels.js
216086
216008
  var require_levels = __commonJS({
216087
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js"(exports, module) {
216009
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/levels.js"(exports, module) {
216088
216010
  "use strict";
216089
216011
  init_esm_shims();
216090
216012
  var {
@@ -216276,18 +216198,18 @@ var require_levels = __commonJS({
216276
216198
  }
216277
216199
  });
216278
216200
 
216279
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js
216201
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/meta.js
216280
216202
  var require_meta = __commonJS({
216281
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js"(exports, module) {
216203
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/meta.js"(exports, module) {
216282
216204
  "use strict";
216283
216205
  init_esm_shims();
216284
- module.exports = { version: "10.3.1" };
216206
+ module.exports = { version: "9.14.0" };
216285
216207
  }
216286
216208
  });
216287
216209
 
216288
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/proto.js
216210
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/proto.js
216289
216211
  var require_proto = __commonJS({
216290
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/proto.js"(exports, module) {
216212
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/proto.js"(exports, module) {
216291
216213
  "use strict";
216292
216214
  init_esm_shims();
216293
216215
  var { EventEmitter } = __require("events");
@@ -216297,6 +216219,7 @@ var require_proto = __commonJS({
216297
216219
  setLevelSym,
216298
216220
  getLevelSym,
216299
216221
  chindingsSym,
216222
+ parsedChindingsSym,
216300
216223
  mixinSym,
216301
216224
  asJsonSym,
216302
216225
  writeSym,
@@ -216392,6 +216315,7 @@ var require_proto = __commonJS({
216392
216315
  );
216393
216316
  }
216394
216317
  instance[chindingsSym] = asChindings(instance, bindings2);
216318
+ instance[setLevelSym](this.level);
216395
216319
  if (this.onChild !== noop2) {
216396
216320
  this.onChild(instance);
216397
216321
  }
@@ -216447,10 +216371,8 @@ var require_proto = __commonJS({
216447
216371
  instance[msgPrefixSym] = (this[msgPrefixSym] || "") + options.msgPrefix;
216448
216372
  }
216449
216373
  instance[chindingsSym] = asChindings(instance, bindings2);
216450
- if (options.level !== void 0 && options.level !== this.level || options.hasOwnProperty("customLevels")) {
216451
- const childLevel = options.level || this.level;
216452
- instance[setLevelSym](childLevel);
216453
- }
216374
+ const childLevel = options.level || this.level;
216375
+ instance[setLevelSym](childLevel);
216454
216376
  this.onChild(instance);
216455
216377
  return instance;
216456
216378
  }
@@ -216465,6 +216387,7 @@ var require_proto = __commonJS({
216465
216387
  function setBindings(newBindings) {
216466
216388
  const chindings = asChindings(this, newBindings);
216467
216389
  this[chindingsSym] = chindings;
216390
+ delete this[parsedChindingsSym];
216468
216391
  }
216469
216392
  function defaultMixinMergeStrategy(mergeObject, mixinObject) {
216470
216393
  return Object.assign(mixinObject, mergeObject);
@@ -217113,9 +217036,9 @@ ${originalIndentation}`;
217113
217036
  }
217114
217037
  });
217115
217038
 
217116
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/multistream.js
217039
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/multistream.js
217117
217040
  var require_multistream = __commonJS({
217118
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/multistream.js"(exports, module) {
217041
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/multistream.js"(exports, module) {
217119
217042
  "use strict";
217120
217043
  init_esm_shims();
217121
217044
  var metadata = /* @__PURE__ */ Symbol.for("pino.metadata");
@@ -217282,9 +217205,9 @@ var require_multistream = __commonJS({
217282
217205
  }
217283
217206
  });
217284
217207
 
217285
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/pino.js
217208
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/pino.js
217286
217209
  var require_pino = __commonJS({
217287
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/pino.js"(exports, module) {
217210
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/pino.js"(exports, module) {
217288
217211
  "use strict";
217289
217212
  init_esm_shims();
217290
217213
  var os = __require("os");
@@ -226997,6 +226920,7 @@ var INJECTED_NAMES = [
226997
226920
 
226998
226921
  // src/runtime-introspect.ts
226999
226922
  var SDK_EXTENSIONS_SUBPATH = `${SDK_PACKAGE_NAME}/extensions`;
226923
+ var SDK_ROOT_PACKAGE = SDK_PACKAGE_NAME;
227000
226924
  function getSdkExtensionsDir() {
227001
226925
  return path2.resolve(
227002
226926
  path2.dirname(fileURLToPath2(import.meta.url)),
@@ -227052,7 +226976,14 @@ function resolveExtension(entryPoint) {
227052
226976
  compilerOptions: {
227053
226977
  moduleResolution: ts.ModuleResolutionKind.Bundler,
227054
226978
  baseUrl: sdkExtensionsDir,
226979
+ // Both paths resolve to the extensions barrel (index.d.ts) in the bundled
226980
+ // SDK types directory. This is intentional: resolveExtension only needs to
226981
+ // resolve extension interface types from implements clauses, not the full
226982
+ // root barrel. The root mapping exists because fixtures import from
226983
+ // '@stripe/extensibility-sdk' (root); the subpath mapping exists for
226984
+ // backward compat with fixtures that still use '/extensions'.
227055
226985
  paths: {
226986
+ [SDK_ROOT_PACKAGE]: ["./index.d.ts"],
227056
226987
  [SDK_EXTENSIONS_SUBPATH]: ["./index.d.ts"]
227057
226988
  }
227058
226989
  },
@@ -237509,7 +237440,7 @@ function isStdlibDecimalType(type) {
237509
237440
  });
237510
237441
  });
237511
237442
  }
237512
- var STDLIB_IMPORT_PATH = "@stripe/extensibility-sdk/stdlib";
237443
+ var STDLIB_IMPORT_PATH = "@stripe/extensibility-sdk";
237513
237444
  function generateConfigDescriptor(result) {
237514
237445
  const usedImports = /* @__PURE__ */ new Set();
237515
237446
  const usedTypeImports = /* @__PURE__ */ new Set();
@@ -237643,7 +237574,7 @@ var _BuildSystemError = class extends Error {
237643
237574
  };
237644
237575
 
237645
237576
  // src/plugin.ts
237646
- var SDK_EXTENSIONS_IMPORT = `${SDK_PACKAGE_NAME}/extensions`;
237577
+ var SDK_EXTENSIONS_IMPORT = SDK_PACKAGE_NAME;
237647
237578
  var NAMESPACE = "platform-dispatch";
237648
237579
  var COMMENTS_AND_STRINGS_RE = /\/\*[\s\S]*?\*\/|\/\/[^\n]*|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/g;
237649
237580
  function stripCommentsAndStrings(source) {
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-introspect.d.ts","sourceRoot":"","sources":["../src/runtime-introspect.ts"],"names":[],"mappings":"AAUA,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,YAAY,CAAC;AAiHpB;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG;IACpD,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACzC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CA8CA"}
1
+ {"version":3,"file":"runtime-introspect.d.ts","sourceRoot":"","sources":["../src/runtime-introspect.ts"],"names":[],"mappings":"AAUA,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,YAAY,CAAC;AAkHpB;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG;IACpD,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACzC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAqDA"}
@@ -4,7 +4,7 @@ import type { Decimal, _ConfigApplicationContext } from '../../../stdlib/index.j
4
4
  /** @public */
5
5
  export declare namespace DiscountCalculation {
6
6
  /** @public */
7
- type BillingReason = 'automatic_pending_invoice_item_invoice' | 'manual' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_cancel' | 'subscription_threshold' | 'subscription_trial_ended' | 'subscription_update' | 'upcoming' | 'quote_accept';
7
+ type BillingReason = 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription_cancel' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_trial_ended' | 'subscription_update' | 'subscription' | 'upcoming';
8
8
  /** @public */
9
9
  type PricingTierMode = 'graduated' | 'volume';
10
10
  /** @public */
@@ -14,7 +14,7 @@ export declare namespace DiscountCalculation {
14
14
  /** @public */
15
15
  type UsageType = 'licensed' | 'metered';
16
16
  /** @public */
17
- type RecurringPriceInterval = 'day' | 'week' | 'month' | 'year';
17
+ type RecurringPriceInterval = 'day' | 'month' | 'week' | 'year';
18
18
  /**
19
19
  * The result of a discount calculation.
20
20
  * @public
@@ -174,9 +174,7 @@ export declare namespace DiscountCalculation {
174
174
  */
175
175
  function prepareResultComputeDiscounts(result: DiscountResult): DiscountResult;
176
176
  /** @internal */
177
- function $platformWrapComputeDiscounts(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => {
178
- computeDiscounts(...a: unknown[]): unknown;
179
- }, wireArgs: unknown, wireConfig: unknown, ctx: unknown) => unknown;
177
+ function $platformWrapComputeDiscounts(configTransformer?: (wireConfig: unknown, appCtx: _ConfigApplicationContext) => unknown): (cls: new () => { computeDiscounts(...a: unknown[]): unknown }, wireArgs: unknown, wireConfig: unknown, ctx: unknown) => unknown;
180
178
  /**
181
179
  * @public
182
180
  * @deprecated Platform dispatch handles wire/SDK conversion.
@@ -191,16 +189,15 @@ export declare namespace DiscountCalculation {
191
189
  * Computes discount amounts for a discountable item and returns a discount result.
192
190
  * @public
193
191
  */
194
- type ComputeDiscountsFunction<Config extends Record<string, unknown>> = (request: DiscountableItem, config: Config, context: Context) => DiscountResult;
192
+ type ComputeDiscountsFunction<Config> = (request: DiscountableItem, config: Config, context: Context) => DiscountResult;
195
193
  }
196
194
  /**
197
195
  * @example
198
196
  * ```ts
199
- * import type { Billing } from '@stripe/extensibility-sdk/extensions';
200
- * import type { Context } from '@stripe/extensibility-sdk/extensions';
197
+ * import type { Billing, Context } from '@stripe/extensibility-sdk';
201
198
  *
202
199
  * // eslint-disable-next-line @typescript-eslint/no-empty-object-type
203
- * interface MyDiscountCalculationConfig extends Record<string, unknown> {}
200
+ * interface MyDiscountCalculationConfig {}
204
201
  *
205
202
  * export default class MyDiscountCalculation implements Billing.Bill
206
203
  * .DiscountCalculation<MyDiscountCalculationConfig> {
@@ -220,7 +217,7 @@ export declare namespace DiscountCalculation {
220
217
  * ```
221
218
  * @public
222
219
  */
223
- export interface DiscountCalculation<Config extends Record<string, unknown>> {
220
+ export interface DiscountCalculation<Config> {
224
221
  computeDiscounts: DiscountCalculation.ComputeDiscountsFunction<Config>;
225
222
  }
226
223
  //# sourceMappingURL=discount_calculation.d.ts.map