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

vue-types

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-types - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

12

dist/index.js

@@ -232,3 +232,3 @@ 'use strict';

if (keys.indexOf(key) === -1) {
if (_this.isLoose === true) return true;
if (_this._vueTypes_isLoose === true) return true;
(0, _utils.warn)('object is missing "' + key + '" property');

@@ -242,7 +242,13 @@ return false;

});
type.validator = type.validator.bind(type);
Object.defineProperty(type, '_vueTypes_isLoose', {
enumerable: false,
writable: true,
value: false
});
Object.defineProperty(type, 'loose', {
get: function get() {
this.isLoose = true;
this.validator = this.validator.bind(this);
this._vueTypes_isLoose = true;
return this;

@@ -249,0 +255,0 @@ },

@@ -195,12 +195,10 @@ 'use strict';

if (process.env.NODE_ENV !== 'production') {
(function () {
var hasConsole = typeof console !== 'undefined';
exports.warn = warn = function warn(msg) {
if (hasConsole) {
console.warn('[VueTypes warn]: ' + msg);
}
};
})();
var hasConsole = typeof console !== 'undefined';
exports.warn = warn = function warn(msg) {
if (hasConsole) {
console.warn('[VueTypes warn]: ' + msg);
}
};
}
exports.warn = warn;

@@ -223,3 +223,3 @@ import isPlainObject from 'lodash.isplainobject';

if (keys.indexOf(key) === -1) {
if (_this.isLoose === true) return true;
if (_this._vueTypes_isLoose === true) return true;
warn('object is missing "' + key + '" property');

@@ -233,7 +233,13 @@ return false;

});
type.validator = type.validator.bind(type);
Object.defineProperty(type, '_vueTypes_isLoose', {
enumerable: false,
writable: true,
value: false
});
Object.defineProperty(type, 'loose', {
get: function get() {
this.isLoose = true;
this.validator = this.validator.bind(this);
this._vueTypes_isLoose = true;
return this;

@@ -240,0 +246,0 @@ },

@@ -183,12 +183,10 @@ import isPlainObject from 'lodash.isplainobject';

if (process.env.NODE_ENV !== 'production') {
(function () {
var hasConsole = typeof console !== 'undefined';
warn = function warn(msg) {
if (hasConsole) {
console.warn('[VueTypes warn]: ' + msg);
}
};
})();
var hasConsole = typeof console !== 'undefined';
warn = function warn(msg) {
if (hasConsole) {
console.warn('[VueTypes warn]: ' + msg);
}
};
}
export { warn };
{
"name": "vue-types",
"version": "0.6.4",
"version": "0.6.5",
"description": "Prop types utility for Vue",

@@ -5,0 +5,0 @@ "author": "Marco Solazzi",

@@ -214,3 +214,3 @@ import isPlainObject from 'lodash.isplainobject'

if (keys.indexOf(key) === -1) {
if (this.isLoose === true) return true
if (this._vueTypes_isLoose === true) return true
warn(`object is missing "${key}" property`)

@@ -224,7 +224,13 @@ return false

})
type.validator = type.validator.bind(type)
Object.defineProperty(type, '_vueTypes_isLoose', {
enumerable: false,
writable: true,
value: false
})
Object.defineProperty(type, 'loose', {
get() {
this.isLoose = true
this.validator = this.validator.bind(this)
this._vueTypes_isLoose = true
return this

@@ -231,0 +237,0 @@ },

@@ -20,10 +20,10 @@ /**

/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)

@@ -35,23 +35,23 @@ /******/ var module = installedModules[moduleId] = {

/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmory imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmory exports

@@ -65,3 +65,3 @@ /******/ __webpack_require__.d = function(exports, name, getter) {

/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules

@@ -75,9 +75,9 @@ /******/ __webpack_require__.n = function(module) {

/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports

@@ -468,3 +468,3 @@ /******/ return __webpack_require__(__webpack_require__.s = 4);

if (keys.indexOf(key) === -1) {
if (_this.isLoose === true) return true;
if (_this._vueTypes_isLoose === true) return true;
(0, _utils.warn)('object is missing "' + key + '" property');

@@ -478,7 +478,13 @@ return false;

});
type.validator = type.validator.bind(type);
Object.defineProperty(type, '_vueTypes_isLoose', {
enumerable: false,
writable: true,
value: false
});
Object.defineProperty(type, 'loose', {
get: function get() {
this.isLoose = true;
this.validator = this.validator.bind(this);
this._vueTypes_isLoose = true;
return this;

@@ -696,10 +702,8 @@ },

if (true) {
(function () {
var hasConsole = typeof console !== 'undefined';
exports.warn = warn = function warn(msg) {
if (hasConsole) {
console.warn('[VueTypes warn]: ' + msg);
}
};
})();
var hasConsole = typeof console !== 'undefined';
exports.warn = warn = function warn(msg) {
if (hasConsole) {
console.warn('[VueTypes warn]: ' + msg);
}
};
}

@@ -706,0 +710,0 @@

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueTypes=t():e.VueTypes=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t){function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function r(e,t){return function(n){return e(t(n))}}function o(e){return!!e&&"object"==typeof e}function u(e){if(!o(e)||y.call(e)!=i||n(e))return!1;var t=s(e);if(null===t)return!0;var r=p.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&f.call(r)==l}var i="[object Object]",a=Function.prototype,c=Object.prototype,f=a.toString,p=c.hasOwnProperty,l=f.call(Object),y=c.toString,s=r(Object.getPrototypeOf,Object);e.exports=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(0),u=r(o),i=n(2),a={get any(){return(0,i.toType)({type:null,name:"any"})},get func(){return(0,i.toType)({type:Function,name:"function",default:i.noop})},get bool(){return(0,i.toType)({type:Boolean,name:"boolean",default:!0})},get string(){return(0,i.toType)({type:String,name:"string",default:""})},get number(){return(0,i.toType)({type:Number,name:"number",default:0})},get array(){return(0,i.toType)({type:Array,name:"array",default:Array})},get object(){return(0,i.toType)({type:Object,name:"object",default:Object})},get integer(){return(0,i.toType)({type:Number,name:"integer",validator:function(e){return(0,i.isInteger)(e)},default:0})},custom:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom validation failed";if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return(0,i.toType)({name:e.name||"<<anonymous function>>",validator:function(){var n=e.apply(void 0,arguments);return n||(0,i.warn)(t),n}})},oneOf:function(e){if(!(0,i.isArray)(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t='value should be one of "'+e.join('", "')+'"',n=e.reduce(function(e,t){return null!==t&&void 0!==t&&e.indexOf(t.constructor)===-1&&e.push(t.constructor),e},[]);return(0,i.toType)({name:"oneOf",type:n.length>0?n:null,validator:function(n){var r=e.indexOf(n)!==-1;return r||(0,i.warn)(t),r}})},instanceOf:function(e){return(0,i.toType)({name:"instanceOf",type:e})},oneOfType:function(e){if(!(0,i.isArray)(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce(function(e,n,r){if((0,u.default)(n)){if("oneOf"===n.name)return e.concat(n.type||[]);if(n.type&&!(0,i.isFunction)(n.validator)){if((0,i.isArray)(n.type))return e.concat(n.type);e.push(n.type)}else(0,i.isFunction)(n.validator)&&(t=!0);return e}return e.push(n),e},[]);if(!t)return(0,i.toType)({name:"oneOfType",type:n});var r=e.map(function(e){return e&&(0,i.isArray)(e.type)?e.type.map(i.getType):(0,i.getType)(e)}).reduce(function(e,t){return e.concat((0,i.isArray)(t)?t:[t])},[]).join('", "');return this.custom(function(t){var n=e.some(function(e){return"oneOf"===e.name?!e.type||(0,i.validateType)(e.type,t,!0):(0,i.validateType)(e,t,!0)});return n||(0,i.warn)('value type should be one of "'+r+'"'),n})},arrayOf:function(e){return(0,i.toType)({name:"arrayOf",type:Array,validator:function(t){var n=t.every(function(t){return(0,i.validateType)(e,t)});return n||(0,i.warn)("value must be an array of '"+(0,i.getType)(e)+"'"),n}})},objectOf:function(e){return(0,i.toType)({name:"objectOf",type:Object,validator:function(t){var n=Object.keys(t).every(function(n){return(0,i.validateType)(e,t[n])});return n||(0,i.warn)("value must be an object of '"+(0,i.getType)(e)+"'"),n}})},shape:function(e){var t=Object.keys(e),n=t.filter(function(t){return e[t]&&e[t].required===!0}),r=(0,i.toType)({name:"shape",type:Object,validator:function(r){var o=this;if(!(0,u.default)(r))return!1;var a=Object.keys(r);return n.length>0&&n.some(function(e){return a.indexOf(e)===-1})?((0,i.warn)('at least one of required properties "'+n.join('", "')+'" is not present'),!1):a.every(function(n){if(t.indexOf(n)===-1)return o.isLoose===!0||((0,i.warn)('object is missing "'+n+'" property'),!1);var u=e[n];return(0,i.validateType)(u,r[n])})}});return Object.defineProperty(r,"loose",{get:function(){return this.isLoose=!0,this.validator=this.validator.bind(this),this},enumerable:!1}),r}};t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.warn=t.validateType=t.toType=t.withRequired=t.withDefault=t.isFunction=t.isArray=t.isInteger=t.has=t.noop=t.getNativeType=t.getType=t.hasOwn=void 0;var o=n(0),u=r(o),i=n(3),a=r(i),c=Object.prototype,f=c.toString,p=t.hasOwn=c.hasOwnProperty,l=/^\s*function (\w+)/,y=t.getType=function(e){var t=null!==e&&void 0!==e?e.type?e.type:e:null,n=t&&t.toString().match(l);return n&&n[1]},s=t.getNativeType=function(e){if(null===e||void 0===e)return null;var t=e.constructor.toString().match(l);return t&&t[1]},d=t.noop=function(){},b=(t.has=function(e,t){return p.call(e,t)},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.isArray=Array.isArray||function(e){return"[object Array]"===f.call(e)}),v=t.isFunction=function(e){return"[object Function]"===f.call(e)},j=t.withDefault=function(e){Object.defineProperty(e,"def",{value:function(t){if(!m(this,t))return g("invalid default value",t),e;var n=(0,a.default)({},this,{default:b(t)||(0,u.default)(t)?function(){return t}:t});return p.call(n,"required")||O(n),n},enumerable:!1,writable:!1})},O=t.withRequired=function(e){Object.defineProperty(e,"isRequired",{get:function(){var e=(0,a.default)({required:!0},this);return j(e),e},enumerable:!1})},m=(t.toType=function(e){return O(e),j(e),e},t.validateType=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t,i=!0,a=void 0;return(0,u.default)(t)||(o={type:t}),p.call(o,"type")&&null!==o.type&&(b(o.type)?(i=o.type.some(function(t){return e(t,n,!0)}),a=o.type.map(function(e){return y(e)}).join(" or ")):(a=y(o),i="Array"===a?b(n):"Object"===a?(0,u.default)(n):"String"===a||"Number"===a||"Boolean"===a||"Function"===a?s(n)===a:n instanceof o.type)),i?p.call(o,"validator")&&v(o.validator)?(i=o.validator(n),i||r!==!1||g("custom validation failed"),i):i:(r===!1&&g('value "'+n+"\" should be of type '"+a+"'"),!1)}),g=d;t.warn=g},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,i,a=n(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var f in r)o.call(r,f)&&(a[f]=r[f]);if(Object.getOwnPropertySymbols){i=Object.getOwnPropertySymbols(r);for(var p=0;p<i.length;p++)u.call(r,i[p])&&(a[i[p]]=r[i[p]])}}return a}},function(e,t,n){e.exports=n(1)}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueTypes=t():e.VueTypes=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t){function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function r(e,t){return function(n){return e(t(n))}}function o(e){return!!e&&"object"==typeof e}function u(e){if(!o(e)||y.call(e)!=i||n(e))return!1;var t=s(e);if(null===t)return!0;var r=p.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&f.call(r)==l}var i="[object Object]",a=Function.prototype,c=Object.prototype,f=a.toString,p=c.hasOwnProperty,l=f.call(Object),y=c.toString,s=r(Object.getPrototypeOf,Object);e.exports=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(0),u=r(o),i=n(2),a={get any(){return(0,i.toType)({type:null,name:"any"})},get func(){return(0,i.toType)({type:Function,name:"function",default:i.noop})},get bool(){return(0,i.toType)({type:Boolean,name:"boolean",default:!0})},get string(){return(0,i.toType)({type:String,name:"string",default:""})},get number(){return(0,i.toType)({type:Number,name:"number",default:0})},get array(){return(0,i.toType)({type:Array,name:"array",default:Array})},get object(){return(0,i.toType)({type:Object,name:"object",default:Object})},get integer(){return(0,i.toType)({type:Number,name:"integer",validator:function(e){return(0,i.isInteger)(e)},default:0})},custom:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom validation failed";if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return(0,i.toType)({name:e.name||"<<anonymous function>>",validator:function(){var n=e.apply(void 0,arguments);return n||(0,i.warn)(t),n}})},oneOf:function(e){if(!(0,i.isArray)(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t='value should be one of "'+e.join('", "')+'"',n=e.reduce(function(e,t){return null!==t&&void 0!==t&&e.indexOf(t.constructor)===-1&&e.push(t.constructor),e},[]);return(0,i.toType)({name:"oneOf",type:n.length>0?n:null,validator:function(n){var r=e.indexOf(n)!==-1;return r||(0,i.warn)(t),r}})},instanceOf:function(e){return(0,i.toType)({name:"instanceOf",type:e})},oneOfType:function(e){if(!(0,i.isArray)(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce(function(e,n,r){if((0,u.default)(n)){if("oneOf"===n.name)return e.concat(n.type||[]);if(n.type&&!(0,i.isFunction)(n.validator)){if((0,i.isArray)(n.type))return e.concat(n.type);e.push(n.type)}else(0,i.isFunction)(n.validator)&&(t=!0);return e}return e.push(n),e},[]);if(!t)return(0,i.toType)({name:"oneOfType",type:n});var r=e.map(function(e){return e&&(0,i.isArray)(e.type)?e.type.map(i.getType):(0,i.getType)(e)}).reduce(function(e,t){return e.concat((0,i.isArray)(t)?t:[t])},[]).join('", "');return this.custom(function(t){var n=e.some(function(e){return"oneOf"===e.name?!e.type||(0,i.validateType)(e.type,t,!0):(0,i.validateType)(e,t,!0)});return n||(0,i.warn)('value type should be one of "'+r+'"'),n})},arrayOf:function(e){return(0,i.toType)({name:"arrayOf",type:Array,validator:function(t){var n=t.every(function(t){return(0,i.validateType)(e,t)});return n||(0,i.warn)("value must be an array of '"+(0,i.getType)(e)+"'"),n}})},objectOf:function(e){return(0,i.toType)({name:"objectOf",type:Object,validator:function(t){var n=Object.keys(t).every(function(n){return(0,i.validateType)(e,t[n])});return n||(0,i.warn)("value must be an object of '"+(0,i.getType)(e)+"'"),n}})},shape:function(e){var t=Object.keys(e),n=t.filter(function(t){return e[t]&&e[t].required===!0}),r=(0,i.toType)({name:"shape",type:Object,validator:function(r){var o=this;if(!(0,u.default)(r))return!1;var a=Object.keys(r);return n.length>0&&n.some(function(e){return a.indexOf(e)===-1})?((0,i.warn)('at least one of required properties "'+n.join('", "')+'" is not present'),!1):a.every(function(n){if(t.indexOf(n)===-1)return o._vueTypes_isLoose===!0||((0,i.warn)('object is missing "'+n+'" property'),!1);var u=e[n];return(0,i.validateType)(u,r[n])})}});return r.validator=r.validator.bind(r),Object.defineProperty(r,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),r}};t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.warn=t.validateType=t.toType=t.withRequired=t.withDefault=t.isFunction=t.isArray=t.isInteger=t.has=t.noop=t.getNativeType=t.getType=t.hasOwn=void 0;var o=n(0),u=r(o),i=n(3),a=r(i),c=Object.prototype,f=c.toString,p=t.hasOwn=c.hasOwnProperty,l=/^\s*function (\w+)/,y=t.getType=function(e){var t=null!==e&&void 0!==e?e.type?e.type:e:null,n=t&&t.toString().match(l);return n&&n[1]},s=t.getNativeType=function(e){if(null===e||void 0===e)return null;var t=e.constructor.toString().match(l);return t&&t[1]},d=t.noop=function(){},b=(t.has=function(e,t){return p.call(e,t)},t.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},t.isArray=Array.isArray||function(e){return"[object Array]"===f.call(e)}),v=t.isFunction=function(e){return"[object Function]"===f.call(e)},j=t.withDefault=function(e){Object.defineProperty(e,"def",{value:function(t){if(!m(this,t))return g("invalid default value",t),e;var n=(0,a.default)({},this,{default:b(t)||(0,u.default)(t)?function(){return t}:t});return p.call(n,"required")||O(n),n},enumerable:!1,writable:!1})},O=t.withRequired=function(e){Object.defineProperty(e,"isRequired",{get:function(){var e=(0,a.default)({required:!0},this);return j(e),e},enumerable:!1})},m=(t.toType=function(e){return O(e),j(e),e},t.validateType=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t,i=!0,a=void 0;return(0,u.default)(t)||(o={type:t}),p.call(o,"type")&&null!==o.type&&(b(o.type)?(i=o.type.some(function(t){return e(t,n,!0)}),a=o.type.map(function(e){return y(e)}).join(" or ")):(a=y(o),i="Array"===a?b(n):"Object"===a?(0,u.default)(n):"String"===a||"Number"===a||"Boolean"===a||"Function"===a?s(n)===a:n instanceof o.type)),i?p.call(o,"validator")&&v(o.validator)?(i=o.validator(n),i||r!==!1||g("custom validation failed"),i):i:(r===!1&&g('value "'+n+"\" should be of type '"+a+"'"),!1)}),g=d;t.warn=g},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,i,a=n(e),c=1;c<arguments.length;c++){r=Object(arguments[c]);for(var f in r)o.call(r,f)&&(a[f]=r[f]);if(Object.getOwnPropertySymbols){i=Object.getOwnPropertySymbols(r);for(var p=0;p<i.length;p++)u.call(r,i[p])&&(a[i[p]]=r[i[p]])}}return a}},function(e,t,n){e.exports=n(1)}])});
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