@nsshunt/stsvueutils 2.0.100 → 2.0.101

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.
@@ -0,0 +1,5 @@
1
+ export * from './plugins/stsPluginKeys.js';
2
+ export * from './plugins/stsEmitterPlugin.js';
3
+ export * from './plugins/stsStoragePlugin.js';
4
+ export * from './plugins/stsStorage.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yBAAyB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import * as te from 'tiny-emitter';
2
+ export declare const useSTSEmitterPlugin: () => te.TinyEmitter;
3
+ export declare const STSEmitterPlugin: {
4
+ install: (app: any) => void;
5
+ };
6
+ //# sourceMappingURL=stsEmitterPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsEmitterPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/stsEmitterPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,cAAc,CAAC;AAInC,eAAO,MAAM,mBAAmB,QAAO,EAAE,CAAC,WAA4D,CAAA;AAGtG,eAAO,MAAM,gBAAgB;mBAEV,GAAG;CAarB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const STSStoragePluginKey: unique symbol;
2
+ export declare const STSEmitterPluginKey: unique symbol;
3
+ //# sourceMappingURL=stsPluginKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsPluginKeys.d.ts","sourceRoot":"","sources":["../../src/plugins/stsPluginKeys.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,eAAoB,CAAA;AACpD,eAAO,MAAM,mBAAmB,eAAoB,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { JSONObject } from '@nsshunt/stsutils';
2
+ export interface IStsStorage<T> {
3
+ get(key: string): T | null;
4
+ set(key: string, value: T, options?: JSONObject): void;
5
+ remove(key: string): void;
6
+ }
7
+ export declare enum ClientStorageType {
8
+ LOCAL_STORAGE = "LocalStorage",//@@ todo
9
+ SESSION_STORAGE = "SessionStorage",
10
+ COOKIE_STORAGE = "CookieStorage",
11
+ MEMORY_STORAGE = "MemoryStorage"
12
+ }
13
+ export interface IClientStorageOptions {
14
+ clientStorageType: ClientStorageType;
15
+ usePrefix: boolean;
16
+ storageOptions?: JSONObject;
17
+ }
18
+ export declare class ClientStorageFactory<T> {
19
+ #private;
20
+ constructor(options: IClientStorageOptions);
21
+ GetStorage(): IStsStorage<T>;
22
+ }
23
+ //# sourceMappingURL=stsStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsStorage.d.ts","sourceRoot":"","sources":["../../src/plugins/stsStorage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAKpD,MAAM,WAAW,WAAW,CAAC,CAAC;IAC7B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,CAAA;IAC1B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,CAAA;IACtD,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,oBAAY,iBAAiB;IAC5B,aAAa,iBAAiB,CAAE,SAAS;IACzC,eAAe,mBAAmB;IAClC,cAAc,kBAAkB;IAChC,cAAc,kBAAkB;CAChC;AA0HD,MAAM,WAAW,qBAAqB;IACrC,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,SAAS,EAAE,OAAO,CAAA;IAClB,cAAc,CAAC,EAAE,UAAU,CAAA;CAC3B;AAED,qBAAa,oBAAoB,CAAC,CAAC;;gBAInB,OAAO,EAAE,qBAAqB;IAuB1C,UAAU,IAAI,WAAW,CAAC,CAAC,CAAC;CAI/B"}
@@ -0,0 +1,9 @@
1
+ import { ClientStorageType, IStsStorage } from './stsStorage.js';
2
+ export interface ISTSStoragePluginOptions {
3
+ clientStorageType: ClientStorageType;
4
+ }
5
+ export declare const useSTSStoragePlugin: <T>() => IStsStorage<T>;
6
+ export declare const STSStoragePlugin: {
7
+ install: <T>(app: any, options: ISTSStoragePluginOptions) => void;
8
+ };
9
+ //# sourceMappingURL=stsStoragePlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsStoragePlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/stsStoragePlugin.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAwB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE3F,MAAM,WAAW,wBAAwB;IACxC,iBAAiB,EAAE,iBAAiB,CAAA;CACpC;AAID,eAAO,MAAM,mBAAmB,GAAI,CAAC,OAAK,WAAW,CAAC,CAAC,CAAkD,CAAA;AAGzG,eAAO,MAAM,gBAAgB;cAEf,CAAC,OAAO,GAAG,WAAW,wBAAwB;CA2B3D,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nsshunt/stsvueutils",
3
- "version": "2.0.100",
3
+ "version": "2.0.101",
4
4
  "description": "Vue 3 framework utilities and plugins",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -48,25 +48,25 @@
48
48
  },
49
49
  "homepage": "https://github.com/nsshunt/stsvueutils#readme",
50
50
  "dependencies": {
51
- "@nsshunt/stsutils": "^1.19.107",
51
+ "@nsshunt/stsutils": "^1.19.109",
52
52
  "js-cookie": "^3.0.8",
53
53
  "tiny-emitter": "^2.1.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/js-cookie": "^3.0.6",
57
- "@typescript-eslint/eslint-plugin": "^8.60.1",
58
- "@typescript-eslint/parser": "^8.60.1",
57
+ "@typescript-eslint/eslint-plugin": "^8.61.0",
58
+ "@typescript-eslint/parser": "^8.61.0",
59
59
  "@vitejs/plugin-vue": "^6.0.7",
60
60
  "eslint": "^10.4.1",
61
61
  "eslint-plugin-vue": "^10.9.2",
62
62
  "globals": "^17.6.0",
63
63
  "typescript": "^6.0.3",
64
64
  "vite": "^8.0.16",
65
- "vite-plugin-dts": "^4.5.4",
65
+ "vite-plugin-dts": "^5.0.2",
66
66
  "vitest": "^4.1.8",
67
- "vue": "^3.5.35",
67
+ "vue": "^3.5.37",
68
68
  "vue-eslint-parser": "^10.4.1",
69
- "vue-tsc": "^3.3.3"
69
+ "vue-tsc": "^3.3.4"
70
70
  },
71
71
  "packageManager": "yarn@4.13.0"
72
72
  }
@@ -1,4 +1,4 @@
1
- import { JSONObject } from '@nsshunt/stsutils';
1
+ import type { JSONObject } from "@nsshunt/stsutils";
2
2
  export interface IStsStorage<T> {
3
3
  get(key: string): T | null;
4
4
  set(key: string, value: T, options?: JSONObject): void;
@@ -1,4 +1,4 @@
1
- import { ClientStorageType, IStsStorage } from './stsStorage.js';
1
+ import { ClientStorageType, type IStsStorage } from './stsStorage.js';
2
2
  export interface ISTSStoragePluginOptions {
3
3
  clientStorageType: ClientStorageType;
4
4
  }