pmcf 6.3.3 → 6.3.5

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/bin/pmcf-package CHANGED
@@ -33,7 +33,6 @@ if (options.define) {
33
33
  options.output = options.output
34
34
  ? resolve(cwd(), options.output)
35
35
  : await mkdtemp(join(tmpdir(), "pmcf"));
36
- options.noPreserve = true;
37
36
 
38
37
  const pkgDir = await packageDirectory({ cwd: options.root });
39
38
  const pkg = JSON.parse(await readFile(join(pkgDir, "package.json"), "utf8"));
@@ -48,7 +47,7 @@ for (const object of root.find(args)) {
48
47
  }
49
48
  const stagingDir = join(options.output, object.fullName);
50
49
 
51
- for await (const { sources, outputs, properties } of object.preparePackages(
50
+ for await (let { sources, outputs, properties } of object.preparePackages(
52
51
  stagingDir
53
52
  )) {
54
53
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "6.3.3",
3
+ "version": "6.3.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/base.mjs CHANGED
@@ -237,8 +237,7 @@ export class Base {
237
237
  }
238
238
 
239
239
  get typeName() {
240
- const type = this.constructor;
241
- return type.specializationOf?.name || type.name;
240
+ return this.constructor.name;
242
241
  }
243
242
 
244
243
  /**
@@ -12,7 +12,7 @@ export class SkeletonNetworkInterface extends ServiceOwner {
12
12
  static get typeName() {
13
13
  return "network_interface";
14
14
  }
15
-
15
+
16
16
  static commonNamePattern = new RegExp(`^${this.name}\d+$`);
17
17
 
18
18
  static isCommonName(name) {
@@ -25,6 +25,11 @@ export class SkeletonNetworkInterface extends ServiceOwner {
25
25
 
26
26
  _network;
27
27
 
28
+ get typeName() {
29
+ const type = this.constructor;
30
+ return type.specializationOf?.name || type.name;
31
+ }
32
+
28
33
  get kind() {
29
34
  return this.constructor.name;
30
35
  }