@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.
@@ -8072,7 +8072,7 @@ var require_v1 = __commonJS({
8072
8072
  additionalProperties: false,
8073
8073
  properties: {
8074
8074
  $schema: { type: "string", description: "the manifest schema version" },
8075
- name: { type: "string", description: "Name of the component" },
8075
+ name: { type: "string", description: "Name of the component", $ref: "#/$defs/name-pattern" },
8076
8076
  "main-function": {
8077
8077
  type: "string",
8078
8078
  description: "Name of the main function to be executed at the root of the access url"
@@ -8103,7 +8103,7 @@ var require_v1 = __commonJS({
8103
8103
  properties: {
8104
8104
  name: {
8105
8105
  type: "string",
8106
- pattern: "^[^/\\s\\\\]+$",
8106
+ $ref: "#/$defs/name-pattern",
8107
8107
  description: "Function name, this will be used as part of the url to access this function. It must be a valid url"
8108
8108
  },
8109
8109
  entry: { type: "string" },
@@ -8152,7 +8152,10 @@ var require_v1 = __commonJS({
8152
8152
  }
8153
8153
  }
8154
8154
  },
8155
- required: ["name", "version", "functions", "$schema", "main-function"]
8155
+ required: ["name", "version", "functions", "$schema", "main-function"],
8156
+ $defs: {
8157
+ "name-pattern": { pattern: "^[a-zA-Z0-9_\\-]+$" }
8158
+ }
8156
8159
  };
8157
8160
  }
8158
8161
  });