@player-ui/expressions
Advanced tools
Comparing version 0.0.1-next.5 to 0.0.1-next.6
@@ -5,3 +5,3 @@ 'use strict'; | ||
var tapable = require('tapable'); | ||
var tapableTs = require('tapable-ts'); | ||
@@ -646,8 +646,4 @@ const ExpNodeOpaqueIdentifier = Symbol("Expression Node ID"); | ||
this.hooks = { | ||
resolve: new tapable.SyncWaterfallHook([ | ||
"value", | ||
"node", | ||
"options" | ||
]), | ||
onError: new tapable.SyncBailHook(["error"]) | ||
resolve: new tapableTs.SyncWaterfallHook(), | ||
onError: new tapableTs.SyncBailHook() | ||
}; | ||
@@ -654,0 +650,0 @@ this.expressionsCache = new Map(); |
@@ -1,2 +0,2 @@ | ||
import { SyncWaterfallHook, SyncBailHook } from 'tapable'; | ||
import { SyncWaterfallHook, SyncBailHook } from 'tapable-ts'; | ||
import { DataModelWithParser } from '@player-ui/data'; | ||
@@ -136,3 +136,3 @@ import { Logger } from '@player-ui/logger'; | ||
/** Resolve an AST node for an expression to a value */ | ||
resolve: SyncWaterfallHook<any, ExpressionNode, HookOptions>; | ||
resolve: SyncWaterfallHook<[any, ExpressionNode, HookOptions], Record<string, any>>; | ||
/** | ||
@@ -142,3 +142,3 @@ * An optional means of handling an error in the expression execution | ||
*/ | ||
onError: SyncBailHook<Error, never, never, true>; | ||
onError: SyncBailHook<[Error], true, Record<string, any>>; | ||
}; | ||
@@ -145,0 +145,0 @@ private readonly expressionsCache; |
@@ -1,2 +0,2 @@ | ||
import { SyncWaterfallHook, SyncBailHook } from 'tapable'; | ||
import { SyncWaterfallHook, SyncBailHook } from 'tapable-ts'; | ||
@@ -641,8 +641,4 @@ const ExpNodeOpaqueIdentifier = Symbol("Expression Node ID"); | ||
this.hooks = { | ||
resolve: new SyncWaterfallHook([ | ||
"value", | ||
"node", | ||
"options" | ||
]), | ||
onError: new SyncBailHook(["error"]) | ||
resolve: new SyncWaterfallHook(), | ||
onError: new SyncBailHook() | ||
}; | ||
@@ -649,0 +645,0 @@ this.expressionsCache = new Map(); |
{ | ||
"name": "@player-ui/expressions", | ||
"version": "0.0.1-next.5", | ||
"version": "0.0.1-next.6", | ||
"private": false, | ||
@@ -10,8 +10,8 @@ "publishConfig": { | ||
"dependencies": { | ||
"@player-ui/binding": "0.0.1-next.5", | ||
"@player-ui/data": "0.0.1-next.5", | ||
"@player-ui/string-resolver": "0.0.1-next.5", | ||
"@player-ui/types": "0.0.1-next.5", | ||
"@player-ui/logger": "0.0.1-next.5", | ||
"tapable": "1.1.3", | ||
"@player-ui/binding": "0.0.1-next.6", | ||
"@player-ui/data": "0.0.1-next.6", | ||
"@player-ui/string-resolver": "0.0.1-next.6", | ||
"@player-ui/types": "0.0.1-next.6", | ||
"@player-ui/logger": "0.0.1-next.6", | ||
"tapable-ts": "^0.1.0", | ||
"@babel/runtime": "7.15.4" | ||
@@ -18,0 +18,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { SyncWaterfallHook, SyncBailHook } from 'tapable'; | ||
import { SyncWaterfallHook, SyncBailHook } from 'tapable-ts'; | ||
import parse from './parser'; | ||
@@ -93,7 +93,3 @@ import * as DEFAULT_EXPRESSION_HANDLERS from './evaluator-functions'; | ||
/** Resolve an AST node for an expression to a value */ | ||
resolve: new SyncWaterfallHook<any, ExpressionNode, HookOptions>([ | ||
'value', | ||
'node', | ||
'options', | ||
]), | ||
resolve: new SyncWaterfallHook<[any, ExpressionNode, HookOptions]>(), | ||
@@ -104,3 +100,3 @@ /** | ||
*/ | ||
onError: new SyncBailHook<Error, never, never, true>(['error']), | ||
onError: new SyncBailHook<[Error], true>(), | ||
}; | ||
@@ -107,0 +103,0 @@ |
94156
3085
+ Addedtapable-ts@^0.1.0
+ Added@player-ui/binding@0.0.1-next.6(transitive)
+ Added@player-ui/binding-grammar@0.0.1-next.6(transitive)
+ Added@player-ui/data@0.0.1-next.6(transitive)
+ Added@player-ui/logger@0.0.1-next.6(transitive)
+ Added@player-ui/string-resolver@0.0.1-next.6(transitive)
+ Added@player-ui/types@0.0.1-next.6(transitive)
+ Addedtapable-ts@0.1.0(transitive)
- Removedtapable@1.1.3
- Removed@player-ui/binding@0.0.1-next.5(transitive)
- Removed@player-ui/binding-grammar@0.0.1-next.5(transitive)
- Removed@player-ui/data@0.0.1-next.5(transitive)
- Removed@player-ui/logger@0.0.1-next.5(transitive)
- Removed@player-ui/string-resolver@0.0.1-next.5(transitive)
- Removed@player-ui/types@0.0.1-next.5(transitive)
- Removed@types/tapable@1.0.12(transitive)
- Removedtapable@1.1.3(transitive)
Updated@player-ui/data@0.0.1-next.6