@squiz/render-runtime-lib 1.2.1-alpha.83 → 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 CHANGED
@@ -20118,7 +20118,11 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
20118
20118
  setTimeout(resolve, timeMs);
20119
20119
  });
20120
20120
  }
20121
- var migration_list_default = ["20220704054051_initial.sql", "20220718172237_adding_component_sets.sql"];
20121
+ var migration_list_default = [
20122
+ "20220704054051_initial.sql",
20123
+ "20220718172237_adding_component_sets.sql",
20124
+ "20220728113941_add_env_vars_field.sql"
20125
+ ];
20122
20126
  var ComponentSet = class {
20123
20127
  constructor() {
20124
20128
  this.webPath = "";
@@ -20151,6 +20155,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
20151
20155
  this.componentSetWebPath = "";
20152
20156
  this.componentName = "";
20153
20157
  this.componentVersion = "";
20158
+ this.envVars = {};
20154
20159
  }
20155
20160
  };
20156
20161
  var ComponentSetComponentVersionRepository = class extends AbstractRepository {
@@ -20158,7 +20163,8 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
20158
20163
  super(options.repositories, options.pool, "component_set_component_version", {
20159
20164
  componentSetWebPath: "component_set_web_path",
20160
20165
  componentName: "component_name",
20161
- componentVersion: "component_version"
20166
+ componentVersion: "component_version",
20167
+ envVars: "env_vars"
20162
20168
  }, ComponentSetComponentVersion);
20163
20169
  }
20164
20170
  async componentSetComponentVersionExists(componentSetWebPath, componentName, componentVersion) {
@@ -26281,7 +26287,7 @@ var require_v1 = __commonJS({
26281
26287
  additionalProperties: false,
26282
26288
  properties: {
26283
26289
  $schema: { type: "string", description: "the manifest schema version" },
26284
- name: { type: "string", description: "Name of the component" },
26290
+ name: { type: "string", description: "Name of the component", $ref: "#/$defs/name-pattern" },
26285
26291
  "main-function": {
26286
26292
  type: "string",
26287
26293
  description: "Name of the main function to be executed at the root of the access url"
@@ -26312,7 +26318,7 @@ var require_v1 = __commonJS({
26312
26318
  properties: {
26313
26319
  name: {
26314
26320
  type: "string",
26315
- pattern: "^[^/\\s\\\\]+$",
26321
+ $ref: "#/$defs/name-pattern",
26316
26322
  description: "Function name, this will be used as part of the url to access this function. It must be a valid url"
26317
26323
  },
26318
26324
  entry: { type: "string" },
@@ -26361,7 +26367,10 @@ var require_v1 = __commonJS({
26361
26367
  }
26362
26368
  }
26363
26369
  },
26364
- 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
+ }
26365
26374
  };
26366
26375
  }
26367
26376
  });