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