New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

proxy-compat

Package Overview
Dependencies
Maintainers
12
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-compat - npm Package Compare versions

Comparing version 0.21.7 to 0.22.0

64

dist/commonjs/proxy-compat.js

@@ -406,42 +406,42 @@ /* proxy-compat-disable */

XProxy.prototype.push = function () {
var push$$1 = this.get('push');
if (push$$1 === Array.prototype.push) {
push$$1 = push;
var push$1 = this.get('push');
if (push$1 === Array.prototype.push) {
push$1 = push;
}
return push$$1.apply(this, arguments);
return push$1.apply(this, arguments);
};
XProxy.prototype.pop = function () {
var pop$$1 = this.get('pop');
if (pop$$1 === Array.prototype.pop) {
pop$$1 = pop;
var pop$1 = this.get('pop');
if (pop$1 === Array.prototype.pop) {
pop$1 = pop;
}
return pop$$1.apply(this, arguments);
return pop$1.apply(this, arguments);
};
XProxy.prototype.concat = function () {
var concat$$1 = this.get('concat');
if (concat$$1 === Array.prototype.concat) {
concat$$1 = concat$1;
var concat = this.get('concat');
if (concat === Array.prototype.concat) {
concat = concat$1;
}
return concat$$1.apply(this, arguments);
return concat.apply(this, arguments);
};
XProxy.prototype.splice = function () {
var splice$$1 = this.get('splice');
if (splice$$1 === Array.prototype.splice) {
splice$$1 = splice;
var splice$1 = this.get('splice');
if (splice$1 === Array.prototype.splice) {
splice$1 = splice;
}
return splice$$1.apply(this, arguments);
return splice$1.apply(this, arguments);
};
XProxy.prototype.shift = function () {
var shift$$1 = this.get('shift');
if (shift$$1 === Array.prototype.shift) {
shift$$1 = shift;
var shift$1 = this.get('shift');
if (shift$1 === Array.prototype.shift) {
shift$1 = shift;
}
return shift$$1.apply(this, arguments);
return shift$1.apply(this, arguments);
};
XProxy.prototype.unshift = function () {
var unshift$$1 = this.get('unshift');
if (unshift$$1 === Array.prototype.unshift) {
unshift$$1 = unshift;
var unshift$1 = this.get('unshift');
if (unshift$1 === Array.prototype.unshift) {
unshift$1 = unshift;
}
return unshift$$1.apply(this, arguments);
return unshift$1.apply(this, arguments);
};

@@ -462,7 +462,7 @@ XProxy.prototype.toJSON = function () {

}
var keys$$1 = this.ownKeys();
var keys = this.ownKeys();
var unwrappedObject = {};
// tslint:disable-next-line:prefer-for-of
for (var i = 0; i < keys$$1.length; i++) {
var key = keys$$1[i];
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var enumerable = this.getOwnPropertyDescriptor(key).enumerable;

@@ -489,4 +489,4 @@ if (enumerable) {

// We need our shimmed version.
var getPrototypeOf$$1 = Object.getPrototypeOf;
var instanceProto = getPrototypeOf$$1(instance);
var getPrototypeOf = Object.getPrototypeOf;
var instanceProto = getPrototypeOf(instance);
var TypeProto = getKey(Type, 'prototype');

@@ -497,3 +497,3 @@ while (instanceProto !== null) {

}
instanceProto = getPrototypeOf$$1(instanceProto);
instanceProto = getPrototypeOf(instanceProto);
}

@@ -604,3 +604,3 @@ return false;

}
function concat$$1(replicaOrAny) {
function concat(replicaOrAny) {
var fn = getKey(replicaOrAny, 'concat');

@@ -1027,3 +1027,3 @@ if (fn === Array.prototype.concat) {

FinalProxy.instanceOfKey = instanceOfKey;
FinalProxy.concat = concat$$1;
FinalProxy.concat = concat;
FinalProxy.hasOwnProperty = hasOwnProperty$2;

@@ -1030,0 +1030,0 @@ if (typeof Proxy === 'undefined') {

@@ -7,4 +7,4 @@ (function() {

typeof define === 'function' && define.amd ? define(factory) :
(global.Proxy = factory());
}(this, (function () { 'use strict';
(global = global || self, global.Proxy = factory());
}(this, function () { 'use strict';

@@ -413,42 +413,42 @@ function __extends(d, b) {

XProxy.prototype.push = function () {
var push$$1 = this.get('push');
if (push$$1 === Array.prototype.push) {
push$$1 = push;
var push$1 = this.get('push');
if (push$1 === Array.prototype.push) {
push$1 = push;
}
return push$$1.apply(this, arguments);
return push$1.apply(this, arguments);
};
XProxy.prototype.pop = function () {
var pop$$1 = this.get('pop');
if (pop$$1 === Array.prototype.pop) {
pop$$1 = pop;
var pop$1 = this.get('pop');
if (pop$1 === Array.prototype.pop) {
pop$1 = pop;
}
return pop$$1.apply(this, arguments);
return pop$1.apply(this, arguments);
};
XProxy.prototype.concat = function () {
var concat$$1 = this.get('concat');
if (concat$$1 === Array.prototype.concat) {
concat$$1 = concat$1;
var concat = this.get('concat');
if (concat === Array.prototype.concat) {
concat = concat$1;
}
return concat$$1.apply(this, arguments);
return concat.apply(this, arguments);
};
XProxy.prototype.splice = function () {
var splice$$1 = this.get('splice');
if (splice$$1 === Array.prototype.splice) {
splice$$1 = splice;
var splice$1 = this.get('splice');
if (splice$1 === Array.prototype.splice) {
splice$1 = splice;
}
return splice$$1.apply(this, arguments);
return splice$1.apply(this, arguments);
};
XProxy.prototype.shift = function () {
var shift$$1 = this.get('shift');
if (shift$$1 === Array.prototype.shift) {
shift$$1 = shift;
var shift$1 = this.get('shift');
if (shift$1 === Array.prototype.shift) {
shift$1 = shift;
}
return shift$$1.apply(this, arguments);
return shift$1.apply(this, arguments);
};
XProxy.prototype.unshift = function () {
var unshift$$1 = this.get('unshift');
if (unshift$$1 === Array.prototype.unshift) {
unshift$$1 = unshift;
var unshift$1 = this.get('unshift');
if (unshift$1 === Array.prototype.unshift) {
unshift$1 = unshift;
}
return unshift$$1.apply(this, arguments);
return unshift$1.apply(this, arguments);
};

@@ -469,7 +469,7 @@ XProxy.prototype.toJSON = function () {

}
var keys$$1 = this.ownKeys();
var keys = this.ownKeys();
var unwrappedObject = {};
// tslint:disable-next-line:prefer-for-of
for (var i = 0; i < keys$$1.length; i++) {
var key = keys$$1[i];
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var enumerable = this.getOwnPropertyDescriptor(key).enumerable;

@@ -496,4 +496,4 @@ if (enumerable) {

// We need our shimmed version.
var getPrototypeOf$$1 = Object.getPrototypeOf;
var instanceProto = getPrototypeOf$$1(instance);
var getPrototypeOf = Object.getPrototypeOf;
var instanceProto = getPrototypeOf(instance);
var TypeProto = getKey(Type, 'prototype');

@@ -504,3 +504,3 @@ while (instanceProto !== null) {

}
instanceProto = getPrototypeOf$$1(instanceProto);
instanceProto = getPrototypeOf(instanceProto);
}

@@ -611,3 +611,3 @@ return false;

}
function concat$$1(replicaOrAny) {
function concat(replicaOrAny) {
var fn = getKey(replicaOrAny, 'concat');

@@ -1034,3 +1034,3 @@ if (fn === Array.prototype.concat) {

FinalProxy.instanceOfKey = instanceOfKey;
FinalProxy.concat = concat$$1;
FinalProxy.concat = concat;
FinalProxy.hasOwnProperty = hasOwnProperty$2;

@@ -1044,4 +1044,4 @@ if (typeof Proxy === 'undefined') {

})));
}));
}());

@@ -404,42 +404,42 @@ /* proxy-compat-disable */

XProxy.prototype.push = function () {
var push$$1 = this.get('push');
if (push$$1 === Array.prototype.push) {
push$$1 = push;
var push$1 = this.get('push');
if (push$1 === Array.prototype.push) {
push$1 = push;
}
return push$$1.apply(this, arguments);
return push$1.apply(this, arguments);
};
XProxy.prototype.pop = function () {
var pop$$1 = this.get('pop');
if (pop$$1 === Array.prototype.pop) {
pop$$1 = pop;
var pop$1 = this.get('pop');
if (pop$1 === Array.prototype.pop) {
pop$1 = pop;
}
return pop$$1.apply(this, arguments);
return pop$1.apply(this, arguments);
};
XProxy.prototype.concat = function () {
var concat$$1 = this.get('concat');
if (concat$$1 === Array.prototype.concat) {
concat$$1 = concat$1;
var concat = this.get('concat');
if (concat === Array.prototype.concat) {
concat = concat$1;
}
return concat$$1.apply(this, arguments);
return concat.apply(this, arguments);
};
XProxy.prototype.splice = function () {
var splice$$1 = this.get('splice');
if (splice$$1 === Array.prototype.splice) {
splice$$1 = splice;
var splice$1 = this.get('splice');
if (splice$1 === Array.prototype.splice) {
splice$1 = splice;
}
return splice$$1.apply(this, arguments);
return splice$1.apply(this, arguments);
};
XProxy.prototype.shift = function () {
var shift$$1 = this.get('shift');
if (shift$$1 === Array.prototype.shift) {
shift$$1 = shift;
var shift$1 = this.get('shift');
if (shift$1 === Array.prototype.shift) {
shift$1 = shift;
}
return shift$$1.apply(this, arguments);
return shift$1.apply(this, arguments);
};
XProxy.prototype.unshift = function () {
var unshift$$1 = this.get('unshift');
if (unshift$$1 === Array.prototype.unshift) {
unshift$$1 = unshift;
var unshift$1 = this.get('unshift');
if (unshift$1 === Array.prototype.unshift) {
unshift$1 = unshift;
}
return unshift$$1.apply(this, arguments);
return unshift$1.apply(this, arguments);
};

@@ -460,7 +460,7 @@ XProxy.prototype.toJSON = function () {

}
var keys$$1 = this.ownKeys();
var keys = this.ownKeys();
var unwrappedObject = {};
// tslint:disable-next-line:prefer-for-of
for (var i = 0; i < keys$$1.length; i++) {
var key = keys$$1[i];
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var enumerable = this.getOwnPropertyDescriptor(key).enumerable;

@@ -487,4 +487,4 @@ if (enumerable) {

// We need our shimmed version.
var getPrototypeOf$$1 = Object.getPrototypeOf;
var instanceProto = getPrototypeOf$$1(instance);
var getPrototypeOf = Object.getPrototypeOf;
var instanceProto = getPrototypeOf(instance);
var TypeProto = getKey(Type, 'prototype');

@@ -495,3 +495,3 @@ while (instanceProto !== null) {

}
instanceProto = getPrototypeOf$$1(instanceProto);
instanceProto = getPrototypeOf(instanceProto);
}

@@ -602,3 +602,3 @@ return false;

}
function concat$$1(replicaOrAny) {
function concat(replicaOrAny) {
var fn = getKey(replicaOrAny, 'concat');

@@ -1025,3 +1025,3 @@ if (fn === Array.prototype.concat) {

FinalProxy.instanceOfKey = instanceOfKey;
FinalProxy.concat = concat$$1;
FinalProxy.concat = concat;
FinalProxy.hasOwnProperty = hasOwnProperty$2;

@@ -1028,0 +1028,0 @@ if (typeof Proxy === 'undefined') {

@@ -5,4 +5,4 @@ /* proxy-compat-disable */

typeof define === 'function' && define.amd ? define(factory) :
(global.Proxy = factory());
}(this, (function () { 'use strict';
(global = global || self, global.Proxy = factory());
}(this, function () { 'use strict';

@@ -411,42 +411,42 @@ function __extends(d, b) {

XProxy.prototype.push = function () {
var push$$1 = this.get('push');
if (push$$1 === Array.prototype.push) {
push$$1 = push;
var push$1 = this.get('push');
if (push$1 === Array.prototype.push) {
push$1 = push;
}
return push$$1.apply(this, arguments);
return push$1.apply(this, arguments);
};
XProxy.prototype.pop = function () {
var pop$$1 = this.get('pop');
if (pop$$1 === Array.prototype.pop) {
pop$$1 = pop;
var pop$1 = this.get('pop');
if (pop$1 === Array.prototype.pop) {
pop$1 = pop;
}
return pop$$1.apply(this, arguments);
return pop$1.apply(this, arguments);
};
XProxy.prototype.concat = function () {
var concat$$1 = this.get('concat');
if (concat$$1 === Array.prototype.concat) {
concat$$1 = concat$1;
var concat = this.get('concat');
if (concat === Array.prototype.concat) {
concat = concat$1;
}
return concat$$1.apply(this, arguments);
return concat.apply(this, arguments);
};
XProxy.prototype.splice = function () {
var splice$$1 = this.get('splice');
if (splice$$1 === Array.prototype.splice) {
splice$$1 = splice;
var splice$1 = this.get('splice');
if (splice$1 === Array.prototype.splice) {
splice$1 = splice;
}
return splice$$1.apply(this, arguments);
return splice$1.apply(this, arguments);
};
XProxy.prototype.shift = function () {
var shift$$1 = this.get('shift');
if (shift$$1 === Array.prototype.shift) {
shift$$1 = shift;
var shift$1 = this.get('shift');
if (shift$1 === Array.prototype.shift) {
shift$1 = shift;
}
return shift$$1.apply(this, arguments);
return shift$1.apply(this, arguments);
};
XProxy.prototype.unshift = function () {
var unshift$$1 = this.get('unshift');
if (unshift$$1 === Array.prototype.unshift) {
unshift$$1 = unshift;
var unshift$1 = this.get('unshift');
if (unshift$1 === Array.prototype.unshift) {
unshift$1 = unshift;
}
return unshift$$1.apply(this, arguments);
return unshift$1.apply(this, arguments);
};

@@ -467,7 +467,7 @@ XProxy.prototype.toJSON = function () {

}
var keys$$1 = this.ownKeys();
var keys = this.ownKeys();
var unwrappedObject = {};
// tslint:disable-next-line:prefer-for-of
for (var i = 0; i < keys$$1.length; i++) {
var key = keys$$1[i];
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var enumerable = this.getOwnPropertyDescriptor(key).enumerable;

@@ -494,4 +494,4 @@ if (enumerable) {

// We need our shimmed version.
var getPrototypeOf$$1 = Object.getPrototypeOf;
var instanceProto = getPrototypeOf$$1(instance);
var getPrototypeOf = Object.getPrototypeOf;
var instanceProto = getPrototypeOf(instance);
var TypeProto = getKey(Type, 'prototype');

@@ -502,3 +502,3 @@ while (instanceProto !== null) {

}
instanceProto = getPrototypeOf$$1(instanceProto);
instanceProto = getPrototypeOf(instanceProto);
}

@@ -609,3 +609,3 @@ return false;

}
function concat$$1(replicaOrAny) {
function concat(replicaOrAny) {
var fn = getKey(replicaOrAny, 'concat');

@@ -1032,3 +1032,3 @@ if (fn === Array.prototype.concat) {

FinalProxy.instanceOfKey = instanceOfKey;
FinalProxy.concat = concat$$1;
FinalProxy.concat = concat;
FinalProxy.hasOwnProperty = hasOwnProperty$2;

@@ -1042,2 +1042,2 @@ if (typeof Proxy === 'undefined') {

})));
}));
{
"name": "proxy-compat",
"version": "0.21.7",
"version": "0.22.0",
"description": "Proxy Compat patches the runtime to enable Proxy in ES5",

@@ -12,7 +12,6 @@ "main": "dist/commonjs/proxy-compat.js",

"devDependencies": {
"rollup": "~0.65.2",
"rollup": "^1.7.4",
"rollup-plugin-typescript": "^0.8.1",
"typescript": "3.0.3"
},
"gitHead": "44e43fb4d406a2e4a98cb644b8cfa0dc57acda80"
}
}
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