Socket
Socket
Sign inDemoInstall

define-properties-x

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

define-properties-x - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

2

index.js

@@ -31,3 +31,3 @@ /**

*
* @version 1.2.1
* @version 1.3.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -34,0 +34,0 @@ * @copyright Xotic750

@@ -32,3 +32,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&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?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){

*
* @version 1.2.1
* @version 1.3.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -230,3 +230,3 @@ * @copyright Xotic750

*
* @version 1.1.1
* @version 1.2.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -286,3 +286,3 @@ * @copyright Xotic750

*
* @version 1.1.1
* @version 1.2.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -338,3 +338,3 @@ * @copyright Xotic750

*
* @version 1.1.1
* @version 1.2.0
* @author Xotic750 <Xotic750@gmail.com>

@@ -370,3 +370,3 @@ * @copyright Xotic750

*/
var tryFunctionObject = function funcToString(value) {
var tryFuncToString = function funcToString(value) {
try {

@@ -405,3 +405,3 @@ fToString.call(value);

if (hasToStringTag) {
return tryFunctionObject(value);
return tryFuncToString(value);
}

@@ -408,0 +408,0 @@ var strTag = toStringTag(value);

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

!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.returnExports=t()}}(function(){return function e(t,n,r){function s(i,c){if(!n[i]){if(!t[i]){var u="function"==typeof require&&require;if(!c&&u)return u(i,!0);if(o)return o(i,!0);var f=new Error("Cannot find module '"+i+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[i]={exports:{}};t[i][0].call(l.exports,function(e){var n=t[i][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(t,e,n){!function(){"use strict";var n=t("has-symbol-support-x"),r=t("is-function-x"),o=t("validate.io-undefined"),i=t("foreach"),c=r(Object.keys)?Object.keys:t("object-keys"),u=r(Object.getOwnPropertySymbols)&&Object.getOwnPropertySymbols,s=r(Object.defineProperty)&&Object.defineProperty,f=Boolean(s)&&function(){var t={};try{s(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,n,r){e in t&&!r||(f?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},a=function(t,e,s){var f=o(s)?{}:s,a=c(e);n&&u&&(a=a.concat(u(e))),i(a,function(n){var o=f[n];l(t,n,e[n],r(o)&&o())})};a(e.exports,{properties:a,property:l,supportsDescriptors:f})}()},{foreach:2,"has-symbol-support-x":3,"is-function-x":5,"object-keys":8,"validate.io-undefined":11}],2:[function(t,e,n){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function forEach(t,e,n){if("[object Function]"!==o.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var c=0;c<i;c++)e.call(n,t[c],c,t);else for(var u in t)r.call(t,u)&&e.call(n,t[u],u,t)}},{}],3:[function(t,e,n){!function(){"use strict";e.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()}()},{}],4:[function(t,e,n){!function(){"use strict";e.exports=t("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag}()},{"has-symbol-support-x":3}],5:[function(t,e,n){!function(){"use strict";var n=Function.prototype.toString,r=t("to-string-tag-x"),o=t("has-to-string-tag-x"),i=t("is-primitive"),c=function funcToString(t){try{return n.call(t),!0}catch(t){}return!1};e.exports=function isFunction(t){if(i(t))return!1;if(o)return c(t);var e=r(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e}}()},{"has-to-string-tag-x":4,"is-primitive":6,"to-string-tag-x":10}],6:[function(t,e,n){"use strict";e.exports=function isPrimitive(t){return null==t||"function"!=typeof t&&"object"!=typeof t}},{}],7:[function(t,e,n){function isNull(t){return null===t}e.exports=isNull},{}],8:[function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,c=t("./isArguments"),u=Object.prototype.propertyIsEnumerable,s=!u.call({toString:null},"toString"),f=u.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(t){var e=t.constructor;return e&&e.prototype===t},p={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{a(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),b=function(t){if("undefined"==typeof window||!y)return a(t);try{return a(t)}catch(t){return!1}},d=function keys(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===o.call(t),i=c(t),u=e&&"[object String]"===o.call(t),a=[];if(!e&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var p=f&&n;if(u&&t.length>0&&!r.call(t,0))for(var y=0;y<t.length;++y)a.push(String(y));if(i&&t.length>0)for(var d=0;d<t.length;++d)a.push(String(d));else for(var g in t)p&&"prototype"===g||!r.call(t,g)||a.push(String(g));if(s)for(var h=b(t),v=0;v<l.length;++v)h&&"constructor"===l[v]||!r.call(t,l[v])||a.push(l[v]);return a};d.shim=function shimObjectKeys(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function keys(e){return t(c(e)?i.call(e):e)}}}else Object.keys=d;return Object.keys||d},e.exports=d},{"./isArguments":9}],9:[function(t,e,n){"use strict";var r=Object.prototype.toString;e.exports=function isArguments(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},{}],10:[function(t,e,n){!function(){"use strict";var n=t("lodash.isnull"),r=t("validate.io-undefined");e.exports=function toStringTag(t){return n(t)?"[object Null]":r(t)?"[object Undefined]":Object.prototype.toString.call(t)}}()},{"lodash.isnull":7,"validate.io-undefined":11}],11:[function(t,e,n){"use strict";function isUndefined(t){return void 0===t}e.exports=isUndefined},{}]},{},[1])(1)});
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.returnExports=t()}}(function(){return function e(t,n,r){function s(i,c){if(!n[i]){if(!t[i]){var u="function"==typeof require&&require;if(!c&&u)return u(i,!0);if(o)return o(i,!0);var f=new Error("Cannot find module '"+i+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[i]={exports:{}};t[i][0].call(l.exports,function(e){var n=t[i][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(t,e,n){!function(){"use strict";var n=t("has-symbol-support-x"),r=t("is-function-x"),o=t("validate.io-undefined"),i=t("foreach"),c=r(Object.keys)?Object.keys:t("object-keys"),u=r(Object.getOwnPropertySymbols)&&Object.getOwnPropertySymbols,s=r(Object.defineProperty)&&Object.defineProperty,f=Boolean(s)&&function(){var t={};try{s(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,n,r){e in t&&!r||(f?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},a=function(t,e,s){var f=o(s)?{}:s,a=c(e);n&&u&&(a=a.concat(u(e))),i(a,function(n){var o=f[n];l(t,n,e[n],r(o)&&o())})};a(e.exports,{properties:a,property:l,supportsDescriptors:f})}()},{foreach:2,"has-symbol-support-x":3,"is-function-x":5,"object-keys":8,"validate.io-undefined":11}],2:[function(t,e,n){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString;e.exports=function forEach(t,e,n){if("[object Function]"!==o.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var c=0;c<i;c++)e.call(n,t[c],c,t);else for(var u in t)r.call(t,u)&&e.call(n,t[u],u,t)}},{}],3:[function(t,e,n){!function(){"use strict";e.exports="function"==typeof Symbol&&"symbol"==typeof Symbol()}()},{}],4:[function(t,e,n){!function(){"use strict";e.exports=t("has-symbol-support-x")&&"symbol"==typeof Symbol.toStringTag}()},{"has-symbol-support-x":3}],5:[function(t,e,n){!function(){"use strict";var n=Function.prototype.toString,r=t("to-string-tag-x"),o=t("has-to-string-tag-x"),i=t("is-primitive"),c=function funcToString(t){try{return n.call(t),!0}catch(t){}return!1};e.exports=function isFunction(t){if(i(t))return!1;if(o)return c(t);var e=r(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e}}()},{"has-to-string-tag-x":4,"is-primitive":6,"to-string-tag-x":10}],6:[function(t,e,n){"use strict";e.exports=function isPrimitive(t){return null==t||"function"!=typeof t&&"object"!=typeof t}},{}],7:[function(t,e,n){function isNull(t){return null===t}e.exports=isNull},{}],8:[function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,c=t("./isArguments"),u=Object.prototype.propertyIsEnumerable,s=!u.call({toString:null},"toString"),f=u.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(t){var e=t.constructor;return e&&e.prototype===t},p={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},y=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&r.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{a(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),b=function(t){if("undefined"==typeof window||!y)return a(t);try{return a(t)}catch(t){return!1}},d=function keys(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===o.call(t),i=c(t),u=e&&"[object String]"===o.call(t),a=[];if(!e&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var p=f&&n;if(u&&t.length>0&&!r.call(t,0))for(var y=0;y<t.length;++y)a.push(String(y));if(i&&t.length>0)for(var d=0;d<t.length;++d)a.push(String(d));else for(var g in t)p&&"prototype"===g||!r.call(t,g)||a.push(String(g));if(s)for(var h=b(t),v=0;v<l.length;++v)h&&"constructor"===l[v]||!r.call(t,l[v])||a.push(l[v]);return a};d.shim=function shimObjectKeys(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var t=Object.keys;Object.keys=function keys(e){return t(c(e)?i.call(e):e)}}}else Object.keys=d;return Object.keys||d},e.exports=d},{"./isArguments":9}],9:[function(t,e,n){"use strict";var r=Object.prototype.toString;e.exports=function isArguments(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},{}],10:[function(t,e,n){!function(){"use strict";var n=t("lodash.isnull"),r=t("validate.io-undefined");e.exports=function toStringTag(t){return n(t)?"[object Null]":r(t)?"[object Undefined]":Object.prototype.toString.call(t)}}()},{"lodash.isnull":7,"validate.io-undefined":11}],11:[function(t,e,n){"use strict";function isUndefined(t){return void 0===t}e.exports=isUndefined},{}]},{},[1])(1)});
//# sourceMappingURL=lib/define-properties-x.map
{
"name": "define-properties-x",
"version": "1.2.1",
"version": "1.3.0",
"description": "Based on the original work by Jordan Harband https://www.npmjs.com/package/define-properties",

@@ -37,4 +37,4 @@ "homepage": "https://github.com/Xotic750/define-properties-x",

"foreach": "^2.0.5",
"has-symbol-support-x": "^1.1.1",
"is-function-x": "^1.1.1",
"has-symbol-support-x": "^1.2.0",
"is-function-x": "^1.2.0",
"object-keys": "^1.0.11",

@@ -55,7 +55,7 @@ "validate.io-undefined": "^1.0.3"

"json3": "^3.3.2",
"make-jasmine-spec-runner-html": "^1.0.4",
"make-jasmine-spec-runner-html": "^1.1.0",
"nodemon": "^1.11.0",
"nsp": "^2.6.3",
"replace-x": "^1.0.0",
"uglify-js": "^2.8.16"
"replace-x": "^1.1.1",
"uglify-js": "^2.8.18"
},

@@ -62,0 +62,0 @@ "scripts": {

@@ -31,3 +31,3 @@ <a name="module_define-properties-x"></a>

**See**: [define-properties](https://www.npmjs.com/package/define-properties)
**Version**: 1.2.1
**Version**: 1.3.0
**Author**: Xotic750 <Xotic750@gmail.com>

@@ -34,0 +34,0 @@ **License**: [MIT](&lt;https://opensource.org/licenses/MIT&gt;)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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