@etohq/utils 1.5.5-next-20260415055708 → 2.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/modules-sdk/loaders/load-models.d.ts.map +1 -1
- package/dist/modules-sdk/loaders/load-models.js +2 -1
- package/dist/modules-sdk/loaders/load-models.js.map +1 -1
- package/dist/modules-sdk/migration-scripts/service-migration-generate.d.ts.map +1 -1
- package/dist/modules-sdk/migration-scripts/service-migration-generate.js +6 -1
- package/dist/modules-sdk/migration-scripts/service-migration-generate.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-models.d.ts","sourceRoot":"","sources":["../../../src/modules-sdk/loaders/load-models.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"load-models.d.ts","sourceRoot":"","sources":["../../../src/modules-sdk/loaders/load-models.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAiCnB,GAAG,EAAE,CAC5B"}
|
|
@@ -16,7 +16,8 @@ function loadModels(basePath) {
|
|
|
16
16
|
catch (e) { }
|
|
17
17
|
return modelsFiles
|
|
18
18
|
.flatMap((file) => {
|
|
19
|
-
if (file.startsWith("
|
|
19
|
+
if (file.startsWith(".") ||
|
|
20
|
+
file.startsWith("index.") ||
|
|
20
21
|
excludedExtensions.some((ext) => file.endsWith(ext))) {
|
|
21
22
|
return;
|
|
22
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-models.js","sourceRoot":"","sources":["../../../src/modules-sdk/loaders/load-models.ts"],"names":[],"mappings":";;AAOA,
|
|
1
|
+
{"version":3,"file":"load-models.js","sourceRoot":"","sources":["../../../src/modules-sdk/loaders/load-models.ts"],"names":[],"mappings":";;AAOA,gCAkCC;AAzCD,2BAA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migration-scripts/service-migration-generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,eAAe,EAAE,MAAM,cAAc,CAAA;AAQrE,wBAAgB,mCAAmC,CAAC,EAClD,UAAU,EACV,MAAM,EACN,gBAAgB,GACjB;;;;CAAA,IACwB,uBAGpB,IAAI,CACL,aAAa,CAAC,eAAe,CAAC,8BAA8B,CAAC,EAC7D,SAAS,GAAG,QAAQ,CAChB,
|
|
1
|
+
{"version":3,"file":"service-migration-generate.d.ts","sourceRoot":"","sources":["../../../src/modules-sdk/migration-scripts/service-migration-generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,eAAe,EAAE,MAAM,cAAc,CAAA;AAQrE,wBAAgB,mCAAmC,CAAC,EAClD,UAAU,EACV,MAAM,EACN,gBAAgB,GACjB;;;;CAAA,IACwB,uBAGpB,IAAI,CACL,aAAa,CAAC,eAAe,CAAC,8BAA8B,CAAC,EAC7D,SAAS,GAAG,QAAQ,CAChB,mBA+DP"}
|
|
@@ -42,7 +42,12 @@ function buildServiceGenerateMigrationScript({ moduleName, models, pathToMigrati
|
|
|
42
42
|
logger.error(`[Service Migration Mode] Failed with error ${error.message}`, error);
|
|
43
43
|
}
|
|
44
44
|
finally {
|
|
45
|
-
|
|
45
|
+
try {
|
|
46
|
+
await orm.close();
|
|
47
|
+
}
|
|
48
|
+
catch (closeError) {
|
|
49
|
+
logger.warn?.(`[Service Migration Mode] Ignoring connection close error: ${closeError.message}`);
|
|
50
|
+
}
|
|
46
51
|
}
|
|
47
52
|
};
|
|
48
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-migration-generate.js","sourceRoot":"","sources":["../../../src/modules-sdk/migration-scripts/service-migration-generate.ts"],"names":[],"mappings":";;AAQA,
|
|
1
|
+
{"version":3,"file":"service-migration-generate.js","sourceRoot":"","sources":["../../../src/modules-sdk/migration-scripts/service-migration-generate.ts"],"names":[],"mappings":";;AAQA,kFA0EC;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T,6DAA6D,QAAQ,EAAE,CACxE,CAAA;YACH,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,IAAI,CACT,uEAAuE,CACxE,CAAA;YACH,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CACV,8CAA8C,KAAK,CAAC,OAAO,EAAE,EAC7D,KAAK,CACN,CAAA;QACH,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC;gBACH,MAAM,GAAG,CAAC,KAAK,EAAE,CAAA;YACnB,CAAC;YAAC,OAAO,UAAU,EAAE,CAAC;gBACpB,MAAM,CAAC,IAAI,EAAE,CACX,6DAA6D,UAAU,CAAC,OAAO,EAAE,CAClF,CAAA;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etohq/utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Eto utilities functions shared by Eto core and Modules",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"nanoid": "5.1.6",
|
|
66
66
|
"@sindresorhus/slugify": "2.2.1",
|
|
67
67
|
"geojson": "^0.5.0",
|
|
68
|
-
"@etohq/types": "
|
|
68
|
+
"@etohq/types": "2.0.1"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"@mikro-orm/core": "6.4.3",
|