repository-provider 32.6.5 → 32.6.6
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 +39 -39
- package/package.json +5 -5
- package/src/base-provider.mjs +8 -3
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
|
-
* [
|
|
55
|
+
* [optionJSON](#optionjson)
|
|
56
56
|
* [Parameters](#parameters-2)
|
|
57
|
-
* [
|
|
57
|
+
* [mapAttributes](#mapattributes)
|
|
58
58
|
* [Parameters](#parameters-3)
|
|
59
|
-
* [
|
|
59
|
+
* [mapAttributesInverse](#mapattributesinverse)
|
|
60
60
|
* [Parameters](#parameters-4)
|
|
61
|
-
* [
|
|
61
|
+
* [tokens](#tokens)
|
|
62
62
|
* [Parameters](#parameters-5)
|
|
63
|
-
* [
|
|
63
|
+
* [setAttribute](#setattribute)
|
|
64
64
|
* [Parameters](#parameters-6)
|
|
65
|
-
* [
|
|
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)>** 
|
|
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)** 
|
|
429
|
-
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
430
|
-
* `value` **any** 
|
|
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)** 
|
|
440
|
-
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
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)** 
|
|
459
|
+
|
|
460
|
+
Returns **Iterator<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
|
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)** 
|
|
470
|
+
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
471
|
+
* `value` **any** 
|
|
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)** 
|
|
481
|
+
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
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.
|
|
3
|
+
"version": "32.6.6",
|
|
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.
|
|
37
|
-
"browser-ava": "^1.3.
|
|
38
|
-
"c8": "^7.
|
|
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.
|
|
41
|
+
"semantic-release": "^20.1.1",
|
|
42
42
|
"typescript": "^4.9.5"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
package/src/base-provider.mjs
CHANGED
|
@@ -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 {
|
|
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:
|
|
111
|
+
env: "{{instanceIdentifier}}NAME"
|
|
107
112
|
},
|
|
108
113
|
|
|
109
114
|
url: url_attribute,
|
|
110
|
-
description
|
|
115
|
+
description: description_attribute,
|
|
111
116
|
priority: priority_attribute,
|
|
112
117
|
|
|
113
118
|
/**
|