@formspec/build 0.1.0-alpha.45 → 0.1.0-alpha.46

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.
@@ -49,6 +49,7 @@ __export(internals_exports, {
49
49
  generateJsonSchemaFromIR: () => generateJsonSchemaFromIR,
50
50
  generateMethodSchemas: () => generateMethodSchemas,
51
51
  generateUiSchemaFromIR: () => generateUiSchemaFromIR,
52
+ resolveStaticOptions: () => resolveStaticOptions,
52
53
  validateIR: () => validateIR
53
54
  });
54
55
  module.exports = __toCommonJS(internals_exports);
@@ -5476,6 +5477,19 @@ ${lines.map((line) => `- ${line}`).join("\n")}`;
5476
5477
  function formatLocation(location) {
5477
5478
  return `${location.file}:${String(location.line)}:${String(location.column)}`;
5478
5479
  }
5480
+ function resolveStaticOptions(options) {
5481
+ const legacyRegistry = options.extensionRegistry;
5482
+ const configRegistry = legacyRegistry === void 0 && options.config?.extensions !== void 0 ? createExtensionRegistry(options.config.extensions) : void 0;
5483
+ return {
5484
+ extensionRegistry: legacyRegistry ?? configRegistry,
5485
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- migration bridge reads deprecated fields
5486
+ vendorPrefix: options.vendorPrefix ?? options.config?.vendorPrefix,
5487
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- migration bridge reads deprecated fields
5488
+ enumSerialization: options.enumSerialization ?? options.config?.enumSerialization,
5489
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- migration bridge reads deprecated fields
5490
+ metadata: options.metadata ?? options.config?.metadata
5491
+ };
5492
+ }
5479
5493
 
5480
5494
  // src/generators/method-schema.ts
5481
5495
  var import_internals6 = require("@formspec/core/internals");
@@ -5620,6 +5634,7 @@ function collectFormSpecReferences(methods) {
5620
5634
  generateJsonSchemaFromIR,
5621
5635
  generateMethodSchemas,
5622
5636
  generateUiSchemaFromIR,
5637
+ resolveStaticOptions,
5623
5638
  validateIR
5624
5639
  });
5625
5640
  //# sourceMappingURL=internals.cjs.map