@allgemein/base 1.6.9 → 1.6.10
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/package.json +19 -20
- package/utils/ClassUtils.js.map +1 -1
- package/utils/FileUtils.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allgemein/base",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.10",
|
|
4
4
|
"description": "Library for commons moduls.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": false,
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/allgemein-node/base#readme",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@allgemein/packaging": "^1.2.
|
|
33
|
-
"@testdeck/mocha": "^0.
|
|
34
|
-
"@types/chai": "^4.
|
|
32
|
+
"@allgemein/packaging": "^1.2.18",
|
|
33
|
+
"@testdeck/mocha": "^0.2.0",
|
|
34
|
+
"@types/chai": "^4.3.1",
|
|
35
35
|
"@types/expect": "^24.3.0",
|
|
36
|
-
"@types/glob": "^7.
|
|
37
|
-
"@types/lodash": "^4.14.
|
|
38
|
-
"@types/mocha": "^9.
|
|
39
|
-
"@types/node": "^
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
41
|
-
"@typescript-eslint/parser": "^5.
|
|
42
|
-
"chai": "^4.3.
|
|
36
|
+
"@types/glob": "^7.2.0",
|
|
37
|
+
"@types/lodash": "^4.14.182",
|
|
38
|
+
"@types/mocha": "^9.1.1",
|
|
39
|
+
"@types/node": "^18.0.6",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
|
41
|
+
"@typescript-eslint/parser": "^5.30.7",
|
|
42
|
+
"chai": "^4.3.6",
|
|
43
43
|
"codecov": "^3.8.3",
|
|
44
44
|
"codelyzer": "^6.0.2",
|
|
45
|
-
"del": "6.
|
|
46
|
-
"eslint": "
|
|
47
|
-
"eslint-plugin-import": "2.
|
|
48
|
-
"eslint-plugin-mocha": "
|
|
49
|
-
"eslint-plugin-prettier": "
|
|
45
|
+
"del": "6.1.1",
|
|
46
|
+
"eslint": "8.20.0",
|
|
47
|
+
"eslint-plugin-import": "2.26.0",
|
|
48
|
+
"eslint-plugin-mocha": "10.0.5",
|
|
49
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
50
50
|
"gulp": "4.0.2",
|
|
51
51
|
"gulp-bump": "^3.2.0",
|
|
52
52
|
"gulp-clean": "^0.4.0",
|
|
@@ -55,14 +55,13 @@
|
|
|
55
55
|
"gulp-sourcemaps": "3.0.0",
|
|
56
56
|
"gulp-typescript": "5.0.1",
|
|
57
57
|
"merge-stream": "^2.0.0",
|
|
58
|
-
"mocha": "^
|
|
58
|
+
"mocha": "^10.0.0",
|
|
59
59
|
"nyc": "^15.1.0",
|
|
60
60
|
"lodash": "^4.17.21",
|
|
61
61
|
"reflect-metadata": "^0.1.13",
|
|
62
62
|
"std-mocks": "^1.0.1",
|
|
63
|
-
"ts-node": "^10.
|
|
64
|
-
"
|
|
65
|
-
"typescript": "4.4.3"
|
|
63
|
+
"ts-node": "^10.9.1",
|
|
64
|
+
"typescript": "4.7.4"
|
|
66
65
|
},
|
|
67
66
|
"peerDependencies": {
|
|
68
67
|
"lodash": "^4.17.21"
|
package/utils/ClassUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/ClassUtils.ts"],"names":[],"mappings":";;;AAAA,mCAAgH;AAChH,4CAAwC;AAExC,MAAa,UAAU;IACrB,MAAM,CAAC,YAAY,CAAC,KAAwB;QAC1C,IAAI,IAAA,iBAAQ,EAAC,KAAK,CAAC,EAAE;YACnB,OAAO,KAAK,CAAC;SACd;aAAM,IAAI,IAAA,mBAAU,EAAC,KAAK,CAAC,EAAE;YAC5B,OAAO,KAAK,CAAC,IAAI,CAAC;SACnB;aA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MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;SACrC;IACH,CAAC;IAGD,MAAM,CAAC,WAAW,CAAC,KAAwB;QACzC,IAAI,IAAA,iBAAQ,EAAC,KAAK,CAAC,EAAE;YACnB,0BAA0B;YAC1B,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;SACxC;aAAM,IAAI,IAAA,mBAAU,EAAC,KAAK,CAAC,EAAE;YAC5B,OAAO,KAAK,CAAC;SACd;aAAM,IAAI,IAAA,iBAAQ,EAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,KAAK,CAAC,WAAW,CAAC;SAC1B;aAAM;YACL,0BAA0B;YAC1B,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;SACxC;IACH,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,GAAa;QAC5B,IAAI,KAAK,GAAG,IAAI,CAAC;QACjB,IAAI,OAAO,IAAI,OAAO,CAAC,gBAAgB,CAAC,EAAE;YACxC,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,sBAAU,EAAE,GAAa,CAAC,CAAC;SAC9D;aAAM;YACL,KAAK,GAAG,GAAG,CAAC,sBAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,sBAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;SAClD;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CAEF;AAtCD,gCAsCC","file":"ClassUtils.js","sourcesContent":["import {isNull, isNumber, find, isString, snakeCase, concat, isArray, keys, isFunction, isObject} from 'lodash';\nimport {__SOURCE__} from '../Constants';\n\nexport class ClassUtils {\n static getClassName(klass: string | Function) {\n if (isString(klass)) {\n return klass;\n } else if (isFunction(klass)) {\n return klass.name;\n } else if (isObject(klass)) {\n return klass.constructor.name;\n } else {\n throw new Error('class not found!');\n }\n }\n\n\n static getFunction(klass: string | Function) {\n if (isString(klass)) {\n // TODO create error class\n throw new Error('class not found! 02');\n } else if (isFunction(klass)) {\n return klass;\n } else if (isObject(klass)) {\n return klass.constructor;\n } else {\n // TODO create error class\n throw new Error('class not found! 01');\n }\n }\n\n static getSource(cls: Function): string {\n let _path = null;\n if (Reflect && Reflect['getOwnMetadata']) {\n _path = Reflect['getOwnMetadata'](__SOURCE__, cls as object);\n } else {\n _path = cls[__SOURCE__] ? cls[__SOURCE__] : null;\n }\n return _path;\n }\n\n}\n"],"sourceRoot":".."}
|