@pittica/google-business-intelligence-helpers 1.13.0 → 1.13.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.
package/dist/index.js CHANGED
@@ -55,6 +55,9 @@ const {
55
55
  splitName,
56
56
  splitIdByKeys
57
57
  } = require("./naming/split");
58
+ const {
59
+ scriptComparision
60
+ } = require("./scripts/comparision");
58
61
  const {
59
62
  scriptUnlistened
60
63
  } = require("./scripts/unlistened");
@@ -86,5 +89,6 @@ exports.mergeFiledata = mergeFiledata;
86
89
  exports.splitName = splitName;
87
90
  exports.splitIdByKeys = splitIdByKeys;
88
91
  exports.scripts = {
92
+ comparision: scriptComparision,
89
93
  unlistened: scriptUnlistened
90
94
  };
@@ -28,7 +28,7 @@ const {
28
28
  *
29
29
  * @param {string} bucket Bucket name.
30
30
  * @param {string} date Date to compare against.
31
- * @returns {void}
31
+ * @returns {Array} Array of files that are in the file but not in the bucket.
32
32
  */
33
33
  exports.scriptComparision = async (bucket, date = null) => {
34
34
  if (bucket) {
@@ -36,7 +36,6 @@ exports.scriptComparision = async (bucket, date = null) => {
36
36
  const filename = mergeFilename(day, "filelist", "txt");
37
37
  const content = await txtContentToArray(filename, bucket);
38
38
  const files = await listFiles(bucket);
39
- const missed = content.filter(file => !files.includes(file));
40
- return missed;
39
+ return content.filter(file => !files.includes(file));
41
40
  }
42
41
  };
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.13.0",
4
+ "version": "1.13.1",
5
5
  "description": "Helpers for business intelligence for Google Cloud.",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {