tnp-helpers 16.100.7 → 16.100.8
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/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2022/lib/base/base-project-resolver.mjs +32 -1
- package/browser/esm2022/lib/base/base-project.mjs +46 -2
- package/browser/esm2022/lib/base/core-project.mjs +7 -27
- package/browser/esm2022/lib/index.mjs +2 -1
- package/browser/esm2022/lib/models.mjs +3 -0
- package/browser/fesm2022/tnp-helpers.mjs +81 -25
- package/browser/fesm2022/tnp-helpers.mjs.map +1 -1
- package/browser/lib/base/base-project-resolver.d.ts +14 -1
- package/browser/lib/base/base-project.d.ts +9 -17
- package/browser/lib/base/core-project.d.ts +4 -14
- package/browser/lib/index.d.ts +2 -1
- package/browser/lib/models.d.ts +17 -0
- package/client/esm2022/lib/base/base-project-resolver.mjs +32 -1
- package/client/esm2022/lib/base/base-project.mjs +46 -2
- package/client/esm2022/lib/base/core-project.mjs +7 -27
- package/client/esm2022/lib/index.mjs +2 -1
- package/client/esm2022/lib/models.mjs +3 -0
- package/client/fesm2022/tnp-helpers.mjs +81 -25
- package/client/fesm2022/tnp-helpers.mjs.map +1 -1
- package/client/lib/base/base-project-resolver.d.ts +14 -1
- package/client/lib/base/base-project.d.ts +9 -17
- package/client/lib/base/core-project.d.ts +4 -14
- package/client/lib/index.d.ts +2 -1
- package/client/lib/models.d.ts +17 -0
- package/client/package.json +27 -26
- package/firedev.jsonc +3 -2
- package/lib/base/base-project-resolver.d.ts +13 -1
- package/lib/base/base-project-resolver.js +53 -4
- package/lib/base/base-project-resolver.js.map +1 -1
- package/lib/base/base-project.d.ts +10 -21
- package/lib/base/base-project.js +144 -64
- package/lib/base/base-project.js.map +1 -1
- package/lib/base/core-project.d.ts +3 -13
- package/lib/base/core-project.js +5 -34
- package/lib/base/core-project.js.map +1 -1
- package/lib/helpers/for-browser/angular.helper.js +3 -3
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/lowdb/adapters/Memory.d.ts +11 -0
- package/lib/lowdb/adapters/Memory.js +31 -0
- package/lib/lowdb/adapters/Memory.js.map +1 -0
- package/lib/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
- package/lib/lowdb/adapters/browser/LocalStorage.js +14 -0
- package/lib/lowdb/adapters/browser/LocalStorage.js.map +1 -0
- package/lib/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
- package/lib/lowdb/adapters/browser/SessionStorage.js +14 -0
- package/lib/lowdb/adapters/browser/SessionStorage.js.map +1 -0
- package/lib/lowdb/adapters/browser/WebStorage.d.ts +8 -0
- package/lib/lowdb/adapters/browser/WebStorage.js +22 -0
- package/lib/lowdb/adapters/browser/WebStorage.js.map +1 -0
- package/lib/lowdb/adapters/node/DataFile.d.ts +26 -0
- package/lib/lowdb/adapters/node/DataFile.js +60 -0
- package/lib/lowdb/adapters/node/DataFile.js.map +1 -0
- package/lib/lowdb/adapters/node/JSONFile.d.ts +9 -0
- package/lib/lowdb/adapters/node/JSONFile.js +28 -0
- package/lib/lowdb/adapters/node/JSONFile.js.map +1 -0
- package/lib/lowdb/adapters/node/TextFile.d.ts +18 -0
- package/lib/lowdb/adapters/node/TextFile.js +68 -0
- package/lib/lowdb/adapters/node/TextFile.js.map +1 -0
- package/lib/lowdb/adapters/node/steno.d.ts +13 -0
- package/lib/lowdb/adapters/node/steno.js +141 -0
- package/lib/lowdb/adapters/node/steno.js.map +1 -0
- package/lib/lowdb/browser.d.ts +3 -0
- package/lib/lowdb/browser.js +7 -0
- package/lib/lowdb/browser.js.map +1 -0
- package/lib/lowdb/core/Low.d.ts +24 -0
- package/lib/lowdb/core/Low.js +86 -0
- package/lib/lowdb/core/Low.js.map +1 -0
- package/lib/lowdb/examples/browser.d.ts +1 -0
- package/lib/lowdb/examples/browser.js +10 -0
- package/lib/lowdb/examples/browser.js.map +1 -0
- package/lib/lowdb/examples/cli.d.ts +1 -0
- package/lib/lowdb/examples/cli.js +11 -0
- package/lib/lowdb/examples/cli.js.map +1 -0
- package/lib/lowdb/examples/in-memory.d.ts +8 -0
- package/lib/lowdb/examples/in-memory.js +14 -0
- package/lib/lowdb/examples/in-memory.js.map +1 -0
- package/lib/lowdb/examples/server.d.ts +0 -0
- package/lib/lowdb/examples/server.js +36 -0
- package/lib/lowdb/examples/server.js.map +1 -0
- package/lib/lowdb/index.d.ts +2 -0
- package/lib/lowdb/index.js +6 -0
- package/lib/lowdb/index.js.map +1 -0
- package/lib/lowdb/node.d.ts +4 -0
- package/lib/lowdb/node.js +8 -0
- package/lib/lowdb/node.js.map +1 -0
- package/lib/lowdb/presets/browser.d.ts +3 -0
- package/lib/lowdb/presets/browser.js +21 -0
- package/lib/lowdb/presets/browser.js.map +1 -0
- package/lib/lowdb/presets/node.d.ts +5 -0
- package/lib/lowdb/presets/node.js +36 -0
- package/lib/lowdb/presets/node.js.map +1 -0
- package/lib/models.d.ts +16 -0
- package/lib/models.js +0 -3
- package/lib/models.js.map +1 -1
- package/lib/old/base-component.js +3 -3
- package/lib/old/base-formly-component.js +3 -3
- package/lib/old/dual-component-ctrl.js +3 -3
- package/package.json +5 -3
- package/tmp-environment.json +31 -30
- package/websql/esm2022/lib/base/base-project-resolver.mjs +32 -4
- package/websql/esm2022/lib/base/base-project.mjs +46 -2
- package/websql/esm2022/lib/base/core-project.mjs +7 -27
- package/websql/esm2022/lib/index.mjs +2 -1
- package/websql/esm2022/lib/models.mjs +3 -0
- package/websql/fesm2022/tnp-helpers.mjs +78 -25
- package/websql/fesm2022/tnp-helpers.mjs.map +1 -1
- package/websql/lib/base/base-project-resolver.d.ts +14 -1
- package/websql/lib/base/base-project.d.ts +9 -17
- package/websql/lib/base/core-project.d.ts +4 -14
- package/websql/lib/index.d.ts +2 -1
- package/websql/lib/models.d.ts +17 -0
package/lib/base/base-project.js
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseProject = exports.ChildProcess = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
|
-
//#region @backend
|
|
6
|
-
var json5Write = require("json10-writer");
|
|
7
|
-
var tnp_core_1 = require("tnp-core");
|
|
8
|
-
var child_process_1 = require("child_process");
|
|
9
|
-
Object.defineProperty(exports, "ChildProcess", { enumerable: true, get: function () { return child_process_1.ChildProcess; } });
|
|
10
|
-
//#endregion
|
|
11
5
|
var tnp_cli_1 = require("tnp-cli");
|
|
12
|
-
var
|
|
6
|
+
var tnp_core_1 = require("tnp-core");
|
|
13
7
|
var tnp_config_1 = require("tnp-config");
|
|
14
|
-
var
|
|
8
|
+
var tnp_core_2 = require("tnp-core");
|
|
15
9
|
var index_1 = require("../index");
|
|
16
10
|
var base_project_resolver_1 = require("./base-project-resolver");
|
|
17
11
|
var translate_1 = require("./translate");
|
|
12
|
+
//#region @backend
|
|
13
|
+
var json5Write = require("json10-writer");
|
|
14
|
+
var tnp_core_3 = require("tnp-core");
|
|
15
|
+
var child_process_1 = require("child_process");
|
|
16
|
+
Object.defineProperty(exports, "ChildProcess", { enumerable: true, get: function () { return child_process_1.ChildProcess; } });
|
|
17
|
+
//#endregion
|
|
18
18
|
//#endregion
|
|
19
19
|
var takenPorts = [];
|
|
20
20
|
var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
@@ -33,6 +33,10 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
33
33
|
//#region fields
|
|
34
34
|
this.cache = {};
|
|
35
35
|
this.type = 'unknow';
|
|
36
|
+
/**
|
|
37
|
+
* general name for project company
|
|
38
|
+
*/
|
|
39
|
+
this.orgName = 'firedev';
|
|
36
40
|
//#endregion
|
|
37
41
|
//#region getters & methods / to string
|
|
38
42
|
this.toString = function () {
|
|
@@ -72,15 +76,70 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
72
76
|
// return result.reverse(); // Reverse the result to get the correct order
|
|
73
77
|
};
|
|
74
78
|
//#endregion
|
|
75
|
-
//#region
|
|
79
|
+
//#region static / save location to db
|
|
80
|
+
BaseProject.prototype.saveLocationToDB = function () {
|
|
81
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
82
|
+
var db, existed, error_1;
|
|
83
|
+
var _this = this;
|
|
84
|
+
return tslib_1.__generator(this, function (_a) {
|
|
85
|
+
switch (_a.label) {
|
|
86
|
+
case 0: return [4 /*yield*/, this.ins.useDB(tnp_core_2._.kebabCase(this.orgName))];
|
|
87
|
+
case 1:
|
|
88
|
+
db = _a.sent();
|
|
89
|
+
debugger;
|
|
90
|
+
existed = db.data.projects.find(function (f) { return f.location === _this.location; });
|
|
91
|
+
if (!!existed) return [3 /*break*/, 5];
|
|
92
|
+
_a.label = 2;
|
|
93
|
+
case 2:
|
|
94
|
+
_a.trys.push([2, 4, , 5]);
|
|
95
|
+
return [4 /*yield*/, db.update(function (data) {
|
|
96
|
+
if (data.projects.length > 50) {
|
|
97
|
+
data.projects.shift();
|
|
98
|
+
}
|
|
99
|
+
return data.projects.push({
|
|
100
|
+
location: _this.location,
|
|
101
|
+
});
|
|
102
|
+
})];
|
|
103
|
+
case 3:
|
|
104
|
+
_a.sent();
|
|
105
|
+
return [3 /*break*/, 5];
|
|
106
|
+
case 4:
|
|
107
|
+
error_1 = _a.sent();
|
|
108
|
+
index_1.Helpers.warn("Cannot save location to db");
|
|
109
|
+
return [3 /*break*/, 5];
|
|
110
|
+
case 5: return [2 /*return*/];
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
Object.defineProperty(BaseProject.prototype, "core", {
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region methods & getters
|
|
118
|
+
//#region getters & methods / core
|
|
119
|
+
get: function () {
|
|
120
|
+
var _this = this;
|
|
121
|
+
if (this.cache['core']) {
|
|
122
|
+
return this.cache['core'];
|
|
123
|
+
}
|
|
124
|
+
var proj = index_1.CoreProject.coreProjects.find(function (p) { return p.recognizedFn(_this); });
|
|
125
|
+
this.cache['core'] = proj;
|
|
126
|
+
return proj;
|
|
127
|
+
},
|
|
128
|
+
enumerable: false,
|
|
129
|
+
configurable: true
|
|
130
|
+
});
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region methods & getters / add linked project
|
|
76
133
|
BaseProject.prototype.addLinkedProject = function (linkedProj) {
|
|
77
|
-
var linkedProject =
|
|
134
|
+
var linkedProject = tnp_core_2._.isString(linkedProj) ? index_1.LinkedProject.fromName(linkedProj) : linkedProj;
|
|
78
135
|
//#region @backendFunc
|
|
79
136
|
var linkedProjectsConfig = this.getLinkedProjectsConfig();
|
|
80
137
|
linkedProjectsConfig.projects.push(index_1.LinkedProject.from(linkedProject));
|
|
81
138
|
this.setLinkedProjectsConfig(linkedProjectsConfig);
|
|
82
139
|
//#endregion
|
|
83
140
|
};
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region methods & getters / add linked projects
|
|
84
143
|
BaseProject.prototype.addLinkedProjects = function (linkedProjs) {
|
|
85
144
|
var e_1, _a;
|
|
86
145
|
try {
|
|
@@ -99,6 +158,8 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
99
158
|
}
|
|
100
159
|
//#endregion
|
|
101
160
|
};
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region methods & getters / set linked projects config
|
|
102
163
|
BaseProject.prototype.setLinkedProjectsConfig = function (linkedPorjectsConfig) {
|
|
103
164
|
//#region @backendFunc
|
|
104
165
|
linkedPorjectsConfig = index_1.LinkedPorjectsConfig.from(linkedPorjectsConfig);
|
|
@@ -112,12 +173,16 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
112
173
|
//#endregion
|
|
113
174
|
};
|
|
114
175
|
Object.defineProperty(BaseProject.prototype, "linkedProjectsConfigPath", {
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region methods & getters / get linked projects config path
|
|
115
178
|
get: function () {
|
|
116
179
|
return this.pathFor(tnp_config_1.config.file.linked_projects_json);
|
|
117
180
|
},
|
|
118
181
|
enumerable: false,
|
|
119
182
|
configurable: true
|
|
120
183
|
});
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region methods & getters / recreate linked projects config
|
|
121
186
|
BaseProject.prototype.recreateLinkedProjectsConfig = function () {
|
|
122
187
|
//#region @backendFunc
|
|
123
188
|
if (!index_1.Helpers.exists(this.linkedProjectsConfigPath)) {
|
|
@@ -125,37 +190,40 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
125
190
|
}
|
|
126
191
|
//#endregion
|
|
127
192
|
};
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region methods & getters / get linked projects config
|
|
128
195
|
BaseProject.prototype.getLinkedProjectsConfig = function () {
|
|
129
196
|
//#region @backendFunc
|
|
130
197
|
this.recreateLinkedProjectsConfig();
|
|
131
198
|
var existedConfig = index_1.Helpers.readJson(this.pathFor(tnp_config_1.config.file.linked_projects_json), {}, true);
|
|
132
|
-
var orgExistedConfig =
|
|
199
|
+
var orgExistedConfig = tnp_core_2._.cloneDeep(existedConfig);
|
|
133
200
|
// console.log({ existedConfig });
|
|
134
201
|
var linkedPorjectsConfig = index_1.LinkedPorjectsConfig.from(existedConfig);
|
|
135
202
|
var currentRemoteUrl = this.git.originURL;
|
|
136
203
|
var currentBranch = this.git.currentBranchName;
|
|
137
204
|
linkedPorjectsConfig.projects = (linkedPorjectsConfig.projects || []).map(function (projOrProjName) {
|
|
138
|
-
if (
|
|
205
|
+
if (tnp_core_2._.isString(projOrProjName)) {
|
|
139
206
|
return index_1.LinkedProject.fromName(projOrProjName, currentRemoteUrl, currentBranch);
|
|
140
207
|
}
|
|
141
208
|
if (!projOrProjName.relativeClonePath) {
|
|
142
|
-
projOrProjName.relativeClonePath =
|
|
209
|
+
projOrProjName.relativeClonePath = tnp_core_1.path.basename(projOrProjName.remoteUrl()).replace('.git', '');
|
|
143
210
|
}
|
|
144
211
|
projOrProjName = index_1.LinkedProject.from(projOrProjName);
|
|
145
212
|
if (!projOrProjName.remoteUrl()) {
|
|
146
|
-
projOrProjName.repoUrl = currentRemoteUrl.replace(
|
|
213
|
+
projOrProjName.repoUrl = currentRemoteUrl.replace(tnp_core_1.path.basename(currentRemoteUrl), "".concat(projOrProjName.relativeClonePath, ".git"));
|
|
147
214
|
}
|
|
148
215
|
return projOrProjName;
|
|
149
216
|
});
|
|
150
217
|
// console.log({ linkedPorjectsConfig })
|
|
151
218
|
linkedPorjectsConfig.projects = index_1.Helpers.uniqArray(linkedPorjectsConfig.projects, 'relativeClonePath');
|
|
152
|
-
if (!
|
|
219
|
+
if (!tnp_core_2._.isEqual(orgExistedConfig, linkedPorjectsConfig)) {
|
|
153
220
|
this.setLinkedProjectsConfig(linkedPorjectsConfig);
|
|
154
221
|
}
|
|
155
222
|
return linkedPorjectsConfig;
|
|
156
223
|
//#endregion
|
|
157
224
|
};
|
|
158
225
|
Object.defineProperty(BaseProject.prototype, "linkedProjects", {
|
|
226
|
+
//#endregion
|
|
159
227
|
//#region methods & getters / linked projects
|
|
160
228
|
get: function () {
|
|
161
229
|
return this.getLinkedProjectsConfig().projects || [];
|
|
@@ -165,6 +233,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
165
233
|
});
|
|
166
234
|
Object.defineProperty(BaseProject.prototype, "detectedLinkedProjects", {
|
|
167
235
|
//#endregion
|
|
236
|
+
//#region methods & getters / detected linked projects
|
|
168
237
|
get: function () {
|
|
169
238
|
var detectedLinkedProjects = index_1.LinkedProject.detect(this.location, true);
|
|
170
239
|
return detectedLinkedProjects;
|
|
@@ -173,6 +242,8 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
173
242
|
configurable: true
|
|
174
243
|
});
|
|
175
244
|
Object.defineProperty(BaseProject.prototype, "linkedProjectsPrefix", {
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region methods & getters / linked projects prefix
|
|
176
247
|
get: function () {
|
|
177
248
|
return this.getLinkedProjectsConfig().prefix;
|
|
178
249
|
},
|
|
@@ -180,6 +251,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
180
251
|
configurable: true
|
|
181
252
|
});
|
|
182
253
|
Object.defineProperty(BaseProject.prototype, "linkedProjectsExisted", {
|
|
254
|
+
//#endregion
|
|
183
255
|
//#region getters & methods / link project exited
|
|
184
256
|
get: function () {
|
|
185
257
|
var _this = this;
|
|
@@ -264,7 +336,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
264
336
|
}).filter(function (f) { return !!f; });
|
|
265
337
|
if (!(projectsThatShouldBeLinked.length > 0)) return [3 /*break*/, 18];
|
|
266
338
|
index_1.Helpers.info("\n\n".concat(projectsThatShouldBeLinked.map(function (p, index) {
|
|
267
|
-
return "- ".concat(index + 1, ". ").concat(
|
|
339
|
+
return "- ".concat(index + 1, ". ").concat(tnp_core_3.chalk.bold(p.relativeClonePath), " ").concat(p.remoteUrl(), " {").concat(p.purpose ? " purpose: ".concat(p.purpose, " }") : '');
|
|
268
340
|
}).join('\n'), "\n\n "));
|
|
269
341
|
_a = cloneChildren;
|
|
270
342
|
if (_a) return [3 /*break*/, 10];
|
|
@@ -282,7 +354,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
282
354
|
case 12:
|
|
283
355
|
if (!!projectsThatShouldBeLinked_1_1.done) return [3 /*break*/, 15];
|
|
284
356
|
linkedProj = projectsThatShouldBeLinked_1_1.value;
|
|
285
|
-
index_1.Helpers.info("Cloning unexisted project from url ".concat(
|
|
357
|
+
index_1.Helpers.info("Cloning unexisted project from url ".concat(tnp_core_3.chalk.bold(linkedProj.remoteUrl()), " to ").concat(linkedProj.relativeClonePath));
|
|
286
358
|
return [4 /*yield*/, this.git.clone(linkedProj.remoteUrl(), linkedProj.relativeClonePath, linkedProj.deafultBranch)];
|
|
287
359
|
case 13:
|
|
288
360
|
_d.sent();
|
|
@@ -338,7 +410,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
338
410
|
*/
|
|
339
411
|
get: function () {
|
|
340
412
|
//#region @websqlFunc
|
|
341
|
-
return
|
|
413
|
+
return tnp_core_1.path.basename(this.location);
|
|
342
414
|
//#endregion
|
|
343
415
|
},
|
|
344
416
|
enumerable: false,
|
|
@@ -379,7 +451,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
379
451
|
// @ts-ignore
|
|
380
452
|
get: function () {
|
|
381
453
|
//#region @backendFunc
|
|
382
|
-
return Number(
|
|
454
|
+
return Number(tnp_core_2._.first((this.version || '').split('.')));
|
|
383
455
|
//#endregion
|
|
384
456
|
},
|
|
385
457
|
enumerable: false,
|
|
@@ -408,7 +480,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
408
480
|
get: function () {
|
|
409
481
|
//#region @backendFunc
|
|
410
482
|
var ver = this.version.split('.');
|
|
411
|
-
var res = Number(
|
|
483
|
+
var res = Number(tnp_core_2._.last(ver));
|
|
412
484
|
return isNaN(res) ? 0 : res;
|
|
413
485
|
//#endregion
|
|
414
486
|
},
|
|
@@ -470,7 +542,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
470
542
|
* object with all deps from package json
|
|
471
543
|
*/
|
|
472
544
|
get: function () {
|
|
473
|
-
return
|
|
545
|
+
return tnp_core_2._.merge(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, this.devDependencies), this.peerDependencies), this.dependencies), this.resolutions));
|
|
474
546
|
},
|
|
475
547
|
enumerable: false,
|
|
476
548
|
configurable: true
|
|
@@ -479,13 +551,13 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
479
551
|
//#region methods & getters / get folder for possible project chhildrens
|
|
480
552
|
BaseProject.prototype.getFoldersForPossibleProjectChildren = function () {
|
|
481
553
|
//#region @backendFunc
|
|
482
|
-
var isDirectory = function (source) { return
|
|
554
|
+
var isDirectory = function (source) { return tnp_core_3.fse.lstatSync(source).isDirectory(); };
|
|
483
555
|
var getDirectories = function (source) {
|
|
484
|
-
return
|
|
556
|
+
return tnp_core_3.fse.readdirSync(source).map(function (name) { return tnp_core_1.path.join(source, name); }).filter(isDirectory);
|
|
485
557
|
};
|
|
486
558
|
var subdirectories = getDirectories(this.location)
|
|
487
559
|
.filter(function (f) {
|
|
488
|
-
var folderName =
|
|
560
|
+
var folderName = tnp_core_1.path.basename(f);
|
|
489
561
|
return index_1.Helpers.checkIfNameAllowedForFiredevProj(folderName);
|
|
490
562
|
});
|
|
491
563
|
// if (this.isTnp' && fse.existsSync(path.join(this.location, '../firedev-projects'))) {
|
|
@@ -544,10 +616,10 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
544
616
|
//#region methods & getters / parent
|
|
545
617
|
get: function () {
|
|
546
618
|
//#region @websqlFunc
|
|
547
|
-
if (!
|
|
619
|
+
if (!tnp_core_2._.isString(this.location) || this.location.trim() === '') {
|
|
548
620
|
return void 0;
|
|
549
621
|
}
|
|
550
|
-
return this.ins.From(
|
|
622
|
+
return this.ins.From(tnp_core_1.path.join(this.location, '..'));
|
|
551
623
|
//#endregion
|
|
552
624
|
},
|
|
553
625
|
enumerable: false,
|
|
@@ -558,10 +630,10 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
558
630
|
//#region methods & getters / grandpa
|
|
559
631
|
get: function () {
|
|
560
632
|
//#region @websqlFunc
|
|
561
|
-
if (!
|
|
633
|
+
if (!tnp_core_2._.isString(this.location) || this.location.trim() === '') {
|
|
562
634
|
return void 0;
|
|
563
635
|
}
|
|
564
|
-
var grandpa = this.ins.From(
|
|
636
|
+
var grandpa = this.ins.From(tnp_core_1.path.join(this.location, '..', '..'));
|
|
565
637
|
return grandpa;
|
|
566
638
|
//#endregion
|
|
567
639
|
},
|
|
@@ -575,8 +647,8 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
575
647
|
//#region @websqlFunc
|
|
576
648
|
var parent = this.parent;
|
|
577
649
|
return [
|
|
578
|
-
parent ?
|
|
579
|
-
parent ? parent.basename :
|
|
650
|
+
parent ? tnp_core_1.path.basename(tnp_core_1.path.dirname(parent.location)) : void 0,
|
|
651
|
+
parent ? parent.basename : tnp_core_1.path.basename(this.location),
|
|
580
652
|
this.basename,
|
|
581
653
|
//#region @backend
|
|
582
654
|
"(".concat(tnp_cli_1.CLI.chalk.bold(this.name), ")"),
|
|
@@ -612,7 +684,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
612
684
|
* but with path.resolve
|
|
613
685
|
*/
|
|
614
686
|
BaseProject.prototype.containsFile = function (fileRelativeToProjectPath) {
|
|
615
|
-
var fullPath =
|
|
687
|
+
var fullPath = tnp_core_1.path.resolve(tnp_core_1.path.join(this.location, fileRelativeToProjectPath));
|
|
616
688
|
return index_1.Helpers.exists(fullPath);
|
|
617
689
|
};
|
|
618
690
|
//#endregion
|
|
@@ -626,20 +698,20 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
626
698
|
if (Array.isArray(relativePath)) {
|
|
627
699
|
relativePath = relativePath.join('/');
|
|
628
700
|
}
|
|
629
|
-
if (
|
|
701
|
+
if (tnp_core_1.path.isAbsolute(relativePath)) {
|
|
630
702
|
index_1.Helpers.error("Cannot join relative path with absolute: ".concat(relativePath));
|
|
631
703
|
}
|
|
632
|
-
return (0,
|
|
704
|
+
return (0, tnp_core_1.crossPlatformPath)(tnp_core_1.path.join(this.location, relativePath));
|
|
633
705
|
//#endregion
|
|
634
706
|
};
|
|
635
707
|
//#endregion
|
|
636
708
|
//#region methods & getters / write json
|
|
637
709
|
BaseProject.prototype.writeJson = function (relativePath, json) {
|
|
638
710
|
//#region @backendFunc
|
|
639
|
-
if (
|
|
711
|
+
if (tnp_core_1.path.isAbsolute(relativePath)) {
|
|
640
712
|
index_1.Helpers.error("Cannot join relative path with absolute: ".concat(relativePath));
|
|
641
713
|
}
|
|
642
|
-
index_1.Helpers.writeJson((0,
|
|
714
|
+
index_1.Helpers.writeJson((0, tnp_core_1.crossPlatformPath)([this.location, relativePath]), json);
|
|
643
715
|
//#endregion
|
|
644
716
|
};
|
|
645
717
|
//#endregion
|
|
@@ -650,9 +722,9 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
650
722
|
*/
|
|
651
723
|
BaseProject.prototype.run = function (command, options) {
|
|
652
724
|
//#region @backendFunc
|
|
653
|
-
options =
|
|
725
|
+
options = tnp_core_2._.cloneDeep(options) || {};
|
|
654
726
|
index_1.Helpers.log("command: ".concat(command));
|
|
655
|
-
if (
|
|
727
|
+
if (tnp_core_2._.isUndefined(options.showCommand)) {
|
|
656
728
|
options.showCommand = false;
|
|
657
729
|
}
|
|
658
730
|
var opt = options;
|
|
@@ -680,7 +752,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
680
752
|
switch (_a.label) {
|
|
681
753
|
case 0:
|
|
682
754
|
//#region @backendFunc
|
|
683
|
-
if (
|
|
755
|
+
if (tnp_core_2._.isUndefined(options.showCommand)) {
|
|
684
756
|
options.showCommand = false;
|
|
685
757
|
}
|
|
686
758
|
if (!options) {
|
|
@@ -736,11 +808,19 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
736
808
|
//#region methods & getters / remove file
|
|
737
809
|
BaseProject.prototype.removeFile = function (fileRelativeToProjectPath) {
|
|
738
810
|
//#region @backendFunc
|
|
739
|
-
var fullPath =
|
|
811
|
+
var fullPath = tnp_core_1.path.resolve(tnp_core_1.path.join(this.location, fileRelativeToProjectPath));
|
|
740
812
|
return index_1.Helpers.removeFileIfExists(fullPath);
|
|
741
813
|
//#endregion
|
|
742
814
|
};
|
|
743
815
|
//#endregion
|
|
816
|
+
//#region methods & getters / read file
|
|
817
|
+
BaseProject.prototype.readFile = function (fileRelativeToProjectPath) {
|
|
818
|
+
//#region @backendFunc
|
|
819
|
+
var fullPath = tnp_core_1.path.resolve(tnp_core_1.path.join(this.location, fileRelativeToProjectPath));
|
|
820
|
+
return index_1.Helpers.readFile(fullPath);
|
|
821
|
+
//#endregion
|
|
822
|
+
};
|
|
823
|
+
//#endregion
|
|
744
824
|
//#region methods & getters / remove (fiel or folder)
|
|
745
825
|
BaseProject.prototype.remove = function (relativePath, exactPath) {
|
|
746
826
|
if (exactPath === void 0) { exactPath = true; }
|
|
@@ -755,7 +835,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
755
835
|
//#region @backend
|
|
756
836
|
relativePathToFolder = relativePathToFolder.replace(/^\//, '');
|
|
757
837
|
var location = this.location;
|
|
758
|
-
var p =
|
|
838
|
+
var p = tnp_core_1.path.join(location, relativePathToFolder);
|
|
759
839
|
index_1.Helpers.remove(p, true);
|
|
760
840
|
//#endregion
|
|
761
841
|
};
|
|
@@ -794,7 +874,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
794
874
|
switch (_a.label) {
|
|
795
875
|
case 0:
|
|
796
876
|
//#region @backendFunc
|
|
797
|
-
if (
|
|
877
|
+
if (tnp_core_2._.isNumber(this.port) && this.port >= startFrom) {
|
|
798
878
|
return [2 /*return*/, startFrom];
|
|
799
879
|
}
|
|
800
880
|
max = 2000;
|
|
@@ -808,7 +888,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
808
888
|
_a.label = 2;
|
|
809
889
|
case 2:
|
|
810
890
|
_a.trys.push([2, 4, , 5]);
|
|
811
|
-
return [4 /*yield*/,
|
|
891
|
+
return [4 /*yield*/, tnp_core_3.portfinder.getPortPromise({ port: startFrom })];
|
|
812
892
|
case 3:
|
|
813
893
|
port = _a.sent();
|
|
814
894
|
takenPorts.push(port);
|
|
@@ -862,7 +942,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
862
942
|
}
|
|
863
943
|
}
|
|
864
944
|
else {
|
|
865
|
-
index_1.Helpers.warn("[firedev-helpers] Cannot create dynamic instance of class \"".concat(
|
|
945
|
+
index_1.Helpers.warn("[firedev-helpers] Cannot create dynamic instance of class \"".concat(tnp_core_2._.kebabCase(prefixedName.replace('__', '')), "\"."));
|
|
866
946
|
}
|
|
867
947
|
// }
|
|
868
948
|
}
|
|
@@ -941,7 +1021,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
941
1021
|
return [4 /*yield*/, this.struct()];
|
|
942
1022
|
case 2:
|
|
943
1023
|
_b.sent();
|
|
944
|
-
index_1.Helpers.taskDone("RESET DONE BRANCH: ".concat(
|
|
1024
|
+
index_1.Helpers.taskDone("RESET DONE BRANCH: ".concat(tnp_core_3.chalk.bold(defaultBranch), " in ").concat(this.genericName));
|
|
945
1025
|
childrenRepos = this.children.filter(function (f) { return f.git.isInsideGitRepo && f.git.isGitRoot; });
|
|
946
1026
|
_b.label = 3;
|
|
947
1027
|
case 3:
|
|
@@ -1047,7 +1127,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1047
1127
|
var _a;
|
|
1048
1128
|
if (options === void 0) { options = {}; }
|
|
1049
1129
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
1050
|
-
var force, typeofCommit, forcePushNoQuestion, origin, exitCallBack, args, commitMessageRequired, commitData,
|
|
1130
|
+
var force, typeofCommit, forcePushNoQuestion, origin, exitCallBack, args, commitMessageRequired, commitData, error_2, childrenRepos, childrenRepos_3, childrenRepos_3_1, child, e_6_1;
|
|
1051
1131
|
var _b, _c, _d, e_6, _e;
|
|
1052
1132
|
return tslib_1.__generator(this, function (_f) {
|
|
1053
1133
|
switch (_f.label) {
|
|
@@ -1070,7 +1150,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1070
1150
|
_f.sent();
|
|
1071
1151
|
return [3 /*break*/, 9];
|
|
1072
1152
|
case 6:
|
|
1073
|
-
|
|
1153
|
+
error_2 = _f.sent();
|
|
1074
1154
|
index_1.Helpers.warn('Fix your code...');
|
|
1075
1155
|
return [4 /*yield*/, index_1.Helpers.consoleGui.question.yesNo('Try again lint ? .. (or just skip it)')];
|
|
1076
1156
|
case 7:
|
|
@@ -1161,10 +1241,10 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1161
1241
|
BaseProject.prototype._beforeAnyActionOnGitRoot = function () {
|
|
1162
1242
|
//#region @backendFunc
|
|
1163
1243
|
if (!this.git.isInsideGitRepo) {
|
|
1164
|
-
index_1.Helpers.error("Project ".concat(
|
|
1244
|
+
index_1.Helpers.error("Project ".concat(tnp_core_3.chalk.bold(this.name), " is not a git repository\n locaiton: ").concat(this.location), false, true);
|
|
1165
1245
|
}
|
|
1166
1246
|
if (!this.git.isGitRoot) {
|
|
1167
|
-
index_1.Helpers.error("Project ".concat(
|
|
1247
|
+
index_1.Helpers.error("Project ".concat(tnp_core_3.chalk.bold(this.name), " is not a git root\n locaiton: ").concat(this.location), false, true);
|
|
1168
1248
|
}
|
|
1169
1249
|
//#endregion
|
|
1170
1250
|
};
|
|
@@ -1253,7 +1333,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1253
1333
|
from = (_d = this.transalteGitCommitFromArgs(), _d.from), to = _d.to;
|
|
1254
1334
|
if (!(from && to)) return [3 /*break*/, 9];
|
|
1255
1335
|
_a = commitData;
|
|
1256
|
-
_c = (_b =
|
|
1336
|
+
_c = (_b = tnp_core_2._).kebabCase;
|
|
1257
1337
|
return [4 /*yield*/, (0, translate_1.translate)(commitData.message, { from: from, to: to })];
|
|
1258
1338
|
case 8:
|
|
1259
1339
|
_a.message = _c.apply(_b, [_e.sent()]);
|
|
@@ -1303,7 +1383,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1303
1383
|
clone: function (url, destinationFolderName, branchName) {
|
|
1304
1384
|
if (destinationFolderName === void 0) { destinationFolderName = ''; }
|
|
1305
1385
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
1306
|
-
var clondeFolderpath,
|
|
1386
|
+
var clondeFolderpath, error_3;
|
|
1307
1387
|
return tslib_1.__generator(this, function (_a) {
|
|
1308
1388
|
switch (_a.label) {
|
|
1309
1389
|
case 0:
|
|
@@ -1318,7 +1398,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1318
1398
|
_a.sent();
|
|
1319
1399
|
return [3 /*break*/, 4];
|
|
1320
1400
|
case 3:
|
|
1321
|
-
|
|
1401
|
+
error_3 = _a.sent();
|
|
1322
1402
|
return [3 /*break*/, 4];
|
|
1323
1403
|
case 4: return [2 /*return*/];
|
|
1324
1404
|
}
|
|
@@ -1564,7 +1644,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1564
1644
|
}
|
|
1565
1645
|
var oldOrigin = self.git.originURL;
|
|
1566
1646
|
if (!newNameOrUlr.startsWith('git@') && !newNameOrUlr.startsWith('https://')) {
|
|
1567
|
-
newNameOrUlr = oldOrigin.replace(
|
|
1647
|
+
newNameOrUlr = oldOrigin.replace(tnp_core_1.path.basename(oldOrigin), newNameOrUlr);
|
|
1568
1648
|
}
|
|
1569
1649
|
try {
|
|
1570
1650
|
self.run("git remote rm origin").sync();
|
|
@@ -1776,7 +1856,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1776
1856
|
}
|
|
1777
1857
|
var projects = Object.values((_a = index_1.Helpers.readJson(this.pathFor('angular.json'))) === null || _a === void 0 ? void 0 : _a.projects)
|
|
1778
1858
|
.filter(function (f) { return f.projectType === 'library'; });
|
|
1779
|
-
var libraries = projects.map(function (c) { return _this.ins.From(
|
|
1859
|
+
var libraries = projects.map(function (c) { return _this.ins.From(tnp_core_1.path.join(_this.location, c.root)); });
|
|
1780
1860
|
return libraries;
|
|
1781
1861
|
//#endregion
|
|
1782
1862
|
},
|
|
@@ -1790,23 +1870,23 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1790
1870
|
//#region @backendFunc
|
|
1791
1871
|
var libs = this.libraries;
|
|
1792
1872
|
var sorted = BaseProject.sortGroupOfProject(libs, function (proj) {
|
|
1793
|
-
if (!
|
|
1873
|
+
if (!tnp_core_2._.isUndefined(proj.cache['deps'])) {
|
|
1794
1874
|
return proj.cache['deps'];
|
|
1795
1875
|
}
|
|
1796
1876
|
var uiJsonPath = proj.pathFor('ui-module.json');
|
|
1797
1877
|
if (index_1.Helpers.exists(uiJsonPath)) {
|
|
1798
1878
|
var uiModuleJson = index_1.Helpers.readJson(uiJsonPath);
|
|
1799
1879
|
var allLibs = (uiModuleJson.dependencies || []);
|
|
1800
|
-
proj.cache['deps'] = allLibs.filter(function (f) { return !
|
|
1880
|
+
proj.cache['deps'] = allLibs.filter(function (f) { return !tnp_core_2._.isUndefined(libs.find(function (c) { return c.basename === f; })); });
|
|
1801
1881
|
}
|
|
1802
1882
|
else {
|
|
1803
1883
|
var allLibs = Object.keys(proj.allDependencies);
|
|
1804
|
-
proj.cache['deps'] = allLibs.filter(function (f) { return !
|
|
1884
|
+
proj.cache['deps'] = allLibs.filter(function (f) { return !tnp_core_2._.isUndefined(libs.find(function (c) { return c.name === f; })); });
|
|
1805
1885
|
}
|
|
1806
1886
|
// console.log(`${proj.name} => all libs`, proj.cache['deps'])
|
|
1807
1887
|
return proj.cache['deps'];
|
|
1808
1888
|
}, function (proj) {
|
|
1809
|
-
if (!
|
|
1889
|
+
if (!tnp_core_2._.isUndefined(proj.cache['nameToCompare'])) {
|
|
1810
1890
|
// console.log(`CACHE ${proj.basename} => name: ` + proj.cache['nameToCompare'])
|
|
1811
1891
|
return proj.cache['nameToCompare'];
|
|
1812
1892
|
}
|
|
@@ -1832,9 +1912,9 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1832
1912
|
buildAll = false;
|
|
1833
1913
|
lastSelectedJsonFile = 'tmp-last-selected.json';
|
|
1834
1914
|
lastSelected = ((_a = index_1.Helpers.readJson(this.pathFor(lastSelectedJsonFile))) === null || _a === void 0 ? void 0 : _a.lastSelected) || [];
|
|
1835
|
-
if (!(
|
|
1915
|
+
if (!(tnp_core_2._.isArray(lastSelected) && lastSelected.length > 0)) return [3 /*break*/, 2];
|
|
1836
1916
|
selected = lastSelected.map(function (c) { return libs.find(function (l) { return l.basename == c; }); });
|
|
1837
|
-
index_1.Helpers.info("\nLast selected libs\n\n".concat(selected.map(function (c, i) { return "".concat(i + 1, ". ").concat(c.basename, " ").concat(
|
|
1917
|
+
index_1.Helpers.info("\nLast selected libs\n\n".concat(selected.map(function (c, i) { return "".concat(i + 1, ". ").concat(c.basename, " ").concat(tnp_core_3.chalk.bold(c.name)); }).join('\n'), "\n\n "));
|
|
1838
1918
|
return [4 /*yield*/, index_1.Helpers.consoleGui.question.yesNo("Continue build with last selected ?")];
|
|
1839
1919
|
case 1:
|
|
1840
1920
|
if (_b.sent()) {
|
|
@@ -1861,7 +1941,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1861
1941
|
case 6:
|
|
1862
1942
|
selectedLibs = _b.sent();
|
|
1863
1943
|
selected = selectedLibs.map(function (c) { return libs.find(function (l) { return l.name == c; }); });
|
|
1864
|
-
index_1.Helpers.info("\n\n".concat(selected.map(function (c, i) { return "".concat(i + 1, ". ").concat(c.basename, " ").concat(
|
|
1944
|
+
index_1.Helpers.info("\n\n".concat(selected.map(function (c, i) { return "".concat(i + 1, ". ").concat(c.basename, " ").concat(tnp_core_3.chalk.bold(c.name)); }).join('\n'), "\n\n "));
|
|
1865
1945
|
return [4 /*yield*/, index_1.Helpers.consoleGui.question.yesNo("Continue build with ".concat(selected.length, " selected ?"))];
|
|
1866
1946
|
case 7:
|
|
1867
1947
|
if (_b.sent()) {
|
|
@@ -1919,13 +1999,13 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1919
1999
|
this.location,
|
|
1920
2000
|
// this.parent.location,
|
|
1921
2001
|
// ...this.parent.children.map(c => c.location),
|
|
1922
|
-
].map(function (l) { return (0,
|
|
2002
|
+
].map(function (l) { return (0, tnp_core_1.crossPlatformPath)([l, tnp_config_1.config.folder.node_modules]); });
|
|
1923
2003
|
if (!index_1.Helpers.exists(this.pathFor(tnp_config_1.config.folder.node_modules))) {
|
|
1924
2004
|
this.run('yarn install', { output: true }).sync();
|
|
1925
2005
|
}
|
|
1926
2006
|
libs = this.libraries;
|
|
1927
2007
|
_loop_2 = function (index, lib) {
|
|
1928
|
-
index_1.Helpers.info("Building (".concat(index + 1, "/").concat(libs.length, ") ").concat(lib.basename, " (").concat(
|
|
2008
|
+
index_1.Helpers.info("Building (".concat(index + 1, "/").concat(libs.length, ") ").concat(lib.basename, " (").concat(tnp_core_3.chalk.bold(lib.name), ")"));
|
|
1929
2009
|
if (strategy === 'link') {
|
|
1930
2010
|
(function () {
|
|
1931
2011
|
var e_9, _a;
|
|
@@ -1933,7 +2013,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1933
2013
|
try {
|
|
1934
2014
|
for (var locationsForNodeModules_1 = (e_9 = void 0, tslib_1.__values(locationsForNodeModules)), locationsForNodeModules_1_1 = locationsForNodeModules_1.next(); !locationsForNodeModules_1_1.done; locationsForNodeModules_1_1 = locationsForNodeModules_1.next()) {
|
|
1935
2015
|
var node_modules = locationsForNodeModules_1_1.value;
|
|
1936
|
-
var dest = (0,
|
|
2016
|
+
var dest = (0, tnp_core_1.crossPlatformPath)([node_modules, lib.name]);
|
|
1937
2017
|
if (!index_1.Helpers.isSymlinkFileExitedOrUnexisted(dest)) {
|
|
1938
2018
|
index_1.Helpers.remove(dest);
|
|
1939
2019
|
}
|
|
@@ -1996,7 +2076,7 @@ var BaseProject = exports.BaseProject = /** @class */ (function () {
|
|
|
1996
2076
|
return tslib_1.__generator(this, function (_p) {
|
|
1997
2077
|
switch (_p.label) {
|
|
1998
2078
|
case 0:
|
|
1999
|
-
index_1.Helpers.info("Building for watch (".concat(index + 1, "/").concat(libs.length, ") ").concat(lib.basename, " (").concat(
|
|
2079
|
+
index_1.Helpers.info("Building for watch (".concat(index + 1, "/").concat(libs.length, ") ").concat(lib.basename, " (").concat(tnp_core_3.chalk.bold(lib.name), ")"));
|
|
2000
2080
|
return [4 /*yield*/, (function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
2001
2081
|
var _this = this;
|
|
2002
2082
|
return tslib_1.__generator(this, function (_a) {
|