proxy-compat
Advanced tools
Comparing version 0.22.1 to 0.22.2-alpha.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.splice = exports.unshift = exports.shift = exports.concat = exports.push = exports.pop = exports.isArray = void 0; | ||
/* | ||
@@ -4,0 +5,0 @@ * Copyright (c) 2018, salesforce.com, inc. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isArray = exports.ArrayConcat = exports.ArrayUnshift = exports.ArrayShift = exports.ArraySlice = exports.setPrototypeOf = exports.getPrototypeOf = exports.isExtensible = exports.defineProperty = exports.preventExtensions = exports.getOwnPropertyNames = exports.hasOwnProperty = exports.getOwnPropertyDescriptor = exports.create = exports.keys = void 0; | ||
/* | ||
@@ -4,0 +5,0 @@ * Copyright (c) 2018, salesforce.com, inc. |
@@ -6,6 +6,8 @@ "use strict"; | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
} | ||
}; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hasOwnProperty = exports.concat = exports.instanceOfKey = exports.iterableKey = exports.inKey = exports.deleteKey = exports.setKeyPostfixDecrement = exports.setKeyPostfixIncrement = exports.setKey = exports.callKey = exports.callKey4 = exports.callKey3 = exports.callKey2 = exports.callKey1 = exports.callKey0 = exports.getKeys = exports.getKeys4 = exports.getKeys3 = exports.getKeys2 = exports.getKey = exports.isCompatProxy = exports.defaultHasInstance = void 0; | ||
/* | ||
@@ -35,3 +36,3 @@ * Copyright (c) 2018, salesforce.com, inc. | ||
exports.isCompatProxy = isCompatProxy; | ||
exports.getKey = function (replicaOrAny, k1) { | ||
var getKey = function (replicaOrAny, k1) { | ||
return replicaOrAny._ES5ProxyType ? | ||
@@ -41,7 +42,9 @@ replicaOrAny.get(k1) : | ||
}; | ||
exports.getKeys2 = function (replicaOrAny, k1, k2) { | ||
exports.getKey = getKey; | ||
var getKeys2 = function (replicaOrAny, k1, k2) { | ||
var replicaOrAny1 = replicaOrAny._ES5ProxyType ? replicaOrAny.get(k1) : replicaOrAny[k1]; | ||
return replicaOrAny1._ES5ProxyType ? replicaOrAny1.get(k2) : replicaOrAny1[k2]; | ||
}; | ||
exports.getKeys3 = function (replicaOrAny, k1, k2, k3) { | ||
exports.getKeys2 = getKeys2; | ||
var getKeys3 = function (replicaOrAny, k1, k2, k3) { | ||
var replicaOrAny1 = replicaOrAny._ES5ProxyType ? replicaOrAny.get(k1) : replicaOrAny[k1]; | ||
@@ -51,3 +54,4 @@ var replicaOrAny2 = replicaOrAny1._ES5ProxyType ? replicaOrAny1.get(k2) : replicaOrAny1[k2]; | ||
}; | ||
exports.getKeys4 = function (replicaOrAny, k1, k2, k3, k4) { | ||
exports.getKeys3 = getKeys3; | ||
var getKeys4 = function (replicaOrAny, k1, k2, k3, k4) { | ||
var replicaOrAny1 = replicaOrAny._ES5ProxyType ? replicaOrAny.get(k1) : replicaOrAny[k1]; | ||
@@ -58,3 +62,4 @@ var replicaOrAny2 = replicaOrAny1._ES5ProxyType ? replicaOrAny1.get(k2) : replicaOrAny1[k2]; | ||
}; | ||
exports.getKeys = function (replicaOrAny) { | ||
exports.getKeys4 = getKeys4; | ||
var getKeys = function (replicaOrAny) { | ||
var l = arguments.length; | ||
@@ -67,18 +72,24 @@ for (var i = 1; i < l; i++) { | ||
}; | ||
exports.callKey0 = function (replicaOrAny, key) { | ||
exports.getKeys = getKeys; | ||
var callKey0 = function (replicaOrAny, key) { | ||
return exports.getKey(replicaOrAny, key).call(replicaOrAny); | ||
}; | ||
exports.callKey1 = function (replicaOrAny, key, a1) { | ||
exports.callKey0 = callKey0; | ||
var callKey1 = function (replicaOrAny, key, a1) { | ||
return exports.getKey(replicaOrAny, key).call(replicaOrAny, a1); | ||
}; | ||
exports.callKey2 = function (replicaOrAny, key, a1, a2) { | ||
exports.callKey1 = callKey1; | ||
var callKey2 = function (replicaOrAny, key, a1, a2) { | ||
return exports.getKey(replicaOrAny, key).call(replicaOrAny, a1, a2); | ||
}; | ||
exports.callKey3 = function (replicaOrAny, key, a1, a2, a3) { | ||
exports.callKey2 = callKey2; | ||
var callKey3 = function (replicaOrAny, key, a1, a2, a3) { | ||
return exports.getKey(replicaOrAny, key).call(replicaOrAny, a1, a2, a3); | ||
}; | ||
exports.callKey4 = function (replicaOrAny, key, a1, a2, a3, a4) { | ||
exports.callKey3 = callKey3; | ||
var callKey4 = function (replicaOrAny, key, a1, a2, a3, a4) { | ||
return exports.getKey(replicaOrAny, key).call(replicaOrAny, a1, a2, a3, a4); | ||
}; | ||
exports.callKey = function (replicaOrAny, key) { | ||
exports.callKey4 = callKey4; | ||
var callKey = function (replicaOrAny, key) { | ||
var fn = exports.getKey(replicaOrAny, key); | ||
@@ -92,3 +103,4 @@ var l = arguments.length; | ||
}; | ||
exports.setKey = function (replicaOrAny, key, newValue) { | ||
exports.callKey = callKey; | ||
var setKey = function (replicaOrAny, key, newValue) { | ||
return replicaOrAny._ES5ProxyType ? | ||
@@ -98,3 +110,4 @@ replicaOrAny.set(key, newValue) : | ||
}; | ||
exports.setKeyPostfixIncrement = function (replicaOrAny, key) { | ||
exports.setKey = setKey; | ||
var setKeyPostfixIncrement = function (replicaOrAny, key) { | ||
var originalValue = exports.getKey(replicaOrAny, key); | ||
@@ -104,3 +117,4 @@ exports.setKey(replicaOrAny, key, originalValue + 1); | ||
}; | ||
exports.setKeyPostfixDecrement = function (replicaOrAny, key) { | ||
exports.setKeyPostfixIncrement = setKeyPostfixIncrement; | ||
var setKeyPostfixDecrement = function (replicaOrAny, key) { | ||
var originalValue = exports.getKey(replicaOrAny, key); | ||
@@ -110,3 +124,4 @@ exports.setKey(replicaOrAny, key, originalValue - 1); | ||
}; | ||
exports.deleteKey = function (replicaOrAny, key) { | ||
exports.setKeyPostfixDecrement = setKeyPostfixDecrement; | ||
var deleteKey = function (replicaOrAny, key) { | ||
if (replicaOrAny._ES5ProxyType) { | ||
@@ -117,3 +132,4 @@ return replicaOrAny.deleteProperty(key); | ||
}; | ||
exports.inKey = function (replicaOrAny, key) { | ||
exports.deleteKey = deleteKey; | ||
var inKey = function (replicaOrAny, key) { | ||
if (isCompatProxy(replicaOrAny)) { | ||
@@ -124,3 +140,4 @@ return replicaOrAny.has(key); | ||
}; | ||
exports.iterableKey = function (replicaOrAny) { | ||
exports.inKey = inKey; | ||
var iterableKey = function (replicaOrAny) { | ||
if (isCompatProxy(replicaOrAny)) { | ||
@@ -131,2 +148,3 @@ return replicaOrAny.forIn(); | ||
}; | ||
exports.iterableKey = iterableKey; | ||
function instanceOfKey(instance, Type) { | ||
@@ -133,0 +151,0 @@ var instanceIsCompatProxy = isCompatProxy(instance); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.defineProperty = exports.entries = exports.values = exports.keys = exports.hasOwnProperty = exports.assign = exports.OwnPropertyKeys = exports.getOwnPropertyNames = exports.getOwnPropertyDescriptor = void 0; | ||
/* | ||
@@ -4,0 +5,0 @@ * Copyright (c) 2018, salesforce.com, inc. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isFalse = exports.isUndefined = void 0; | ||
/* | ||
@@ -4,0 +5,0 @@ * Copyright (c) 2018, salesforce.com, inc. |
"use strict"; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XProxy = exports.inOperator = exports.ProxyTypeArray = exports.ProxyTypeObject = void 0; | ||
/* | ||
@@ -20,3 +26,3 @@ * Copyright (c) 2018, salesforce.com, inc. | ||
var isNotNativeSymbol; | ||
exports.inOperator = function inOperatorCompat(obj, key) { | ||
var inOperator = function inOperatorCompat(obj, key) { | ||
if (isNotNativeSymbol === undefined) { | ||
@@ -43,2 +49,3 @@ if (typeof Symbol === 'undefined') { | ||
}; | ||
exports.inOperator = inOperator; | ||
var defaultHandlerTraps = { | ||
@@ -56,3 +63,3 @@ get: function (target, key) { | ||
construct: function (targetFn, argumentsList, newTarget) { | ||
return new (targetFn.bind.apply(targetFn, [void 0].concat(argumentsList)))(); | ||
return new (targetFn.bind.apply(targetFn, __spreadArray([void 0], argumentsList)))(); | ||
}, | ||
@@ -59,0 +66,0 @@ defineProperty: function (target, property, descriptor) { |
@@ -198,3 +198,3 @@ /* proxy-compat-disable */ | ||
construct: function (targetFn, argumentsList, newTarget) { | ||
return new (targetFn.bind.apply(targetFn, [void 0].concat(argumentsList)))(); | ||
return new (targetFn.bind.apply(targetFn, __spreadArray([void 0], argumentsList)))(); | ||
}, | ||
@@ -201,0 +201,0 @@ defineProperty: function (target, property, descriptor) { |
@@ -204,3 +204,3 @@ (function() { | ||
construct: function (targetFn, argumentsList, newTarget) { | ||
return new (targetFn.bind.apply(targetFn, [void 0].concat(argumentsList)))(); | ||
return new (targetFn.bind.apply(targetFn, __spreadArray([void 0], argumentsList)))(); | ||
}, | ||
@@ -207,0 +207,0 @@ defineProperty: function (target, property, descriptor) { |
@@ -196,3 +196,3 @@ /* proxy-compat-disable */ | ||
construct: function (targetFn, argumentsList, newTarget) { | ||
return new (targetFn.bind.apply(targetFn, [void 0].concat(argumentsList)))(); | ||
return new (targetFn.bind.apply(targetFn, __spreadArray([void 0], argumentsList)))(); | ||
}, | ||
@@ -199,0 +199,0 @@ defineProperty: function (target, property, descriptor) { |
@@ -202,3 +202,3 @@ /* proxy-compat-disable */ | ||
construct: function (targetFn, argumentsList, newTarget) { | ||
return new (targetFn.bind.apply(targetFn, [void 0].concat(argumentsList)))(); | ||
return new (targetFn.bind.apply(targetFn, __spreadArray([void 0], argumentsList)))(); | ||
}, | ||
@@ -205,0 +205,0 @@ defineProperty: function (target, property, descriptor) { |
{ | ||
"name": "proxy-compat", | ||
"version": "0.22.1", | ||
"version": "0.22.2-alpha.0", | ||
"description": "Proxy Compat patches the runtime to enable Proxy in ES5", | ||
@@ -14,5 +14,5 @@ "main": "dist/commonjs/proxy-compat.js", | ||
"rollup-plugin-typescript": "^0.8.1", | ||
"typescript": "3.0.3" | ||
"typescript": "4.2.2" | ||
}, | ||
"gitHead": "f581ee5d0b11b8bb0dfc4f33b6d32250551dbc3b" | ||
"gitHead": "262077fff9c4c0634eec4d07c10f47674f24dbfe" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
209826
5231