@stripe/extensibility-jsonschema-tools 1.0.1 → 1.0.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,gBAAgB;AAChB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIzD,gBAAgB;AAChB,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,gBAAgB;AAChB,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,gBAAgB;AAChB,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAIjF,gBAAgB;AAChB,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAK5E,gBAAgB;AAChB,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,gBAAgB;AAChB,YAAY,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,gBAAgB;AAChB,YAAY,EACV,uCAAuC,EACvC,qBAAqB,EACrB,sBAAsB,EACtB,yBAAyB,EACzB,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,EAC9B,6BAA6B,EAC7B,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,wCAAwC,EACxC,uBAAuB,EACvB,8CAA8C,EAC9C,gCAAgC,EAChC,+CAA+C,EAC/C,6BAA6B,EAC7B,cAAc,EACd,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,EACvB,mBAAmB,EACnB,wBAAwB,EACxB,gCAAgC,EAChC,sCAAsC,EACtC,uCAAuC,EACvC,6BAA6B,GA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AM,6BAA6B,CAAC;AAIrC,gBAAgB;AAChB,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAIzF,gBAAgB;AAChB,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAIpE,gBAAgB;AAChB,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC"}
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ var __export = (target, all) => {
4
4
  __defProp(target, name, { get: all[name], enumerable: true });
5
5
  };
6
6
 
7
- // ../../node_modules/.pnpm/@formspec+core@0.1.0-alpha.70/node_modules/@formspec/core/dist/index.js
7
+ // ../../node_modules/.pnpm/@stripe+formspec-core@0.1.0-alpha.73/node_modules/@stripe/formspec-core/dist/index.js
8
8
  function defineExtension(def) {
9
9
  return def;
10
10
  }
@@ -56,7 +56,7 @@ function matchesGlob(glob, namespace) {
56
56
  }
57
57
  }
58
58
 
59
- // ../../node_modules/.pnpm/@formspec+core@0.1.0-alpha.70/node_modules/@formspec/core/dist/internals.js
59
+ // ../../node_modules/.pnpm/@stripe+formspec-core@0.1.0-alpha.73/node_modules/@stripe/formspec-core/dist/internals.js
60
60
  var _BUILTIN_CONSTRAINT_DEFINITIONS = {
61
61
  minimum: "number",
62
62
  maximum: "number",
@@ -4128,7 +4128,7 @@ var coerce = {
4128
4128
  };
4129
4129
  var NEVER = INVALID;
4130
4130
 
4131
- // ../../node_modules/.pnpm/@formspec+analysis@0.1.0-alpha.70_typescript@5.9.3/node_modules/@formspec/analysis/dist/internal.js
4131
+ // ../../node_modules/.pnpm/@stripe+formspec-analysis@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-analysis/dist/internal.js
4132
4132
  import * as ts3 from "typescript";
4133
4133
  import * as ts from "typescript";
4134
4134
  import * as ts2 from "typescript";
@@ -10016,7 +10016,7 @@ var TSDocParser = class {
10016
10016
  }
10017
10017
  };
10018
10018
 
10019
- // ../../node_modules/.pnpm/@formspec+analysis@0.1.0-alpha.70_typescript@5.9.3/node_modules/@formspec/analysis/dist/internal.js
10019
+ // ../../node_modules/.pnpm/@stripe+formspec-analysis@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-analysis/dist/internal.js
10020
10020
  function expectedCloseFor(open) {
10021
10021
  if (open === "[") return "]";
10022
10022
  if (open === "{") return "}";
@@ -14139,7 +14139,7 @@ function extractSummaryText(docComment, commentText, parsed) {
14139
14139
  return hasTagOnlySummary ? "" : summary;
14140
14140
  }
14141
14141
 
14142
- // ../../node_modules/.pnpm/@formspec+build@0.1.0-alpha.70_typescript@5.9.3/node_modules/@formspec/build/dist/index.js
14142
+ // ../../node_modules/.pnpm/@stripe+formspec-build@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-build/dist/index.js
14143
14143
  import * as ts82 from "typescript";
14144
14144
  import * as ts62 from "typescript";
14145
14145
  import * as path from "path";
@@ -19727,8 +19727,8 @@ function isDefineCustomTypeCall(node, checker) {
19727
19727
  const decl = resolved.declarations?.[0];
19728
19728
  if (decl !== void 0) {
19729
19729
  const sourceFile = decl.getSourceFile().fileName.replace(/\\/g, "/");
19730
- return resolved.name === "defineCustomType" && // Match whether in node_modules/@formspec/core or monorepo packages/core.
19731
- (sourceFile.includes("@formspec/core") || sourceFile.includes("/packages/core/"));
19730
+ return resolved.name === "defineCustomType" && // Match whether in node_modules/@stripe/formspec-core or monorepo packages/core.
19731
+ (sourceFile.includes("@stripe/formspec-core") || sourceFile.includes("/packages/core/"));
19732
19732
  }
19733
19733
  }
19734
19734
  return ts72.isIdentifier(node.expression) && node.expression.text === "defineCustomType";
@@ -19761,7 +19761,7 @@ function isDefineExtensionCall(node, checker) {
19761
19761
  const decl = resolved.declarations?.[0];
19762
19762
  if (decl !== void 0) {
19763
19763
  const sourceFile = decl.getSourceFile().fileName.replace(/\\/g, "/");
19764
- return resolved.name === "defineExtension" && (sourceFile.includes("@formspec/core") || sourceFile.includes("/packages/core/"));
19764
+ return resolved.name === "defineExtension" && (sourceFile.includes("@stripe/formspec-core") || sourceFile.includes("/packages/core/"));
19765
19765
  }
19766
19766
  }
19767
19767
  return ts72.isIdentifier(node.expression) && node.expression.text === "defineExtension";
@@ -20247,7 +20247,7 @@ function _generateSchemas(options) {
20247
20247
  return result;
20248
20248
  }
20249
20249
 
20250
- // ../../node_modules/.pnpm/@formspec+build@0.1.0-alpha.70_typescript@5.9.3/node_modules/@formspec/build/dist/browser.js
20250
+ // ../../node_modules/.pnpm/@stripe+formspec-build@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-build/dist/browser.js
20251
20251
  function toKebabCase2(logicalName) {
20252
20252
  return logicalName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").replace(/-+/g, "-").toLowerCase();
20253
20253
  }
@@ -20485,7 +20485,7 @@ var jsonSchema7Schema2 = external_exports.lazy(
20485
20485
  // src/extract-config-schemas.ts
20486
20486
  import * as ts12 from "typescript";
20487
20487
 
20488
- // ../../node_modules/.pnpm/@formspec+build@0.1.0-alpha.70_typescript@5.9.3/node_modules/@formspec/build/dist/internals.js
20488
+ // ../../node_modules/.pnpm/@stripe+formspec-build@0.1.0-alpha.73_typescript@5.9.3/node_modules/@stripe/formspec-build/dist/internals.js
20489
20489
  import * as ts63 from "typescript";
20490
20490
  import * as path3 from "path";
20491
20491
  import * as ts53 from "typescript";
@@ -4,8 +4,8 @@
4
4
  * Registers custom type handlers for Decimal and other stdlib types so that
5
5
  * formspec generates the correct JSON Schema representations.
6
6
  */
7
- import { type ExtensionDefinition } from '@formspec/core';
8
- import { type ExtensionRegistry } from '@formspec/build';
7
+ import { type ExtensionDefinition } from '@stripe/formspec-core';
8
+ import { type ExtensionRegistry } from '@stripe/formspec-build';
9
9
  /**
10
10
  * Stripe stdlib extension for FormSpec.
11
11
  *
@@ -1 +1 @@
1
- {"version":3,"file":"stdlib-extension.d.ts","sourceRoot":"","sources":["../src/stdlib-extension.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AA0BlF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,EAAE,mBAkEnC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAErC,CAAC"}
1
+ {"version":3,"file":"stdlib-extension.d.ts","sourceRoot":"","sources":["../src/stdlib-extension.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAKL,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AA0BzF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB,EAAE,mBAkEnC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAErC,CAAC"}
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @internal
8
8
  */
9
- import type { FormSpecConfig } from '@formspec/build';
9
+ import type { FormSpecConfig } from '@stripe/formspec-build';
10
10
  /**
11
11
  * Shared FormSpecConfig for all Stripe formspec consumers (build, ESLint, language server).
12
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"stripe-formspec-config.d.ts","sourceRoot":"","sources":["../src/stripe-formspec-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,cAInC,CAAC"}
1
+ {"version":3,"file":"stripe-formspec-config.d.ts","sourceRoot":"","sources":["../src/stripe-formspec-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAI7D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,cAInC,CAAC"}
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * @internal
10
10
  */
11
- import type { StaticSchemaGenerationOptions } from '@formspec/build';
11
+ import type { StaticSchemaGenerationOptions } from '@stripe/formspec-build';
12
12
  /** @internal */
13
13
  export declare const _stripeSchemaDefaults: StaticSchemaGenerationOptions;
14
14
  //# sourceMappingURL=stripe-schema-defaults.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stripe-schema-defaults.d.ts","sourceRoot":"","sources":["../src/stripe-schema-defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAGrE,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,6BAEnC,CAAC"}
1
+ {"version":3,"file":"stripe-schema-defaults.d.ts","sourceRoot":"","sources":["../src/stripe-schema-defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAG5E,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,6BAEnC,CAAC"}