@pittica/google-business-intelligence-helpers 1.6.1 → 1.6.2

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.
@@ -21,6 +21,9 @@ const {
21
21
  const {
22
22
  splitName
23
23
  } = require("../naming/split");
24
+ const {
25
+ incrementFilenameVersion
26
+ } = require("../naming/file");
24
27
 
25
28
  /**
26
29
  * Maps Google Cloud Storage response.
@@ -62,5 +65,5 @@ exports.getSafeFilename = async (storage, bucket, filename, folder = "") => awai
62
65
  }) => typeof name !== "undefined").map(({
63
66
  name
64
67
  }) => name).slice(-1).pop();
65
- return splitName(typeof file !== "undefined" && file ? file : filename);
68
+ return typeof file !== "undefined" && file ? incrementFilenameVersion(splitName(file)) : splitName(filename);
66
69
  });
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.6.1",
4
+ "version": "1.6.2",
5
5
  "description": "Helpers for business intelligence for Google Cloud.",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {