@edirect/template 1.0.0 → 1.0.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/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +20 -4
- package/dist/templateModule/index.d.ts +0 -16
- package/dist/templateModule/index.js +0 -90
- package/dist/templateModule/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
17
|
+
exports.default = "./templateModule";
|
|
18
18
|
__exportStar(require("./templateModule/interfaces"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kBAAe,kBAAkB,CAAC;AAClC,8DAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2017.full.d.ts","../src/templateModule/interfaces.ts","../node_modules/@types/lodash/common/common.d.ts","../node_modules/@types/lodash/common/array.d.ts","../node_modules/@types/lodash/common/collection.d.ts","../node_modules/@types/lodash/common/date.d.ts","../node_modules/@types/lodash/common/function.d.ts","../node_modules/@types/lodash/common/lang.d.ts","../node_modules/@types/lodash/common/math.d.ts","../node_modules/@types/lodash/common/number.d.ts","../node_modules/@types/lodash/common/object.d.ts","../node_modules/@types/lodash/common/seq.d.ts","../node_modules/@types/lodash/common/string.d.ts","../node_modules/@types/lodash/common/util.d.ts","../node_modules/@types/lodash/index.d.ts"
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2017.full.d.ts","../src/templateModule/interfaces.ts","../src/index.ts","../node_modules/@types/lodash/common/common.d.ts","../node_modules/@types/lodash/common/array.d.ts","../node_modules/@types/lodash/common/collection.d.ts","../node_modules/@types/lodash/common/date.d.ts","../node_modules/@types/lodash/common/function.d.ts","../node_modules/@types/lodash/common/lang.d.ts","../node_modules/@types/lodash/common/math.d.ts","../node_modules/@types/lodash/common/number.d.ts","../node_modules/@types/lodash/common/object.d.ts","../node_modules/@types/lodash/common/seq.d.ts","../node_modules/@types/lodash/common/string.d.ts","../node_modules/@types/lodash/common/util.d.ts","../node_modules/@types/lodash/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3",{"version":"fcd3ecc9f764f06f4d5c467677f4f117f6abf49dee6716283aa204ff1162498b","affectsGlobalScope":true},{"version":"9a60b92bca4c1257db03b349d58e63e4868cfc0d1c8d0ba60c2dbc63f4e6c9f6","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"994c234848afc14a2586b6565777f4c0b05dc479ede0a041bfd5becf6dceb586",{"version":"0a614c10884200ac9e75264373ff6141e7045107100b134562183360e8fc01df","signature":"64e60fd91c75a7d76f552a7006ce85a8c27605bfa5c23e8ade0f96046c519f1e"},{"version":"2e6e63ad13b3684b9a2a3ed4585beefa10c6e9b017c0464d2d2f1824f08cc215","signature":"d3db2837a5c40ecb7797f2fb1342af62330088da98b19a0f269858933a59a5e5"},"675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true}],"root":[28],"options":{"declaration":true,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"target":4},"fileIdsList":[[29,31,32,33,34,35,36,37,38,39,40,41],[29,30,32,33,34,35,36,37,38,39,40,41],[30,31,32,33,34,35,36,37,38,39,40,41],[29,30,31,33,34,35,36,37,38,39,40,41],[29,30,31,32,34,35,36,37,38,39,40,41],[29,30,31,32,33,35,36,37,38,39,40,41],[29,30,31,32,33,34,36,37,38,39,40,41],[29,30,31,32,33,34,35,37,38,39,40,41],[29,30,31,32,33,34,35,36,38,39,40,41],[29,30,31,32,33,34,35,36,37,39,40,41],[29,30,31,32,33,34,35,36,37,38,40,41],[29,30,31,32,33,34,35,36,37,38,39,41],[29,30,31,32,33,34,35,36,37,38,39,40],[27]],"referencedMap":[[30,1],[31,2],[29,3],[32,4],[33,5],[34,6],[35,7],[36,8],[37,9],[38,10],[39,11],[40,12],[41,13],[28,14]],"exportedModulesMap":[[30,1],[31,2],[29,3],[32,4],[33,5],[34,6],[35,7],[36,8],[37,9],[38,10],[39,11],[40,12],[41,13],[28,14]],"semanticDiagnosticsPerFile":[30,31,29,32,33,34,35,36,37,38,39,40,41,24,25,5,6,10,9,2,11,12,13,14,15,16,17,18,3,4,26,22,19,20,21,23,1,8,7,28,27]},"version":"5.0.4"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edirect/template",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Template Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
"author": "EDirectInsure",
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"scripts": {
|
|
11
|
-
"build": "tsc --build ./tsconfig.build.json"
|
|
11
|
+
"build": "tsc --build ./tsconfig.build.json",
|
|
12
|
+
"publish:patch": "npm version patch && npm publish",
|
|
13
|
+
"publish:minor": "npm version minor && npm publish",
|
|
14
|
+
"publish:major": "npm version major && npm publish"
|
|
12
15
|
},
|
|
13
16
|
"dependencies": {
|
|
14
17
|
"lodash": "^4.17.21"
|
|
@@ -16,5 +19,18 @@
|
|
|
16
19
|
"devDependencies": {
|
|
17
20
|
"@types/lodash": "^4.14.194",
|
|
18
21
|
"typescript": "^5.0.4"
|
|
19
|
-
}
|
|
20
|
-
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist/**/*"
|
|
25
|
+
],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+ssh://git@bitbucket.org/gofrank/template-module.git"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"bolttech",
|
|
32
|
+
"edirect",
|
|
33
|
+
"template",
|
|
34
|
+
"template module"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ITransformer } from "./interfaces";
|
|
2
|
-
export default class templateModule {
|
|
3
|
-
private context;
|
|
4
|
-
private template;
|
|
5
|
-
private transformers;
|
|
6
|
-
setContext(context: Record<string, unknown>): void;
|
|
7
|
-
setTemplate(template: Record<string, unknown>): void;
|
|
8
|
-
setTransformers(transformers: ITransformer): void;
|
|
9
|
-
verifyTransformer(transformer: ITransformer, methodName: string): boolean;
|
|
10
|
-
runTransformer(transformer: string, value?: unknown): unknown | null;
|
|
11
|
-
checkValue(value: any): boolean;
|
|
12
|
-
setValueByCondition(object: Record<string, unknown>, key: string, value: unknown): Record<string, unknown>;
|
|
13
|
-
isTransformer(object: Record<string, unknown>): boolean;
|
|
14
|
-
isArrayMapper(object: Record<string, unknown>): boolean;
|
|
15
|
-
transformPayload<T extends Record<string, unknown>>(obj: T, template?: Record<string, unknown>): Record<string, unknown>;
|
|
16
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const lodash_1 = require("lodash");
|
|
4
|
-
class templateModule {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.context = {};
|
|
7
|
-
this.template = {};
|
|
8
|
-
this.transformers = {};
|
|
9
|
-
}
|
|
10
|
-
setContext(context) {
|
|
11
|
-
this.context = context;
|
|
12
|
-
}
|
|
13
|
-
setTemplate(template) {
|
|
14
|
-
this.template = template;
|
|
15
|
-
}
|
|
16
|
-
setTransformers(transformers) {
|
|
17
|
-
this.transformers = transformers;
|
|
18
|
-
}
|
|
19
|
-
verifyTransformer(transformer, methodName) {
|
|
20
|
-
return !!(transformer &&
|
|
21
|
-
transformer[methodName] &&
|
|
22
|
-
typeof transformer[methodName] === "function");
|
|
23
|
-
}
|
|
24
|
-
runTransformer(transformer, value) {
|
|
25
|
-
if (this.verifyTransformer(this.transformers, transformer)) {
|
|
26
|
-
return this.transformers[transformer]({ context: this.context, value });
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
checkValue(value) {
|
|
30
|
-
return !!(value || typeof value === "boolean" || typeof value === "number");
|
|
31
|
-
}
|
|
32
|
-
setValueByCondition(object, key, value) {
|
|
33
|
-
return this.checkValue(value)
|
|
34
|
-
? Object.assign(Object.assign({}, object), { [key]: value })
|
|
35
|
-
: object;
|
|
36
|
-
}
|
|
37
|
-
isTransformer(object) {
|
|
38
|
-
return !!((0, lodash_1.has)(object, "transformer") ||
|
|
39
|
-
(0, lodash_1.has)(object, "fields") ||
|
|
40
|
-
(0, lodash_1.has)(object, "defaultValue"));
|
|
41
|
-
}
|
|
42
|
-
isArrayMapper(object) {
|
|
43
|
-
return !!((0, lodash_1.has)(object, "arraySource") && (0, lodash_1.has)(object, "arrayTemplate"));
|
|
44
|
-
}
|
|
45
|
-
transformPayload(obj, template = this.template) {
|
|
46
|
-
const object = Object.assign({}, obj);
|
|
47
|
-
if (!template)
|
|
48
|
-
return object;
|
|
49
|
-
return Object.keys(template).reduce((acc, key) => {
|
|
50
|
-
const target = template[key];
|
|
51
|
-
let value = (0, lodash_1.get)(object, target);
|
|
52
|
-
if (this.isArrayMapper(target)) {
|
|
53
|
-
const { arraySource, arrayTemplate } = target;
|
|
54
|
-
value = (0, lodash_1.get)(object, arraySource);
|
|
55
|
-
if ((0, lodash_1.isArray)(value)) {
|
|
56
|
-
const finalArray = [];
|
|
57
|
-
for (let i = 0; i < value.length; i++) {
|
|
58
|
-
finalArray.push(this.transformPayload(value[i], arrayTemplate));
|
|
59
|
-
}
|
|
60
|
-
return this.setValueByCondition(acc, key, finalArray);
|
|
61
|
-
}
|
|
62
|
-
return this.setValueByCondition(acc, key, []);
|
|
63
|
-
}
|
|
64
|
-
if (typeof target === "object") {
|
|
65
|
-
if (!this.isTransformer(target)) {
|
|
66
|
-
return this.setValueByCondition(acc, key, this.transformPayload(object, target));
|
|
67
|
-
}
|
|
68
|
-
const { fields, transformer, defaultValue } = target;
|
|
69
|
-
if (fields && Array.isArray(fields)) {
|
|
70
|
-
for (let i = 0; i < fields.length; i++) {
|
|
71
|
-
value = (0, lodash_1.get)(object, fields[i]);
|
|
72
|
-
if (transformer)
|
|
73
|
-
value = this.runTransformer(transformer, value);
|
|
74
|
-
if (this.checkValue(value))
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
if (transformer)
|
|
80
|
-
value = this.runTransformer(transformer);
|
|
81
|
-
}
|
|
82
|
-
value = this.checkValue(value) ? value : defaultValue;
|
|
83
|
-
return this.setValueByCondition(acc, key, value);
|
|
84
|
-
}
|
|
85
|
-
return this.setValueByCondition(acc, key, value);
|
|
86
|
-
}, {});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.default = templateModule;
|
|
90
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/templateModule/index.ts"],"names":[],"mappings":";;AACA,mCAA2C;AAE3C,MAA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