serverless-plugin-module-registry 1.0.13 → 1.0.14

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/index.js CHANGED
@@ -19655,11 +19655,13 @@ var ServerlessModuleRegistryPlugin = class {
19655
19655
  * Usage: `npx serverless@4 registryDeployInfra --stage dev --region sa-east-1`
19656
19656
  */
19657
19657
  async registryDeployInfraHandler() {
19658
- var _a4;
19659
19658
  this.pluginLogger.trackHookCall("registryDeployInfra:deploy");
19660
19659
  try {
19661
19660
  this.logger.info("\u{1F680} Force-deploying Module Registry internal infrastructure...");
19662
- const service = ((_a4 = this.serverless.service.initialServerlessConfig) == null ? void 0 : _a4.service) || this.serverless.service.service;
19661
+ let service = this.serverless.service.service || "api";
19662
+ if (service.includes("${")) {
19663
+ service = "api";
19664
+ }
19663
19665
  const stage = this.serverless.service.provider.stage || "dev";
19664
19666
  const region = this.serverless.service.provider.region || "us-east-1";
19665
19667
  const accountId = await this.getAwsAccountId();