@patternplate/validate-config
Advanced tools
Comparing version 3.0.7-1 to 3.1.0
export { validate } from './validate'; | ||
export { isValid } from './is-valid'; | ||
export * from './schema'; | ||
//# sourceMappingURL=index.d.ts.map |
import * as Types from "@patternplate/types"; | ||
export declare function isValid<T>(input: Types.ValidationInput): input is Types.ValidationInput<Types.PatternplateConfig>; | ||
//# sourceMappingURL=is-valid.d.ts.map |
export declare const schema: import("typescript-json-schema").Definition; | ||
//# sourceMappingURL=schema.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Schema = require("ts-transform-json-schema"); | ||
exports.schema = { "type": "object", "properties": { "docs": { "type": "array", "items": { "type": "string" } }, "entry": { "type": "array", "items": { "type": "string" } }, "mount": { "type": "string" }, "render": { "type": "string" }, "cover": { "type": "string" }, "ui": { "$ref": "#/definitions/PatternplateUiConfig" } }, "additionalProperties": false, "required": ["docs", "entry", "mount", "render"], "definitions": { "PatternplateUiConfig": { "type": "object", "properties": { "logo": { "type": "string" }, "favicon": { "type": "string" }, "fontDefault": { "type": "string" }, "fontHeadline": { "type": "string" }, "fontCode": { "type": "string" }, "colorActive": { "type": "string" }, "colorError": { "type": "string" }, "colorWarning": { "type": "string" }, "colorInfo": { "type": "string" }, "colorSuccess": { "type": "string" }, "colorBackgroundDark": { "type": "string" }, "colorBackgroundSecondaryDark": { "type": "string" }, "colorBackgroundTertiaryDark": { "type": "string" }, "colorBorderDark": { "type": "string" }, "colorTextDark": { "type": "string" }, "colorTextNegatedDark": { "type": "string" }, "colorRecessDark": { "type": "string" }, "colorBackgroundLight": { "type": "string" }, "colorBackgroundSecondaryLight": { "type": "string" }, "colorBackgroundTertiaryLight": { "type": "string" }, "colorBorderLight": { "type": "string" }, "colorTextLight": { "type": "string" }, "colorTextNegatedLight": { "type": "string" }, "colorRecessLight": { "type": "string" } }, "additionalProperties": false } }, "$schema": "http://json-schema.org/draft-07/schema#" }; | ||
exports.schema = { "type": "object", "properties": { "docs": { "type": "array", "items": { "type": "string" } }, "entry": { "type": "array", "items": { "type": "string" } }, "mount": { "type": "string" }, "render": { "type": "string" }, "cover": { "type": "string" }, "ui": { "$ref": "#/definitions/PatternplateUiConfig" } }, "additionalProperties": false, "required": ["docs", "entry", "mount", "render"], "definitions": { "PatternplateUiConfig": { "type": "object", "properties": { "logo": { "type": "string" }, "favicon": { "type": "string" }, "fontDefault": { "type": "string" }, "fontHeadline": { "type": "string" }, "fontCode": { "type": "string" }, "colorActive": { "type": "string" }, "colorError": { "type": "string" }, "colorWarning": { "type": "string" }, "colorInfo": { "type": "string" }, "colorSuccess": { "type": "string" }, "colorBackgroundDark": { "type": "string" }, "colorBackgroundSecondaryDark": { "type": "string" }, "colorBackgroundTertiaryDark": { "type": "string" }, "colorBorderDark": { "type": "string" }, "colorTextDark": { "type": "string" }, "colorTextNegatedDark": { "type": "string" }, "colorRecessDark": { "type": "string" }, "colorBackgroundLight": { "type": "string" }, "colorBackgroundSecondaryLight": { "type": "string" }, "colorBackgroundTertiaryLight": { "type": "string" }, "colorBorderLight": { "type": "string" }, "colorTextLight": { "type": "string" }, "colorTextNegatedLight": { "type": "string" }, "colorRecessLight": { "type": "string" }, "colorBackgroundNote": { "type": "string" }, "colorBackgroundInfoNote": { "type": "string" }, "colorBackgroundSuccessNote": { "type": "string" }, "colorBackgroundErrorNote": { "type": "string" }, "colorBackgroundWarningNote": { "type": "string" }, "colorNoteLight": { "type": "string" }, "colorNoteDark": { "type": "string" }, "showComponents": { "type": "boolean" } }, "additionalProperties": false } }, "$schema": "http://json-schema.org/draft-07/schema#" }; | ||
//# sourceMappingURL=schema.js.map |
import * as Types from "@patternplate/types"; | ||
export declare function validate({ target, name }: Types.ValidationInput): [Error, false] | [null, true]; | ||
//# sourceMappingURL=validate.d.ts.map |
{ | ||
"name": "@patternplate/validate-config", | ||
"version": "3.0.7-1", | ||
"version": "3.1.0", | ||
"description": "Validate schema for patternplate.config.js", | ||
"scripts": { | ||
"watch": "ttsc -w", | ||
"deps": "dependency-check . --missing && dependency-check . --extra --no-dev", | ||
"build": "ttsc", | ||
"test": "jest" | ||
@@ -36,3 +34,3 @@ }, | ||
"@marionebl/ttypescript": "^1.5.6", | ||
"@patternplate/types": "^3.0.7-1", | ||
"@patternplate/types": "^3.1.0", | ||
"@types/jest": "^23.3.1", | ||
@@ -44,4 +42,5 @@ "@types/node": "^10.9.4", | ||
"jest": "^23.6.0", | ||
"ts-jest": "^23.10.2", | ||
"ts-jest": "^23.10.5", | ||
"ts-transform-json-schema": "^1.1.1", | ||
"ttypescript": "^1.5.5", | ||
"typescript": "^3.1", | ||
@@ -52,3 +51,4 @@ "typescript-json-schema": "^0.32.0" | ||
"schema-utils": "^1.0.0" | ||
} | ||
}, | ||
"gitHead": "54025e88c20a22803fc196ba7f50e74f5c90cd57" | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
8178
14
19
51
1