@pittica/google-business-intelligence-helpers 1.3.0 → 1.3.1

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.
@@ -63,6 +63,7 @@ exports.createFilename = filedata => `${format(filedata.date, "YYYY-MM-DD")}-${f
63
63
  * @param {Date} date File date.
64
64
  * @param {string} name File or function name.
65
65
  * @param {string} extension File extension.
66
+ * @param {int} version File version.
66
67
  * @returns {string} The merged given filename parts.
67
68
  */
68
- exports.mergeFilename = (date, name, extension) => `${format(date, "YYYY-MM-DD")}-${name}.${extension.toLowerCase()}`;
69
+ exports.mergeFilename = (date, name, extension, version = 0) => `${format(date, "YYYY-MM-DD")}-${name}${version ? `_${version}` : ""}.${extension.toLowerCase()}`;
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.3.0",
4
+ "version": "1.3.1",
5
5
  "description": "Helpers for business intelligence for Google Cloud.",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {