@ngtools/json-schema
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@ngtools/json-schema", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Schema validating and reading for configurations, similar to Angular CLI config.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -1,4 +0,3 @@ | ||
/// <reference types="node" /> | ||
export declare class JsonSchemaErrorBase extends Error { | ||
constructor(message?: string); | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class JsonSchemaErrorBase extends Error { | ||
@@ -14,2 +15,2 @@ constructor(message) { | ||
exports.JsonSchemaErrorBase = JsonSchemaErrorBase; | ||
//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@ngtools/json-schema/src/error.js.map | ||
//# sourceMappingURL=/users/hans/sources/angular-cli/src/error.js.map |
"use strict"; | ||
var schema_class_factory_1 = require('./schema-class-factory'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var schema_class_factory_1 = require("./schema-class-factory"); | ||
exports.SchemaClassFactory = schema_class_factory_1.SchemaClassFactory; | ||
//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@ngtools/json-schema/src/index.js.map | ||
//# sourceMappingURL=/users/hans/sources/angular-cli/src/index.js.map |
"use strict"; | ||
const error_1 = require('./error'); | ||
const serializer_1 = require('./serializer'); | ||
const json_1 = require('./serializers/json'); | ||
const dts_1 = require('./serializers/dts'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const error_1 = require("./error"); | ||
const serializer_1 = require("./serializer"); | ||
const json_1 = require("./serializers/json"); | ||
const dts_1 = require("./serializers/dts"); | ||
class UnknownMimetype extends error_1.JsonSchemaErrorBase { | ||
@@ -30,2 +31,2 @@ } | ||
serializer_1.Serializer.fromMimetype = createSerializerFromMimetype; | ||
//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@ngtools/json-schema/src/mimetypes.js.map | ||
//# sourceMappingURL=/users/hans/sources/angular-cli/src/mimetypes.js.map |
"use strict"; | ||
//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@ngtools/json-schema/src/node.js.map | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=/users/hans/sources/angular-cli/src/node.js.map |
"use strict"; | ||
const serializer_1 = require('./serializer'); | ||
const schema_tree_1 = require('./schema-tree'); | ||
const error_1 = require('./error'); | ||
require('./mimetypes'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const serializer_1 = require("./serializer"); | ||
const schema_tree_1 = require("./schema-tree"); | ||
const error_1 = require("./error"); | ||
require("./mimetypes"); | ||
class InvalidJsonPath extends error_1.JsonSchemaErrorBase { | ||
@@ -64,2 +65,5 @@ } | ||
let sourceSchemaTreeNode = _getSchemaNodeForPath(this.$$schema(), source); | ||
if (!sourceSchemaTreeNode) { | ||
return false; | ||
} | ||
const fragments = _parseJsonPath(destination); | ||
@@ -147,2 +151,2 @@ const maybeValue = fragments.reduce((value, current) => { | ||
exports.SchemaClassFactory = SchemaClassFactory; | ||
//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@ngtools/json-schema/src/schema-class-factory.js.map | ||
//# sourceMappingURL=/users/hans/sources/angular-cli/src/schema-class-factory.js.map |
@@ -48,3 +48,3 @@ import { JsonSchemaErrorBase } from './error'; | ||
readonly required: boolean; | ||
isChildRequired(name: string): boolean; | ||
isChildRequired(_name: string): boolean; | ||
readonly parent: SchemaTreeNode<any>; | ||
@@ -57,4 +57,4 @@ readonly children: { | ||
abstract get(): T; | ||
set(v: T, init?: boolean, force?: boolean): void; | ||
isCompatible(v: any): boolean; | ||
set(_v: T, _init?: boolean, _force?: boolean): void; | ||
isCompatible(_v: any): boolean; | ||
abstract serialize(serializer: Serializer): void; | ||
@@ -75,3 +75,3 @@ protected static _defineProperty<T>(proto: any, treeNode: SchemaTreeNode<T>): void; | ||
_set(v: any, init: boolean, force: boolean): void; | ||
set(v: any, init?: boolean, force?: boolean): void; | ||
set(v: any, _init?: boolean, force?: boolean): void; | ||
get(): any; | ||
@@ -112,3 +112,3 @@ readonly defaultValue: any | null; | ||
constructor(metaData: TreeNodeConstructorArgument<Array<any>>); | ||
_set(value: any, init: boolean, force: boolean): void; | ||
_set(value: any, init: boolean, _force: boolean): void; | ||
set(v: any, init?: boolean, force?: boolean): void; | ||
@@ -115,0 +115,0 @@ isCompatible(v: any): boolean; |
"use strict"; | ||
const error_1 = require('./error'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const error_1 = require("./error"); | ||
class InvalidSchema extends error_1.JsonSchemaErrorBase { | ||
@@ -49,5 +50,2 @@ } | ||
get value() { return this.get(); } | ||
get type() { } | ||
get tsType() { } | ||
get defaultValue() { } | ||
get name() { return this._name; } | ||
@@ -65,3 +63,3 @@ get readOnly() { return this._schema['readOnly']; } | ||
} | ||
isChildRequired(name) { return false; } | ||
isChildRequired(_name) { return false; } | ||
get parent() { return this._parent; } | ||
@@ -71,3 +69,3 @@ get children() { return null; } | ||
get itemPrototype() { return null; } | ||
set(v, init = false, force = false) { | ||
set(_v, _init = false, _force = false) { | ||
if (!this.readOnly) { | ||
@@ -79,3 +77,3 @@ throw new MissingImplementationError(); | ||
; | ||
isCompatible(v) { return false; } | ||
isCompatible(_v) { return false; } | ||
static _defineProperty(proto, treeNode) { | ||
@@ -194,3 +192,3 @@ if (treeNode.readOnly) { | ||
} | ||
set(v, init = false, force = false) { | ||
set(v, _init = false, force = false) { | ||
return this._set(v, false, force); | ||
@@ -278,3 +276,3 @@ } | ||
} | ||
_set(value, init, force) { | ||
_set(value, init, _force) { | ||
const schema = this._schema; | ||
@@ -430,2 +428,2 @@ const forward = this._forward; | ||
} | ||
//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@ngtools/json-schema/src/schema-tree.js.map | ||
//# sourceMappingURL=/users/hans/sources/angular-cli/src/schema-tree.js.map |
"use strict"; | ||
const error_1 = require('./error'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const error_1 = require("./error"); | ||
class InvalidStateError extends error_1.JsonSchemaErrorBase { | ||
@@ -9,2 +10,2 @@ } | ||
exports.Serializer = Serializer; | ||
//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@ngtools/json-schema/src/serializer.js.map | ||
//# sourceMappingURL=/users/hans/sources/angular-cli/src/serializer.js.map |
@@ -19,7 +19,7 @@ import { SchemaNode } from '../node'; | ||
outputEnum(node: SchemaNode): void; | ||
outputValue(node: SchemaNode): void; | ||
outputString(node: SchemaNode): void; | ||
outputNumber(node: SchemaNode): void; | ||
outputInteger(node: SchemaNode): void; | ||
outputBoolean(node: SchemaNode): void; | ||
outputValue(_node: SchemaNode): void; | ||
outputString(_node: SchemaNode): void; | ||
outputNumber(_node: SchemaNode): void; | ||
outputInteger(_node: SchemaNode): void; | ||
outputBoolean(_node: SchemaNode): void; | ||
} |
"use strict"; | ||
const serializer_1 = require('../serializer'); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const serializer_1 = require("../serializer"); | ||
class DTsSerializer { | ||
@@ -118,19 +119,19 @@ constructor(_writer, interfaceName, _indentDelta = 4) { | ||
} | ||
outputValue(node) { | ||
outputValue(_node) { | ||
this._willOutputValue(); | ||
this._writer('any'); | ||
} | ||
outputString(node) { | ||
outputString(_node) { | ||
this._willOutputValue(); | ||
this._writer('string'); | ||
} | ||
outputNumber(node) { | ||
outputNumber(_node) { | ||
this._willOutputValue(); | ||
this._writer('number'); | ||
} | ||
outputInteger(node) { | ||
outputInteger(_node) { | ||
this._willOutputValue(); | ||
this._writer('number'); | ||
} | ||
outputBoolean(node) { | ||
outputBoolean(_node) { | ||
this._willOutputValue(); | ||
@@ -141,2 +142,2 @@ this._writer('boolean'); | ||
exports.DTsSerializer = DTsSerializer; | ||
//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@ngtools/json-schema/src/serializers/dts.js.map | ||
//# sourceMappingURL=/users/hans/sources/angular-cli/src/serializers/dts.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class JsonSerializer { | ||
@@ -124,2 +125,2 @@ constructor(_writer, _indentDelta = 2) { | ||
exports.JsonSerializer = JsonSerializer; | ||
//# sourceMappingURL=/Users/hansl/Sources/angular-cli/packages/@ngtools/json-schema/src/serializers/json.js.map | ||
//# sourceMappingURL=/users/hans/sources/angular-cli/src/serializers/json.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72595
1164