@purescraps/purehtml 0.9.0 → 0.10.0
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/dist/examples/simple.js +229 -30
- package/dist/examples/simple.js.map +1 -1
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.js +229 -30
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
- package/src/config-schema.json +14 -2
package/package.json
CHANGED
package/src/config-schema.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"type": {
|
|
47
47
|
"type": "string",
|
|
48
|
-
"enum": ["string", "object", "array", "union"]
|
|
48
|
+
"enum": ["string", "number", "boolean", "object", "array", "union"]
|
|
49
49
|
},
|
|
50
50
|
"items": { "$ref": "config-schema.json" },
|
|
51
51
|
"properties": {
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
"minItems": 1
|
|
68
68
|
}
|
|
69
69
|
]
|
|
70
|
+
},
|
|
71
|
+
"default": {
|
|
72
|
+
"$comment": "fallback value returned in place of null when the selector matches nothing"
|
|
70
73
|
}
|
|
71
74
|
},
|
|
72
75
|
"required": [],
|
|
@@ -126,6 +129,9 @@
|
|
|
126
129
|
"type": "array",
|
|
127
130
|
"items": { "$ref": "config-schema.json" },
|
|
128
131
|
"minItems": 1
|
|
132
|
+
},
|
|
133
|
+
"default": {
|
|
134
|
+
"$comment": "fallback value returned in place of null when no union member matches"
|
|
129
135
|
}
|
|
130
136
|
},
|
|
131
137
|
"required": ["union"],
|
|
@@ -134,7 +140,13 @@
|
|
|
134
140
|
{
|
|
135
141
|
"$comment": "Constant",
|
|
136
142
|
"type": "object",
|
|
137
|
-
"properties": {
|
|
143
|
+
"properties": {
|
|
144
|
+
"selector": { "type": "string" },
|
|
145
|
+
"constant": {},
|
|
146
|
+
"default": {
|
|
147
|
+
"$comment": "fallback value returned in place of null when the selector matches nothing"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
138
150
|
"required": ["constant"],
|
|
139
151
|
"additionalProperties": false
|
|
140
152
|
}
|