repository-provider 32.6.5 → 32.6.7

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
@@ -52,17 +52,17 @@ console.log(await readme.getString());
52
52
  * [Parameters](#parameters)
53
53
  * [defaultValues](#defaultvalues)
54
54
  * [Parameters](#parameters-1)
55
- * [tokens](#tokens)
55
+ * [optionJSON](#optionjson)
56
56
  * [Parameters](#parameters-2)
57
- * [setAttribute](#setattribute)
57
+ * [mapAttributes](#mapattributes)
58
58
  * [Parameters](#parameters-3)
59
- * [getAttribute](#getattribute)
59
+ * [mapAttributesInverse](#mapattributesinverse)
60
60
  * [Parameters](#parameters-4)
61
- * [optionJSON](#optionjson)
61
+ * [tokens](#tokens)
62
62
  * [Parameters](#parameters-5)
63
- * [mapAttributes](#mapattributes)
63
+ * [setAttribute](#setattribute)
64
64
  * [Parameters](#parameters-6)
65
- * [mapAttributesInverse](#mapattributesinverse)
65
+ * [getAttribute](#getattribute)
66
66
  * [Parameters](#parameters-7)
67
67
  * [description\_attribute](#description_attribute)
68
68
  * [id\_attribute](#id_attribute)
@@ -408,39 +408,6 @@ Get default values.
408
408
 
409
409
  Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** filled with default values
410
410
 
411
- ## tokens
412
-
413
- Split property path into tokens
414
-
415
- ### Parameters
416
-
417
- * `string` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
418
-
419
- Returns **Iterator<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
420
-
421
- ## setAttribute
422
-
423
- Set Object attribute.
424
- The name may be a property path like 'a.b.c'.
425
-
426
- ### Parameters
427
-
428
- * `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**&#x20;
429
- * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
430
- * `value` **any**&#x20;
431
-
432
- ## getAttribute
433
-
434
- Deliver attribute value.
435
- The name may be a property path like 'a.b.c'.
436
-
437
- ### Parameters
438
-
439
- * `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**&#x20;
440
- * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
441
-
442
- Returns **any** value associated with the given property name
443
-
444
411
  ## optionJSON
445
412
 
446
413
  Create json based on present options.
@@ -482,6 +449,39 @@ Filters out null, undefined and empty strings
482
449
 
483
450
  Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** keys renamed after mapping
484
451
 
452
+ ## tokens
453
+
454
+ Split property path into tokens
455
+
456
+ ### Parameters
457
+
458
+ * `string` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
459
+
460
+ Returns **Iterator<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**&#x20;
461
+
462
+ ## setAttribute
463
+
464
+ Set Object attribute.
465
+ The name may be a property path like 'a.b.c'.
466
+
467
+ ### Parameters
468
+
469
+ * `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**&#x20;
470
+ * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
471
+ * `value` **any**&#x20;
472
+
473
+ ## getAttribute
474
+
475
+ Deliver attribute value.
476
+ The name may be a property path like 'a.b.c'.
477
+
478
+ ### Parameters
479
+
480
+ * `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**&#x20;
481
+ * `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**&#x20;
482
+
483
+ Returns **any** value associated with the given property name
484
+
485
485
  ## description\_attribute
486
486
 
487
487
  The description of the object content.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "32.6.5",
3
+ "version": "32.6.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,12 +33,12 @@
33
33
  "matching-iterator": "^2.0.11"
34
34
  },
35
35
  "devDependencies": {
36
- "ava": "^5.1.1",
37
- "browser-ava": "^1.3.20",
38
- "c8": "^7.12.0",
36
+ "ava": "^5.2.0",
37
+ "browser-ava": "^1.3.25",
38
+ "c8": "^7.13.0",
39
39
  "documentation": "^14.0.1",
40
40
  "repository-provider-test-support": "^2.2.36",
41
- "semantic-release": "^20.1.0",
41
+ "semantic-release": "^20.1.1",
42
42
  "typescript": "^4.9.5"
43
43
  },
44
44
  "engines": {
@@ -8,7 +8,12 @@ import { Hook } from "./hook.mjs";
8
8
  import { Project } from "./project.mjs";
9
9
  import { Milestone } from "./milestone.mjs";
10
10
  import { BaseObject } from "./base-object.mjs";
11
- import { url_attribute, name_attribute, description_attribute, priority_attribute } from "./attributes.mjs";
11
+ import {
12
+ url_attribute,
13
+ name_attribute,
14
+ description_attribute,
15
+ priority_attribute
16
+ } from "./attributes.mjs";
12
17
 
13
18
  /**
14
19
  * @typedef {Object} MessageDestination
@@ -103,11 +108,11 @@ export class BaseProvider extends BaseObject {
103
108
  */
104
109
  name: {
105
110
  ...name_attribute,
106
- env: ["{{instanceIdentifier}}NAME"]
111
+ env: "{{instanceIdentifier}}NAME"
107
112
  },
108
113
 
109
114
  url: url_attribute,
110
- description : description_attribute,
115
+ description: description_attribute,
111
116
  priority: priority_attribute,
112
117
 
113
118
  /**
@@ -405,13 +410,6 @@ export class BaseProvider extends BaseObject {
405
410
  return this;
406
411
  }
407
412
 
408
- /**
409
- * @return url of the provider.
410
- */
411
- get url() {
412
- return "/";
413
- }
414
-
415
413
  /**
416
414
  * List all defined entries from attributes.
417
415
  * return {object}