jdev_helpers 1.0.2 → 1.2.0
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/README.MD +13 -5
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +3 -1
package/README.MD
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
docker run -it -v $(pwd):/myWorkDir nodejs-util:node22 run build
|
|
7
|
+
npm adduser
|
|
8
|
+
npm whoami
|
|
9
|
+
npm publish
|
|
10
|
+
|
|
11
|
+
////////////
|
|
12
|
+
cd /datahdd/development/codes2025/github/jdd/fe-helper/ && \
|
|
13
|
+
docker run -it -v $(pwd):/myWorkDir nodejs-util:node22 run build && \
|
|
14
|
+
npm adduser && \
|
|
15
|
+
npm publish
|
|
16
|
+
////////////////
|
|
6
17
|
|
|
7
18
|
|
|
8
19
|
|
|
@@ -15,8 +26,6 @@ docker run -it -v $(pwd):/myWorkDir nodejs-util-npx:node22 tsc --init
|
|
|
15
26
|
|
|
16
27
|
docker run -it -v $(pwd):/myWorkDir nodejs-util:node22 install rollup @rollup/plugin-typescript @rollup/plugin-node-resolve @rollup/plugin-commonjs @rollup/plugin-json --save-dev
|
|
17
28
|
|
|
18
|
-
docker run -it -v $(pwd):/myWorkDir nodejs-util:node22 run build
|
|
19
|
-
|
|
20
29
|
|
|
21
30
|
|
|
22
31
|
-----
|
|
@@ -34,6 +43,5 @@ docker run -it -v $(pwd):/myWorkDir nodejs-util:node22 install -D typescript tsu
|
|
|
34
43
|
docker run -it -v $(pwd):/myWorkDir nodejs-util:node22_npm11.5.1 run build
|
|
35
44
|
|
|
36
45
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
npm publish
|
|
46
|
+
cd /datahdd/development/codes2025/github/jdd/fe-helper/ && \
|
|
47
|
+
docker run -it -v $(pwd):/myWorkDir nodejs-util:node22 install @angular/core@^19.0.0 @angular/common@^19.0.0 --save-dev
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
declare const debug: (message?: any, ...optionalParams: any[]) => void;
|
|
2
|
+
|
|
1
3
|
declare const WRITE_TO_LOCAL_STORAGE: (storageName: string, obj: any) => void;
|
|
2
4
|
declare const WRITE_TO_SESSION_STORAGE: (storageName: string, obj: any) => void;
|
|
3
5
|
declare const READ_FROM_LOCAL_STORAGE: (storageName: string) => any;
|
|
4
6
|
declare const READ_FROM_SESSION_STORAGE: (storageName: string) => any;
|
|
5
7
|
|
|
6
|
-
declare const debug: (message?: any, ...optionalParams: any[]) => void;
|
|
7
|
-
|
|
8
8
|
export { READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, debug };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
declare const debug: (message?: any, ...optionalParams: any[]) => void;
|
|
2
|
+
|
|
1
3
|
declare const WRITE_TO_LOCAL_STORAGE: (storageName: string, obj: any) => void;
|
|
2
4
|
declare const WRITE_TO_SESSION_STORAGE: (storageName: string, obj: any) => void;
|
|
3
5
|
declare const READ_FROM_LOCAL_STORAGE: (storageName: string) => any;
|
|
4
6
|
declare const READ_FROM_SESSION_STORAGE: (storageName: string) => any;
|
|
5
7
|
|
|
6
|
-
declare const debug: (message?: any, ...optionalParams: any[]) => void;
|
|
7
|
-
|
|
8
8
|
export { READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, debug };
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,12 @@ __export(index_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(index_exports);
|
|
30
30
|
|
|
31
|
-
// src/
|
|
31
|
+
// src/js/common-helper.ts
|
|
32
|
+
var debug = (message, ...optionalParams) => {
|
|
33
|
+
console.log(message, ...optionalParams);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// src/js/storage-helper.ts
|
|
32
37
|
var WRITE_TO_LOCAL_STORAGE = (storageName, obj) => {
|
|
33
38
|
writeToStorage(storageName, obj, true);
|
|
34
39
|
};
|
|
@@ -62,11 +67,6 @@ var writeToStorage = (storageName, obj, isLocalStorage) => {
|
|
|
62
67
|
}
|
|
63
68
|
}
|
|
64
69
|
};
|
|
65
|
-
|
|
66
|
-
// src/index.ts
|
|
67
|
-
var debug = (message, ...optionalParams) => {
|
|
68
|
-
console.log(message, ...optionalParams);
|
|
69
|
-
};
|
|
70
70
|
// Annotate the CommonJS export names for ESM import in node:
|
|
71
71
|
0 && (module.exports = {
|
|
72
72
|
READ_FROM_LOCAL_STORAGE,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/js/common-helper.ts
|
|
2
|
+
var debug = (message, ...optionalParams) => {
|
|
3
|
+
console.log(message, ...optionalParams);
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
// src/js/storage-helper.ts
|
|
2
7
|
var WRITE_TO_LOCAL_STORAGE = (storageName, obj) => {
|
|
3
8
|
writeToStorage(storageName, obj, true);
|
|
4
9
|
};
|
|
@@ -32,11 +37,6 @@ var writeToStorage = (storageName, obj, isLocalStorage) => {
|
|
|
32
37
|
}
|
|
33
38
|
}
|
|
34
39
|
};
|
|
35
|
-
|
|
36
|
-
// src/index.ts
|
|
37
|
-
var debug = (message, ...optionalParams) => {
|
|
38
|
-
console.log(message, ...optionalParams);
|
|
39
|
-
};
|
|
40
40
|
export {
|
|
41
41
|
READ_FROM_LOCAL_STORAGE,
|
|
42
42
|
READ_FROM_SESSION_STORAGE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jdev_helpers",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "jdev helpers for js and angular",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"author": "jdev",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"devDependencies": {
|
|
20
|
+
"@angular/common": "^19.2.14",
|
|
21
|
+
"@angular/core": "^19.2.14",
|
|
20
22
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
21
23
|
"@rollup/plugin-json": "^6.1.0",
|
|
22
24
|
"@rollup/plugin-node-resolve": "^16.0.1",
|