@journeyapps/evaluator
Advanced tools
Comparing version 0.0.0-dev.5a956a3.ec11526 to 0.0.0-dev.5ab78c8
export interface TypeInterface { | ||
name: string; | ||
options: object; | ||
isPrimitiveType: boolean; | ||
objectType?: TypeInterface; | ||
getVariable(expression: string): any; | ||
@@ -8,5 +10,4 @@ getVariableTypeAndNameWithParent(expression: string): any; | ||
toJSON(): any; | ||
stringify(): string; | ||
format(value: any, format?: string): string; | ||
options: object; | ||
stringify(): string; | ||
} |
@@ -9,3 +9,3 @@ /** | ||
import { TypeInterface } from './TypeInterface'; | ||
export declare type VariableScope = Record<string, any> & { | ||
export type VariableScope = Record<string, any> & { | ||
type: TypeInterface; | ||
@@ -12,0 +12,0 @@ _display?(): Promise<string>; |
@@ -11,3 +11,3 @@ "use strict"; | ||
this.expression = expression || ''; | ||
this.tokens = tools_1.compile(this.expression); | ||
this.tokens = (0, tools_1.compile)(this.expression); | ||
this.type = FormatString.TYPE; | ||
@@ -44,3 +44,3 @@ } | ||
var expression = token.expression; | ||
tools_1.extract(type, expression, result, depth); | ||
(0, tools_1.extract)(type, expression, result, depth); | ||
} | ||
@@ -177,3 +177,3 @@ } | ||
const type = scope.getExpressionType(expression); | ||
const text = tools_1.formatValue(value, type, token.format); | ||
const text = (0, tools_1.formatValue)(value, type, token.format); | ||
result += text; | ||
@@ -180,0 +180,0 @@ } |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
@@ -30,3 +30,3 @@ "use strict"; | ||
const type = scope.getExpressionType(expression); | ||
return tools_1.formatValueAsync(value, type, this.format); | ||
return (0, tools_1.formatValueAsync)(value, type, this.format); | ||
} | ||
@@ -33,0 +33,0 @@ } |
@@ -23,3 +23,3 @@ "use strict"; | ||
const type = scope.getExpressionType(expression); | ||
return tools_1.formatValueAsync(value, type, this.format); | ||
return (0, tools_1.formatValueAsync)(value, type, this.format); | ||
} | ||
@@ -26,0 +26,0 @@ } |
{ | ||
"name": "@journeyapps/evaluator", | ||
"version": "0.0.0-dev.5a956a3.ec11526", | ||
"description": "Journey JS library", | ||
"version": "0.0.0-dev.5ab78c8", | ||
"description": "Journey Evaluator library", | ||
"main": "./dist/src/index.js", | ||
"typings": "./dist/@types/src/index", | ||
"scripts": { | ||
"build": "../node_modules/.bin/tsc --build", | ||
"test": "yarn build && yarn test:node && yarn test:browser", | ||
"test:browser": "karma start karma.conf.js --single-run", | ||
"test:node": "jasmine dist/test/unit/all.js" | ||
}, | ||
"dependencies": { | ||
"@journeyapps/core-xml": "0.0.0-dev.5a956a3.ec11526" | ||
"@journeyapps/core-xml": "0.0.0-dev.5ab78c8" | ||
}, | ||
@@ -20,3 +14,11 @@ "files": [ | ||
], | ||
"gitHead": "0788ae6d48b7261e0453a0e758152e9705744e53" | ||
} | ||
"devDependencies": { | ||
"@journeyapps/core-test-helpers": "^0.0.0-dev.5ab78c8" | ||
}, | ||
"scripts": { | ||
"build": "../node_modules/.bin/tsc --build", | ||
"test": "pnpm build && pnpm test:node && pnpm test:browser", | ||
"test:browser": "karma start karma.conf.js --single-run", | ||
"test:node": "jasmine dist/test/unit/all.js" | ||
} | ||
} |
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
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
125806
47
1190
1
+ Added@journeyapps/core-xml@0.0.0-dev.5ab78c8(transitive)
+ Added@journeyapps/domparser@0.4.1(transitive)
+ Addedxmldom@0.6.0(transitive)
- Removed@journeyapps/core-xml@0.0.0-dev.5a956a3.ec11526(transitive)
- Removed@journeyapps/domparser@0.3.0(transitive)