Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

to-string-x

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

to-string-x - npm Package Compare versions

Comparing version 2.0.35 to 2.1.0

55

dist/to-string-x.js

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

"copywrite": "Copyright (c) 2015-present",
"date": "2019-07-31T21:48:44.962Z",
"date": "2019-08-14T14:31:04.734Z",
"describe": "",
"description": "ES6-compliant shim for ToString.",
"file": "to-string-x.js",
"hash": "9957dced565eb9a5f824",
"hash": "1178b479809302c20bc7",
"license": "MIT",
"version": "2.0.35"
"version": "2.1.0"
}

@@ -27,15 +27,44 @@ */

if (typeof self !== 'undefined') {
return self;
}
var ObjectCtr = {}.constructor;
var objectPrototype = ObjectCtr.prototype;
var defineProperty = ObjectCtr.defineProperty;
var $globalThis;
var getGlobalFallback = function() {
if (typeof self !== 'undefined') {
return self;
}
if (typeof window !== 'undefined') {
return window;
}
if (typeof window !== 'undefined') {
return window;
}
if (typeof global !== 'undefined') {
return global;
if (typeof global !== 'undefined') {
return global;
}
return void 0;
};
var returnThis = function() {
return this;
};
try {
if (defineProperty) {
defineProperty(objectPrototype, '$$globalThis$$', {
get: returnThis,
configurable: true
});
} else {
objectPrototype.__defineGetter__('$$globalThis$$', returnThis);
}
$globalThis = typeof $$globalThis$$ === 'undefined' ? getGlobalFallback() : $$globalThis$$;
delete objectPrototype.$$globalThis$$;
return $globalThis;
} catch (error) {
return getGlobalFallback();
}
return Function('return this')();
}()), function() {

@@ -42,0 +71,0 @@ return /******/ (function(modules) { // webpackBootstrap

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

"copywrite": "Copyright (c) 2015-present",
"date": "2019-07-31T21:48:44.962Z",
"date": "2019-08-14T14:31:04.734Z",
"describe": "",
"description": "ES6-compliant shim for ToString.",
"file": "to-string-x.min.js",
"hash": "b8f230dbcb937a87e2d8",
"hash": "76c79eb62e540adb028c",
"license": "MIT",
"version": "2.0.35"
"version": "2.1.0"
}
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.toStringX=e():t.toStringX=e()}(function(){"use strict";return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:Function("return this")()}(),function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},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,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=1)}([function(t,e,r){"use strict";var n=Object.prototype.toString;if(r(2)()){var o=Symbol.prototype.toString,u=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==n.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&u.test(o.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){"use strict";r.r(e);var n=r(0),o=r.n(n),u="Cannot convert a Symbol value to a string",f=u.constructor;e.default=function(t){if(o()(t))throw new TypeError(u);return f(t)}},function(t,e,r){"use strict";(function(e){var n=e.Symbol,o=r(4);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,r(3))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.toStringX=e():t.toStringX=e()}(function(){"use strict";var t,e={}.constructor,r=e.prototype,o=e.defineProperty,n=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0},u=function(){return this};try{return o?o(r,"$$globalThis$$",{get:u,configurable:!0}):r.__defineGetter__("$$globalThis$$",u),t="undefined"==typeof $$globalThis$$?n():$$globalThis$$,delete r.$$globalThis$$,t}catch(t){return n()}}(),function(){return function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},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,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=1)}([function(t,e,r){"use strict";var o=Object.prototype.toString;if(r(2)()){var n=Symbol.prototype.toString,u=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==o.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&u.test(n.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},function(t,e,r){"use strict";r.r(e);var o=r(0),n=r.n(o),u="Cannot convert a Symbol value to a string",i=u.constructor;e.default=function(t){if(n()(t))throw new TypeError(u);return i(t)}},function(t,e,r){"use strict";(function(e){var o=e.Symbol,n=r(4);t.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&n())))}}).call(this,r(3))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}}])});
//# sourceMappingURL=to-string-x.min.js.map
{
"name": "to-string-x",
"version": "2.0.35",
"version": "2.1.0",
"description": "ES6-compliant shim for ToString.",

@@ -42,2 +42,3 @@ "homepage": "https://github.com/Xotic750/to-string-x",

"test:ci": "npm run test -- --ci --maxWorkers=2",
"test:ci-coveralls": "npm run test:ci -- --coverage --coverageReporters=text-lcov | coveralls",
"test:coverage": "npm run test -- --coverage"

@@ -64,5 +65,6 @@ },

"@babel/runtime": "^7.5.5",
"@types/jest": "^24.0.16",
"@types/node": "^12.6.8",
"@xotic750/eslint-config-recommended": "^1.0.5",
"@types/jest": "^24.0.17",
"@types/node": "^12.7.1",
"@types/webpack": "^4.32.1",
"@xotic750/eslint-config-recommended": "^1.1.2",
"babel-core": "^7.0.0-0",

@@ -72,5 +74,6 @@ "babel-eslint": "^10.0.2",

"babel-plugin-lodash": "^3.3.4",
"caniuse-lite": "^1.0.30000988",
"caniuse-lite": "^1.0.30000989",
"coveralls": "^3.0.6",
"cross-env": "^5.2.0",
"eslint": "=5.16.0",
"eslint": "^6.1.0",
"eslint-friendly-formatter": "^4.0.1",

@@ -85,6 +88,6 @@ "eslint-import-resolver-webpack": "^0.11.1",

"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.14.1",
"eslint-plugin-jest": "^22.15.1",
"eslint-plugin-jsdoc": "^15.8.0",
"eslint-plugin-json": "^1.4.0",
"eslint-plugin-lodash": "^5.1.0",
"eslint-plugin-lodash": "^6.0.0",
"eslint-plugin-no-use-extend-native": "^0.4.1",

@@ -109,5 +112,6 @@ "eslint-plugin-prefer-object-spread": "^1.2.1",

"typescript": "^3.5.3",
"webpack": "^4.38.0",
"webpack": "^4.39.1",
"webpack-bundle-analyzer": "^3.4.1",
"webpack-cli": "^3.3.6",
"webpack-global-object-x": "^1.0.0",
"webpack-merge": "^4.2.1"

@@ -114,0 +118,0 @@ },

@@ -38,2 +38,8 @@ <a

</a>
<a
href="https://coveralls.io/github/Xotic750/to-string-x?branch=master"
title="Coverage Status">
<img src="https://coveralls.io/repos/github/Xotic750/to-string-x/badge.svg?branch=master"
alt="Coverage Status" height="18">
</a>

@@ -40,0 +46,0 @@ <a name="module_to-string-x"></a>

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