aws-architect 6.7.158 → 6.7.161
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/BucketManager.js +2 -6
- package/package.json +2 -2
package/lib/BucketManager.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let fs = require('fs-extra');
|
|
2
|
-
|
|
2
|
+
const { glob } = require('glob');
|
|
3
3
|
let path = require('path');
|
|
4
4
|
const { createHash } = require('crypto');
|
|
5
5
|
const { lookup } = require('mime-types');
|
|
@@ -79,11 +79,7 @@ class BucketManager {
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
const list = await
|
|
83
|
-
glob(path.join(contentPath, '**'), { nonull: true, dot: true, nodir: true },
|
|
84
|
-
(error, files) => error ? reject({ Title: 'Failed to get list of content files', Error: error.stack || error.toString(), Detail: error }) : resolve(files)
|
|
85
|
-
);
|
|
86
|
-
});
|
|
82
|
+
const list = await glob(path.join(contentPath, '**'), { dot: true, nodir: true });
|
|
87
83
|
|
|
88
84
|
let sortedList = list.filter(file => !file.match('index.html'));
|
|
89
85
|
await Promise.all(sortedList.map(file => uploadFile(file)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aws-architect",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.161",
|
|
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,6 +31,7 @@
|
|
|
31
31
|
"json-stringify-safe": "^5.0.1",
|
|
32
32
|
"lodash.clonedeep": "^4.5.0",
|
|
33
33
|
"lodash.isequal": "^4.5.0",
|
|
34
|
+
"glob": "^10.0.0",
|
|
34
35
|
"mime-types": "^2.1.27",
|
|
35
36
|
"morgan": "^1.9.1",
|
|
36
37
|
"short-uuid": "^4.2.0",
|
|
@@ -48,7 +49,6 @@
|
|
|
48
49
|
"eslint-plugin-import": "^2.22.1",
|
|
49
50
|
"eslint-plugin-node": "^11.1.0",
|
|
50
51
|
"eslint-plugin-promise": "^6.1.1",
|
|
51
|
-
"glob": "^5.0.15",
|
|
52
52
|
"sinon": "^1.17.3",
|
|
53
53
|
"vitest": "^3.0.0"
|
|
54
54
|
},
|