@etsoo/shared 1.2.78 → 1.2.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/StorageUtils.js +3 -3
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/mjs/StorageUtils.js +1 -1
- package/lib/mjs/index.d.ts +1 -0
- package/lib/mjs/index.js +1 -0
- package/package.json +2 -2
- package/src/StorageUtils.ts +1 -1
- package/src/index.ts +2 -0
- /package/lib/cjs/node/{Storage.d.ts → NodeStorage.d.ts} +0 -0
- /package/lib/cjs/node/{Storage.js → NodeStorage.js} +0 -0
- /package/lib/mjs/node/{Storage.d.ts → NodeStorage.d.ts} +0 -0
- /package/lib/mjs/node/{Storage.js → NodeStorage.js} +0 -0
- /package/src/node/{Storage.ts → NodeStorage.ts} +0 -0
package/lib/cjs/StorageUtils.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StorageUtils = void 0;
|
|
4
|
-
const
|
|
4
|
+
const NodeStorage_1 = require("./node/NodeStorage");
|
|
5
5
|
const Utils_1 = require("./Utils");
|
|
6
6
|
// Mock node
|
|
7
|
-
globalThis.localStorage ?? (globalThis.localStorage = new
|
|
8
|
-
globalThis.sessionStorage ?? (globalThis.sessionStorage = new
|
|
7
|
+
globalThis.localStorage ?? (globalThis.localStorage = new NodeStorage_1.NodeStorage());
|
|
8
|
+
globalThis.sessionStorage ?? (globalThis.sessionStorage = new NodeStorage_1.NodeStorage());
|
|
9
9
|
/**
|
|
10
10
|
* Storage utilities
|
|
11
11
|
* NodeStorage needs data persistance
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./types/EHistory";
|
|
|
6
6
|
export * from "./types/ErrorData";
|
|
7
7
|
export * from "./types/EventClass";
|
|
8
8
|
export * from "./types/FormData";
|
|
9
|
+
export * from "./node/NodeStorage";
|
|
9
10
|
export * from "./storage/IStorage";
|
|
10
11
|
export * from "./storage/WindowStorage";
|
|
11
12
|
export * from "./test/MockDOMRect";
|
package/lib/cjs/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./types/EHistory"), exports);
|
|
|
22
22
|
__exportStar(require("./types/ErrorData"), exports);
|
|
23
23
|
__exportStar(require("./types/EventClass"), exports);
|
|
24
24
|
__exportStar(require("./types/FormData"), exports);
|
|
25
|
+
__exportStar(require("./node/NodeStorage"), exports);
|
|
25
26
|
__exportStar(require("./storage/IStorage"), exports);
|
|
26
27
|
__exportStar(require("./storage/WindowStorage"), exports);
|
|
27
28
|
__exportStar(require("./test/MockDOMRect"), exports);
|
package/lib/mjs/StorageUtils.js
CHANGED
package/lib/mjs/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./types/EHistory";
|
|
|
6
6
|
export * from "./types/ErrorData";
|
|
7
7
|
export * from "./types/EventClass";
|
|
8
8
|
export * from "./types/FormData";
|
|
9
|
+
export * from "./node/NodeStorage";
|
|
9
10
|
export * from "./storage/IStorage";
|
|
10
11
|
export * from "./storage/WindowStorage";
|
|
11
12
|
export * from "./test/MockDOMRect";
|
package/lib/mjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./types/EHistory";
|
|
|
6
6
|
export * from "./types/ErrorData";
|
|
7
7
|
export * from "./types/EventClass";
|
|
8
8
|
export * from "./types/FormData";
|
|
9
|
+
export * from "./node/NodeStorage";
|
|
9
10
|
export * from "./storage/IStorage";
|
|
10
11
|
export * from "./storage/WindowStorage";
|
|
11
12
|
export * from "./test/MockDOMRect";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/shared",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.79",
|
|
4
4
|
"description": "TypeScript shared utilities and functions",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/mjs/index.js",
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
"@vitejs/plugin-react": "^5.1.0",
|
|
41
41
|
"jsdom": "^27.1.0",
|
|
42
42
|
"typescript": "^5.9.3",
|
|
43
|
-
"vitest": "^4.0.
|
|
43
|
+
"vitest": "^4.0.7"
|
|
44
44
|
}
|
|
45
45
|
}
|
package/src/StorageUtils.ts
CHANGED
package/src/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|