@pittica/google-business-intelligence-helpers 1.12.2 → 1.12.4
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/contents/storage.js +1 -3
- package/package.json +2 -2
package/dist/contents/storage.js
CHANGED
|
@@ -87,9 +87,7 @@ exports.extractStorageResponse = (response, schemas = "", dateFormat = "YYYY-MM-
|
|
|
87
87
|
* @returns {object} A safe name of a file in the given folder in the given bucket.
|
|
88
88
|
*/
|
|
89
89
|
exports.getSafeFilename = (storage, bucket, filename, folder = "") => getFiles(storage, bucket, folder ? `${folder}/${filename}` : filename).then(response => {
|
|
90
|
-
const file = response.flat(3).filter(({
|
|
91
|
-
name
|
|
92
|
-
}) => typeof name !== "undefined").map(({
|
|
90
|
+
const file = response.flat(3).filter(value => value && typeof value.name !== "undefined").map(({
|
|
93
91
|
name
|
|
94
92
|
}) => folder ? name.replace(new RegExp(`^${folder}\/`, "gs"), "") : name).slice(-1).pop();
|
|
95
93
|
return typeof file !== "undefined" && file ? incrementFilenameVersion(splitName(file)) : splitName(filename);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pittica/google-business-intelligence-helpers",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.12.
|
|
4
|
+
"version": "1.12.4",
|
|
5
5
|
"description": "Helpers for business intelligence for Google Cloud.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/pittica/google-business-intelligence-helpers#README.md",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@pittica/google-cloud-storage-helpers": "^1.3.
|
|
29
|
+
"@pittica/google-cloud-storage-helpers": "^1.3.3",
|
|
30
30
|
"date-and-time": "^4.1.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|