Comparing version 0.2.1 to 0.2.2
@@ -0,0 +0,0 @@ declare type Interceptor<Args extends any[], ReturnType, ContextType> = { |
@@ -5,3 +5,9 @@ 'use strict'; | ||
var utils_ts = require('./utils.ts'); | ||
function equalToOrIn(value, check) { | ||
if (Array.isArray(check)) { | ||
return check.includes(value); | ||
} else { | ||
return check === value; | ||
} | ||
} | ||
@@ -105,6 +111,6 @@ function callTap(tap, args, ctx) { | ||
this.taps.sort((A, B) => { | ||
if (A.before && utils_ts.equalToOrIn(B.name, A.before)) { | ||
if (A.before && equalToOrIn(B.name, A.before)) { | ||
return -1; | ||
} | ||
if (B.before && utils_ts.equalToOrIn(A.name, B.before)) { | ||
if (B.before && equalToOrIn(A.name, B.before)) { | ||
return 1; | ||
@@ -111,0 +117,0 @@ } |
{ | ||
"name": "tapable-ts", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A TS implementation of tapable", | ||
@@ -5,0 +5,0 @@ "main": "./dist/hooks.js", |
@@ -0,0 +0,0 @@ # tapable-ts |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
719
0
75465