@squiz/render-runtime-lib 1.2.1-alpha.85 → 1.2.1-alpha.86
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/lib/index.js +6 -3
- package/lib/index.js.map +1 -1
- package/lib/worker/worker-root.js +6 -3
- package/lib/worker/worker-root.js.map +1 -1
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -26287,7 +26287,7 @@ var require_v1 = __commonJS({
|
|
|
26287
26287
|
additionalProperties: false,
|
|
26288
26288
|
properties: {
|
|
26289
26289
|
$schema: { type: "string", description: "the manifest schema version" },
|
|
26290
|
-
name: { type: "string", description: "Name of the component" },
|
|
26290
|
+
name: { type: "string", description: "Name of the component", $ref: "#/$defs/name-pattern" },
|
|
26291
26291
|
"main-function": {
|
|
26292
26292
|
type: "string",
|
|
26293
26293
|
description: "Name of the main function to be executed at the root of the access url"
|
|
@@ -26318,7 +26318,7 @@ var require_v1 = __commonJS({
|
|
|
26318
26318
|
properties: {
|
|
26319
26319
|
name: {
|
|
26320
26320
|
type: "string",
|
|
26321
|
-
|
|
26321
|
+
$ref: "#/$defs/name-pattern",
|
|
26322
26322
|
description: "Function name, this will be used as part of the url to access this function. It must be a valid url"
|
|
26323
26323
|
},
|
|
26324
26324
|
entry: { type: "string" },
|
|
@@ -26367,7 +26367,10 @@ var require_v1 = __commonJS({
|
|
|
26367
26367
|
}
|
|
26368
26368
|
}
|
|
26369
26369
|
},
|
|
26370
|
-
required: ["name", "version", "functions", "$schema", "main-function"]
|
|
26370
|
+
required: ["name", "version", "functions", "$schema", "main-function"],
|
|
26371
|
+
$defs: {
|
|
26372
|
+
"name-pattern": { pattern: "^[a-zA-Z0-9_\\-]+$" }
|
|
26373
|
+
}
|
|
26371
26374
|
};
|
|
26372
26375
|
}
|
|
26373
26376
|
});
|