pmcf 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/model.mjs +1 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/model.mjs CHANGED
@@ -137,10 +137,7 @@ export class World {
137
137
 
138
138
  data.name = baseName;
139
139
 
140
- const t2 = type.refinedType(data);
141
- if (t2) {
142
- type = t2;
143
- }
140
+ type = type.refinedType(data);
144
141
  const object = new type(this, data);
145
142
  this.#byName.set(data.name, object);
146
143
  }