paralayer 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/paralayer.js CHANGED
@@ -148,7 +148,7 @@ export class Paralayer extends $utils.Unit {
148
148
  generateLayerContent(layer, layerPaths) {
149
149
  const $LayerName = this.getLayerName(layer, '$Pascal');
150
150
  const $layerName = this.getLayerName(layer, '$camel');
151
- const allNames = layerPaths.flatMap(path => this.files[path].names);
151
+ const allNames = layerPaths.flatMap(path => this.files[path]?.names ?? []);
152
152
  const imports = layerPaths
153
153
  .map(path => {
154
154
  const file = this.files[path];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paralayer",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "imkost",