pmcf 6.67.8 → 6.67.10

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": "6.67.8",
3
+ "version": "6.67.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -51,11 +51,11 @@
51
51
  },
52
52
  "dependencies": {
53
53
  "aggregated-map": "^1.1.1",
54
- "content-entry-transform": "^1.7.10",
54
+ "content-entry-transform": "^1.7.11",
55
55
  "filtered-map": "^1.0.0",
56
56
  "ip-utilties": "^3.13.1",
57
- "npm-pkgbuild": "^22.2.10",
58
- "pacc": "^12.0.3",
57
+ "npm-pkgbuild": "^22.2.12",
58
+ "pacc": "^12.1.0",
59
59
  "package-directory": "^8.2.0",
60
60
  "yaml": "^2.9.1"
61
61
  },
package/src/base.mjs CHANGED
@@ -351,6 +351,6 @@ export class base extends core {
351
351
  }
352
352
 
353
353
  toJSON() {
354
- return extract(this);
354
+ return extract(this,this.constructor,attribute=>!attribute.private);
355
355
  }
356
356
  }
package/src/content.mjs CHANGED
@@ -33,10 +33,12 @@ export class permission extends core {
33
33
  }
34
34
  }
35
35
 
36
+ const SCOPE_PACKAGING = "packaging";
37
+
36
38
  export class content extends core {
37
39
  static attributes = {
38
- name: { ...name_attribute_writable, packagingProperty: true },
39
- description: { ...description_attribute_writable, packagingProperty: true },
40
+ name: { ...name_attribute_writable, scope: SCOPE_PACKAGING },
41
+ description: { ...description_attribute_writable, scope: SCOPE_PACKAGING },
40
42
  fragments: {
41
43
  ...string_set_attribute_writable,
42
44
  name: "fragments"
@@ -50,47 +52,47 @@ export class content extends core {
50
52
  ...string_attribute_writable,
51
53
  name: "access",
52
54
  default: "private",
53
- packagingProperty: true
55
+ scope: SCOPE_PACKAGING
54
56
  },
55
57
  dependencies: {
56
58
  ...string_set_attribute_writable,
57
59
  name: "dependencies",
58
- packagingProperty: true
60
+ scope: SCOPE_PACKAGING
59
61
  },
60
62
  provides: {
61
63
  ...string_set_attribute_writable,
62
64
  name: "provides",
63
- packagingProperty: true
65
+ scope: SCOPE_PACKAGING
64
66
  },
65
67
  replaces: {
66
68
  ...string_set_attribute_writable,
67
69
  name: "replaces",
68
- packagingProperty: true
70
+ scope: SCOPE_PACKAGING
69
71
  },
70
72
  conflicts: {
71
73
  ...string_set_attribute_writable,
72
74
  name: "conflicts",
73
- packagingProperty: true
75
+ scope: SCOPE_PACKAGING
74
76
  },
75
77
  optional: {
76
78
  ...string_set_attribute_writable,
77
79
  name: "optional",
78
- packagingProperty: true
80
+ scope: SCOPE_PACKAGING
79
81
  },
80
82
  groups: {
81
83
  ...string_set_attribute_writable,
82
84
  name: "groups",
83
- packagingProperty: true
85
+ scope: SCOPE_PACKAGING
84
86
  },
85
87
  backup: {
86
88
  ...string_set_attribute_writable,
87
89
  name: "backup",
88
- packagingProperty: true
90
+ scope: SCOPE_PACKAGING
89
91
  },
90
92
  hooks: {
91
93
  ...string_set_attribute_writable,
92
94
  name: "hooks",
93
- packagingProperty: true
95
+ scope: SCOPE_PACKAGING
94
96
  },
95
97
  packaging: { ...string_set_attribute_writable, name: "packaging" }
96
98
  };
@@ -163,7 +165,7 @@ export class content extends core {
163
165
  * @return {string}
164
166
  */
165
167
  get access() {
166
- return this.attribute("_access");
168
+ return this.attribute("_access") ?? this.constructor.attributes.access.default; // TODO automatically generate ?
167
169
  }
168
170
 
169
171
  set access(value) {
@@ -303,7 +305,7 @@ export class content extends core {
303
305
  properties: Object.fromEntries(
304
306
  extendingAttributeIterator(
305
307
  this.constructor,
306
- attribute => attribute.packagingProperty
308
+ attribute => attribute.scope = SCOPE_PACKAGING
307
309
  ).map(([path, attribute]) => [path[0], this[path[0]]])
308
310
  ),
309
311
  dir: () => this.sources?.[0].dir