typescript-class-helpers 1.0.47 → 1.0.49
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/browser/lib/classname.d.ts +3 -3
- package/browser/lib/index.d.ts +2 -2
- package/browser/lib/set-class-name.d.ts +1 -1
- package/client/lib/classname.d.ts +3 -3
- package/client/lib/index.d.ts +2 -2
- package/client/lib/set-class-name.d.ts +1 -1
- package/package.json +2 -2
- package/tmp-environment.json +13 -12
|
@@ -8,9 +8,9 @@ export declare namespace CLASSNAME {
|
|
|
8
8
|
*/
|
|
9
9
|
function CLASSNAME(className: string, options?: Models.CLASSNAMEOptions): any;
|
|
10
10
|
function getClassName(target: Function, production?: boolean): any;
|
|
11
|
-
function getObjectIndexPropertyValue(obj: any): string;
|
|
12
|
-
function getClassFamilyByClassName(className: string): string;
|
|
13
|
-
function getObjectClassFamily(obj: any): string;
|
|
11
|
+
function getObjectIndexPropertyValue(obj: any): string | undefined;
|
|
12
|
+
function getClassFamilyByClassName(className: string): string | undefined;
|
|
13
|
+
function getObjectClassFamily(obj: any): string | undefined;
|
|
14
14
|
function getObjectIndexValue(obj: any): any;
|
|
15
15
|
function getClassBy(className: string | Function): Function;
|
|
16
16
|
}
|
package/browser/lib/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const CLASS: {
|
|
|
15
15
|
NAME: typeof CLASSNAME.CLASSNAME;
|
|
16
16
|
setName: typeof setClassName;
|
|
17
17
|
getBy: typeof Helpers.getBy;
|
|
18
|
-
getSingleton<T = any>(target: Function): T;
|
|
18
|
+
getSingleton<T = any>(target: Function): T | undefined;
|
|
19
19
|
setSingletonObj(target: Function, singletonObject: any): void;
|
|
20
20
|
getConfig: typeof Helpers.getConfig;
|
|
21
21
|
getFromObject: typeof Helpers.getFromObject;
|
|
@@ -24,7 +24,7 @@ export declare const CLASS: {
|
|
|
24
24
|
describeProperites: typeof Helpers.describeProperites;
|
|
25
25
|
OBJECT: (obj: any) => {
|
|
26
26
|
readonly indexValue: any;
|
|
27
|
-
readonly indexProperty: string;
|
|
27
|
+
readonly indexProperty: string | undefined;
|
|
28
28
|
readonly isClassObject: boolean;
|
|
29
29
|
isEqual: (anotherObj: any, compareDeep?: boolean) => boolean;
|
|
30
30
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Models } from './models';
|
|
2
|
-
export declare function setClassName(target: Function, className: string, options?: Models.CLASSNAMEOptions): (...args: any[]) => any;
|
|
2
|
+
export declare function setClassName(target: Function, className: string, options?: Models.CLASSNAMEOptions): ((...args: any[]) => any) | undefined;
|
|
@@ -8,9 +8,9 @@ export declare namespace CLASSNAME {
|
|
|
8
8
|
*/
|
|
9
9
|
function CLASSNAME(className: string, options?: Models.CLASSNAMEOptions): any;
|
|
10
10
|
function getClassName(target: Function, production?: boolean): any;
|
|
11
|
-
function getObjectIndexPropertyValue(obj: any): string;
|
|
12
|
-
function getClassFamilyByClassName(className: string): string;
|
|
13
|
-
function getObjectClassFamily(obj: any): string;
|
|
11
|
+
function getObjectIndexPropertyValue(obj: any): string | undefined;
|
|
12
|
+
function getClassFamilyByClassName(className: string): string | undefined;
|
|
13
|
+
function getObjectClassFamily(obj: any): string | undefined;
|
|
14
14
|
function getObjectIndexValue(obj: any): any;
|
|
15
15
|
function getClassBy(className: string | Function): Function;
|
|
16
16
|
}
|
package/client/lib/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const CLASS: {
|
|
|
15
15
|
NAME: typeof CLASSNAME.CLASSNAME;
|
|
16
16
|
setName: typeof setClassName;
|
|
17
17
|
getBy: typeof Helpers.getBy;
|
|
18
|
-
getSingleton<T = any>(target: Function): T;
|
|
18
|
+
getSingleton<T = any>(target: Function): T | undefined;
|
|
19
19
|
setSingletonObj(target: Function, singletonObject: any): void;
|
|
20
20
|
getConfig: typeof Helpers.getConfig;
|
|
21
21
|
getFromObject: typeof Helpers.getFromObject;
|
|
@@ -24,7 +24,7 @@ export declare const CLASS: {
|
|
|
24
24
|
describeProperites: typeof Helpers.describeProperites;
|
|
25
25
|
OBJECT: (obj: any) => {
|
|
26
26
|
readonly indexValue: any;
|
|
27
|
-
readonly indexProperty: string;
|
|
27
|
+
readonly indexProperty: string | undefined;
|
|
28
28
|
readonly isClassObject: boolean;
|
|
29
29
|
isEqual: (anotherObj: any, compareDeep?: boolean) => boolean;
|
|
30
30
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Models } from './models';
|
|
2
|
-
export declare function setClassName(target: Function, className: string, options?: Models.CLASSNAMEOptions): (...args: any[]) => any;
|
|
2
|
+
export declare function setClassName(target: Function, className: string, options?: Models.CLASSNAMEOptions): ((...args: any[]) => any) | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typescript-class-helpers",
|
|
3
3
|
"description": "Usefull helper to have in your typescript project",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.49",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "mocha --require ts-node/register src/**/*.spec.ts",
|
|
7
7
|
"test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"homepage": "https://github.com/darekf77/typescript-class-helpers#readme",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"enum-values": "1.2.1",
|
|
25
|
-
"ng2-logger": "~8.0.
|
|
25
|
+
"ng2-logger": "~8.0.30"
|
|
26
26
|
},
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"private": false,
|
package/tmp-environment.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"name": "typescript-class-helpers",
|
|
47
47
|
"description": "Usefull helper to have in your typescript project",
|
|
48
|
-
"version": "1.0.
|
|
48
|
+
"version": "1.0.49",
|
|
49
49
|
"scripts": {
|
|
50
50
|
"test": "mocha --require ts-node/register src/**/*.spec.ts",
|
|
51
51
|
"test:watch": "mocha --compilers ts-node/register src/**/*.spec.ts --watch"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"homepage": "https://github.com/darekf77/typescript-class-helpers#readme",
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"enum-values": "1.2.1",
|
|
69
|
-
"ng2-logger": "~8.0.
|
|
69
|
+
"ng2-logger": "~8.0.30"
|
|
70
70
|
},
|
|
71
71
|
"license": "MIT",
|
|
72
72
|
"private": false,
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"bcryptjs": "2.4.3",
|
|
131
131
|
"body-parser": "1.18.2",
|
|
132
132
|
"bootstrap": "5.1.3",
|
|
133
|
-
"bs4-breakpoint": "~2.0.
|
|
133
|
+
"bs4-breakpoint": "~2.0.42",
|
|
134
134
|
"buffer-shims": "1.0.0",
|
|
135
135
|
"callsite-record": "4.1.3",
|
|
136
136
|
"chai": "4.2.0",
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"istanbul-instrumenter-loader": "2.0.0",
|
|
180
180
|
"jasmine-core": "4.0.0",
|
|
181
181
|
"json-stringify-safe": "5.0.1",
|
|
182
|
-
"json10": "~1.0.
|
|
182
|
+
"json10": "~1.0.38",
|
|
183
183
|
"json5": "2.1.3",
|
|
184
184
|
"json5-writer": "0.2.0",
|
|
185
185
|
"karma": "6.3.0",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"lnk": "1.0.1",
|
|
192
192
|
"lockfile": "1.0.4",
|
|
193
193
|
"lodash": "4.17.4",
|
|
194
|
-
"lodash-walk-object": "~1.0.
|
|
194
|
+
"lodash-walk-object": "~1.0.39",
|
|
195
195
|
"lowdb": "1.0.0",
|
|
196
196
|
"magic-renamer": "~0.0.20",
|
|
197
197
|
"material-design-icons": "3.0.1",
|
|
@@ -236,18 +236,19 @@
|
|
|
236
236
|
"sudo-block": "3.0.0",
|
|
237
237
|
"systeminformation": "3.45.7",
|
|
238
238
|
"task.js": "0.1.5",
|
|
239
|
-
"tnp-cli": "~2.0.
|
|
240
|
-
"tnp-config": "~1.0.
|
|
241
|
-
"tnp-core": "~1.0.
|
|
239
|
+
"tnp-cli": "~2.0.27",
|
|
240
|
+
"tnp-config": "~1.0.30",
|
|
241
|
+
"tnp-core": "~1.0.59",
|
|
242
242
|
"tnp-db": "~0.0.44",
|
|
243
243
|
"tnp-helpers": "~0.0.73",
|
|
244
244
|
"tnp-models": "~0.0.37",
|
|
245
245
|
"tnp-tools": "~0.0.46",
|
|
246
246
|
"tnp-ui": "~0.0.33",
|
|
247
|
+
"ts-node": "10.7.0",
|
|
247
248
|
"tslib": "~2.3.0",
|
|
248
249
|
"typeorm": "~0.2.7",
|
|
249
250
|
"typescript": "~4.5.2",
|
|
250
|
-
"typescript-class-helpers": "~1.0.
|
|
251
|
+
"typescript-class-helpers": "~1.0.47",
|
|
251
252
|
"typescript-formatter": "~7.2.2",
|
|
252
253
|
"underscore": "1.9.1",
|
|
253
254
|
"uuid": "8.3.2",
|
|
@@ -258,9 +259,9 @@
|
|
|
258
259
|
}
|
|
259
260
|
},
|
|
260
261
|
"build": {
|
|
261
|
-
"number":
|
|
262
|
-
"date": "2022-03-
|
|
263
|
-
"hash": "
|
|
262
|
+
"number": 187,
|
|
263
|
+
"date": "2022-03-07T01:12:03.000Z",
|
|
264
|
+
"hash": "40013ec8dbf73ce99de2cf07f792abe9252061cd",
|
|
264
265
|
"options": {}
|
|
265
266
|
},
|
|
266
267
|
"currentProjectName": "typescript-class-helpers",
|