pmcf 4.17.2 → 4.17.3
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/package.json +1 -1
- package/src/base.mjs +5 -2
- package/src/services/bind.mjs +5 -11
- package/types/services/bind.d.mts +1 -3
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -142,8 +142,11 @@ export class Base {
|
|
|
142
142
|
}
|
|
143
143
|
} else {
|
|
144
144
|
if (current instanceof Set) {
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
if (value instanceof Set) {
|
|
146
|
+
this[name] = current.union(value);
|
|
147
|
+
} else {
|
|
148
|
+
this[name].add(value);
|
|
149
|
+
}
|
|
147
150
|
} else if (current instanceof Map) {
|
|
148
151
|
// TODO
|
|
149
152
|
this[name] = value;
|
package/src/services/bind.mjs
CHANGED
|
@@ -6,10 +6,11 @@ import {
|
|
|
6
6
|
addType,
|
|
7
7
|
default_attribute_writable,
|
|
8
8
|
string_attribute_writable,
|
|
9
|
+
string_collection_attribute_writable,
|
|
10
|
+
string_set_attribute_writable,
|
|
9
11
|
boolean_attribute_writable_true,
|
|
10
12
|
boolean_attribute_writable_false,
|
|
11
13
|
number_attribute_writable,
|
|
12
|
-
string_collection_attribute_writable,
|
|
13
14
|
name_attribute_writable
|
|
14
15
|
} from "pacc";
|
|
15
16
|
import {
|
|
@@ -79,7 +80,7 @@ const BindServiceTypeDefinition = {
|
|
|
79
80
|
hasCatalog: boolean_attribute_writable_true,
|
|
80
81
|
hasLinkLocalAdresses: boolean_attribute_writable_false,
|
|
81
82
|
hasLocationRecord: boolean_attribute_writable_true,
|
|
82
|
-
excludeInterfaceKinds:
|
|
83
|
+
excludeInterfaceKinds: string_set_attribute_writable,
|
|
83
84
|
exclude: {
|
|
84
85
|
...default_attribute_writable,
|
|
85
86
|
type: networkAddressType,
|
|
@@ -160,7 +161,8 @@ export class BindService extends ExtraSourceService {
|
|
|
160
161
|
_zones = [];
|
|
161
162
|
_trusted = [];
|
|
162
163
|
_exclude = new Set([]);
|
|
163
|
-
|
|
164
|
+
|
|
165
|
+
excludeInterfaceKinds = new Set();
|
|
164
166
|
|
|
165
167
|
serial = Math.ceil(Date.now() / 1000);
|
|
166
168
|
refresh = 36000;
|
|
@@ -245,14 +247,6 @@ export class BindService extends ExtraSourceService {
|
|
|
245
247
|
return this._exclude;
|
|
246
248
|
}
|
|
247
249
|
|
|
248
|
-
set excludeInterfaceKinds(value) {
|
|
249
|
-
this._excludeInterfaceKinds.add(value);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
get excludeInterfaceKinds() {
|
|
253
|
-
return this._excludeInterfaceKinds;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
250
|
async *preparePackages(dir) {
|
|
257
251
|
const sources = this.zones.length ? this.zones : [this.owner];
|
|
258
252
|
const names = sources.map(a => a.fullName).join(" ");
|
|
@@ -1539,7 +1539,7 @@ export class BindService extends ExtraSourceService {
|
|
|
1539
1539
|
_zones: any[];
|
|
1540
1540
|
_trusted: any[];
|
|
1541
1541
|
_exclude: Set<any>;
|
|
1542
|
-
|
|
1542
|
+
excludeInterfaceKinds: Set<any>;
|
|
1543
1543
|
serial: number;
|
|
1544
1544
|
refresh: number;
|
|
1545
1545
|
retry: number;
|
|
@@ -1558,8 +1558,6 @@ export class BindService extends ExtraSourceService {
|
|
|
1558
1558
|
get trusted(): any[];
|
|
1559
1559
|
set exclude(value: Set<any>);
|
|
1560
1560
|
get exclude(): Set<any>;
|
|
1561
|
-
set excludeInterfaceKinds(value: Set<any>);
|
|
1562
|
-
get excludeInterfaceKinds(): Set<any>;
|
|
1563
1561
|
preparePackages(dir: any): AsyncGenerator<any, void, unknown>;
|
|
1564
1562
|
generateOutfacingDefs(outputControl: any, sources: any): AsyncGenerator<any, void, unknown>;
|
|
1565
1563
|
generateZoneDefs(outputControl: any, sources: any): Promise<any>;
|