tnp-helpers 16.100.6 → 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 +33 -32
- 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 +7 -5
- package/tmp-environment.json +37 -36
- 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
|
@@ -957,7 +957,38 @@ applyMixins(HelpersFiredev, [
|
|
|
957
957
|
;
|
|
958
958
|
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers/helpers.ts
|
|
959
959
|
|
|
960
|
+
/* */
|
|
961
|
+
/* */
|
|
962
|
+
/* */
|
|
963
|
+
/* */
|
|
964
|
+
/* */
|
|
965
|
+
const defaultDb$1 = {
|
|
966
|
+
projects: [],
|
|
967
|
+
};
|
|
960
968
|
class BaseProjectResolver {
|
|
969
|
+
get isUnsingDB() {
|
|
970
|
+
return !!this.lowDB;
|
|
971
|
+
}
|
|
972
|
+
async useDB(appName) {
|
|
973
|
+
/* */
|
|
974
|
+
/* */
|
|
975
|
+
/* */
|
|
976
|
+
/* */
|
|
977
|
+
/* */
|
|
978
|
+
/* */
|
|
979
|
+
/* */
|
|
980
|
+
/* */
|
|
981
|
+
/* */
|
|
982
|
+
/* */
|
|
983
|
+
/* */
|
|
984
|
+
return (void 0);
|
|
985
|
+
// @ts-ignore
|
|
986
|
+
return void 0;
|
|
987
|
+
}
|
|
988
|
+
async getAllProjectsFromDB(appName) {
|
|
989
|
+
const db = await this.useDB(appName);
|
|
990
|
+
return db.data.projects;
|
|
991
|
+
}
|
|
961
992
|
constructor(classFn) {
|
|
962
993
|
this.classFn = classFn;
|
|
963
994
|
this.NPM_PROJECT_KEY = 'npm';
|
|
@@ -1161,6 +1192,11 @@ class BaseProjectResolver {
|
|
|
1161
1192
|
;
|
|
1162
1193
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/base-project-resolver.ts
|
|
1163
1194
|
|
|
1195
|
+
/* */
|
|
1196
|
+
/* */
|
|
1197
|
+
/* */
|
|
1198
|
+
/* */
|
|
1199
|
+
/* */
|
|
1164
1200
|
const takenPorts = [];
|
|
1165
1201
|
class BaseProject {
|
|
1166
1202
|
static { this.ins = new BaseProjectResolver(BaseProject); }
|
|
@@ -1191,6 +1227,27 @@ class BaseProject {
|
|
|
1191
1227
|
projects.forEach(project => visit(project));
|
|
1192
1228
|
return result;
|
|
1193
1229
|
}
|
|
1230
|
+
async saveLocationToDB() {
|
|
1231
|
+
/* */
|
|
1232
|
+
/* */
|
|
1233
|
+
/* */
|
|
1234
|
+
/* */
|
|
1235
|
+
/* */
|
|
1236
|
+
/* */
|
|
1237
|
+
/* */
|
|
1238
|
+
/* */
|
|
1239
|
+
/* */
|
|
1240
|
+
/* */
|
|
1241
|
+
/* */
|
|
1242
|
+
/* */
|
|
1243
|
+
/* */
|
|
1244
|
+
/* */
|
|
1245
|
+
/* */
|
|
1246
|
+
/* */
|
|
1247
|
+
/* */
|
|
1248
|
+
/* */
|
|
1249
|
+
return (void 0);
|
|
1250
|
+
}
|
|
1194
1251
|
// @ts-ignore
|
|
1195
1252
|
constructor(
|
|
1196
1253
|
/**
|
|
@@ -1200,10 +1257,22 @@ class BaseProject {
|
|
|
1200
1257
|
this.location = location;
|
|
1201
1258
|
this.cache = {};
|
|
1202
1259
|
this.type = 'unknow';
|
|
1260
|
+
/**
|
|
1261
|
+
* general name for project company
|
|
1262
|
+
*/
|
|
1263
|
+
this.orgName = 'firedev';
|
|
1203
1264
|
this.toString = () => {
|
|
1204
1265
|
return `${this.name}=>${this.location}`;
|
|
1205
1266
|
};
|
|
1206
1267
|
}
|
|
1268
|
+
get core() {
|
|
1269
|
+
if (this.cache['core']) {
|
|
1270
|
+
return this.cache['core'];
|
|
1271
|
+
}
|
|
1272
|
+
const proj = CoreProject.coreProjects.find(p => p.recognizedFn(this));
|
|
1273
|
+
this.cache['core'] = proj;
|
|
1274
|
+
return proj;
|
|
1275
|
+
}
|
|
1207
1276
|
addLinkedProject(linkedProj) {
|
|
1208
1277
|
const linkedProject = _.isString(linkedProj) ? LinkedProject.fromName(linkedProj) : linkedProj;
|
|
1209
1278
|
/* */
|
|
@@ -1626,6 +1695,12 @@ class BaseProject {
|
|
|
1626
1695
|
/* */
|
|
1627
1696
|
return (void 0);
|
|
1628
1697
|
}
|
|
1698
|
+
readFile(fileRelativeToProjectPath) {
|
|
1699
|
+
/* */
|
|
1700
|
+
/* */
|
|
1701
|
+
/* */
|
|
1702
|
+
return (void 0);
|
|
1703
|
+
}
|
|
1629
1704
|
remove(relativePath, exactPath = true) {
|
|
1630
1705
|
/* */
|
|
1631
1706
|
/* */
|
|
@@ -2820,32 +2895,11 @@ const defaultDb = {
|
|
|
2820
2895
|
projects: [],
|
|
2821
2896
|
};
|
|
2822
2897
|
class CoreProject {
|
|
2823
|
-
|
|
2824
|
-
this.provider = 'firedev';
|
|
2825
|
-
}
|
|
2826
|
-
static get isUnsingDB() {
|
|
2827
|
-
return !!this.db;
|
|
2828
|
-
}
|
|
2829
|
-
static async useDB(appName) {
|
|
2830
|
-
/* */
|
|
2831
|
-
/* */
|
|
2832
|
-
/* */
|
|
2833
|
-
/* */
|
|
2834
|
-
/* */
|
|
2835
|
-
/* */
|
|
2836
|
-
/* */
|
|
2837
|
-
/* */
|
|
2838
|
-
/* */
|
|
2839
|
-
/* */
|
|
2840
|
-
/* */
|
|
2841
|
-
return (void 0);
|
|
2842
|
-
return void 0;
|
|
2843
|
-
}
|
|
2844
|
-
db() {
|
|
2845
|
-
return CoreProject.useDB(_.kebabCase(this.url));
|
|
2846
|
-
}
|
|
2898
|
+
static { this.coreProjects = []; }
|
|
2847
2899
|
static from(options) {
|
|
2848
|
-
|
|
2900
|
+
const proj = _.merge(new CoreProject(), _.cloneDeep(options));
|
|
2901
|
+
this.coreProjects.push(proj);
|
|
2902
|
+
return proj;
|
|
2849
2903
|
}
|
|
2850
2904
|
/**
|
|
2851
2905
|
* core porject name
|
|
@@ -2952,6 +3006,8 @@ class LinkedPorjectsConfig {
|
|
|
2952
3006
|
;
|
|
2953
3007
|
({}); // @--end-of-file-for-module=tnp-helpers lib/base/index.ts
|
|
2954
3008
|
|
|
3009
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/models.ts
|
|
3010
|
+
|
|
2955
3011
|
/**
|
|
2956
3012
|
* Firedev helpers
|
|
2957
3013
|
*/ // @ts-ignore
|