tiny-coerce
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -6,3 +6,3 @@ /** | ||
* @license BSD-3-Clause | ||
* @version 3.0.0 | ||
* @version 3.0.1 | ||
*/ | ||
@@ -9,0 +9,0 @@ const regex = { |
/*! | ||
2023 Jason Mulligan <jason.mulligan@avoidwork.com> | ||
@version 3.0.0 | ||
@version 3.0.1 | ||
*/ | ||
const e={false:/^(F|f)alse$/,null:/^(N|n)ull$/,json:/^["\[{].*[}\]"]$/,true:/^(T|t)rue$/},t="string",s="undefined";function l(e){const t=Array.isArray(e);(t?e:Object.keys(e)).forEach(((s,l)=>{e[t?l:s]=n(t?s:e[s],!0)}))}function n(n,f=!1){let i;if(typeof n!==t)i=n,f&&l(i);else{const t=n.trim();let r;if(0===t.length)i=t;else if(e.true.test(t))i=!0;else if(e.false.test(t))i=!1;else if(e.null.test(t))i=null;else if(t===s)i=void 0;else if(isNaN(r=Number(t)))if(e.json.test(t)){let e;try{i=JSON.parse(t),e=!0}catch(s){i=t,e=!1}e&&f&&l(i)}else i=t;else i=r}return i}export{n as coerce};//# sourceMappingURL=tiny-coerce.min.js.map |
@@ -6,3 +6,3 @@ /** | ||
* @license BSD-3-Clause | ||
* @version 3.0.0 | ||
* @version 3.0.1 | ||
*/ | ||
@@ -9,0 +9,0 @@ (function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports):typeof define==='function'&&define.amd?define(['exports'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.lru={}));})(this,(function(exports){'use strict';const regex = { |
/*! | ||
2023 Jason Mulligan <jason.mulligan@avoidwork.com> | ||
@version 3.0.0 | ||
@version 3.0.1 | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).lru={})}(this,(function(e){"use strict";const t={false:/^(F|f)alse$/,null:/^(N|n)ull$/,json:/^["\[{].*[}\]"]$/,true:/^(T|t)rue$/},s="string",n="undefined";function l(e){const t=Array.isArray(e);(t?e:Object.keys(e)).forEach(((s,n)=>{e[t?n:s]=f(t?s:e[s],!0)}))}function f(e,f=!1){let i;if(typeof e!==s)i=e,f&&l(i);else{const s=e.trim();let o;if(0===s.length)i=s;else if(t.true.test(s))i=!0;else if(t.false.test(s))i=!1;else if(t.null.test(s))i=null;else if(s===n)i=void 0;else if(isNaN(o=Number(s)))if(t.json.test(s)){let e;try{i=JSON.parse(s),e=!0}catch(t){i=s,e=!1}e&&f&&l(i)}else i=s;else i=o}return i}e.coerce=f}));//# sourceMappingURL=tiny-coerce.umd.min.js.map |
{ | ||
"name": "tiny-coerce", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Tiny coercion library for Client or Server", | ||
@@ -8,3 +8,3 @@ "type": "module", | ||
"source": "src/coerce.js", | ||
"main": "dist/tiny-coerce", | ||
"main": "dist/tiny-coerce.cjs", | ||
"exports": { | ||
@@ -55,3 +55,3 @@ "types": "./types/coerce.d.ts", | ||
"nyc": "^15.1.0", | ||
"rollup": "^3.29.2", | ||
"rollup": "^4.0.0", | ||
"typescript": "^5.2.2" | ||
@@ -58,0 +58,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16619
0