@quatrain/core 1.0.0-beta10 → 1.0.0-beta11

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.
@@ -47,14 +47,17 @@ class ObjectUri {
47
47
  }
48
48
  this._label = label || this._uid;
49
49
  }
50
- else {
50
+ else if (parts[parts.length - 1].indexOf('.') === -1) {
51
+ // if the last part is not a filenma with extension, throw error
51
52
  throw new Error(`Path parts number must be 1 or even, received: '${str}'`);
52
53
  }
53
54
  }
54
55
  set class(objClass) {
55
56
  this._objClass = objClass;
56
57
  if (objClass) {
57
- this._collection = objClass.COLLECTION || objClass.name && objClass.name.toLowerCase();
58
+ this._collection =
59
+ objClass.COLLECTION ||
60
+ (objClass.name && objClass.name.toLowerCase());
58
61
  }
59
62
  else {
60
63
  this._collection = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatrain/core",
3
- "version": "1.0.0-beta10",
3
+ "version": "1.0.0-beta11",
4
4
  "description": "Core objects for business apps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",