object-keys-x
Advanced tools
Comparing version 2.3.0 to 2.4.0
/** | ||
* @file An ES6 Object.keys shim. | ||
* @version 2.3.0 | ||
* @version 2.4.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -5,0 +5,0 @@ * @copyright Xotic750 |
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){/** | ||
* @file An ES6 Object.keys shim. | ||
* @version 2.3.0 | ||
* @version 2.4.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -134,3 +134,3 @@ * @copyright Xotic750 | ||
* @file Is this value a JS regex? | ||
* @version 2.0.0 | ||
* @version 2.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -168,3 +168,3 @@ * @copyright Xotic750 | ||
* @file Sham for Object.defineProperty | ||
* @version 4.0.0 | ||
* @version 4.1.0 | ||
* @author Xotic750 <Xotic750@gmail.com> | ||
@@ -175,3 +175,3 @@ * @copyright Xotic750 | ||
*/ | ||
"use strict";var definePropertyFallback,$defineProperty,isFalsey=_dereq_("is-falsey-x"),attempt=_dereq_("attempt-x"),toObject=_dereq_("to-object-x"),toPropertyKey=_dereq_("to-property-key-x"),has=_dereq_("has-own-property-x"),isFunction=_dereq_("is-function-x"),isUndefined=_dereq_("validate.io-undefined"),nativeDefProp="function"==typeof Object.defineProperty&&Object.defineProperty,toPropertyDescriptor=function _toPropertyDescriptor(object){var descriptor={};if(has(object,"enumerable")&&(descriptor.enumerable=Boolean(object.enumerable)),has(object,"configurable")&&(descriptor.configurable=Boolean(object.configurable)),has(object,"value")&&(descriptor.value=object.value),has(object,"writable")&&(descriptor.writable=Boolean(object.writable)),has(object,"get")){var getter=object.get;if(!1===isUndefined(getter)&&!1===isFunction(getter))throw new TypeError("getter must be a function");descriptor.get=getter}if(has(object,"set")){var setter=object.set;if(!1===isUndefined(setter)&&!1===isFunction(setter))throw new TypeError("setter must be a function");descriptor.set=setter}if((has(descriptor,"get")||has(descriptor,"set"))&&(has(descriptor,"value")||has(descriptor,"writable")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return descriptor};if(nativeDefProp){var testWorksWith=function _testWorksWith(object){var testResult=attempt(nativeDefProp,object,"sentinel",{});return!1===testResult.threw&&testResult===object&&"sentinel"in object},doc="undefined"!=typeof document&&document;(isFalsey(doc)||testWorksWith(doc.createElement("div")))&&(testWorksWith({})?$defineProperty=function defineProperty(object,property,descriptor){return nativeDefProp(object,toPropertyKey(property),toPropertyDescriptor(toObject(descriptor)))}:definePropertyFallback=nativeDefProp)}if(isFalsey($defineProperty)||definePropertyFallback){var defineGetter,defineSetter,lookupGetter,lookupSetter,assertIsObject=_dereq_("assert-is-object-x"),prototypeOfObject=Object.prototype,supportsAccessors=has(prototypeOfObject,"__defineGetter__");supportsAccessors&&(defineGetter=prototypeOfObject.__defineGetter__,defineSetter=prototypeOfObject.__defineSetter__,lookupGetter=prototypeOfObject.__lookupGetter__,lookupSetter=prototypeOfObject.__lookupSetter__),$defineProperty=function defineProperty(object,property,descriptor){assertIsObject(object);var propKey=toPropertyKey(property),propDesc=toPropertyDescriptor(toObject(descriptor));if(definePropertyFallback){var result=attempt.call(Object,definePropertyFallback,object,propKey,propDesc);if(!1===result.threw)return result.value}if(has(propDesc,"value"))if(supportsAccessors&&(lookupGetter.call(object,propKey)||lookupSetter.call(object,propKey))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[propKey],object[propKey]=propDesc.value,object.__proto__=prototype}else object[propKey]=propDesc.value;else{if(!1===supportsAccessors&&(propDesc.get||propDesc.set))throw new TypeError("getters & setters can not be defined on this javascript engine");propDesc.get&&defineGetter.call(object,propKey,propDesc.get),propDesc.set&&defineSetter.call(object,propKey,propDesc.set)}return object}}module.exports=$defineProperty},{"assert-is-object-x":3,"attempt-x":4,"has-own-property-x":6,"is-falsey-x":12,"is-function-x":14,"to-object-x":40,"to-property-key-x":42,"validate.io-undefined":48}],29:[function(_dereq_,module,exports){/** | ||
"use strict";var definePropertyFallback,$defineProperty,attempt=_dereq_("attempt-x"),isFalsey=_dereq_("is-falsey-x"),toObject=_dereq_("to-object-x"),toPropertyKey=_dereq_("to-property-key-x"),has=_dereq_("has-own-property-x"),isFunction=_dereq_("is-function-x"),isUndefined=_dereq_("validate.io-undefined"),assertIsObject=_dereq_("assert-is-object-x"),nativeDefProp="function"==typeof Object.defineProperty&&Object.defineProperty,toPropertyDescriptor=function _toPropertyDescriptor(desc){var object=toObject(desc),descriptor={};if(has(object,"enumerable")&&(descriptor.enumerable=Boolean(object.enumerable)),has(object,"configurable")&&(descriptor.configurable=Boolean(object.configurable)),has(object,"value")&&(descriptor.value=object.value),has(object,"writable")&&(descriptor.writable=Boolean(object.writable)),has(object,"get")){var getter=object.get;if(!1===isUndefined(getter)&&!1===isFunction(getter))throw new TypeError("getter must be a function");descriptor.get=getter}if(has(object,"set")){var setter=object.set;if(!1===isUndefined(setter)&&!1===isFunction(setter))throw new TypeError("setter must be a function");descriptor.set=setter}if((has(descriptor,"get")||has(descriptor,"set"))&&(has(descriptor,"value")||has(descriptor,"writable")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return descriptor};if(nativeDefProp){var testWorksWith=function _testWorksWith(object){var testResult=attempt(nativeDefProp,object,"sentinel",{});return!1===testResult.threw&&testResult.value===object&&"sentinel"in object},doc="undefined"!=typeof document&&document;testWorksWith({})&&(isFalsey(doc)||testWorksWith(doc.createElement("div")))?$defineProperty=function defineProperty(object,property,descriptor){return nativeDefProp(assertIsObject(object),toPropertyKey(property),toPropertyDescriptor(descriptor))}:definePropertyFallback=nativeDefProp}if(isFalsey(nativeDefProp)||definePropertyFallback){var defineGetter,defineSetter,lookupGetter,lookupSetter,prototypeOfObject=Object.prototype,supportsAccessors=has(prototypeOfObject,"__defineGetter__");supportsAccessors&&(defineGetter=prototypeOfObject.__defineGetter__,defineSetter=prototypeOfObject.__defineSetter__,lookupGetter=prototypeOfObject.__lookupGetter__,lookupSetter=prototypeOfObject.__lookupSetter__),$defineProperty=function defineProperty(object,property,descriptor){assertIsObject(object);var propKey=toPropertyKey(property),propDesc=toPropertyDescriptor(descriptor);if(definePropertyFallback){var result=attempt.call(Object,definePropertyFallback,object,propKey,propDesc);if(!1===result.threw)return result.value}if(has(propDesc,"value"))if(supportsAccessors&&(lookupGetter.call(object,propKey)||lookupSetter.call(object,propKey))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[propKey],object[propKey]=propDesc.value,object.__proto__=prototype}else object[propKey]=propDesc.value;else{if(!1===supportsAccessors&&(propDesc.get||propDesc.set))throw new TypeError("getters & setters can not be defined on this javascript engine");propDesc.get&&defineGetter.call(object,propKey,propDesc.get),propDesc.set&&defineSetter.call(object,propKey,propDesc.set)}return object}}module.exports=$defineProperty},{"assert-is-object-x":3,"attempt-x":4,"has-own-property-x":6,"is-falsey-x":12,"is-function-x":14,"to-object-x":40,"to-property-key-x":42,"validate.io-undefined":48}],29:[function(_dereq_,module,exports){/** | ||
* @file Sham for ES6 Object.getOwnPropertyDescriptor | ||
@@ -178,0 +178,0 @@ * @version 3.1.0 |
{ | ||
"name": "object-keys-x", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "An ES6 Object.keys shim.", | ||
@@ -38,3 +38,3 @@ "homepage": "https://github.com/Xotic750/object-keys-x", | ||
"is-array-x": "^1.1.1", | ||
"is-regexp-x": "^2.0.0", | ||
"is-regexp-x": "^2.1.0", | ||
"is-string": "^1.0.4", | ||
@@ -41,0 +41,0 @@ "object-keys": "^1.0.11", |
@@ -26,3 +26,3 @@ <a href="https://travis-ci.org/Xotic750/object-keys-x" | ||
**Version**: 2.3.0 | ||
**Version**: 2.4.0 | ||
**Author**: Xotic750 <Xotic750@gmail.com> | ||
@@ -29,0 +29,0 @@ **License**: [MIT](<https://opensource.org/licenses/MIT>) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
165337
2989
Updatedis-regexp-x@^2.1.0