@companion-surface/base 0.1.4 → 0.1.5
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/CHANGELOG.md +7 -0
- package/generated/validate_manifest.js +496 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.5](https://github.com/bitfocus/companion-surface-api/compare/companion-surface-base-v0.1.4...companion-surface-base-v0.1.5) (2025-10-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* manifest validator ([086ef8f](https://github.com/bitfocus/companion-surface-api/commit/086ef8f72c1a1bb03956cf6c8411ec723ad1b2f8))
|
|
9
|
+
|
|
3
10
|
## [0.1.4](https://github.com/bitfocus/companion-surface-api/compare/companion-surface-base-v0.1.3...companion-surface-base-v0.1.4) (2025-10-20)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1 +1,496 @@
|
|
|
1
|
-
import { createRequire } from 'module';const require = createRequire(import.meta.url);"use strict";export const validate = validate20;export default validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","title":"SurfaceModuleManifest","properties":{"$schema":{"type":"string"},"type":{"type":"string","enum":["surface"],"description":"Type of module. Must be: surface"},"id":{"type":"string","description":"Unique identifier for the module"},"name":{"type":"string","description":"Name of the module"},"shortname":{"type":"string"},"description":{"type":"string","description":"Description of the module "},"version":{"type":"string","description":"Current version of the module"},"isPrerelease":{"type":"boolean","description":"Is this a pre-release version"},"license":{"type":"string","description":"SPDX identifier for license of the module"},"repository":{"type":"string","description":"URL to the source repository"},"bugs":{"type":"string","description":"URL to bug tracker"},"maintainers":{"type":"array","description":"List of active maintiners","uniqueItems":true,"items":{"type":"object","title":"SurfaceModuleManifestMaintainer","properties":{"name":{"type":"string"},"email":{"type":"string"},"github":{"type":"string"},"url":{"type":"string"}},"required":["name"],"additionalProperties":false}},"runtime":{"type":"object","title":"SurfaceModuleManifestRuntime","description":"Information on how to execute the module","properties":{"type":{"type":"string","description":"Type of the module. Must be: node18 or node22","enum":["node22"]},"apiVersion":{"type":"string","description":"The version of the host-api used"},"entrypoint":{"type":"string","description":"Entrypoint to pass to the runtime. eg index.js"}},"required":["type","apiVersion","entrypoint"]},"products":{"type":"array","uniqueItems":true,"items":{"type":"string"},"minItems":1},"keywords":{"type":"array","uniqueItems":true,"items":{"type":"string"}}},"required":["type","id","name","shortname","description","version","license","repository","bugs","maintainers","runtime","products","keywords"]};const func0 = require("ajv/dist/runtime/equal").default;function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(errors === 0){if(data && typeof data == "object" && !Array.isArray(data)){let missing0;if((((((((((((((data.type === undefined) && (missing0 = "type")) || ((data.id === undefined) && (missing0 = "id"))) || ((data.name === undefined) && (missing0 = "name"))) || ((data.shortname === undefined) && (missing0 = "shortname"))) || ((data.description === undefined) && (missing0 = "description"))) || ((data.version === undefined) && (missing0 = "version"))) || ((data.license === undefined) && (missing0 = "license"))) || ((data.repository === undefined) && (missing0 = "repository"))) || ((data.bugs === undefined) && (missing0 = "bugs"))) || ((data.maintainers === undefined) && (missing0 = "maintainers"))) || ((data.runtime === undefined) && (missing0 = "runtime"))) || ((data.products === undefined) && (missing0 = "products"))) || ((data.keywords === undefined) && (missing0 = "keywords"))){validate20.errors = [{instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: missing0},message:"must have required property '"+missing0+"'"}];return false;}else {if(data.$schema !== undefined){const _errs1 = errors;if(typeof data.$schema !== "string"){validate20.errors = [{instancePath:instancePath+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs1 === errors;}else {var valid0 = true;}if(valid0){if(data.type !== undefined){let data1 = data.type;const _errs3 = errors;if(typeof data1 !== "string"){validate20.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data1 === "surface")){validate20.errors = [{instancePath:instancePath+"/type",schemaPath:"#/properties/type/enum",keyword:"enum",params:{allowedValues: schema31.properties.type.enum},message:"must be equal to one of the allowed values"}];return false;}var valid0 = _errs3 === errors;}else {var valid0 = true;}if(valid0){if(data.id !== undefined){const _errs5 = errors;if(typeof data.id !== "string"){validate20.errors = [{instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs5 === errors;}else {var valid0 = true;}if(valid0){if(data.name !== undefined){const _errs7 = errors;if(typeof data.name !== "string"){validate20.errors = [{instancePath:instancePath+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs7 === errors;}else {var valid0 = true;}if(valid0){if(data.shortname !== undefined){const _errs9 = errors;if(typeof data.shortname !== "string"){validate20.errors = [{instancePath:instancePath+"/shortname",schemaPath:"#/properties/shortname/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs9 === errors;}else {var valid0 = true;}if(valid0){if(data.description !== undefined){const _errs11 = errors;if(typeof data.description !== "string"){validate20.errors = [{instancePath:instancePath+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs11 === errors;}else {var valid0 = true;}if(valid0){if(data.version !== undefined){const _errs13 = errors;if(typeof data.version !== "string"){validate20.errors = [{instancePath:instancePath+"/version",schemaPath:"#/properties/version/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs13 === errors;}else {var valid0 = true;}if(valid0){if(data.isPrerelease !== undefined){const _errs15 = errors;if(typeof data.isPrerelease !== "boolean"){validate20.errors = [{instancePath:instancePath+"/isPrerelease",schemaPath:"#/properties/isPrerelease/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"}];return false;}var valid0 = _errs15 === errors;}else {var valid0 = true;}if(valid0){if(data.license !== undefined){const _errs17 = errors;if(typeof data.license !== "string"){validate20.errors = [{instancePath:instancePath+"/license",schemaPath:"#/properties/license/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs17 === errors;}else {var valid0 = true;}if(valid0){if(data.repository !== undefined){const _errs19 = errors;if(typeof data.repository !== "string"){validate20.errors = [{instancePath:instancePath+"/repository",schemaPath:"#/properties/repository/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs19 === errors;}else {var valid0 = true;}if(valid0){if(data.bugs !== undefined){const _errs21 = errors;if(typeof data.bugs !== "string"){validate20.errors = [{instancePath:instancePath+"/bugs",schemaPath:"#/properties/bugs/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid0 = _errs21 === errors;}else {var valid0 = true;}if(valid0){if(data.maintainers !== undefined){let data11 = data.maintainers;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data11)){var valid1 = true;const len0 = data11.length;for(let i0=0; i0<len0; i0++){let data12 = data11[i0];const _errs25 = errors;if(errors === _errs25){if(data12 && typeof data12 == "object" && !Array.isArray(data12)){let missing1;if((data12.name === undefined) && (missing1 = "name")){validate20.errors = [{instancePath:instancePath+"/maintainers/" + i0,schemaPath:"#/properties/maintainers/items/required",keyword:"required",params:{missingProperty: missing1},message:"must have required property '"+missing1+"'"}];return false;}else {const _errs27 = errors;for(const key0 in data12){if(!((((key0 === "name") || (key0 === "email")) || (key0 === "github")) || (key0 === "url"))){validate20.errors = [{instancePath:instancePath+"/maintainers/" + i0,schemaPath:"#/properties/maintainers/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"}];return false;break;}}if(_errs27 === errors){if(data12.name !== undefined){const _errs28 = errors;if(typeof data12.name !== "string"){validate20.errors = [{instancePath:instancePath+"/maintainers/" + i0+"/name",schemaPath:"#/properties/maintainers/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs28 === errors;}else {var valid2 = true;}if(valid2){if(data12.email !== undefined){const _errs30 = errors;if(typeof data12.email !== "string"){validate20.errors = [{instancePath:instancePath+"/maintainers/" + i0+"/email",schemaPath:"#/properties/maintainers/items/properties/email/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs30 === errors;}else {var valid2 = true;}if(valid2){if(data12.github !== undefined){const _errs32 = errors;if(typeof data12.github !== "string"){validate20.errors = [{instancePath:instancePath+"/maintainers/" + i0+"/github",schemaPath:"#/properties/maintainers/items/properties/github/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs32 === errors;}else {var valid2 = true;}if(valid2){if(data12.url !== undefined){const _errs34 = errors;if(typeof data12.url !== "string"){validate20.errors = [{instancePath:instancePath+"/maintainers/" + i0+"/url",schemaPath:"#/properties/maintainers/items/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid2 = _errs34 === errors;}else {var valid2 = true;}}}}}}}else {validate20.errors = [{instancePath:instancePath+"/maintainers/" + i0,schemaPath:"#/properties/maintainers/items/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid1 = _errs25 === errors;if(!valid1){break;}}if(valid1){let i1 = data11.length;let j0;if(i1 > 1){outer0:for(;i1--;){for(j0 = i1; j0--;){if(func0(data11[i1], data11[j0])){validate20.errors = [{instancePath:instancePath+"/maintainers",schemaPath:"#/properties/maintainers/uniqueItems",keyword:"uniqueItems",params:{i: i1, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i1+" are identical)"}];return false;break outer0;}}}}}}else {validate20.errors = [{instancePath:instancePath+"/maintainers",schemaPath:"#/properties/maintainers/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs23 === errors;}else {var valid0 = true;}if(valid0){if(data.runtime !== undefined){let data17 = data.runtime;const _errs36 = errors;if(errors === _errs36){if(data17 && typeof data17 == "object" && !Array.isArray(data17)){let missing2;if((((data17.type === undefined) && (missing2 = "type")) || ((data17.apiVersion === undefined) && (missing2 = "apiVersion"))) || ((data17.entrypoint === undefined) && (missing2 = "entrypoint"))){validate20.errors = [{instancePath:instancePath+"/runtime",schemaPath:"#/properties/runtime/required",keyword:"required",params:{missingProperty: missing2},message:"must have required property '"+missing2+"'"}];return false;}else {if(data17.type !== undefined){let data18 = data17.type;const _errs38 = errors;if(typeof data18 !== "string"){validate20.errors = [{instancePath:instancePath+"/runtime/type",schemaPath:"#/properties/runtime/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}if(!(data18 === "node22")){validate20.errors = [{instancePath:instancePath+"/runtime/type",schemaPath:"#/properties/runtime/properties/type/enum",keyword:"enum",params:{allowedValues: schema31.properties.runtime.properties.type.enum},message:"must be equal to one of the allowed values"}];return false;}var valid4 = _errs38 === errors;}else {var valid4 = true;}if(valid4){if(data17.apiVersion !== undefined){const _errs40 = errors;if(typeof data17.apiVersion !== "string"){validate20.errors = [{instancePath:instancePath+"/runtime/apiVersion",schemaPath:"#/properties/runtime/properties/apiVersion/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs40 === errors;}else {var valid4 = true;}if(valid4){if(data17.entrypoint !== undefined){const _errs42 = errors;if(typeof data17.entrypoint !== "string"){validate20.errors = [{instancePath:instancePath+"/runtime/entrypoint",schemaPath:"#/properties/runtime/properties/entrypoint/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid4 = _errs42 === errors;}else {var valid4 = true;}}}}}else {validate20.errors = [{instancePath:instancePath+"/runtime",schemaPath:"#/properties/runtime/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}var valid0 = _errs36 === errors;}else {var valid0 = true;}if(valid0){if(data.products !== undefined){let data21 = data.products;const _errs44 = errors;if(errors === _errs44){if(Array.isArray(data21)){if(data21.length < 1){validate20.errors = [{instancePath:instancePath+"/products",schemaPath:"#/properties/products/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"}];return false;}else {var valid5 = true;const len1 = data21.length;for(let i2=0; i2<len1; i2++){const _errs46 = errors;if(typeof data21[i2] !== "string"){validate20.errors = [{instancePath:instancePath+"/products/" + i2,schemaPath:"#/properties/products/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid5 = _errs46 === errors;if(!valid5){break;}}if(valid5){let i3 = data21.length;let j1;if(i3 > 1){const indices0 = {};for(;i3--;){let item0 = data21[i3];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j1 = indices0[item0];validate20.errors = [{instancePath:instancePath+"/products",schemaPath:"#/properties/products/uniqueItems",keyword:"uniqueItems",params:{i: i3, j: j1},message:"must NOT have duplicate items (items ## "+j1+" and "+i3+" are identical)"}];return false;break;}indices0[item0] = i3;}}}}}else {validate20.errors = [{instancePath:instancePath+"/products",schemaPath:"#/properties/products/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs44 === errors;}else {var valid0 = true;}if(valid0){if(data.keywords !== undefined){let data23 = data.keywords;const _errs48 = errors;if(errors === _errs48){if(Array.isArray(data23)){var valid7 = true;const len2 = data23.length;for(let i4=0; i4<len2; i4++){const _errs50 = errors;if(typeof data23[i4] !== "string"){validate20.errors = [{instancePath:instancePath+"/keywords/" + i4,schemaPath:"#/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"}];return false;}var valid7 = _errs50 === errors;if(!valid7){break;}}if(valid7){let i5 = data23.length;let j2;if(i5 > 1){const indices1 = {};for(;i5--;){let item1 = data23[i5];if(typeof item1 !== "string"){continue;}if(typeof indices1[item1] == "number"){j2 = indices1[item1];validate20.errors = [{instancePath:instancePath+"/keywords",schemaPath:"#/properties/keywords/uniqueItems",keyword:"uniqueItems",params:{i: i5, j: j2},message:"must NOT have duplicate items (items ## "+j2+" and "+i5+" are identical)"}];return false;break;}indices1[item1] = i5;}}}}else {validate20.errors = [{instancePath:instancePath+"/keywords",schemaPath:"#/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"}];return false;}}var valid0 = _errs48 === errors;}else {var valid0 = true;}}}}}}}}}}}}}}}}}else {validate20.errors = [{instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"}];return false;}}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":{"$schema":true,"type":true,"id":true,"name":true,"shortname":true,"description":true,"version":true,"isPrerelease":true,"license":true,"repository":true,"bugs":true,"maintainers":true,"runtime":true,"products":true,"keywords":true},"dynamicProps":false,"dynamicItems":false};
|
|
1
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
// ../../node_modules/fast-deep-equal/index.js
|
|
7
|
+
var require_fast_deep_equal = __commonJS({
|
|
8
|
+
"../../node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
9
|
+
"use strict";
|
|
10
|
+
module.exports = function equal(a, b) {
|
|
11
|
+
if (a === b) return true;
|
|
12
|
+
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
13
|
+
if (a.constructor !== b.constructor) return false;
|
|
14
|
+
var length, i, keys;
|
|
15
|
+
if (Array.isArray(a)) {
|
|
16
|
+
length = a.length;
|
|
17
|
+
if (length != b.length) return false;
|
|
18
|
+
for (i = length; i-- !== 0; )
|
|
19
|
+
if (!equal(a[i], b[i])) return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
23
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
24
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
25
|
+
keys = Object.keys(a);
|
|
26
|
+
length = keys.length;
|
|
27
|
+
if (length !== Object.keys(b).length) return false;
|
|
28
|
+
for (i = length; i-- !== 0; )
|
|
29
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
30
|
+
for (i = length; i-- !== 0; ) {
|
|
31
|
+
var key = keys[i];
|
|
32
|
+
if (!equal(a[key], b[key])) return false;
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
return a !== a && b !== b;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// ../../node_modules/ajv/dist/runtime/equal.js
|
|
42
|
+
var require_equal = __commonJS({
|
|
43
|
+
"../../node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
44
|
+
"use strict";
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
var equal = require_fast_deep_equal();
|
|
47
|
+
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
48
|
+
exports.default = equal;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// generated/validate_manifest.js
|
|
53
|
+
var validate = validate20;
|
|
54
|
+
var validate_manifest_default = validate20;
|
|
55
|
+
var schema31 = { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "title": "SurfaceModuleManifest", "properties": { "$schema": { "type": "string" }, "type": { "type": "string", "enum": ["surface"], "description": "Type of module. Must be: surface" }, "id": { "type": "string", "description": "Unique identifier for the module" }, "name": { "type": "string", "description": "Name of the module" }, "shortname": { "type": "string" }, "description": { "type": "string", "description": "Description of the module " }, "version": { "type": "string", "description": "Current version of the module" }, "isPrerelease": { "type": "boolean", "description": "Is this a pre-release version" }, "license": { "type": "string", "description": "SPDX identifier for license of the module" }, "repository": { "type": "string", "description": "URL to the source repository" }, "bugs": { "type": "string", "description": "URL to bug tracker" }, "maintainers": { "type": "array", "description": "List of active maintiners", "uniqueItems": true, "items": { "type": "object", "title": "SurfaceModuleManifestMaintainer", "properties": { "name": { "type": "string" }, "email": { "type": "string" }, "github": { "type": "string" }, "url": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "runtime": { "type": "object", "title": "SurfaceModuleManifestRuntime", "description": "Information on how to execute the module", "properties": { "type": { "type": "string", "description": "Type of the module. Must be: node18 or node22", "enum": ["node22"] }, "apiVersion": { "type": "string", "description": "The version of the host-api used" }, "entrypoint": { "type": "string", "description": "Entrypoint to pass to the runtime. eg index.js" } }, "required": ["type", "apiVersion", "entrypoint"] }, "products": { "type": "array", "uniqueItems": true, "items": { "type": "string" }, "minItems": 1 }, "keywords": { "type": "array", "uniqueItems": true, "items": { "type": "string" } } }, "required": ["type", "id", "name", "shortname", "description", "version", "license", "repository", "bugs", "maintainers", "runtime", "products", "keywords"] };
|
|
56
|
+
var func0 = require_equal().default;
|
|
57
|
+
function validate20(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
|
|
58
|
+
let vErrors = null;
|
|
59
|
+
let errors = 0;
|
|
60
|
+
const evaluated0 = validate20.evaluated;
|
|
61
|
+
if (evaluated0.dynamicProps) {
|
|
62
|
+
evaluated0.props = void 0;
|
|
63
|
+
}
|
|
64
|
+
if (evaluated0.dynamicItems) {
|
|
65
|
+
evaluated0.items = void 0;
|
|
66
|
+
}
|
|
67
|
+
if (errors === 0) {
|
|
68
|
+
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
69
|
+
let missing0;
|
|
70
|
+
if (data.type === void 0 && (missing0 = "type") || data.id === void 0 && (missing0 = "id") || data.name === void 0 && (missing0 = "name") || data.shortname === void 0 && (missing0 = "shortname") || data.description === void 0 && (missing0 = "description") || data.version === void 0 && (missing0 = "version") || data.license === void 0 && (missing0 = "license") || data.repository === void 0 && (missing0 = "repository") || data.bugs === void 0 && (missing0 = "bugs") || data.maintainers === void 0 && (missing0 = "maintainers") || data.runtime === void 0 && (missing0 = "runtime") || data.products === void 0 && (missing0 = "products") || data.keywords === void 0 && (missing0 = "keywords")) {
|
|
71
|
+
validate20.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
72
|
+
return false;
|
|
73
|
+
} else {
|
|
74
|
+
if (data.$schema !== void 0) {
|
|
75
|
+
const _errs1 = errors;
|
|
76
|
+
if (typeof data.$schema !== "string") {
|
|
77
|
+
validate20.errors = [{ instancePath: instancePath + "/$schema", schemaPath: "#/properties/%24schema/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
var valid0 = _errs1 === errors;
|
|
81
|
+
} else {
|
|
82
|
+
var valid0 = true;
|
|
83
|
+
}
|
|
84
|
+
if (valid0) {
|
|
85
|
+
if (data.type !== void 0) {
|
|
86
|
+
let data1 = data.type;
|
|
87
|
+
const _errs3 = errors;
|
|
88
|
+
if (typeof data1 !== "string") {
|
|
89
|
+
validate20.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
if (!(data1 === "surface")) {
|
|
93
|
+
validate20.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/enum", keyword: "enum", params: { allowedValues: schema31.properties.type.enum }, message: "must be equal to one of the allowed values" }];
|
|
94
|
+
return false;
|
|
95
|
+
}
|
|
96
|
+
var valid0 = _errs3 === errors;
|
|
97
|
+
} else {
|
|
98
|
+
var valid0 = true;
|
|
99
|
+
}
|
|
100
|
+
if (valid0) {
|
|
101
|
+
if (data.id !== void 0) {
|
|
102
|
+
const _errs5 = errors;
|
|
103
|
+
if (typeof data.id !== "string") {
|
|
104
|
+
validate20.errors = [{ instancePath: instancePath + "/id", schemaPath: "#/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
var valid0 = _errs5 === errors;
|
|
108
|
+
} else {
|
|
109
|
+
var valid0 = true;
|
|
110
|
+
}
|
|
111
|
+
if (valid0) {
|
|
112
|
+
if (data.name !== void 0) {
|
|
113
|
+
const _errs7 = errors;
|
|
114
|
+
if (typeof data.name !== "string") {
|
|
115
|
+
validate20.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
var valid0 = _errs7 === errors;
|
|
119
|
+
} else {
|
|
120
|
+
var valid0 = true;
|
|
121
|
+
}
|
|
122
|
+
if (valid0) {
|
|
123
|
+
if (data.shortname !== void 0) {
|
|
124
|
+
const _errs9 = errors;
|
|
125
|
+
if (typeof data.shortname !== "string") {
|
|
126
|
+
validate20.errors = [{ instancePath: instancePath + "/shortname", schemaPath: "#/properties/shortname/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
var valid0 = _errs9 === errors;
|
|
130
|
+
} else {
|
|
131
|
+
var valid0 = true;
|
|
132
|
+
}
|
|
133
|
+
if (valid0) {
|
|
134
|
+
if (data.description !== void 0) {
|
|
135
|
+
const _errs11 = errors;
|
|
136
|
+
if (typeof data.description !== "string") {
|
|
137
|
+
validate20.errors = [{ instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
var valid0 = _errs11 === errors;
|
|
141
|
+
} else {
|
|
142
|
+
var valid0 = true;
|
|
143
|
+
}
|
|
144
|
+
if (valid0) {
|
|
145
|
+
if (data.version !== void 0) {
|
|
146
|
+
const _errs13 = errors;
|
|
147
|
+
if (typeof data.version !== "string") {
|
|
148
|
+
validate20.errors = [{ instancePath: instancePath + "/version", schemaPath: "#/properties/version/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
var valid0 = _errs13 === errors;
|
|
152
|
+
} else {
|
|
153
|
+
var valid0 = true;
|
|
154
|
+
}
|
|
155
|
+
if (valid0) {
|
|
156
|
+
if (data.isPrerelease !== void 0) {
|
|
157
|
+
const _errs15 = errors;
|
|
158
|
+
if (typeof data.isPrerelease !== "boolean") {
|
|
159
|
+
validate20.errors = [{ instancePath: instancePath + "/isPrerelease", schemaPath: "#/properties/isPrerelease/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
var valid0 = _errs15 === errors;
|
|
163
|
+
} else {
|
|
164
|
+
var valid0 = true;
|
|
165
|
+
}
|
|
166
|
+
if (valid0) {
|
|
167
|
+
if (data.license !== void 0) {
|
|
168
|
+
const _errs17 = errors;
|
|
169
|
+
if (typeof data.license !== "string") {
|
|
170
|
+
validate20.errors = [{ instancePath: instancePath + "/license", schemaPath: "#/properties/license/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
var valid0 = _errs17 === errors;
|
|
174
|
+
} else {
|
|
175
|
+
var valid0 = true;
|
|
176
|
+
}
|
|
177
|
+
if (valid0) {
|
|
178
|
+
if (data.repository !== void 0) {
|
|
179
|
+
const _errs19 = errors;
|
|
180
|
+
if (typeof data.repository !== "string") {
|
|
181
|
+
validate20.errors = [{ instancePath: instancePath + "/repository", schemaPath: "#/properties/repository/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
var valid0 = _errs19 === errors;
|
|
185
|
+
} else {
|
|
186
|
+
var valid0 = true;
|
|
187
|
+
}
|
|
188
|
+
if (valid0) {
|
|
189
|
+
if (data.bugs !== void 0) {
|
|
190
|
+
const _errs21 = errors;
|
|
191
|
+
if (typeof data.bugs !== "string") {
|
|
192
|
+
validate20.errors = [{ instancePath: instancePath + "/bugs", schemaPath: "#/properties/bugs/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
195
|
+
var valid0 = _errs21 === errors;
|
|
196
|
+
} else {
|
|
197
|
+
var valid0 = true;
|
|
198
|
+
}
|
|
199
|
+
if (valid0) {
|
|
200
|
+
if (data.maintainers !== void 0) {
|
|
201
|
+
let data11 = data.maintainers;
|
|
202
|
+
const _errs23 = errors;
|
|
203
|
+
if (errors === _errs23) {
|
|
204
|
+
if (Array.isArray(data11)) {
|
|
205
|
+
var valid1 = true;
|
|
206
|
+
const len0 = data11.length;
|
|
207
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
208
|
+
let data12 = data11[i0];
|
|
209
|
+
const _errs25 = errors;
|
|
210
|
+
if (errors === _errs25) {
|
|
211
|
+
if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
|
|
212
|
+
let missing1;
|
|
213
|
+
if (data12.name === void 0 && (missing1 = "name")) {
|
|
214
|
+
validate20.errors = [{ instancePath: instancePath + "/maintainers/" + i0, schemaPath: "#/properties/maintainers/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
|
|
215
|
+
return false;
|
|
216
|
+
} else {
|
|
217
|
+
const _errs27 = errors;
|
|
218
|
+
for (const key0 in data12) {
|
|
219
|
+
if (!(key0 === "name" || key0 === "email" || key0 === "github" || key0 === "url")) {
|
|
220
|
+
validate20.errors = [{ instancePath: instancePath + "/maintainers/" + i0, schemaPath: "#/properties/maintainers/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
221
|
+
return false;
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if (_errs27 === errors) {
|
|
226
|
+
if (data12.name !== void 0) {
|
|
227
|
+
const _errs28 = errors;
|
|
228
|
+
if (typeof data12.name !== "string") {
|
|
229
|
+
validate20.errors = [{ instancePath: instancePath + "/maintainers/" + i0 + "/name", schemaPath: "#/properties/maintainers/items/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
230
|
+
return false;
|
|
231
|
+
}
|
|
232
|
+
var valid2 = _errs28 === errors;
|
|
233
|
+
} else {
|
|
234
|
+
var valid2 = true;
|
|
235
|
+
}
|
|
236
|
+
if (valid2) {
|
|
237
|
+
if (data12.email !== void 0) {
|
|
238
|
+
const _errs30 = errors;
|
|
239
|
+
if (typeof data12.email !== "string") {
|
|
240
|
+
validate20.errors = [{ instancePath: instancePath + "/maintainers/" + i0 + "/email", schemaPath: "#/properties/maintainers/items/properties/email/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
var valid2 = _errs30 === errors;
|
|
244
|
+
} else {
|
|
245
|
+
var valid2 = true;
|
|
246
|
+
}
|
|
247
|
+
if (valid2) {
|
|
248
|
+
if (data12.github !== void 0) {
|
|
249
|
+
const _errs32 = errors;
|
|
250
|
+
if (typeof data12.github !== "string") {
|
|
251
|
+
validate20.errors = [{ instancePath: instancePath + "/maintainers/" + i0 + "/github", schemaPath: "#/properties/maintainers/items/properties/github/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
252
|
+
return false;
|
|
253
|
+
}
|
|
254
|
+
var valid2 = _errs32 === errors;
|
|
255
|
+
} else {
|
|
256
|
+
var valid2 = true;
|
|
257
|
+
}
|
|
258
|
+
if (valid2) {
|
|
259
|
+
if (data12.url !== void 0) {
|
|
260
|
+
const _errs34 = errors;
|
|
261
|
+
if (typeof data12.url !== "string") {
|
|
262
|
+
validate20.errors = [{ instancePath: instancePath + "/maintainers/" + i0 + "/url", schemaPath: "#/properties/maintainers/items/properties/url/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
var valid2 = _errs34 === errors;
|
|
266
|
+
} else {
|
|
267
|
+
var valid2 = true;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
} else {
|
|
275
|
+
validate20.errors = [{ instancePath: instancePath + "/maintainers/" + i0, schemaPath: "#/properties/maintainers/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
var valid1 = _errs25 === errors;
|
|
280
|
+
if (!valid1) {
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
if (valid1) {
|
|
285
|
+
let i1 = data11.length;
|
|
286
|
+
let j0;
|
|
287
|
+
if (i1 > 1) {
|
|
288
|
+
outer0: for (; i1--; ) {
|
|
289
|
+
for (j0 = i1; j0--; ) {
|
|
290
|
+
if (func0(data11[i1], data11[j0])) {
|
|
291
|
+
validate20.errors = [{ instancePath: instancePath + "/maintainers", schemaPath: "#/properties/maintainers/uniqueItems", keyword: "uniqueItems", params: { i: i1, j: j0 }, message: "must NOT have duplicate items (items ## " + j0 + " and " + i1 + " are identical)" }];
|
|
292
|
+
return false;
|
|
293
|
+
break outer0;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
} else {
|
|
300
|
+
validate20.errors = [{ instancePath: instancePath + "/maintainers", schemaPath: "#/properties/maintainers/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
var valid0 = _errs23 === errors;
|
|
305
|
+
} else {
|
|
306
|
+
var valid0 = true;
|
|
307
|
+
}
|
|
308
|
+
if (valid0) {
|
|
309
|
+
if (data.runtime !== void 0) {
|
|
310
|
+
let data17 = data.runtime;
|
|
311
|
+
const _errs36 = errors;
|
|
312
|
+
if (errors === _errs36) {
|
|
313
|
+
if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
|
|
314
|
+
let missing2;
|
|
315
|
+
if (data17.type === void 0 && (missing2 = "type") || data17.apiVersion === void 0 && (missing2 = "apiVersion") || data17.entrypoint === void 0 && (missing2 = "entrypoint")) {
|
|
316
|
+
validate20.errors = [{ instancePath: instancePath + "/runtime", schemaPath: "#/properties/runtime/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
|
|
317
|
+
return false;
|
|
318
|
+
} else {
|
|
319
|
+
if (data17.type !== void 0) {
|
|
320
|
+
let data18 = data17.type;
|
|
321
|
+
const _errs38 = errors;
|
|
322
|
+
if (typeof data18 !== "string") {
|
|
323
|
+
validate20.errors = [{ instancePath: instancePath + "/runtime/type", schemaPath: "#/properties/runtime/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
326
|
+
if (!(data18 === "node22")) {
|
|
327
|
+
validate20.errors = [{ instancePath: instancePath + "/runtime/type", schemaPath: "#/properties/runtime/properties/type/enum", keyword: "enum", params: { allowedValues: schema31.properties.runtime.properties.type.enum }, message: "must be equal to one of the allowed values" }];
|
|
328
|
+
return false;
|
|
329
|
+
}
|
|
330
|
+
var valid4 = _errs38 === errors;
|
|
331
|
+
} else {
|
|
332
|
+
var valid4 = true;
|
|
333
|
+
}
|
|
334
|
+
if (valid4) {
|
|
335
|
+
if (data17.apiVersion !== void 0) {
|
|
336
|
+
const _errs40 = errors;
|
|
337
|
+
if (typeof data17.apiVersion !== "string") {
|
|
338
|
+
validate20.errors = [{ instancePath: instancePath + "/runtime/apiVersion", schemaPath: "#/properties/runtime/properties/apiVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
339
|
+
return false;
|
|
340
|
+
}
|
|
341
|
+
var valid4 = _errs40 === errors;
|
|
342
|
+
} else {
|
|
343
|
+
var valid4 = true;
|
|
344
|
+
}
|
|
345
|
+
if (valid4) {
|
|
346
|
+
if (data17.entrypoint !== void 0) {
|
|
347
|
+
const _errs42 = errors;
|
|
348
|
+
if (typeof data17.entrypoint !== "string") {
|
|
349
|
+
validate20.errors = [{ instancePath: instancePath + "/runtime/entrypoint", schemaPath: "#/properties/runtime/properties/entrypoint/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
350
|
+
return false;
|
|
351
|
+
}
|
|
352
|
+
var valid4 = _errs42 === errors;
|
|
353
|
+
} else {
|
|
354
|
+
var valid4 = true;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
} else {
|
|
360
|
+
validate20.errors = [{ instancePath: instancePath + "/runtime", schemaPath: "#/properties/runtime/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
361
|
+
return false;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
var valid0 = _errs36 === errors;
|
|
365
|
+
} else {
|
|
366
|
+
var valid0 = true;
|
|
367
|
+
}
|
|
368
|
+
if (valid0) {
|
|
369
|
+
if (data.products !== void 0) {
|
|
370
|
+
let data21 = data.products;
|
|
371
|
+
const _errs44 = errors;
|
|
372
|
+
if (errors === _errs44) {
|
|
373
|
+
if (Array.isArray(data21)) {
|
|
374
|
+
if (data21.length < 1) {
|
|
375
|
+
validate20.errors = [{ instancePath: instancePath + "/products", schemaPath: "#/properties/products/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
|
|
376
|
+
return false;
|
|
377
|
+
} else {
|
|
378
|
+
var valid5 = true;
|
|
379
|
+
const len1 = data21.length;
|
|
380
|
+
for (let i2 = 0; i2 < len1; i2++) {
|
|
381
|
+
const _errs46 = errors;
|
|
382
|
+
if (typeof data21[i2] !== "string") {
|
|
383
|
+
validate20.errors = [{ instancePath: instancePath + "/products/" + i2, schemaPath: "#/properties/products/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
384
|
+
return false;
|
|
385
|
+
}
|
|
386
|
+
var valid5 = _errs46 === errors;
|
|
387
|
+
if (!valid5) {
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
if (valid5) {
|
|
392
|
+
let i3 = data21.length;
|
|
393
|
+
let j1;
|
|
394
|
+
if (i3 > 1) {
|
|
395
|
+
const indices0 = {};
|
|
396
|
+
for (; i3--; ) {
|
|
397
|
+
let item0 = data21[i3];
|
|
398
|
+
if (typeof item0 !== "string") {
|
|
399
|
+
continue;
|
|
400
|
+
}
|
|
401
|
+
if (typeof indices0[item0] == "number") {
|
|
402
|
+
j1 = indices0[item0];
|
|
403
|
+
validate20.errors = [{ instancePath: instancePath + "/products", schemaPath: "#/properties/products/uniqueItems", keyword: "uniqueItems", params: { i: i3, j: j1 }, message: "must NOT have duplicate items (items ## " + j1 + " and " + i3 + " are identical)" }];
|
|
404
|
+
return false;
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
indices0[item0] = i3;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
} else {
|
|
413
|
+
validate20.errors = [{ instancePath: instancePath + "/products", schemaPath: "#/properties/products/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
414
|
+
return false;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
var valid0 = _errs44 === errors;
|
|
418
|
+
} else {
|
|
419
|
+
var valid0 = true;
|
|
420
|
+
}
|
|
421
|
+
if (valid0) {
|
|
422
|
+
if (data.keywords !== void 0) {
|
|
423
|
+
let data23 = data.keywords;
|
|
424
|
+
const _errs48 = errors;
|
|
425
|
+
if (errors === _errs48) {
|
|
426
|
+
if (Array.isArray(data23)) {
|
|
427
|
+
var valid7 = true;
|
|
428
|
+
const len2 = data23.length;
|
|
429
|
+
for (let i4 = 0; i4 < len2; i4++) {
|
|
430
|
+
const _errs50 = errors;
|
|
431
|
+
if (typeof data23[i4] !== "string") {
|
|
432
|
+
validate20.errors = [{ instancePath: instancePath + "/keywords/" + i4, schemaPath: "#/properties/keywords/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
433
|
+
return false;
|
|
434
|
+
}
|
|
435
|
+
var valid7 = _errs50 === errors;
|
|
436
|
+
if (!valid7) {
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
if (valid7) {
|
|
441
|
+
let i5 = data23.length;
|
|
442
|
+
let j2;
|
|
443
|
+
if (i5 > 1) {
|
|
444
|
+
const indices1 = {};
|
|
445
|
+
for (; i5--; ) {
|
|
446
|
+
let item1 = data23[i5];
|
|
447
|
+
if (typeof item1 !== "string") {
|
|
448
|
+
continue;
|
|
449
|
+
}
|
|
450
|
+
if (typeof indices1[item1] == "number") {
|
|
451
|
+
j2 = indices1[item1];
|
|
452
|
+
validate20.errors = [{ instancePath: instancePath + "/keywords", schemaPath: "#/properties/keywords/uniqueItems", keyword: "uniqueItems", params: { i: i5, j: j2 }, message: "must NOT have duplicate items (items ## " + j2 + " and " + i5 + " are identical)" }];
|
|
453
|
+
return false;
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
indices1[item1] = i5;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
} else {
|
|
461
|
+
validate20.errors = [{ instancePath: instancePath + "/keywords", schemaPath: "#/properties/keywords/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
462
|
+
return false;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
var valid0 = _errs48 === errors;
|
|
466
|
+
} else {
|
|
467
|
+
var valid0 = true;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
} else {
|
|
485
|
+
validate20.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
486
|
+
return false;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
validate20.errors = vErrors;
|
|
490
|
+
return errors === 0;
|
|
491
|
+
}
|
|
492
|
+
validate20.evaluated = { "props": { "$schema": true, "type": true, "id": true, "name": true, "shortname": true, "description": true, "version": true, "isPrerelease": true, "license": true, "repository": true, "bugs": true, "maintainers": true, "runtime": true, "products": true, "keywords": true }, "dynamicProps": false, "dynamicItems": false };
|
|
493
|
+
export {
|
|
494
|
+
validate_manifest_default as default,
|
|
495
|
+
validate
|
|
496
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@companion-surface/base",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/bitfocus/companion-surface-api",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"lib"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"ajv": "^8.17.1",
|
|
33
32
|
"tslib": "^2.8.1"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
35
|
+
"ajv": "^8.17.1",
|
|
36
36
|
"typedoc": "^0.28.14"
|
|
37
37
|
}
|
|
38
38
|
}
|