@journeyapps/parser-schema
Advanced tools
Comparing version 0.0.0-dev-20230816092339 to 0.0.0-dev-20230821024315
@@ -18,3 +18,3 @@ import { Type } from './Type'; | ||
static readonly TYPE = "object"; | ||
static isInstanceOf(type: any): type is ObjectType; | ||
static isInstanceOf(type: Type): type is ObjectType; | ||
displayFormat: FormatString | null; | ||
@@ -21,0 +21,0 @@ displaySource?: XMLElement; |
@@ -13,5 +13,4 @@ import { AbstractObjectTypeFactory, GenerateTypeEvent } from '../schema/TypeFactory'; | ||
static readonly TYPE = "variable"; | ||
static isInstanceOf(obj: any): obj is Variable; | ||
name: string; | ||
type: T | null; | ||
type: T; | ||
errors: any[]; | ||
@@ -26,3 +25,3 @@ label?: string; | ||
provideValue?: string; | ||
constructor(name: string, type: T | null); | ||
constructor(name: string, type: T); | ||
toJSON(): VariableJsonType; | ||
@@ -29,0 +28,0 @@ } |
@@ -56,3 +56,2 @@ "use strict"; | ||
toJSON() { | ||
var _a; | ||
let belongsTo = {}; | ||
@@ -75,3 +74,3 @@ // hasMany is not populated yet | ||
hasMany: hasMany, | ||
display: '' + ((_a = this.displayFormat) === null || _a === void 0 ? void 0 : _a.toString()) | ||
display: '' + this.displayFormat.toString() | ||
}; | ||
@@ -78,0 +77,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
const ObjectType_1 = require("./ObjectType"); | ||
// Variable constructor. A variable is simply a name and a type (can be null). | ||
// Variable constructor. A variable is simply a name and a type. | ||
class Variable { | ||
@@ -14,5 +14,2 @@ constructor(name, type) { | ||
} | ||
static isInstanceOf(obj) { | ||
return obj instanceof Variable || 'name' in obj; | ||
} | ||
toJSON() { | ||
@@ -19,0 +16,0 @@ const result = { |
{ | ||
"name": "@journeyapps/parser-schema", | ||
"version": "0.0.0-dev-20230816092339", | ||
"version": "0.0.0-dev-20230821024315", | ||
"description": "Journey Parser Schema library", | ||
@@ -9,8 +9,8 @@ "main": "./dist/src/index.js", | ||
"@journeyapps/core-xml": "5.0.2", | ||
"@journeyapps/evaluator": "0.0.0-dev-20230816092339", | ||
"@journeyapps/parser-common": "0.0.0-dev-20230816092339" | ||
"@journeyapps/evaluator": "6.2.3", | ||
"@journeyapps/parser-common": "0.0.0-dev-20230821024315" | ||
}, | ||
"devDependencies": { | ||
"@journeyapps/core-test-helpers": "^4.1.1", | ||
"@journeyapps/domparser": "^0.3.0" | ||
"@journeyapps/domparser": "^0.4.1" | ||
}, | ||
@@ -17,0 +17,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
284813
2848
+ Added@journeyapps/domparser@0.4.1(transitive)
+ Added@journeyapps/evaluator@6.2.3(transitive)
+ Added@journeyapps/parser-common@0.0.0-dev-20230821024315(transitive)
- Removed@journeyapps/evaluator@0.0.0-dev-20230816092339(transitive)
- Removed@journeyapps/parser-common@0.0.0-dev-20230816092339(transitive)
Updated@journeyapps/evaluator@6.2.3