Comparing version 0.4.0 to 0.4.1
@@ -75,2 +75,6 @@ 'use strict'; | ||
const proxy = {}; | ||
const set = (p, type) => { | ||
typesOf.set(p, type); | ||
return p; | ||
}; | ||
const utils = { | ||
@@ -92,3 +96,3 @@ proxy, | ||
})); | ||
proxy[type] = ($, ..._) => JSProxy($, [ $ ], handler, ..._); | ||
proxy[type] = ($, ..._) => set(JSProxy($, [ $ ], handler, ..._), ARRAY); | ||
break; | ||
@@ -102,3 +106,3 @@ } | ||
})); | ||
proxy[type] = ($, ..._) => JSProxy($, bound($), handler, ..._); | ||
proxy[type] = ($, ..._) => set(JSProxy($, bound($), handler, ..._), FUNCTION); | ||
break; | ||
@@ -112,3 +116,3 @@ } | ||
})); | ||
proxy[type] = ($, ..._) => JSProxy($, { $ }, handler, ..._); | ||
proxy[type] = ($, ..._) => set(JSProxy($, { $ }, handler, ..._), OBJECT); | ||
break; | ||
@@ -120,7 +124,3 @@ } | ||
})); | ||
proxy[type] = ($, ..._) => { | ||
const p = JSProxy($, $, handler, ..._); | ||
typesOf.set(p, type); | ||
return p; | ||
}; | ||
proxy[type] = ($, ..._) => set(JSProxy($, $, handler, ..._), type); | ||
break; | ||
@@ -127,0 +127,0 @@ } |
@@ -74,2 +74,6 @@ import { ARRAY, FUNCTION, NULL, OBJECT, UNDEFINED } from 'proxy-target/types'; | ||
const proxy = {}; | ||
const set = (p, type) => { | ||
typesOf.set(p, type); | ||
return p; | ||
}; | ||
const utils = { | ||
@@ -91,3 +95,3 @@ proxy, | ||
})); | ||
proxy[type] = ($, ..._) => JSProxy($, [ $ ], handler, ..._); | ||
proxy[type] = ($, ..._) => set(JSProxy($, [ $ ], handler, ..._), ARRAY); | ||
break; | ||
@@ -101,3 +105,3 @@ } | ||
})); | ||
proxy[type] = ($, ..._) => JSProxy($, bound($), handler, ..._); | ||
proxy[type] = ($, ..._) => set(JSProxy($, bound($), handler, ..._), FUNCTION); | ||
break; | ||
@@ -111,3 +115,3 @@ } | ||
})); | ||
proxy[type] = ($, ..._) => JSProxy($, { $ }, handler, ..._); | ||
proxy[type] = ($, ..._) => set(JSProxy($, { $ }, handler, ..._), OBJECT); | ||
break; | ||
@@ -119,7 +123,3 @@ } | ||
})); | ||
proxy[type] = ($, ..._) => { | ||
const p = JSProxy($, $, handler, ..._); | ||
typesOf.set(p, type); | ||
return p; | ||
}; | ||
proxy[type] = ($, ..._) => set(JSProxy($, $, handler, ..._), type); | ||
break; | ||
@@ -126,0 +126,0 @@ } |
{ | ||
"name": "js-proxy", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "The one-stop shop solution for JS Proxies and FFI APIs", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
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
29443