serverless-plugin-module-registry 1.0.13 → 1.0.15
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 +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16376,7 +16376,7 @@ var DynamoDBManager = class {
|
|
|
16376
16376
|
const requestItems = {
|
|
16377
16377
|
[this.config.tableName]: batch.map((op) => {
|
|
16378
16378
|
if (op.operation === "put") {
|
|
16379
|
-
return { PutRequest: { Item: (0, import_util_dynamodb.marshall)(op.item) } };
|
|
16379
|
+
return { PutRequest: { Item: (0, import_util_dynamodb.marshall)(op.item, { removeUndefinedValues: true }) } };
|
|
16380
16380
|
} else {
|
|
16381
16381
|
return { DeleteRequest: { Key: (0, import_util_dynamodb.marshall)({ pk: op.item.pk, sk: op.item.sk }) } };
|
|
16382
16382
|
}
|
|
@@ -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
|
-
|
|
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();
|