aws-architect 6.6.28 → 6.6.30

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -4,7 +4,7 @@ let exec = require('child_process').exec;
4
4
  let fs = require('fs-extra');
5
5
  let path = require('path');
6
6
  let os = require('os');
7
- let uuid = require('uuid');
7
+ const shortUuid = require('short-uuid');
8
8
 
9
9
  let Server = require('./lib/server');
10
10
  let ApiGatewayManager = require('./lib/ApiGatewayManager');
@@ -47,7 +47,7 @@ AwsArchitect.prototype.publishZipArchive = async function(options = {}) {
47
47
  if (!options.zipFileName || !this.deploymentBucket || !options.sourceDirectory) {
48
48
  throw Error('The zipFileName, sourceDirectory, api options deploymentBucket must be specified.');
49
49
  }
50
- let tmpDir = path.join(os.tmpdir(), `zipDirectory-${uuid.v4()}`);
50
+ let tmpDir = path.join(os.tmpdir(), `zipDirectory-${shortUuid.generate()}`);
51
51
  await new Promise((resolve, reject) => { fs.stat(options.sourceDirectory, (error, stats) => error || !stats.isDirectory ? reject(error || 'NotDirectoryError') : resolve()); });
52
52
  await fs.copy(options.sourceDirectory, tmpDir);
53
53
  let zipArchivePath = path.join(tmpDir, options.zipFileName);
@@ -67,7 +67,7 @@ AwsArchitect.prototype.publishZipArchive = async function(options = {}) {
67
67
 
68
68
  AwsArchitect.prototype.publishLambdaArtifactPromise = AwsArchitect.prototype.PublishLambdaArtifactPromise = async function(options = {}) {
69
69
  let lambdaZip = options && options.zipFileName || 'lambda.zip';
70
- let tmpDir = path.join(os.tmpdir(), `lambda-${uuid.v4()}`);
70
+ let tmpDir = path.join(os.tmpdir(), `lambda-${shortUuid.generate()}`);
71
71
 
72
72
  await new Promise((resolve, reject) => {
73
73
  fs.stat(this.SourceDirectory, (error, stats) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-architect",
3
- "version": "6.6.28",
3
+ "version": "6.6.30",
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",
@@ -31,8 +31,8 @@
31
31
  "lodash.isequal": "^4.5.0",
32
32
  "mime-types": "^2.1.27",
33
33
  "morgan": "^1.9.1",
34
- "tmp": "^0.0.33",
35
- "uuid": "^2.0.2"
34
+ "short-uuid": "^4.2.0",
35
+ "tmp": "^0.0.33"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "aws-sdk": ">=2.877.0"