@pittica/google-business-intelligence-helpers 1.5.0 → 1.5.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.
@@ -26,9 +26,11 @@ const {
26
26
  * @param {string} schemas Schema files folder path.
27
27
  * @returns {object} Mapped response.
28
28
  */
29
- exports.mapStorageResponse = (response, schemas) => {
29
+ exports.mapStorageResponse = (response, schemas = "") => {
30
30
  const files = {};
31
- getSchemaKeys(schemas).map(key => files[key] = []);
31
+ if (schemas) {
32
+ getSchemaKeys(schemas).map(key => files[key] = []);
33
+ }
32
34
  response.flat(3).forEach(({
33
35
  id
34
36
  }) => {
package/dist/index.js CHANGED
@@ -40,7 +40,8 @@ const {
40
40
  incrementFilenameVersion,
41
41
  getJsonStorageName,
42
42
  createFilename,
43
- mergeFilename
43
+ mergeFilename,
44
+ mergeFiledata
44
45
  } = require("./naming/file");
45
46
  const {
46
47
  splitName,
@@ -65,6 +66,7 @@ exports.incrementFilenameVersion = incrementFilenameVersion;
65
66
  exports.getJsonStorageName = getJsonStorageName;
66
67
  exports.createFilename = createFilename;
67
68
  exports.mergeFilename = mergeFilename;
69
+ exports.mergeFiledata = mergeFiledata;
68
70
  exports.splitName = splitName;
69
71
  exports.splitIdByKeys = splitIdByKeys;
70
72
  exports.scripts = {
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.5.0",
4
+ "version": "1.5.2",
5
5
  "description": "Helpers for business intelligence for Google Cloud.",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {