🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

tapable-ts

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tapable-ts - npm Package Compare versions

Comparing version

to
0.2.2

0

dist/hooks.d.ts

@@ -0,0 +0,0 @@ declare type Interceptor<Args extends any[], ReturnType, ContextType> = {

12

dist/hooks.js

@@ -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