@kubb/core 5.8.2 → 5.8.3

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.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_KubbDriver = require("./KubbDriver-DxWuvJWV.cjs");
2
+ const require_KubbDriver = require("./KubbDriver-iAEw2oH5.cjs");
3
3
  let verkit = require("verkit");
4
4
  let node_util = require("node:util");
5
5
  let node_process = require("node:process");
@@ -1381,6 +1381,9 @@ const canonicalJSON = (value) => JSON.stringify(value, (_key, item) => isObject(
1381
1381
  function isPackageName(name) {
1382
1382
  return typeof name === "string" && name.length <= 214 && PACKAGE_NAME.test(name);
1383
1383
  }
1384
+ function isMaintainer(value) {
1385
+ return isObject(value) && Object.keys(value).every((key) => key === "name" || key === "github") && isFilledString(value.name) && (value.github === void 0 || isFilledString(value.github));
1386
+ }
1384
1387
  /** Checks the shape of one manifest option, including that its path cannot reach a prototype. */
1385
1388
  function isOption(value) {
1386
1389
  if (!isObject(value)) return false;
@@ -1408,8 +1411,8 @@ function manifestProblems({ options = [] }) {
1408
1411
  */
1409
1412
  function isExtensionManifest(value) {
1410
1413
  if (!isObject(value)) return false;
1411
- const { kind, name, export: exportName, displayName, description, compatibility, options } = value;
1412
- return EXTENSION_KINDS.has(kind) && isPackageName(name) && typeof exportName === "string" && IDENTIFIER.test(exportName) && typeof displayName === "string" && typeof description === "string" && (compatibility === void 0 || isObject(compatibility) && Object.entries(compatibility).every(([key, range]) => (key === "kubb" || key === "node") && typeof range === "string")) && (options === void 0 || Array.isArray(options) && options.every(isOption)) && manifestProblems(value).length === 0;
1414
+ const { kind, name, export: exportName, displayName, description, maintainers, dependencies, compatibility, options } = value;
1415
+ return EXTENSION_KINDS.has(kind) && isPackageName(name) && typeof exportName === "string" && IDENTIFIER.test(exportName) && typeof displayName === "string" && typeof description === "string" && (maintainers === void 0 || Array.isArray(maintainers) && maintainers.every(isMaintainer)) && (dependencies === void 0 || Array.isArray(dependencies) && dependencies.every(isPackageName)) && (compatibility === void 0 || isObject(compatibility) && Object.entries(compatibility).every(([key, range]) => (key === "kubb" || key === "node") && typeof range === "string")) && (options === void 0 || Array.isArray(options) && options.every(isOption)) && manifestProblems(value).length === 0;
1413
1416
  }
1414
1417
  /**
1415
1418
  * Checks one entry of a registry's `index.json` or `<owner>/<slug>.json`: a full `<owner>/<slug>` id,