pmcf 1.101.0 → 1.101.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.101.0",
3
+ "version": "1.101.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,7 +32,7 @@ const DNSServiceTypeDefinition = {
32
32
  collection: false,
33
33
  writeable: true
34
34
  },
35
- excludeNetworks: { type: "network", collection: true, writeable: true },
35
+ exclude: { type: "network", collection: true, writeable: true },
36
36
  notify: { type: "boolean", collection: false, writeable: true },
37
37
  recordTTL: { type: "string", collection: false, writeable: true },
38
38
  serial: { type: "number", collection: false, writeable: true },
@@ -73,7 +73,7 @@ export class DNSService extends Service {
73
73
  _trusted = [];
74
74
  _protected = [];
75
75
  _open = [];
76
- _excludeNetworks = new Set([]);
76
+ _exclude = new Set([]);
77
77
 
78
78
  serial = Math.ceil(Date.now() / 1000);
79
79
  refresh = 36000;
@@ -134,12 +134,12 @@ export class DNSService extends Service {
134
134
  return this._source;
135
135
  }
136
136
 
137
- set excludeNetworks(value) {
138
- this._excludeNetworks.add(value);
137
+ set exclude(value) {
138
+ this._exclude.add(value);
139
139
  }
140
140
 
141
- get excludeNetworks() {
142
- return this._excludeNetworks;
141
+ get exclude() {
142
+ return this._exclude;
143
143
  }
144
144
 
145
145
  *findServices(filter) {
@@ -171,7 +171,7 @@ export class DNSService extends Service {
171
171
  }
172
172
 
173
173
  async *preparePackages(dir) {
174
- const location = this.location;
174
+ const location = this.owner.owner;
175
175
  const name = location.name;
176
176
  const p1 = join(dir, "p1");
177
177
  const packageData = {
@@ -338,7 +338,7 @@ async function generateZoneDefs(dns, location, packageData) {
338
338
  networkInterface,
339
339
  domainNames
340
340
  } of location.networkAddresses()) {
341
- if (!dns.excludeNetworks.has(networkInterface.network)) {
341
+ if (!dns.exclude.has(networkInterface.network)) {
342
342
  const host = networkInterface.host;
343
343
  if (
344
344
  !addresses.has(address) &&
@@ -41,7 +41,7 @@ export class DNSService extends Service {
41
41
  collection: boolean;
42
42
  writeable: boolean;
43
43
  };
44
- excludeNetworks: {
44
+ exclude: {
45
45
  type: string;
46
46
  collection: boolean;
47
47
  writeable: boolean;
@@ -98,7 +98,7 @@ export class DNSService extends Service {
98
98
  _trusted: any[];
99
99
  _protected: any[];
100
100
  _open: any[];
101
- _excludeNetworks: Set<any>;
101
+ _exclude: Set<any>;
102
102
  serial: number;
103
103
  refresh: number;
104
104
  retry: number;
@@ -114,8 +114,8 @@ export class DNSService extends Service {
114
114
  get open(): any[];
115
115
  set source(value: any[]);
116
116
  get source(): any[];
117
- set excludeNetworks(value: Set<any>);
118
- get excludeNetworks(): Set<any>;
117
+ set exclude(value: Set<any>);
118
+ get exclude(): Set<any>;
119
119
  get systemdConfig(): (string | {
120
120
  DNS: string;
121
121
  FallbackDNS: string;