@skmtc/core 0.0.410 → 0.0.411

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/esm/dsl/File.js CHANGED
@@ -62,14 +62,14 @@ export class File {
62
62
  return __classPrivateFieldGet(this, _File_generatorKeys, "f");
63
63
  }
64
64
  toString() {
65
- const reExports = Array.from(this.reExports.entries()).map(([module, entityTypes]) => {
65
+ const reExports = Array.from(this.reExports.entries()).flatMap(([module, entityTypes]) => {
66
66
  const updatedModuleName = updateModuleName({
67
67
  destinationPath: this.path,
68
68
  moduleImportMap: this.moduleImportMap,
69
69
  exportPath: module,
70
70
  settings: this.settings
71
71
  });
72
- return Object.entries(entityTypes).flatMap(([entityType, names]) => {
72
+ return Object.entries(entityTypes).map(([entityType, names]) => {
73
73
  const prefix = entityType === 'type' ? 'type' : '';
74
74
  return `export ${prefix} { ${Array.from(names).join(', ')} } from '${updatedModuleName}'`;
75
75
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skmtc/core",
3
- "version": "0.0.410",
3
+ "version": "0.0.411",
4
4
  "main": "./script/mod.js",
5
5
  "module": "./esm/mod.js",
6
6
  "exports": {
@@ -65,14 +65,14 @@ class File {
65
65
  return __classPrivateFieldGet(this, _File_generatorKeys, "f");
66
66
  }
67
67
  toString() {
68
- const reExports = Array.from(this.reExports.entries()).map(([module, entityTypes]) => {
68
+ const reExports = Array.from(this.reExports.entries()).flatMap(([module, entityTypes]) => {
69
69
  const updatedModuleName = updateModuleName({
70
70
  destinationPath: this.path,
71
71
  moduleImportMap: this.moduleImportMap,
72
72
  exportPath: module,
73
73
  settings: this.settings
74
74
  });
75
- return Object.entries(entityTypes).flatMap(([entityType, names]) => {
75
+ return Object.entries(entityTypes).map(([entityType, names]) => {
76
76
  const prefix = entityType === 'type' ? 'type' : '';
77
77
  return `export ${prefix} { ${Array.from(names).join(', ')} } from '${updatedModuleName}'`;
78
78
  });