Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-proxy

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-proxy - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

16

cjs/index.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc