@byloth/core
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -1,4 +0,4 @@ | ||
var h = Object.defineProperty; | ||
var l = (r, e, t) => e in r ? h(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t; | ||
var n = (r, e, t) => (l(r, typeof e != "symbol" ? e + "" : e, t), t); | ||
var l = Object.defineProperty; | ||
var h = (r, e, t) => e in r ? l(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t; | ||
var n = (r, e, t) => (h(r, typeof e != "symbol" ? e + "" : e, t), t); | ||
class _ { | ||
@@ -67,3 +67,5 @@ constructor(e, t) { | ||
} catch { | ||
e.removeItem(t); | ||
console.warn( | ||
`The "${s}" value for "${t}" property cannot be parsed. Clearing the storage...` | ||
), e.removeItem(t); | ||
} | ||
@@ -261,3 +263,3 @@ return i; | ||
} | ||
function j(r = 1, e, t) { | ||
function T(r = 1, e, t) { | ||
if (e === void 0 && (e = r, r = 0), r === e) | ||
@@ -278,6 +280,6 @@ return r; | ||
} | ||
function T(r) { | ||
function j(r) { | ||
return `${r.charAt(0).toUpperCase()}${r.slice(1)}`; | ||
} | ||
const x = "1.1.6"; | ||
const $ = "1.1.7"; | ||
export { | ||
@@ -289,4 +291,4 @@ a as DateUnit, | ||
m as Subscribers, | ||
x as VERSION, | ||
T as capitalize, | ||
$ as VERSION, | ||
j as capitalize, | ||
I as count, | ||
@@ -300,3 +302,3 @@ p as dateDifference, | ||
v as nextAnimationFrame, | ||
j as random, | ||
T as random, | ||
S as range, | ||
@@ -303,0 +305,0 @@ M as sum, |
{ | ||
"name": "@byloth/core", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "An unopinionated collection of useful functions and classes that I use widely in all my projects. 🔧", | ||
@@ -60,8 +60,8 @@ "keywords": [ | ||
"@byloth/eslint-config-typescript": "^2.6.7", | ||
"@typescript-eslint/eslint-plugin": "^6.10.0", | ||
"@typescript-eslint/parser": "^6.10.0", | ||
"eslint": "^8.53.0", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.5.0" | ||
"@typescript-eslint/eslint-plugin": "^6.12.0", | ||
"@typescript-eslint/parser": "^6.12.0", | ||
"eslint": "^8.54.0", | ||
"typescript": "^5.3.2", | ||
"vite": "^5.0.2" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
export const VERSION = "1.1.6"; | ||
export const VERSION = "1.1.7"; | ||
@@ -3,0 +3,0 @@ export { DeferredPromise, Exception, JsonStorage, Subscribers } from "./models/index.js"; |
@@ -38,9 +38,6 @@ /* eslint-disable no-trailing-spaces */ | ||
{ | ||
if (import.meta.env.DEV) | ||
{ | ||
// eslint-disable-next-line no-console | ||
console.warn( | ||
`The "${propertyValue}" value for "${propertyName}"` + | ||
" property cannot be parsed. Clearing the storage..."); | ||
} | ||
// eslint-disable-next-line no-console | ||
console.warn( | ||
`The "${propertyValue}" value for "${propertyName}"` + | ||
" property cannot be parsed. Clearing the storage..."); | ||
@@ -47,0 +44,0 @@ storage.removeItem(propertyName); |
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
93551
844