@player-ui/binding
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'); | ||
var NestedError = require('nested-error-stacks'); | ||
@@ -215,4 +215,4 @@ var bindingGrammar = require('@player-ui/binding-grammar'); | ||
this.hooks = { | ||
skipOptimization: new tapable.SyncBailHook(["path"]), | ||
beforeResolveNode: new tapable.SyncWaterfallHook(["node", "context"]) | ||
skipOptimization: new tapableTs.SyncBailHook(), | ||
beforeResolveNode: new tapableTs.SyncWaterfallHook() | ||
}; | ||
@@ -219,0 +219,0 @@ this.parserOptions = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), options); |
@@ -1,2 +0,2 @@ | ||
import { SyncBailHook, SyncWaterfallHook } from 'tapable'; | ||
import { SyncBailHook, SyncWaterfallHook } from 'tapable-ts'; | ||
import { AnyNode } from '@player-ui/binding-grammar'; | ||
@@ -80,4 +80,4 @@ | ||
hooks: { | ||
skipOptimization: SyncBailHook<string, void, void, boolean>; | ||
beforeResolveNode: SyncWaterfallHook<AnyNode, Required<NormalizedResult> & ResolveBindingASTOptions, any>; | ||
skipOptimization: SyncBailHook<[string], boolean, Record<string, any>>; | ||
beforeResolveNode: SyncWaterfallHook<[AnyNode, Required<NormalizedResult> & ResolveBindingASTOptions], Record<string, any>>; | ||
}; | ||
@@ -84,0 +84,0 @@ constructor(options?: Partial<BindingParserOptions>); |
@@ -1,2 +0,2 @@ | ||
import { SyncBailHook, SyncWaterfallHook } from 'tapable'; | ||
import { SyncBailHook, SyncWaterfallHook } from 'tapable-ts'; | ||
import NestedError from 'nested-error-stacks'; | ||
@@ -206,4 +206,4 @@ import { parseCustom } from '@player-ui/binding-grammar'; | ||
this.hooks = { | ||
skipOptimization: new SyncBailHook(["path"]), | ||
beforeResolveNode: new SyncWaterfallHook(["node", "context"]) | ||
skipOptimization: new SyncBailHook(), | ||
beforeResolveNode: new SyncWaterfallHook() | ||
}; | ||
@@ -210,0 +210,0 @@ this.parserOptions = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), options); |
{ | ||
"name": "@player-ui/binding", | ||
"version": "0.0.1-next.5", | ||
"version": "0.0.1-next.6", | ||
"private": false, | ||
@@ -10,5 +10,4 @@ "publishConfig": { | ||
"dependencies": { | ||
"@player-ui/binding-grammar": "0.0.1-next.5", | ||
"tapable": "1.1.3", | ||
"@types/tapable": "^1.0.5", | ||
"@player-ui/binding-grammar": "0.0.1-next.6", | ||
"tapable-ts": "^0.1.0", | ||
"nested-error-stacks": "^2.1.1", | ||
@@ -15,0 +14,0 @@ "@types/nested-error-stacks": "^2.1.0", |
@@ -1,2 +0,2 @@ | ||
import { SyncBailHook, SyncWaterfallHook } from 'tapable'; | ||
import { SyncBailHook, SyncWaterfallHook } from 'tapable-ts'; | ||
import NestedError from 'nested-error-stacks'; | ||
@@ -38,7 +38,6 @@ import type { ParserResult, AnyNode } from '@player-ui/binding-grammar'; | ||
public hooks = { | ||
skipOptimization: new SyncBailHook<string, void, void, boolean>(['path']), | ||
skipOptimization: new SyncBailHook<[string], boolean>(), | ||
beforeResolveNode: new SyncWaterfallHook< | ||
AnyNode, | ||
Required<NormalizedResult> & ResolveBindingASTOptions | ||
>(['node', 'context']), | ||
[AnyNode, Required<NormalizedResult> & ResolveBindingASTOptions] | ||
>(), | ||
}; | ||
@@ -45,0 +44,0 @@ |
import type { PathNode, AnyNode } from '@player-ui/binding-grammar'; | ||
import NestedError from 'nested-error-stacks'; | ||
import type { SyncWaterfallHook } from 'tapable'; | ||
import type { SyncWaterfallHook } from 'tapable-ts'; | ||
import { maybeConvertToNum } from '.'; | ||
@@ -29,4 +29,3 @@ import { findInArray } from './utils'; | ||
beforeResolveNode: SyncWaterfallHook< | ||
AnyNode, | ||
Required<NormalizedResult> & ResolveBindingASTOptions | ||
[AnyNode, Required<NormalizedResult> & ResolveBindingASTOptions] | ||
>; | ||
@@ -33,0 +32,0 @@ } |
5
38438
1080
+ Addedtapable-ts@^0.1.0
+ Added@player-ui/binding-grammar@0.0.1-next.6(transitive)
+ Addedtapable-ts@0.1.0(transitive)
- Removed@types/tapable@^1.0.5
- Removedtapable@1.1.3
- Removed@player-ui/binding-grammar@0.0.1-next.5(transitive)
- Removed@types/tapable@1.0.12(transitive)
- Removedtapable@1.1.3(transitive)