aws-architect 6.7.86 → 6.7.87

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/CHANGELOG.md CHANGED
@@ -8,6 +8,7 @@ This is the changelog for [AWS Architect](readme.md).
8
8
  * Support pnpm lock files
9
9
  * Support the new version of openapi-factory 5.4.
10
10
  * Duplicate all .html files as cleaned files. `file.html` => `file` and `file/`, all three will work
11
+ * Fix validateTemplate so that it actually uses S3 when available.
11
12
 
12
13
  ## 6.6 ##
13
14
  * Add support to `deleteWebsiteVersion(version)`
@@ -3,6 +3,7 @@ const Tmp = require('tmp');
3
3
  Tmp.setGracefulCleanup();
4
4
  const fs = require('fs-extra');
5
5
  const isEqual = require('lodash.isequal');
6
+ const shortUuid = require('short-uuid');
6
7
 
7
8
  function tryParseJson(stringContent) {
8
9
  try {
@@ -29,8 +30,8 @@ class CloudFormationDeployer {
29
30
 
30
31
  async validateTemplate(template, stackName, bucketDeploymentKey) {
31
32
  let templateString = this.getTemplateBody(template);
32
- if (stackName && this.deploymentBucket) {
33
- let templateRelativeUrl = `${bucketDeploymentKey}/${stackName}.cloudformation.template`;
33
+ if (this.deploymentBucket) {
34
+ let templateRelativeUrl = `${bucketDeploymentKey}/${stackName || shortUuid('abcdefghijklmnopqrstuvwxyz0123456789').generate()}.cloudformation.template`;
34
35
  await new Promise((resolve, reject) => {
35
36
  Tmp.file(async (err, path) => {
36
37
  if (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-architect",
3
- "version": "6.7.86",
3
+ "version": "6.7.87",
4
4
  "description": "AWS Architect is a node based tool to configure and deploy AWS-based microservices.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",