@stripe/extensibility-script-build-tools 1.5.4 → 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.cjs CHANGED
@@ -213457,9 +213457,9 @@ var require_pino_std_serializers = __commonJS({
213457
213457
  }
213458
213458
  });
213459
213459
 
213460
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js
213460
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/caller.js
213461
213461
  var require_caller = __commonJS({
213462
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/caller.js"(exports2, module2) {
213462
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/caller.js"(exports2, module2) {
213463
213463
  "use strict";
213464
213464
  init_cjs_shims();
213465
213465
  function noOpPrepareStackTrace(_, stack) {
@@ -213920,9 +213920,9 @@ var require_redact = __commonJS({
213920
213920
  }
213921
213921
  });
213922
213922
 
213923
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js
213923
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/symbols.js
213924
213924
  var require_symbols = __commonJS({
213925
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/symbols.js"(exports2, module2) {
213925
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/symbols.js"(exports2, module2) {
213926
213926
  "use strict";
213927
213927
  init_cjs_shims();
213928
213928
  var setLevelSym = /* @__PURE__ */ Symbol("pino.setLevel");
@@ -213992,9 +213992,9 @@ var require_symbols = __commonJS({
213992
213992
  }
213993
213993
  });
213994
213994
 
213995
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js
213995
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/redaction.js
213996
213996
  var require_redaction = __commonJS({
213997
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/redaction.js"(exports2, module2) {
213997
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/redaction.js"(exports2, module2) {
213998
213998
  "use strict";
213999
213999
  init_cjs_shims();
214000
214000
  var Redact = require_redact();
@@ -214075,9 +214075,9 @@ var require_redaction = __commonJS({
214075
214075
  }
214076
214076
  });
214077
214077
 
214078
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/time.js
214078
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/time.js
214079
214079
  var require_time = __commonJS({
214080
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/time.js"(exports2, module2) {
214080
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/time.js"(exports2, module2) {
214081
214081
  "use strict";
214082
214082
  init_cjs_shims();
214083
214083
  var nullTime = () => "";
@@ -214946,44 +214946,49 @@ var require_on_exit_leak_free = __commonJS({
214946
214946
  }
214947
214947
  });
214948
214948
 
214949
- // ../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/package.json
214949
+ // ../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/package.json
214950
214950
  var require_package = __commonJS({
214951
- "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/package.json"(exports2, module2) {
214951
+ "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/package.json"(exports2, module2) {
214952
214952
  module2.exports = {
214953
214953
  name: "thread-stream",
214954
- version: "4.0.0",
214954
+ version: "3.1.0",
214955
214955
  description: "A streaming way to send data to a Node.js Worker Thread",
214956
214956
  main: "index.js",
214957
214957
  types: "index.d.ts",
214958
- engines: {
214959
- node: ">=20"
214960
- },
214961
214958
  dependencies: {
214962
214959
  "real-require": "^0.2.0"
214963
214960
  },
214964
214961
  devDependencies: {
214965
- "@types/node": "^22.0.0",
214966
- "@yao-pkg/pkg": "^6.0.0",
214967
- borp: "^0.21.0",
214962
+ "@types/node": "^20.1.0",
214963
+ "@types/tap": "^15.0.0",
214964
+ "@yao-pkg/pkg": "^5.11.5",
214968
214965
  desm: "^1.3.0",
214969
- eslint: "^9.39.1",
214970
214966
  fastbench: "^1.0.1",
214971
214967
  husky: "^9.0.6",
214972
- neostandard: "^0.12.2",
214973
214968
  "pino-elasticsearch": "^8.0.0",
214974
214969
  "sonic-boom": "^4.0.1",
214970
+ standard: "^17.0.0",
214971
+ tap: "^16.2.0",
214975
214972
  "ts-node": "^10.8.0",
214976
- typescript: "~5.7.3"
214973
+ typescript: "^5.3.2",
214974
+ "why-is-node-running": "^2.2.2"
214977
214975
  },
214978
214976
  scripts: {
214979
214977
  build: "tsc --noEmit",
214980
- lint: "eslint",
214981
- test: "npm run lint && npm run build && npm run transpile && borp --pattern 'test/*.test.{js,mjs}'",
214982
- "test:ci": "npm run lint && npm run transpile && borp --pattern 'test/*.test.{js,mjs}'",
214983
- "test:yarn": "npm run transpile && borp --pattern 'test/*.test.js'",
214978
+ test: 'standard && npm run build && npm run transpile && tap "test/**/*.test.*js" && tap --ts test/*.test.*ts',
214979
+ "test:ci": "standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts",
214980
+ "test:ci:js": 'tap --no-check-coverage --timeout=120 --coverage-report=lcovonly "test/**/*.test.*js"',
214981
+ "test:ci:ts": 'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',
214982
+ "test:yarn": 'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',
214984
214983
  transpile: "sh ./test/ts/transpile.sh",
214985
214984
  prepare: "husky install"
214986
214985
  },
214986
+ standard: {
214987
+ ignore: [
214988
+ "test/ts/**/*",
214989
+ "test/syntax-error.mjs"
214990
+ ]
214991
+ },
214987
214992
  repository: {
214988
214993
  type: "git",
214989
214994
  url: "git+https://github.com/mcollina/thread-stream.git"
@@ -215004,63 +215009,68 @@ var require_package = __commonJS({
215004
215009
  }
215005
215010
  });
215006
215011
 
215007
- // ../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/wait.js
215012
+ // ../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js
215008
215013
  var require_wait = __commonJS({
215009
- "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/wait.js"(exports2, module2) {
215014
+ "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/wait.js"(exports2, module2) {
215010
215015
  "use strict";
215011
215016
  init_cjs_shims();
215012
- var WAIT_MS = 1e4;
215017
+ var MAX_TIMEOUT = 1e3;
215013
215018
  function wait(state, index, expected, timeout, done) {
215014
- const max = timeout === Infinity ? Infinity : Date.now() + timeout;
215015
- const check = () => {
215016
- const current = Atomics.load(state, index);
215017
- if (current === expected) {
215018
- done(null, "ok");
215019
- return;
215020
- }
215021
- if (max !== Infinity && Date.now() > max) {
215019
+ const max = Date.now() + timeout;
215020
+ let current = Atomics.load(state, index);
215021
+ if (current === expected) {
215022
+ done(null, "ok");
215023
+ return;
215024
+ }
215025
+ let prior = current;
215026
+ const check = (backoff) => {
215027
+ if (Date.now() > max) {
215022
215028
  done(null, "timed-out");
215023
- return;
215024
- }
215025
- const remaining = max === Infinity ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
215026
- const result = Atomics.waitAsync(state, index, current, remaining);
215027
- if (result.async) {
215028
- result.value.then(check);
215029
215029
  } else {
215030
- setImmediate(check);
215030
+ setTimeout(() => {
215031
+ prior = current;
215032
+ current = Atomics.load(state, index);
215033
+ if (current === prior) {
215034
+ check(backoff >= MAX_TIMEOUT ? MAX_TIMEOUT : backoff * 2);
215035
+ } else {
215036
+ if (current === expected) done(null, "ok");
215037
+ else done(null, "not-equal");
215038
+ }
215039
+ }, backoff);
215031
215040
  }
215032
215041
  };
215033
- check();
215042
+ check(1);
215034
215043
  }
215035
215044
  function waitDiff(state, index, expected, timeout, done) {
215036
- const max = timeout === Infinity ? Infinity : Date.now() + timeout;
215037
- const check = () => {
215038
- const current = Atomics.load(state, index);
215039
- if (current !== expected) {
215040
- done(null, "ok");
215041
- return;
215042
- }
215043
- if (max !== Infinity && Date.now() > max) {
215045
+ const max = Date.now() + timeout;
215046
+ let current = Atomics.load(state, index);
215047
+ if (current !== expected) {
215048
+ done(null, "ok");
215049
+ return;
215050
+ }
215051
+ const check = (backoff) => {
215052
+ if (Date.now() > max) {
215044
215053
  done(null, "timed-out");
215045
- return;
215046
- }
215047
- const remaining = max === Infinity ? WAIT_MS : Math.min(WAIT_MS, Math.max(1, max - Date.now()));
215048
- const result = Atomics.waitAsync(state, index, expected, remaining);
215049
- if (result.async) {
215050
- result.value.then(check);
215051
215054
  } else {
215052
- setImmediate(check);
215055
+ setTimeout(() => {
215056
+ current = Atomics.load(state, index);
215057
+ if (current !== expected) {
215058
+ done(null, "ok");
215059
+ } else {
215060
+ check(backoff >= MAX_TIMEOUT ? MAX_TIMEOUT : backoff * 2);
215061
+ }
215062
+ }, backoff);
215053
215063
  }
215054
215064
  };
215055
- check();
215065
+ check(1);
215056
215066
  }
215057
215067
  module2.exports = { wait, waitDiff };
215058
215068
  }
215059
215069
  });
215060
215070
 
215061
- // ../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/indexes.js
215071
+ // ../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js
215062
215072
  var require_indexes = __commonJS({
215063
- "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/lib/indexes.js"(exports2, module2) {
215073
+ "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/lib/indexes.js"(exports2, module2) {
215064
215074
  "use strict";
215065
215075
  init_cjs_shims();
215066
215076
  var WRITE_INDEX = 4;
@@ -215072,9 +215082,9 @@ var require_indexes = __commonJS({
215072
215082
  }
215073
215083
  });
215074
215084
 
215075
- // ../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/index.js
215085
+ // ../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/index.js
215076
215086
  var require_thread_stream = __commonJS({
215077
- "../../node_modules/.pnpm/thread-stream@4.0.0/node_modules/thread-stream/index.js"(exports2, module2) {
215087
+ "../../node_modules/.pnpm/thread-stream@3.1.0/node_modules/thread-stream/index.js"(exports2, module2) {
215078
215088
  "use strict";
215079
215089
  init_cjs_shims();
215080
215090
  var { version } = require_package();
@@ -215170,7 +215180,6 @@ var require_thread_stream = __commonJS({
215170
215180
  }
215171
215181
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
215172
215182
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
215173
- Atomics.notify(stream[kImpl].state, READ_INDEX);
215174
215183
  while (toWriteBytes > stream[kImpl].data.length) {
215175
215184
  leftover = leftover / 2;
215176
215185
  toWrite = stream[kImpl].buf.slice(0, leftover);
@@ -215187,7 +215196,6 @@ var require_thread_stream = __commonJS({
215187
215196
  stream.flush(() => {
215188
215197
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
215189
215198
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
215190
- Atomics.notify(stream[kImpl].state, READ_INDEX);
215191
215199
  nextFlush(stream);
215192
215200
  });
215193
215201
  } else {
@@ -215450,7 +215458,6 @@ var require_thread_stream = __commonJS({
215450
215458
  flushSync(stream);
215451
215459
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
215452
215460
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
215453
- Atomics.notify(stream[kImpl].state, READ_INDEX);
215454
215461
  continue;
215455
215462
  } else if (leftover < 0) {
215456
215463
  throw new Error("overwritten");
@@ -215464,7 +215471,6 @@ var require_thread_stream = __commonJS({
215464
215471
  flushSync(stream);
215465
215472
  Atomics.store(stream[kImpl].state, READ_INDEX, 0);
215466
215473
  Atomics.store(stream[kImpl].state, WRITE_INDEX, 0);
215467
- Atomics.notify(stream[kImpl].state, READ_INDEX);
215468
215474
  while (toWriteBytes > stream[kImpl].buf.length) {
215469
215475
  leftover = leftover / 2;
215470
215476
  toWrite = stream[kImpl].buf.slice(0, leftover);
@@ -215500,16 +215506,14 @@ var require_thread_stream = __commonJS({
215500
215506
  }
215501
215507
  });
215502
215508
 
215503
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js
215509
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/transport.js
215504
215510
  var require_transport = __commonJS({
215505
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/transport.js"(exports2, module2) {
215511
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/transport.js"(exports2, module2) {
215506
215512
  "use strict";
215507
215513
  init_cjs_shims();
215508
215514
  var { createRequire: createRequire3 } = require("module");
215509
- var { existsSync } = require("fs");
215510
215515
  var getCallers = require_caller();
215511
215516
  var { join, isAbsolute, sep } = require("path");
215512
- var { fileURLToPath: fileURLToPath2 } = require("url");
215513
215517
  var sleep = require_atomic_sleep();
215514
215518
  var onExit = require_on_exit_leak_free();
215515
215519
  var ThreadStream = require_thread_stream();
@@ -215520,96 +215524,7 @@ var require_transport = __commonJS({
215520
215524
  onExit.unregister(stream);
215521
215525
  });
215522
215526
  }
215523
- function hasPreloadFlags() {
215524
- const execArgv = process.execArgv;
215525
- for (let i = 0; i < execArgv.length; i++) {
215526
- const arg = execArgv[i];
215527
- if (arg === "--import" || arg === "--require" || arg === "-r") {
215528
- return true;
215529
- }
215530
- if (arg.startsWith("--import=") || arg.startsWith("--require=") || arg.startsWith("-r=")) {
215531
- return true;
215532
- }
215533
- }
215534
- return false;
215535
- }
215536
- function sanitizeNodeOptions(nodeOptions) {
215537
- const tokens = nodeOptions.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);
215538
- if (!tokens) {
215539
- return nodeOptions;
215540
- }
215541
- const sanitized = [];
215542
- let changed = false;
215543
- for (let i = 0; i < tokens.length; i++) {
215544
- const token = tokens[i];
215545
- if (token === "--require" || token === "-r" || token === "--import") {
215546
- const next = tokens[i + 1];
215547
- if (next && shouldDropPreload(next)) {
215548
- changed = true;
215549
- i++;
215550
- continue;
215551
- }
215552
- sanitized.push(token);
215553
- if (next) {
215554
- sanitized.push(next);
215555
- i++;
215556
- }
215557
- continue;
215558
- }
215559
- if (token.startsWith("--require=") || token.startsWith("-r=") || token.startsWith("--import=")) {
215560
- const value = token.slice(token.indexOf("=") + 1);
215561
- if (shouldDropPreload(value)) {
215562
- changed = true;
215563
- continue;
215564
- }
215565
- }
215566
- sanitized.push(token);
215567
- }
215568
- return changed ? sanitized.join(" ") : nodeOptions;
215569
- }
215570
- function shouldDropPreload(value) {
215571
- const unquoted = stripQuotes(value);
215572
- if (!unquoted) {
215573
- return false;
215574
- }
215575
- let path4 = unquoted;
215576
- if (path4.startsWith("file://")) {
215577
- try {
215578
- path4 = fileURLToPath2(path4);
215579
- } catch {
215580
- return false;
215581
- }
215582
- }
215583
- return isAbsolute(path4) && !existsSync(path4);
215584
- }
215585
- function stripQuotes(value) {
215586
- const first = value[0];
215587
- const last = value[value.length - 1];
215588
- if (first === '"' && last === '"' || first === "'" && last === "'") {
215589
- return value.slice(1, -1);
215590
- }
215591
- return value;
215592
- }
215593
- function buildStream(filename, workerData, workerOpts, sync, name) {
215594
- if (!workerOpts.execArgv && hasPreloadFlags() && require.main === void 0) {
215595
- workerOpts = {
215596
- ...workerOpts,
215597
- execArgv: []
215598
- };
215599
- }
215600
- if (!workerOpts.env && process.env.NODE_OPTIONS) {
215601
- const nodeOptions = sanitizeNodeOptions(process.env.NODE_OPTIONS);
215602
- if (nodeOptions !== process.env.NODE_OPTIONS) {
215603
- workerOpts = {
215604
- ...workerOpts,
215605
- env: {
215606
- ...process.env,
215607
- NODE_OPTIONS: nodeOptions
215608
- }
215609
- };
215610
- }
215611
- }
215612
- workerOpts = { ...workerOpts, name };
215527
+ function buildStream(filename, workerData, workerOpts, sync) {
215613
215528
  const stream = new ThreadStream({
215614
215529
  filename,
215615
215530
  workerData,
@@ -215655,7 +215570,7 @@ var require_transport = __commonJS({
215655
215570
  ...fullOptions.options
215656
215571
  };
215657
215572
  const callers = typeof caller === "string" ? [caller] : caller;
215658
- const bundlerOverrides = typeof globalThis === "object" && Object.prototype.hasOwnProperty.call(globalThis, "__bundlerPathsOverrides") && globalThis.__bundlerPathsOverrides && typeof globalThis.__bundlerPathsOverrides === "object" ? globalThis.__bundlerPathsOverrides : /* @__PURE__ */ Object.create(null);
215573
+ const bundlerOverrides = "__bundlerPathsOverrides" in globalThis ? globalThis.__bundlerPathsOverrides : {};
215659
215574
  let target = fullOptions.target;
215660
215575
  if (target && targets) {
215661
215576
  throw new Error("only one of target or targets can be specified");
@@ -215694,8 +215609,7 @@ var require_transport = __commonJS({
215694
215609
  options.dedupe = dedupe;
215695
215610
  }
215696
215611
  options.pinoWillSendConfig = true;
215697
- const name = targets || pipeline ? "pino.transport" : target;
215698
- return buildStream(fixTarget(target), options, worker, sync, name);
215612
+ return buildStream(fixTarget(target), options, worker, sync);
215699
215613
  function fixTarget(origin) {
215700
215614
  origin = bundlerOverrides[origin] || origin;
215701
215615
  if (isAbsolute(origin) || origin.indexOf("file://") === 0) {
@@ -215724,9 +215638,9 @@ var require_transport = __commonJS({
215724
215638
  }
215725
215639
  });
215726
215640
 
215727
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js
215641
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/tools.js
215728
215642
  var require_tools = __commonJS({
215729
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/tools.js"(exports2, module2) {
215643
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/tools.js"(exports2, module2) {
215730
215644
  "use strict";
215731
215645
  init_cjs_shims();
215732
215646
  var diagChan = require("diagnostics_channel");
@@ -215754,9 +215668,17 @@ var require_tools = __commonJS({
215754
215668
  } = require_symbols();
215755
215669
  var { isMainThread } = require("worker_threads");
215756
215670
  var transport = require_transport();
215757
- var [nodeMajor] = process.versions.node.split(".").map((v) => Number(v));
215758
- var asJsonChan = diagChan.tracingChannel("pino_asJson");
215759
- var asString = nodeMajor >= 25 ? (str) => JSON.stringify(str) : _asString;
215671
+ var asJsonChan;
215672
+ if (typeof diagChan.tracingChannel === "function") {
215673
+ asJsonChan = diagChan.tracingChannel("pino_asJson");
215674
+ } else {
215675
+ asJsonChan = {
215676
+ hasSubscribers: false,
215677
+ traceSync(fn, store, thisArg, ...args) {
215678
+ return fn.call(thisArg, ...args);
215679
+ }
215680
+ };
215681
+ }
215760
215682
  function noop2() {
215761
215683
  }
215762
215684
  function genLog(level, hook) {
@@ -215794,7 +215716,7 @@ var require_tools = __commonJS({
215794
215716
  }
215795
215717
  }
215796
215718
  }
215797
- function _asString(str) {
215719
+ function asString(str) {
215798
215720
  let result = "";
215799
215721
  let last = 0;
215800
215722
  let found = false;
@@ -216054,9 +215976,9 @@ var require_tools = __commonJS({
216054
215976
  }
216055
215977
  });
216056
215978
 
216057
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js
215979
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/constants.js
216058
215980
  var require_constants = __commonJS({
216059
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/constants.js"(exports2, module2) {
215981
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/constants.js"(exports2, module2) {
216060
215982
  "use strict";
216061
215983
  init_cjs_shims();
216062
215984
  var DEFAULT_LEVELS = {
@@ -216078,9 +216000,9 @@ var require_constants = __commonJS({
216078
216000
  }
216079
216001
  });
216080
216002
 
216081
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js
216003
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/levels.js
216082
216004
  var require_levels = __commonJS({
216083
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/levels.js"(exports2, module2) {
216005
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/levels.js"(exports2, module2) {
216084
216006
  "use strict";
216085
216007
  init_cjs_shims();
216086
216008
  var {
@@ -216272,18 +216194,18 @@ var require_levels = __commonJS({
216272
216194
  }
216273
216195
  });
216274
216196
 
216275
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js
216197
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/meta.js
216276
216198
  var require_meta = __commonJS({
216277
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/meta.js"(exports2, module2) {
216199
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/meta.js"(exports2, module2) {
216278
216200
  "use strict";
216279
216201
  init_cjs_shims();
216280
- module2.exports = { version: "10.3.1" };
216202
+ module2.exports = { version: "9.14.0" };
216281
216203
  }
216282
216204
  });
216283
216205
 
216284
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/proto.js
216206
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/proto.js
216285
216207
  var require_proto = __commonJS({
216286
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/proto.js"(exports2, module2) {
216208
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/proto.js"(exports2, module2) {
216287
216209
  "use strict";
216288
216210
  init_cjs_shims();
216289
216211
  var { EventEmitter } = require("events");
@@ -216293,6 +216215,7 @@ var require_proto = __commonJS({
216293
216215
  setLevelSym,
216294
216216
  getLevelSym,
216295
216217
  chindingsSym,
216218
+ parsedChindingsSym,
216296
216219
  mixinSym,
216297
216220
  asJsonSym,
216298
216221
  writeSym,
@@ -216388,6 +216311,7 @@ var require_proto = __commonJS({
216388
216311
  );
216389
216312
  }
216390
216313
  instance[chindingsSym] = asChindings(instance, bindings2);
216314
+ instance[setLevelSym](this.level);
216391
216315
  if (this.onChild !== noop2) {
216392
216316
  this.onChild(instance);
216393
216317
  }
@@ -216443,10 +216367,8 @@ var require_proto = __commonJS({
216443
216367
  instance[msgPrefixSym] = (this[msgPrefixSym] || "") + options.msgPrefix;
216444
216368
  }
216445
216369
  instance[chindingsSym] = asChindings(instance, bindings2);
216446
- if (options.level !== void 0 && options.level !== this.level || options.hasOwnProperty("customLevels")) {
216447
- const childLevel = options.level || this.level;
216448
- instance[setLevelSym](childLevel);
216449
- }
216370
+ const childLevel = options.level || this.level;
216371
+ instance[setLevelSym](childLevel);
216450
216372
  this.onChild(instance);
216451
216373
  return instance;
216452
216374
  }
@@ -216461,6 +216383,7 @@ var require_proto = __commonJS({
216461
216383
  function setBindings(newBindings) {
216462
216384
  const chindings = asChindings(this, newBindings);
216463
216385
  this[chindingsSym] = chindings;
216386
+ delete this[parsedChindingsSym];
216464
216387
  }
216465
216388
  function defaultMixinMergeStrategy(mergeObject, mixinObject) {
216466
216389
  return Object.assign(mixinObject, mergeObject);
@@ -217109,9 +217032,9 @@ ${originalIndentation}`;
217109
217032
  }
217110
217033
  });
217111
217034
 
217112
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/multistream.js
217035
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/multistream.js
217113
217036
  var require_multistream = __commonJS({
217114
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/lib/multistream.js"(exports2, module2) {
217037
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/lib/multistream.js"(exports2, module2) {
217115
217038
  "use strict";
217116
217039
  init_cjs_shims();
217117
217040
  var metadata = /* @__PURE__ */ Symbol.for("pino.metadata");
@@ -217278,9 +217201,9 @@ var require_multistream = __commonJS({
217278
217201
  }
217279
217202
  });
217280
217203
 
217281
- // ../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/pino.js
217204
+ // ../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/pino.js
217282
217205
  var require_pino = __commonJS({
217283
- "../../node_modules/.pnpm/pino@10.3.1/node_modules/pino/pino.js"(exports2, module2) {
217206
+ "../../node_modules/.pnpm/pino@9.14.0/node_modules/pino/pino.js"(exports2, module2) {
217284
217207
  "use strict";
217285
217208
  init_cjs_shims();
217286
217209
  var os = require("os");
@@ -227003,6 +226926,7 @@ var INJECTED_NAMES = [
227003
226926
 
227004
226927
  // src/runtime-introspect.ts
227005
226928
  var SDK_EXTENSIONS_SUBPATH = `${SDK_PACKAGE_NAME}/extensions`;
226929
+ var SDK_ROOT_PACKAGE = SDK_PACKAGE_NAME;
227006
226930
  function getSdkExtensionsDir() {
227007
226931
  return path.resolve(
227008
226932
  path.dirname((0, import_node_url.fileURLToPath)(importMetaUrl)),
@@ -227058,7 +226982,14 @@ function resolveExtension(entryPoint) {
227058
226982
  compilerOptions: {
227059
226983
  moduleResolution: import_ts_morph.ts.ModuleResolutionKind.Bundler,
227060
226984
  baseUrl: sdkExtensionsDir,
226985
+ // Both paths resolve to the extensions barrel (index.d.ts) in the bundled
226986
+ // SDK types directory. This is intentional: resolveExtension only needs to
226987
+ // resolve extension interface types from implements clauses, not the full
226988
+ // root barrel. The root mapping exists because fixtures import from
226989
+ // '@stripe/extensibility-sdk' (root); the subpath mapping exists for
226990
+ // backward compat with fixtures that still use '/extensions'.
227061
226991
  paths: {
226992
+ [SDK_ROOT_PACKAGE]: ["./index.d.ts"],
227062
226993
  [SDK_EXTENSIONS_SUBPATH]: ["./index.d.ts"]
227063
226994
  }
227064
226995
  },
@@ -237515,7 +237446,7 @@ function isStdlibDecimalType(type) {
237515
237446
  });
237516
237447
  });
237517
237448
  }
237518
- var STDLIB_IMPORT_PATH = "@stripe/extensibility-sdk/stdlib";
237449
+ var STDLIB_IMPORT_PATH = "@stripe/extensibility-sdk";
237519
237450
  function generateConfigDescriptor(result) {
237520
237451
  const usedImports = /* @__PURE__ */ new Set();
237521
237452
  const usedTypeImports = /* @__PURE__ */ new Set();
@@ -237649,7 +237580,7 @@ var _BuildSystemError = class extends Error {
237649
237580
  };
237650
237581
 
237651
237582
  // src/plugin.ts
237652
- var SDK_EXTENSIONS_IMPORT = `${SDK_PACKAGE_NAME}/extensions`;
237583
+ var SDK_EXTENSIONS_IMPORT = SDK_PACKAGE_NAME;
237653
237584
  var NAMESPACE = "platform-dispatch";
237654
237585
  var COMMENTS_AND_STRINGS_RE = /\/\*[\s\S]*?\*\/|\/\/[^\n]*|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/g;
237655
237586
  function stripCommentsAndStrings(source) {