repository-provider 32.7.27 → 32.7.29

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/README.md CHANGED
@@ -81,6 +81,7 @@ console.log(await readme.string);
81
81
  * [displayName](#displayname)
82
82
  * [fullName](#fullname)
83
83
  * [fullCondensedName](#fullcondensedname)
84
+ * [condensedName](#condensedname)
84
85
  * [isWritable](#iswritable)
85
86
  * [equals](#equals)
86
87
  * [Parameters](#parameters-11)
@@ -388,7 +389,7 @@ Object.definedProperties(new aClass(),{ with_default: { value: 77 }})
388
389
  * `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** target object
389
390
  * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** as passed to object constructor (optional, default `{}`)
390
391
  * `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** object properties (optional, default `{}`)
391
- * `attributes` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** (optional, default `object.constructor.attributes||[]`)
392
+ * `attributes` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** attribute meta info (optional, default `object.constructor.attributes`)
392
393
 
393
394
  ## defaultValues
394
395
 
@@ -572,6 +573,12 @@ Complete name in the hierachy.
572
573
 
573
574
  Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
574
575
 
576
+ ### condensedName
577
+
578
+ Name with default parts removed
579
+
580
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
581
+
575
582
  ### isWritable
576
583
 
577
584
  By default cannot be written to.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "32.7.27",
3
+ "version": "32.7.29",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "ava": "^5.3.1",
37
- "browser-ava": "^1.3.49",
37
+ "browser-ava": "^1.3.54",
38
38
  "c8": "^8.0.0",
39
39
  "documentation": "^14.0.2",
40
- "repository-provider-test-support": "^2.4.0",
41
- "semantic-release": "^21.0.6",
40
+ "repository-provider-test-support": "^2.4.2",
41
+ "semantic-release": "^21.0.7",
42
42
  "typescript": "^5.1.6"
43
43
  },
44
44
  "engines": {
package/src/attribute.mjs CHANGED
@@ -210,6 +210,8 @@ export function getAttributeAndOperator(object, expression, getters = {}) {
210
210
  } else {
211
211
  if (object[token] !== undefined) {
212
212
  object = object[token];
213
+ } else {
214
+ return [undefined, op];
213
215
  }
214
216
  }
215
217
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const default_attribute = {
5
5
  type: "string",
6
- writeable: false,
6
+ writable: false,
7
7
  mandatory: false,
8
8
  private: false,
9
9
  isKey: false,
@@ -13,7 +13,7 @@ export const default_attribute = {
13
13
 
14
14
  export const boolean_attribute = {
15
15
  ...default_attribute,
16
- writeable: true,
16
+ writable: true,
17
17
  default: false,
18
18
  type: "boolean"
19
19
  };
@@ -67,7 +67,7 @@ export const id_attribute = {
67
67
 
68
68
  export const state_attribute = {
69
69
  ...default_attribute,
70
- writeable: true
70
+ writable: true
71
71
  };
72
72
 
73
73
  /**