🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

to-string-tag-x

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-string-tag-x - npm Package Compare versions

Comparing version

to
2.1.1

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

var nativeObjectToString = {}.toString;
import methodize from 'simple-methodize-x';
var methodizedToString = methodize({}.toString);
/**

@@ -19,3 +20,3 @@ * The `toStringTag` method returns "[object type]", where type is the

return nativeObjectToString.call(value);
return methodizedToString(value);
};

@@ -22,0 +23,0 @@

@@ -5,9 +5,9 @@ /*!

"copywrite": "Copyright (c) 2015-present",
"date": "2019-08-14T14:28:06.140Z",
"date": "2019-08-20T19:04:57.044Z",
"describe": "",
"description": "Get an object's ES6 @@toStringTag.",
"file": "to-string-tag-x.js",
"hash": "d47fa8a7491321086ac6",
"hash": "0979f8889d8be8d1c942",
"license": "MIT",
"version": "2.1.0"
"version": "2.1.1"
}

@@ -153,3 +153,3 @@ */

/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 0);
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })

@@ -159,2 +159,29 @@ /************************************************************************/

/* 0 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var strValue = String.prototype.valueOf;
var tryStringObject = function tryStringObject(value) {
try {
strValue.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var strClass = '[object String]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isString(value) {
if (typeof value === 'string') { return true; }
if (typeof value !== 'object') { return false; }
return hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;
};
/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

@@ -164,4 +191,397 @@

__webpack_require__.r(__webpack_exports__);
var nativeObjectToString = {}.toString;
// CONCATENATED MODULE: ./node_modules/is-primitive-x/dist/is-primitive-x.esm.js
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
/**
* Returns true if the value is a primitive.
*
* @param {*} [val] - The value to test.
* @returns {boolean} True if a primitive, otherwise false..
*/
var isPrimitive = function isPrimitive(val) {
return _typeof(val) === 'object' ? val === null : typeof val !== 'function';
};
/* harmony default export */ var is_primitive_x_esm = (isPrimitive);
// EXTERNAL MODULE: ./node_modules/is-string/index.js
var is_string = __webpack_require__(0);
var is_string_default = /*#__PURE__*/__webpack_require__.n(is_string);
// CONCATENATED MODULE: ./node_modules/has-boxed-string-x/dist/has-boxed-string-x.esm.js
var string = 'a';
var boxedString = {}.constructor(string);
/**
* Check failure of by-index access of string characters (IE < 9)
* and failure of `0 in boxedString` (Rhino).
*
* `true` if no failure; otherwise `false`.
*
* @type boolean
*/
var hasBoxed = boxedString[0] === string && 0 in boxedString;
/* harmony default export */ var has_boxed_string_x_esm = (hasBoxed);
// CONCATENATED MODULE: ./node_modules/noop-x/dist/noop-x.esm.js
/**
* This method returns undefined.
*
* @returns {undefined} Always undefined.
*/
var noop = function noop() {};
/* eslint-disable-line lodash/prefer-noop */
/* harmony default export */ var noop_x_esm = (noop);
// CONCATENATED MODULE: ./node_modules/has-working-bind-x/dist/has-working-bind-x.esm.js
var has_working_bind_x_esm_bind = noop_x_esm.bind;
var test1 = function test1() {
var a1 = null;
var a2 = null;
var context = null;
var testThis = [];
var test1Fn = function test1Fn(arg1, arg2) {
/* eslint-disable-next-line babel/no-invalid-this */
context = this;
a1 = arg1;
a2 = arg2;
/* eslint-disable-next-line prefer-rest-params */
return arguments;
};
try {
var boundFn = has_working_bind_x_esm_bind.apply(test1Fn, [testThis, 1]);
var args = boundFn(2);
return boundFn.length === 1 && args.length === 2 && a1 === 1 && a2 === 2 && context === testThis;
} catch (e) {
return false;
}
};
var test2 = function test2() {
var a1 = null;
var a2 = null;
var context = null;
var oracle = [1, 2, 3];
var Ctr = function Ctr(arg1, arg2) {
a1 = arg1;
a2 = arg2;
context = this;
return oracle;
};
try {
var BoundFn = has_working_bind_x_esm_bind.apply(Ctr, [null]);
var returned = new BoundFn(1, 2);
return BoundFn.length === Ctr.length && returned === oracle && a1 === 1 && a2 === 2 && context !== oracle;
} catch (e) {
return false;
}
};
/**
* Indicates if the engine has a working bind function.
*
* @type {boolean}
*/
var isWorking = typeof has_working_bind_x_esm_bind === 'function' && test1() && test2();
/* harmony default export */ var has_working_bind_x_esm = (isWorking);
// CONCATENATED MODULE: ./node_modules/util-pusher-x/dist/util-pusher-x.esm.js
var EMPTY_STRING = '';
var split = EMPTY_STRING.split;
var max = Math.max;
var util_pusher_x_esm_bind = is_primitive_x_esm.bind,
util_pusher_x_esm_call = is_primitive_x_esm.call;
var stringSplit = function stringSplit(string, pattern) {
// noinspection JSUnresolvedFunction
return split.call(string, pattern);
};
var $split = has_working_bind_x_esm ? util_pusher_x_esm_bind.call(util_pusher_x_esm_call, split) : stringSplit;
var util_pusher_x_esm_getIterable = function getIterable(arrayLike) {
// noinspection JSUnresolvedFunction
return is_string_default()(arrayLike) ? $split(arrayLike, EMPTY_STRING) : arrayLike;
}; // eslint-disable jsdoc/no-undefined-types
// noinspection JSCommentMatchesSignature
/**
* This pushes or concatenates into a new or existing array.
*
* @param {Array} arrayLike - The source.
* @param {number} [from=0] - The from source index.
* @param {Array} [target=[]] - The target array.
* @returns {*} The target array.
*/
// eslint-enable jsdoc/no-undefined-types
var util_pusher_x_esm_pusher = function pusher(arrayLike, from) {
/* eslint-disable-next-line prefer-rest-params */
var target = arguments.length > 2 ? arguments[2] : [];
if (typeof arrayLike !== 'string' && is_primitive_x_esm(arrayLike)) {
return target;
}
var iterable = has_boxed_string_x_esm ? arrayLike : util_pusher_x_esm_getIterable(arrayLike);
var length = iterable.length;
for (var i = max(0, from) || 0; i < length; i += 1) {
target[target.length] = arrayLike[i];
}
return target;
};
/* harmony default export */ var util_pusher_x_esm = (util_pusher_x_esm_pusher);
// CONCATENATED MODULE: ./node_modules/simple-bind-x/dist/simple-bind-x.esm.js
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
var nativeBind = util_pusher_x_esm.bind,
simple_bind_x_esm_call = util_pusher_x_esm.call;
var ERROR_MESSAGE = 'bind called on incompatible ';
var object = {};
var ObjectCtr = object.constructor;
var toStringTag = object.toString;
var funcType = '[object Function]';
var ZERO = 0;
var argsOffset = 2;
var getMax = function getMax(a, b) {
return a >= b ? a : b;
};
var simple_bind_x_esm_assertIsFunction = function assertIsFunction(value) {
if (typeof value !== 'function' && toStringTag.apply(value) !== funcType) {
throw new TypeError(ERROR_MESSAGE + value);
}
};
var boundFns = [function zero(binder) {
return function boundFn() {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments));
};
}, function one(binder, boundLength) {
return function boundFn(a) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a]));
};
}, function two(binder, boundLength) {
return function boundFn(a, b) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b]));
};
}, function three(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c]));
};
}, function four(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d]));
};
}, function five(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d, e) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d, e]));
};
}, function six(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d, e, f) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d, e, f]));
};
}, function seven(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d, e, f, g) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d, e, f, g]));
};
}, function eight(binder, boundLength) {
/* eslint-disable-next-line max-params */
return function boundFn(a, b, c, d, e, f, g, h) {
/* eslint-disable-next-line babel/no-invalid-this,prefer-rest-params */
return binder.apply(this, util_pusher_x_esm(arguments, boundLength, [a, b, c, d, e, f, g, h]));
};
}];
var getBoundFn = function getBoundFn(args) {
var _args = _slicedToArray(args, 3),
binder = _args[0],
target = _args[1],
bindArgs = _args[2];
var boundLength = getMax(ZERO, target.length - getMax(ZERO, bindArgs.length - argsOffset));
var fn = boundFns[boundLength];
var boundFn = fn ? fn(binder, boundLength) : boundFns[ZERO](binder);
if (target.prototype) {
/* eslint-disable-next-line lodash/prefer-noop */
var Empty = function Empty() {};
Empty.prototype = target.prototype;
boundFn.prototype = new Empty();
Empty.prototype = null;
}
return boundFn;
};
var getResult = function getResult(target, boundArgs) {
/* eslint-disable-next-line babel/no-invalid-this */
var result = target.apply(this, boundArgs);
/* eslint-disable-next-line babel/no-invalid-this,babel/new-cap */
return ObjectCtr(result) === result ? result : this;
};
var implementation = function bind(target, thisArg) {
simple_bind_x_esm_assertIsFunction(target);
/* eslint-disable-next-line prefer-rest-params */
var bindArgs = arguments;
var bound;
var binder = function binder() {
/* eslint-disable-next-line prefer-rest-params */
var boundArgs = util_pusher_x_esm(arguments, ZERO, util_pusher_x_esm(bindArgs, argsOffset));
/* eslint-disable-next-line babel/no-invalid-this */
return this instanceof bound ? getResult.apply(this, [target, boundArgs]) : target.apply(thisArg, boundArgs);
};
bound = getBoundFn([binder, target, bindArgs]);
return bound;
};
/**
* The bind() method creates a new function that, when called, has its this
* keyword set to the provided value, with a given sequence of arguments
* preceding any provided when the new function is called.
*
* @function bind
* @param {Function} target - The target function.
* @param {*} [thisArg] - The value to be passed as the this parameter to the target
* function when the bound function is called. The value is ignored if the
* bound function is constructed using the new operator.
* @param {...*} [args] - Arguments to prepend to arguments provided to the bound
* function when invoking the target function.
* @throws {TypeError} If target is not a function.
* @returns {Function} The bound function.
*/
var $bind = has_working_bind_x_esm ? simple_bind_x_esm_call.bind(nativeBind) : implementation;
/* harmony default export */ var simple_bind_x_esm = ($bind);
// CONCATENATED MODULE: ./node_modules/simple-call-x/dist/simple-call-x.esm.js
var $TypeError = TypeError;
var nativeApply = simple_bind_x_esm.apply,
nativeCall = simple_bind_x_esm.call;
var $apply = simple_bind_x_esm(nativeCall, nativeApply);
var simple_call_x_esm_toStringTag = simple_bind_x_esm(nativeApply, {}.toString);
var simple_call_x_esm_ERROR_MESSAGE = ' is not a function';
var simple_call_x_esm_funcType = '[object Function]';
var simple_call_x_esm_assertIsFunction = function assertIsFunction(value) {
if (typeof value !== 'function' && simple_call_x_esm_toStringTag(value) !== simple_call_x_esm_funcType) {
throw new $TypeError(value + simple_call_x_esm_ERROR_MESSAGE);
}
return value;
}; // eslint-disable jsdoc/check-param-names
// noinspection JSCommentMatchesSignature
/**
* The abstract operation Call is used to call the [[Call]] internal method of a function object.
*
* @function call
* @param {Function} F - The target function.
* @param {*} [V] - The context.
* @param {Array} [args] - Argument to call the function with.
* @throws {TypeError} If target is not a function.
* @returns {*} The the result of invoking the function.
* @see https://www.ecma-international.org/ecma-262/6.0/#sec-call
*/
// eslint-enable jsdoc/check-param-names
var simple_call_x_esm_call = function call(F, V) {
/* eslint-disable-next-line prefer-rest-params */
return $apply(simple_call_x_esm_assertIsFunction(F), V, util_pusher_x_esm(arguments[2]));
};
/* harmony default export */ var simple_call_x_esm = (simple_call_x_esm_call);
// CONCATENATED MODULE: ./node_modules/simple-methodize-x/dist/simple-methodize-x.esm.js
var simple_methodize_x_esm_toStringTag = {}.toString;
var simple_methodize_x_esm_ERROR_MESSAGE = 'methodize called on incompatible ';
var simple_methodize_x_esm_funcType = '[object Function]';
var simple_methodize_x_esm_assertIsFunction = function assertIsFunction(value) {
if (typeof value !== 'function' && simple_call_x_esm(simple_methodize_x_esm_toStringTag, value) !== simple_methodize_x_esm_funcType) {
throw new TypeError(simple_methodize_x_esm_ERROR_MESSAGE + value);
}
return value;
};
/**
* Methodize a prototype method. Compliant to 8 arguments.
*
* @param {Function} prototypeMethod - The prototype method to methodize.
* @throws {TypeError} If target is not a function.
* @returns {Function} The static method.
*/
var simple_methodize_x_esm_methodize = function methodize(prototypeMethod) {
simple_methodize_x_esm_assertIsFunction(prototypeMethod);
return function methodized() {
/* eslint-disable-next-line prefer-rest-params */
return simple_call_x_esm(prototypeMethod, arguments[0], util_pusher_x_esm(arguments, 1));
};
};
/* harmony default export */ var simple_methodize_x_esm = (simple_methodize_x_esm_methodize);
// CONCATENATED MODULE: ./dist/to-string-tag-x.esm.js
var methodizedToString = simple_methodize_x_esm({}.toString);
/**
* The `toStringTag` method returns "[object type]", where type is the

@@ -174,3 +594,3 @@ * object type.

var toStringTag = function toStringTag(value) {
var to_string_tag_x_esm_toStringTag = function toStringTag(value) {
if (value === null) {

@@ -184,6 +604,6 @@ return '[object Null]';

return nativeObjectToString.call(value);
return methodizedToString(value);
};
/* harmony default export */ __webpack_exports__["default"] = (toStringTag);
/* harmony default export */ var to_string_tag_x_esm = __webpack_exports__["default"] = (to_string_tag_x_esm_toStringTag);

@@ -190,0 +610,0 @@

@@ -5,12 +5,12 @@ /*!

"copywrite": "Copyright (c) 2015-present",
"date": "2019-08-14T14:28:06.140Z",
"date": "2019-08-20T19:04:57.044Z",
"describe": "",
"description": "Get an object's ES6 @@toStringTag.",
"file": "to-string-tag-x.min.js",
"hash": "a4cfcdd3de1347078992",
"hash": "12eb3182bbddd82195ee",
"license": "MIT",
"version": "2.1.0"
"version": "2.1.1"
}
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.toStringTagX=t():e.toStringTagX=t()}(function(){"use strict";var e,t={}.constructor,n=t.prototype,o=t.defineProperty,r=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},u=function(){return this};try{return o?o(n,"$$globalThis$$",{get:u,configurable:!0}):n.__defineGetter__("$$globalThis$$",u),e="undefined"==typeof $$globalThis$$?r():$$globalThis$$,delete n.$$globalThis$$,e}catch(e){return r()}}(),function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var o={}.toString;t.default=function(e){return null===e?"[object Null]":void 0===e?"[object Undefined]":o.call(e)}}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.toStringTagX=n():t.toStringTagX=n()}(function(){"use strict";var t,n={}.constructor,r=n.prototype,e=n.defineProperty,o=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},u=function(){return this};try{return e?e(r,"$$globalThis$$",{get:u,configurable:!0}):r.__defineGetter__("$$globalThis$$",u),t="undefined"==typeof $$globalThis$$?o():$$globalThis$$,delete r.$$globalThis$$,t}catch(t){return o()}}(),function(){return function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=1)}([function(t,n,r){"use strict";var e=String.prototype.valueOf,o=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(u?function(t){try{return e.call(t),!0}catch(t){return!1}}(t):"[object String]"===o.call(t))}},function(t,n,r){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.r(n);var o=function(t){return"object"===e(t)?null===t:"function"!=typeof t},u=r(0),i=r.n(u),f={}.constructor("a"),c="a"===f[0]&&0 in f,l=function(){}.bind,p="function"==typeof l&&function(){var t=null,n=null,r=null,e=[];try{var o=l.apply(function(e,o){return r=this,t=e,n=o,arguments},[e,1]),u=o(2);return 1===o.length&&2===u.length&&1===t&&2===n&&r===e}catch(t){return!1}}()&&function(){var t=null,n=null,r=null,e=[1,2,3],o=function(o,u){return t=o,n=u,r=this,e};try{var u=l.apply(o,[null]),i=new u(1,2);return u.length===o.length&&i===e&&1===t&&2===n&&r!==e}catch(t){return!1}}(),a="".split,y=Math.max,s=o.bind,b=o.call,d=p?s.call(b,a):function(t,n){return a.call(t,n)},h=function(t){return i()(t)?d(t,""):t},g=function(t,n){var r=arguments.length>2?arguments[2]:[];if("string"!=typeof t&&o(t))return r;for(var e=c?t:h(t),u=e.length,i=y(0,n)||0;i<u;i+=1)r[r.length]=t[i];return r};function v(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=[],e=!0,o=!1,u=void 0;try{for(var i,f=t[Symbol.iterator]();!(e=(i=f.next()).done)&&(r.push(i.value),!n||r.length!==n);e=!0);}catch(t){o=!0,u=t}finally{try{e||null==f.return||f.return()}finally{if(o)throw u}}return r}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var m=g.bind,S=g.call,$={},j=$.constructor,w=$.toString,T=function(t,n){return t>=n?t:n},x=function(t){if("function"!=typeof t&&"[object Function]"!==w.apply(t))throw new TypeError("bind called on incompatible "+t)},_=[function(t){return function(){return t.apply(this,g(arguments))}},function(t,n){return function(r){return t.apply(this,g(arguments,n,[r]))}},function(t,n){return function(r,e){return t.apply(this,g(arguments,n,[r,e]))}},function(t,n){return function(r,e,o){return t.apply(this,g(arguments,n,[r,e,o]))}},function(t,n){return function(r,e,o,u){return t.apply(this,g(arguments,n,[r,e,o,u]))}},function(t,n){return function(r,e,o,u,i){return t.apply(this,g(arguments,n,[r,e,o,u,i]))}},function(t,n){return function(r,e,o,u,i,f){return t.apply(this,g(arguments,n,[r,e,o,u,i,f]))}},function(t,n){return function(r,e,o,u,i,f,c){return t.apply(this,g(arguments,n,[r,e,o,u,i,f,c]))}},function(t,n){return function(r,e,o,u,i,f,c,l){return t.apply(this,g(arguments,n,[r,e,o,u,i,f,c,l]))}}],O=function(t){var n=v(t,3),r=n[0],e=n[1],o=n[2],u=T(0,e.length-T(0,o.length-2)),i=_[u],f=i?i(r,u):_[0](r);if(e.prototype){var c=function(){};c.prototype=e.prototype,f.prototype=new c,c.prototype=null}return f},P=function(t,n){var r=t.apply(this,n);return j(r)===r?r:this},M=p?S.bind(m):function(t,n){x(t);var r,e=arguments,o=function(){var o=g(arguments,0,g(e,2));return this instanceof r?P.apply(this,[t,o]):t.apply(n,o)};return r=O([o,t,e])},E=TypeError,F=M.apply,A=M(M.call,F),X=M(F,{}.toString),z=function(t){if("function"!=typeof t&&"[object Function]"!==X(t))throw new E(t+" is not a function");return t},G=function(t,n){return A(z(t),n,g(arguments[2]))},I={}.toString,N=function(t){return function(t){if("function"!=typeof t&&"[object Function]"!==G(I,t))throw new TypeError("methodize called on incompatible "+t)}(t),function(){return G(t,arguments[0],g(arguments,1))}}({}.toString);n.default=function(t){return null===t?"[object Null]":void 0===t?"[object Undefined]":N(t)}}])});
//# sourceMappingURL=to-string-tag-x.min.js.map
{
"name": "to-string-tag-x",
"version": "2.1.0",
"version": "2.1.1",
"description": "Get an object's ES6 @@toStringTag.",

@@ -52,3 +52,5 @@ "homepage": "https://github.com/Xotic750/to-string-tag-x",

},
"dependencies": {},
"dependencies": {
"simple-methodize-x": "^1.0.3"
},
"devDependencies": {

@@ -62,6 +64,6 @@ "@babel/cli": "^7.5.5",

"@babel/runtime": "^7.5.5",
"@types/jest": "^24.0.17",
"@types/node": "^12.7.1",
"@types/webpack": "^4.32.1",
"@xotic750/eslint-config-recommended": "^1.1.2",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.2",
"@types/webpack": "^4.39.0",
"@xotic750/eslint-config-recommended": "^1.1.5",
"babel-core": "^7.0.0-0",

@@ -74,3 +76,3 @@ "babel-eslint": "^10.0.2",

"cross-env": "^5.2.0",
"eslint": "^6.1.0",
"eslint": "^6.2.1",
"eslint-friendly-formatter": "^4.0.1",

@@ -86,3 +88,3 @@ "eslint-import-resolver-webpack": "^0.11.1",

"eslint-plugin-jest": "^22.15.1",
"eslint-plugin-jsdoc": "^15.8.0",
"eslint-plugin-jsdoc": "^15.8.3",
"eslint-plugin-json": "^1.4.0",

@@ -96,4 +98,4 @@ "eslint-plugin-lodash": "^6.0.0",

"eslint-plugin-switch-case": "^1.1.2",
"jest": "^24.8.0",
"jest-cli": "^24.8.0",
"jest": "^24.9.0",
"jest-cli": "^24.9.0",
"jest-file": "^1.0.0",

@@ -105,3 +107,3 @@ "lodash": "^4.17.15",

"prettier": "^1.18.2",
"rimraf": "^2.6.3",
"rimraf": "^3.0.0",
"source-map-loader": "^0.2.4",

@@ -111,5 +113,5 @@ "strip-ansi": "^5.2.0",

"typescript": "^3.5.3",
"webpack": "^4.39.1",
"webpack": "^4.39.2",
"webpack-bundle-analyzer": "^3.4.1",
"webpack-cli": "^3.3.6",
"webpack-cli": "^3.3.7",
"webpack-global-object-x": "^1.0.0",

@@ -116,0 +118,0 @@ "webpack-merge": "^4.2.1"

@@ -1,3 +0,5 @@

const nativeObjectToString = {}.toString;
import methodize from 'simple-methodize-x';
const methodizedToString = methodize({}.toString);
/**

@@ -19,5 +21,5 @@ * The `toStringTag` method returns "[object type]", where type is the

return nativeObjectToString.call(value);
return methodizedToString(value);
};
export default toStringTag;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet