to-string-x
Advanced tools
Comparing version 2.0.18 to 2.0.19
@@ -12,3 +12,3 @@ import isSymbol from 'is-symbol'; | ||
export default function ToString(value) { | ||
var ToString = function ToString(value) { | ||
if (isSymbol(value)) { | ||
@@ -19,4 +19,6 @@ throw new TypeError(ERROR_MESSAGE); | ||
return castString(value); | ||
} | ||
}; | ||
export default ToString; | ||
//# sourceMappingURL=to-string-x.esm.js.map |
@@ -5,9 +5,9 @@ /*! | ||
"copywrite": "Copyright (c) 2015-present", | ||
"date": "2019-07-16T21:00:03.265Z", | ||
"date": "2019-07-17T13:30:48.438Z", | ||
"describe": "", | ||
"description": "ES6-compliant shim for ToString.", | ||
"file": "to-string-x.js", | ||
"hash": "2351d1d9eceb37aa7593", | ||
"hash": "9957dced565eb9a5f824", | ||
"license": "MIT", | ||
"version": "2.0.18" | ||
"version": "2.0.19" | ||
} | ||
@@ -175,3 +175,2 @@ */ | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return ToString; }); | ||
/* harmony import */ var is_symbol__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); | ||
@@ -190,3 +189,3 @@ /* harmony import */ var is_symbol__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(is_symbol__WEBPACK_IMPORTED_MODULE_0__); | ||
function ToString(value) { | ||
var ToString = function ToString(value) { | ||
if (is_symbol__WEBPACK_IMPORTED_MODULE_0___default()(value)) { | ||
@@ -197,6 +196,8 @@ throw new TypeError(ERROR_MESSAGE); | ||
return castString(value); | ||
} | ||
}; | ||
/* harmony default export */ __webpack_exports__["default"] = (ToString); | ||
/***/ }), | ||
@@ -203,0 +204,0 @@ /* 2 */ |
@@ -5,12 +5,12 @@ /*! | ||
"copywrite": "Copyright (c) 2015-present", | ||
"date": "2019-07-16T21:00:03.265Z", | ||
"date": "2019-07-17T13:30:48.438Z", | ||
"describe": "", | ||
"description": "ES6-compliant shim for ToString.", | ||
"file": "to-string-x.min.js", | ||
"hash": "4100fa6bab1dbae8906c", | ||
"hash": "b8f230dbcb937a87e2d8", | ||
"license": "MIT", | ||
"version": "2.0.18" | ||
"version": "2.0.19" | ||
} | ||
*/ | ||
!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),r.d(e,"default",function(){return i});var n=r(0),o=r.n(n),u="Cannot convert a Symbol value to a string",f=u.constructor;function i(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";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}}])}); | ||
//# sourceMappingURL=to-string-x.min.js.map |
{ | ||
"name": "to-string-x", | ||
"version": "2.0.18", | ||
"version": "2.0.19", | ||
"description": "ES6-compliant shim for ToString.", | ||
@@ -68,3 +68,3 @@ "homepage": "https://github.com/Xotic750/to-string-x", | ||
"@types/jest": "^24.0.15", | ||
"@types/node": "^12.6.3", | ||
"@types/node": "^12.6.6", | ||
"babel-core": "^7.0.0-0", | ||
@@ -85,3 +85,3 @@ "babel-eslint": "^10.0.2", | ||
"eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-compat": "^3.2.0", | ||
"eslint-plugin-compat": "^3.3.0", | ||
"eslint-plugin-css-modules": "^2.11.0", | ||
@@ -91,4 +91,4 @@ "eslint-plugin-eslint-comments": "^3.1.2", | ||
"eslint-plugin-import": "^2.18.0", | ||
"eslint-plugin-jest": "^22.7.2", | ||
"eslint-plugin-jsdoc": "^15.3.5", | ||
"eslint-plugin-jest": "^22.9.0", | ||
"eslint-plugin-jsdoc": "^15.5.2", | ||
"eslint-plugin-json": "^1.4.0", | ||
@@ -120,3 +120,3 @@ "eslint-plugin-lodash": "^5.1.0", | ||
"typescript": "^3.5.3", | ||
"webpack": "^4.35.3", | ||
"webpack": "^4.36.0", | ||
"webpack-bundle-analyzer": "^3.3.2", | ||
@@ -123,0 +123,0 @@ "webpack-cli": "^3.3.6", |
@@ -12,3 +12,3 @@ import isSymbol from 'is-symbol'; | ||
*/ | ||
export default function ToString(value) { | ||
const ToString = function ToString(value) { | ||
if (isSymbol(value)) { | ||
@@ -19,2 +19,4 @@ throw new TypeError(ERROR_MESSAGE); | ||
return castString(value); | ||
} | ||
}; | ||
export default ToString; |
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
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
44214
308