Skip to content

Commit

Permalink
fix: Improved support for Node.js applications.
Browse files Browse the repository at this point in the history
  • Loading branch information
Byloth committed Nov 22, 2023
1 parent 332cb6a commit 49249d1
Show file tree
Hide file tree
Showing 5 changed files with 305 additions and 239 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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. 🔧",
"keywords": [
"Core",
Expand Down Expand Up @@ -57,10 +57,10 @@
},
"devDependencies": {
"@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"
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = "1.1.6";
export const VERSION = "1.1.7";

export { DeferredPromise, Exception, JsonStorage, Subscribers } from "./models/index.js";
export {
Expand Down
11 changes: 4 additions & 7 deletions src/models/json-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,10 @@ export default class JsonStorage
}
catch (error)
{
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...");

storage.removeItem(propertyName);
}
Expand Down
5 changes: 1 addition & 4 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ export default defineConfig({
name: "Core"
},
rollupOptions: {
output: {
exports: "named",
sourcemap: true
}
output: { exports: "named" }
},
sourcemap: true
}
Expand Down
Loading

0 comments on commit 49249d1

Please sign in to comment.