pmcf 6.39.5 → 6.39.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/package.json +1 -1
- package/src/base.mjs +5 -5
- package/src/content.mjs +2 -1
- package/src/core.mjs +4 -1
- package/src/initialization-context.mjs +1 -1
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -31,6 +31,11 @@ export class base extends core {
|
|
|
31
31
|
static key = "name";
|
|
32
32
|
static priority = 0;
|
|
33
33
|
static attributes = {
|
|
34
|
+
template: {
|
|
35
|
+
...boolean_attribute_writable,
|
|
36
|
+
name: "template",
|
|
37
|
+
private: true
|
|
38
|
+
},
|
|
34
39
|
owner: owner_attribute,
|
|
35
40
|
name: name_attribute_writable,
|
|
36
41
|
aliases: aliases_attribute,
|
|
@@ -39,11 +44,6 @@ export class base extends core {
|
|
|
39
44
|
directory: { ...string_attribute_writable, name: "directory" },
|
|
40
45
|
enabled: { ...boolean_attribute_writable, name: "enabled" },
|
|
41
46
|
tags: { ...string_set_attribute_writable, name: "tags" },
|
|
42
|
-
template: {
|
|
43
|
-
...boolean_attribute_writable,
|
|
44
|
-
name: "template",
|
|
45
|
-
private: true
|
|
46
|
-
},
|
|
47
47
|
content: { ...default_attribute_writable, type: "content", name: "content" }
|
|
48
48
|
};
|
|
49
49
|
|
package/src/content.mjs
CHANGED
package/src/core.mjs
CHANGED
|
@@ -113,7 +113,7 @@ export class InitializationContext {
|
|
|
113
113
|
attribute => attribute.writable
|
|
114
114
|
)) {
|
|
115
115
|
const name = path.join(".");
|
|
116
|
-
const value = object.expand(data[name]);
|
|
116
|
+
const value = object.isTemplate ? data[name] : object.expand(data[name]);
|
|
117
117
|
|
|
118
118
|
if (attribute.collection) {
|
|
119
119
|
if (typeof value === "object") {
|