jdev_helpers 1.1.0 → 1.2.1

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 CHANGED
@@ -8,6 +8,13 @@ npm adduser
8
8
  npm whoami
9
9
  npm publish
10
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
+ ////////////////
17
+
11
18
 
12
19
 
13
20
  ------------
@@ -34,3 +41,7 @@ docker run -it -v $(pwd):/myWorkDir nodejs-util:node22 init -y
34
41
  docker run -it -v $(pwd):/myWorkDir nodejs-util:node22 install typescript
35
42
  docker run -it -v $(pwd):/myWorkDir nodejs-util:node22 install -D typescript tsup
36
43
  docker run -it -v $(pwd):/myWorkDir nodejs-util:node22_npm11.5.1 run build
44
+
45
+
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,3 +1,5 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+
1
3
  declare const debug: (message?: any, ...optionalParams: any[]) => void;
2
4
 
3
5
  declare const WRITE_TO_LOCAL_STORAGE: (storageName: string, obj: any) => void;
@@ -5,4 +7,9 @@ declare const WRITE_TO_SESSION_STORAGE: (storageName: string, obj: any) => void;
5
7
  declare const READ_FROM_LOCAL_STORAGE: (storageName: string) => any;
6
8
  declare const READ_FROM_SESSION_STORAGE: (storageName: string) => any;
7
9
 
8
- export { READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, debug };
10
+ declare abstract class HttpParentService {
11
+ protected readonly http: HttpClient;
12
+ constructor();
13
+ }
14
+
15
+ export { HttpParentService, READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, debug };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+
1
3
  declare const debug: (message?: any, ...optionalParams: any[]) => void;
2
4
 
3
5
  declare const WRITE_TO_LOCAL_STORAGE: (storageName: string, obj: any) => void;
@@ -5,4 +7,9 @@ declare const WRITE_TO_SESSION_STORAGE: (storageName: string, obj: any) => void;
5
7
  declare const READ_FROM_LOCAL_STORAGE: (storageName: string) => any;
6
8
  declare const READ_FROM_SESSION_STORAGE: (storageName: string) => any;
7
9
 
8
- export { READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, debug };
10
+ declare abstract class HttpParentService {
11
+ protected readonly http: HttpClient;
12
+ constructor();
13
+ }
14
+
15
+ export { HttpParentService, READ_FROM_LOCAL_STORAGE, READ_FROM_SESSION_STORAGE, WRITE_TO_LOCAL_STORAGE, WRITE_TO_SESSION_STORAGE, debug };
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ HttpParentService: () => HttpParentService,
23
24
  READ_FROM_LOCAL_STORAGE: () => READ_FROM_LOCAL_STORAGE,
24
25
  READ_FROM_SESSION_STORAGE: () => READ_FROM_SESSION_STORAGE,
25
26
  WRITE_TO_LOCAL_STORAGE: () => WRITE_TO_LOCAL_STORAGE,
@@ -67,8 +68,18 @@ var writeToStorage = (storageName, obj, isLocalStorage) => {
67
68
  }
68
69
  }
69
70
  };
71
+
72
+ // src/angular/http-parent.service.ts
73
+ var import_http = require("@angular/common/http");
74
+ var import_core = require("@angular/core");
75
+ var HttpParentService = class {
76
+ http = (0, import_core.inject)(import_http.HttpClient);
77
+ constructor() {
78
+ }
79
+ };
70
80
  // Annotate the CommonJS export names for ESM import in node:
71
81
  0 && (module.exports = {
82
+ HttpParentService,
72
83
  READ_FROM_LOCAL_STORAGE,
73
84
  READ_FROM_SESSION_STORAGE,
74
85
  WRITE_TO_LOCAL_STORAGE,
package/dist/index.mjs CHANGED
@@ -37,7 +37,17 @@ var writeToStorage = (storageName, obj, isLocalStorage) => {
37
37
  }
38
38
  }
39
39
  };
40
+
41
+ // src/angular/http-parent.service.ts
42
+ import { HttpClient } from "@angular/common/http";
43
+ import { inject } from "@angular/core";
44
+ var HttpParentService = class {
45
+ http = inject(HttpClient);
46
+ constructor() {
47
+ }
48
+ };
40
49
  export {
50
+ HttpParentService,
41
51
  READ_FROM_LOCAL_STORAGE,
42
52
  READ_FROM_SESSION_STORAGE,
43
53
  WRITE_TO_LOCAL_STORAGE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jdev_helpers",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
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",