@journeyapps/evaluator
Advanced tools
Comparing version 2.31.1-dev.edcbde0.d91c891 to 3.0.0
@@ -23,4 +23,6 @@ import { TokenExpression } from './token-expressions/TokenExpression'; | ||
}[][]; | ||
evaluatePromise(scope: any): Promise<string>; | ||
getConstantValue(): any; | ||
valueOf(): string; | ||
evaluatePromise(scope: any, args?: any[]): Promise<string>; | ||
evaluate(scope: any): string; | ||
} |
@@ -17,2 +17,3 @@ /** | ||
isFunction(): boolean; | ||
tokenEvaluatePromise(scope: any, args?: any): Promise<any>; | ||
} |
@@ -103,4 +103,16 @@ "use strict"; | ||
} | ||
getConstantValue() { | ||
if (!this.isConstant()) { | ||
throw new Error('Not constant!'); | ||
} | ||
return this.tokens[0].valueOf(); | ||
} | ||
// This helps speed up dirty-checking. | ||
// With this, we can use "by reference" checking in watches. | ||
valueOf() { | ||
return this.expression; | ||
} | ||
; | ||
// Implemented elsewhere | ||
evaluatePromise(scope) { | ||
evaluatePromise(scope, args) { | ||
throw new Error('Not implemented'); | ||
@@ -107,0 +119,0 @@ } |
@@ -39,4 +39,8 @@ "use strict"; | ||
} | ||
// Implemented elsewhere | ||
tokenEvaluatePromise(scope, args) { | ||
throw new Error('Not implemented'); | ||
} | ||
} | ||
exports.TokenExpression = TokenExpression; | ||
//# sourceMappingURL=TokenExpression.js.map |
{ | ||
"name": "@journeyapps/evaluator", | ||
"version": "2.31.1-dev.edcbde0.d91c891", | ||
"version": "3.0.0", | ||
"description": "Journey JS library", | ||
@@ -14,3 +14,3 @@ "main": "./dist/src/index.js", | ||
"dependencies": { | ||
"@journeyapps/core-xml": "2.31.1-dev.edcbde0.d91c891" | ||
"@journeyapps/core-xml": "^3.0.0" | ||
}, | ||
@@ -21,3 +21,3 @@ "files": [ | ||
], | ||
"gitHead": "a12b55b708400f69c5a8cf1cb740c8fb81e1922d" | ||
"gitHead": "e48a0f8658f34b5baac08bb2aa3afc1da1c96f17" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
73368
826
1
+ Added@journeyapps/core-xml@3.2.2(transitive)
+ Added@journeyapps/domparser@0.3.0(transitive)
- Removed@journeyapps/core-xml@2.31.1-dev.edcbde0.d91c891(transitive)
Updated@journeyapps/core-xml@^3.0.0