@hestia-earth/pipeline-utils 0.10.4 → 0.12.0

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/gitlab.d.ts CHANGED
@@ -1,9 +1,14 @@
1
1
  /// <reference types="node" />
2
2
  import { Readable } from 'stream';
3
- export interface IGitlabFile {
3
+ export interface IGitlabTreeFile {
4
4
  id?: string;
5
5
  name: string;
6
6
  path: string;
7
7
  }
8
- export declare const listFiles: (path?: string, page?: number, limit?: number) => Promise<IGitlabFile[]>;
9
- export declare const readFile: ({ id }: Partial<IGitlabFile>) => Promise<Readable>;
8
+ export interface IGitlabFile {
9
+ size: number;
10
+ content: string;
11
+ }
12
+ export declare const listFiles: (path: string, page?: number, limit?: number) => Promise<IGitlabTreeFile[]>;
13
+ export declare const readFile: ({ path }: Partial<IGitlabTreeFile>) => Promise<IGitlabFile>;
14
+ export declare const readFileRaw: ({ id }: Partial<IGitlabTreeFile>) => Promise<Readable>;
package/dist/gitlab.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readFile = exports.listFiles = void 0;
3
+ exports.readFileRaw = exports.readFile = exports.listFiles = void 0;
4
4
  const axios_1 = require("axios");
5
5
  const token = process.env.GITLAB_TOKEN;
6
6
  const projectId = process.env.GITLAB_PROJECT_ID;
@@ -9,7 +9,7 @@ const gitlabUrl = `https://gitlab.com/api/v4/projects/${projectId}`;
9
9
  const headers = { 'PRIVATE-TOKEN': token };
10
10
  const listFiles = async (path, page = 1, limit = 100) => {
11
11
  const { data } = await axios_1.default.get(`${gitlabUrl}/repository/tree`, {
12
- headers: { 'PRIVATE-TOKEN': token },
12
+ headers,
13
13
  params: { page, per_page: limit, ref: branch, path }
14
14
  });
15
15
  return [
@@ -18,12 +18,20 @@ const listFiles = async (path, page = 1, limit = 100) => {
18
18
  ];
19
19
  };
20
20
  exports.listFiles = listFiles;
21
- const readFile = async ({ id }) => {
21
+ const readFile = async ({ path }) => {
22
+ const { data } = await axios_1.default.get(`${gitlabUrl}/repository/files/${encodeURIComponent(path)}`, {
23
+ headers,
24
+ params: { ref: branch }
25
+ });
26
+ return data;
27
+ };
28
+ exports.readFile = readFile;
29
+ const readFileRaw = async ({ id }) => {
22
30
  const { data } = await axios_1.default.get(`${gitlabUrl}/repository/blobs/${id}/raw`, {
23
31
  headers,
24
32
  responseType: 'stream'
25
33
  });
26
34
  return data;
27
35
  };
28
- exports.readFile = readFile;
36
+ exports.readFileRaw = readFileRaw;
29
37
  //# sourceMappingURL=gitlab.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gitlab.js","sourceRoot":"","sources":["../src/gitlab.ts"],"names":[],"mappings":";;;AACA,iCAA0B;AAQ1B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;AACvC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AAChD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;AAEzC,MAAM,SAAS,GAAG,sCAAsC,SAAS,EAAE,CAAC;AACpE,MAAM,OAAO,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;AAEpC,MAAM,SAAS,GAAG,KAAK,EAAE,IAAa,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,GAAG,GAAG,EAA0B,EAAE;IAC9F,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,eAAK,CAAC,GAAG,CAAgB,GAAG,SAAS,kBAAkB,EAAE;QAC9E,OAAO,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE;QACnC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;KACrD,CAAC,CAAC;IACH,OAAO;QACL,GAAG,IAAI;QACP,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,IAAA,iBAAS,EAAC,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAClE,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,SAAS,aASpB;AAEK,MAAM,QAAQ,GAAG,KAAK,EAAE,EAAE,EAAE,EAAwB,EAAE,EAAE;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,eAAK,CAAC,GAAG,CAAW,GAAG,SAAS,qBAAqB,EAAE,MAAM,EAAE;QACpF,OAAO;QACP,YAAY,EAAE,QAAQ;KACvB,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AANW,QAAA,QAAQ,YAMnB"}
1
+ {"version":3,"file":"gitlab.js","sourceRoot":"","sources":["../src/gitlab.ts"],"names":[],"mappings":";;;AACA,iCAA0B;AAa1B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;AACvC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AAChD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;AAEzC,MAAM,SAAS,GAAG,sCAAsC,SAAS,EAAE,CAAC;AACpE,MAAM,OAAO,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;AAEpC,MAAM,SAAS,GAAG,KAAK,EAAE,IAAY,EAAE,IAAI,GAAG,CAAC,EAAE,KAAK,GAAG,GAAG,EAA8B,EAAE;IACjG,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,eAAK,CAAC,GAAG,CAAoB,GAAG,SAAS,kBAAkB,EAAE;QAClF,OAAO;QACP,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE;KACrD,CAAC,CAAC;IACH,OAAO;QACL,GAAG,IAAI;QACP,GAAG,CAAC,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,IAAA,iBAAS,EAAC,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAClE,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,SAAS,aASpB;AAEK,MAAM,QAAQ,GAAG,KAAK,EAAE,EAAE,IAAI,EAA4B,EAAE,EAAE;IACnE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,eAAK,CAAC,GAAG,CAAc,GAAG,SAAS,qBAAqB,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE;QACzG,OAAO;QACP,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE;KACxB,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AANW,QAAA,QAAQ,YAMnB;AAEK,MAAM,WAAW,GAAG,KAAK,EAAE,EAAE,EAAE,EAA4B,EAAE,EAAE;IACpE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,eAAK,CAAC,GAAG,CAAW,GAAG,SAAS,qBAAqB,EAAE,MAAM,EAAE;QACpF,OAAO;QACP,YAAY,EAAE,QAAQ;KACvB,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/pipeline-utils",
3
- "version": "0.10.4",
3
+ "version": "0.12.0",
4
4
  "description": "Utilities for running pipelines",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  "@types/lodash.get": "^4.4.7",
59
59
  "@types/lodash.pick": "^4.4.7",
60
60
  "@types/mocha": "^7.0.2",
61
- "@types/node": "^14.18.36",
61
+ "@types/node": "^16.18.39",
62
62
  "@types/request": "^2.48.8",
63
63
  "@types/request-promise-native": "^1.0.18",
64
64
  "@types/sinon": "^9.0.11",
@@ -81,5 +81,9 @@
81
81
  "hooks": {
82
82
  "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
83
83
  }
84
+ },
85
+ "engines": {
86
+ "npm": ">=8.0.0 <9.0.0",
87
+ "node": ">=16.0.0 <17.0.0"
84
88
  }
85
89
  }
package/src/gitlab.ts CHANGED
@@ -1,12 +1,17 @@
1
1
  import { Readable } from 'stream';
2
2
  import axios from 'axios';
3
3
 
4
- export interface IGitlabFile {
4
+ export interface IGitlabTreeFile {
5
5
  id?: string;
6
6
  name: string;
7
7
  path: string;
8
8
  }
9
9
 
10
+ export interface IGitlabFile {
11
+ size: number;
12
+ content: string;
13
+ }
14
+
10
15
  const token = process.env.GITLAB_TOKEN;
11
16
  const projectId = process.env.GITLAB_PROJECT_ID;
12
17
  const branch = process.env.GITLAB_BRANCH;
@@ -14,9 +19,9 @@ const branch = process.env.GITLAB_BRANCH;
14
19
  const gitlabUrl = `https://gitlab.com/api/v4/projects/${projectId}`;
15
20
  const headers = { 'PRIVATE-TOKEN': token };
16
21
 
17
- export const listFiles = async (path?: string, page = 1, limit = 100): Promise<IGitlabFile[]> => {
18
- const { data } = await axios.get<IGitlabFile[]>(`${gitlabUrl}/repository/tree`, {
19
- headers: { 'PRIVATE-TOKEN': token },
22
+ export const listFiles = async (path: string, page = 1, limit = 100): Promise<IGitlabTreeFile[]> => {
23
+ const { data } = await axios.get<IGitlabTreeFile[]>(`${gitlabUrl}/repository/tree`, {
24
+ headers,
20
25
  params: { page, per_page: limit, ref: branch, path }
21
26
  });
22
27
  return [
@@ -25,7 +30,15 @@ export const listFiles = async (path?: string, page = 1, limit = 100): Promise<I
25
30
  ];
26
31
  };
27
32
 
28
- export const readFile = async ({ id }: Partial<IGitlabFile>) => {
33
+ export const readFile = async ({ path }: Partial<IGitlabTreeFile>) => {
34
+ const { data } = await axios.get<IGitlabFile>(`${gitlabUrl}/repository/files/${encodeURIComponent(path)}`, {
35
+ headers,
36
+ params: { ref: branch }
37
+ });
38
+ return data;
39
+ };
40
+
41
+ export const readFileRaw = async ({ id }: Partial<IGitlabTreeFile>) => {
29
42
  const { data } = await axios.get<Readable>(`${gitlabUrl}/repository/blobs/${id}/raw`, {
30
43
  headers,
31
44
  responseType: 'stream'
package/CHANGELOG.md DELETED
@@ -1,477 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- ### [0.10.4](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.10.3...v0.10.4) (2023-06-15)
6
-
7
- ### [0.10.3](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.10.2...v0.10.3) (2023-06-15)
8
-
9
-
10
- ### Features
11
-
12
- * **gitlab:** add `listFiles` and `readFile` functions ([76b4daa](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/76b4daa2eeb23d15b5a09637756fc0c7c3200aed))
13
-
14
- ### [0.10.2](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.10.1...v0.10.2) (2023-06-13)
15
-
16
-
17
- ### Features
18
-
19
- * add extra attributes to SNS and SQS ([e981692](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/e98169230a9c41ac8a2ad85104275f3c8913dc0c))
20
-
21
- ### [0.10.1](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.10.0...v0.10.1) (2023-06-08)
22
-
23
-
24
- ### Features
25
-
26
- * **ec2:** add `startInstances` function ([0ee1283](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/0ee128334b9fe2a174aafd96e40e61fc83bcda26))
27
-
28
- ## [0.10.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.9.6...v0.10.0) (2023-06-08)
29
-
30
-
31
- ### ⚠ BREAKING CHANGES
32
-
33
- * **log:** Replace `DEBUG` with more flexible `LOG_LEVEL` for logging.
34
-
35
- ### Features
36
-
37
- * **log:** use `LOG_LEVEL` instead of `DEBUG` ([85bb0ba](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/85bb0ba6704fbc2bcaf47e922cc094e94b9ce0e6))
38
- * **sqs:** add `sendMessage` function ([3d8c372](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/3d8c372abecc02cabdeb971e38fb8cc6fdad91e9))
39
-
40
- ### [0.9.6](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.9.5...v0.9.6) (2023-05-19)
41
-
42
-
43
- ### Bug Fixes
44
-
45
- * **sns:** fix disable on s3 mode ([708623e](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/708623e3e67cd7846b04ea33e00560badb5420ad))
46
-
47
- ### [0.9.5](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.9.4...v0.9.5) (2023-05-18)
48
-
49
-
50
- ### Features
51
-
52
- * **sns:** disable in local mode ([7c234aa](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/7c234aabbfbaa495a38a3e630b5618289898daf8))
53
-
54
- ### [0.9.4](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.9.3...v0.9.4) (2023-05-03)
55
-
56
-
57
- ### Features
58
-
59
- * **s3:** add function to detect if file is too large ([ceeff46](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/ceeff46035cef3fb2c67df00e56fe35020173429))
60
-
61
- ### [0.9.3](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.9.2...v0.9.3) (2023-04-28)
62
-
63
-
64
- ### Bug Fixes
65
-
66
- * **find node:** allow null values on extend ([cf95e93](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/cf95e93378e5e75af1a9321a40c9f0474887306b))
67
-
68
- ### [0.9.2](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.9.1...v0.9.2) (2023-04-27)
69
-
70
-
71
- ### Bug Fixes
72
-
73
- * **find nodes:** handle null values when extending nodes ([4fd2425](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/4fd2425a5af93351326555fb9df934833d579c14))
74
-
75
- ### [0.9.1](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.9.0...v0.9.1) (2023-04-18)
76
-
77
-
78
- ### Features
79
-
80
- * **progress:** log time since datetime ([1dc6664](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/1dc66648da05cbb4049b5c6cf46796c206e18870))
81
-
82
-
83
- ### Bug Fixes
84
-
85
- * **progress:** fix wrong step name ([2f17942](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/2f179425fd682f8850f01e0683d24b7a9737848a))
86
-
87
- ## [0.9.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.8.2...v0.9.0) (2023-04-18)
88
-
89
-
90
- ### ⚠ BREAKING CHANGES
91
-
92
- * **progress:** `@hestia-earth/api` required above version `0.18.0`
93
-
94
- ### Features
95
-
96
- * **progress:** log time for each step ([51bf21b](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/51bf21be9cd1cfa2124ff480da9c31a228632e60))
97
-
98
- ### [0.8.2](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.8.1...v0.8.2) (2023-04-06)
99
-
100
-
101
- ### Bug Fixes
102
-
103
- * **s3:** handle BOM when reading JSON files ([2c195c7](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/2c195c7860cd932ad2bccf59074a1fb83f10f419))
104
-
105
- ### [0.8.1](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.8.0...v0.8.1) (2023-02-15)
106
-
107
-
108
- ### Features
109
-
110
- * **s3:** add `deleteObjects` method ([461e355](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/461e35506ba12dd26a320fee3405552158f0daa9))
111
-
112
- ## [0.8.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.7.2...v0.8.0) (2023-01-26)
113
-
114
-
115
- ### ⚠ BREAKING CHANGES
116
-
117
- * **package:** requires min schema version `15`
118
-
119
- * **package:** update schema to `15` ([75bda49](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/75bda49c51c3b9619ab1903644fa599f6efae304))
120
-
121
- ### [0.7.2](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.7.1...v0.7.2) (2022-09-07)
122
-
123
-
124
- ### Bug Fixes
125
-
126
- * **api:** allow `-` in `originalId` ([5388498](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/5388498bfcd31faa383983e5a51dcf47a189b55c))
127
-
128
- ### [0.7.1](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.7.0...v0.7.1) (2022-09-07)
129
-
130
-
131
- ### Features
132
-
133
- * **api:** add method to format `originalId` ([f1edce5](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/f1edce5f20076406076e697661a98ad326ec3056))
134
-
135
- ## [0.7.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.6.0...v0.7.0) (2022-08-30)
136
-
137
-
138
- ### ⚠ BREAKING CHANGES
139
-
140
- * **s3:** min required schema version is `10.0.0`
141
-
142
- ### Features
143
-
144
- * **s3:** export `getObject` and `putObject` methods ([b43ba47](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/b43ba472e0775fd56beafe941858d9ebf716fdad))
145
-
146
- ## [0.6.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.14...v0.6.0) (2022-06-14)
147
-
148
-
149
- ### ⚠ BREAKING CHANGES
150
-
151
- * **package:** schema min version is `8.0.0`
152
-
153
- * **package:** update schema to `8.0.0` ([5df2387](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/5df2387053bccaea1ffe13e6adac2cf5b01d7d93))
154
-
155
- ### [0.5.14](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.13...v0.5.14) (2022-04-13)
156
-
157
-
158
- ### Features
159
-
160
- * **s3:** add `fileSize` method ([8ed75bb](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/8ed75bb27975d18d77251429930cbd371c5da988))
161
-
162
- ### [0.5.13](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.12...v0.5.13) (2022-03-31)
163
-
164
-
165
- ### Features
166
-
167
- * **utils:** allow null values when reducing ([5e7707e](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/5e7707e527624a00f311cf366e38a513d694402c))
168
-
169
- ### [0.5.12](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.11...v0.5.12) (2022-03-31)
170
-
171
- ### [0.5.11](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.10...v0.5.11) (2022-01-23)
172
-
173
-
174
- ### Bug Fixes
175
-
176
- * **find nodes:** remove debug cache search ([12a4e6d](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/12a4e6de94e49a32e82b5aa6d9cfd4beabd7f83d))
177
-
178
- ### [0.5.10](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.9...v0.5.10) (2021-08-05)
179
-
180
-
181
- ### Features
182
-
183
- * **find nodes:** enable search results caching ([d1c58df](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/d1c58df7d7dc63491944f39c71831d24bc8a33a2))
184
-
185
- ### [0.5.9](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.8...v0.5.9) (2021-07-29)
186
-
187
-
188
- ### Features
189
-
190
- * **package:** use schema `6.1.0` ([74db430](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/74db430065872e2e8ae8372a2bfb005e212e3c06))
191
-
192
- ### [0.5.8](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.7...v0.5.8) (2021-07-15)
193
-
194
-
195
- ### Bug Fixes
196
-
197
- * **find nodes:** search by `[@id](https://gitlab.com/id)` only for private nodes ([1b34bad](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/1b34bad9aeb3e399a749a766d209e0b527c48d88))
198
-
199
- ### [0.5.7](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.6...v0.5.7) (2021-07-15)
200
-
201
-
202
- ### Features
203
-
204
- * **package:** require schema `5.0.0` minimum ([8bb2787](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/8bb2787c66920e271562792670b81c7b493bac8c))
205
-
206
- ### [0.5.6](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.5...v0.5.6) (2021-07-13)
207
-
208
-
209
- ### Features
210
-
211
- * **find nodes:** add param to look for children ([9da3f52](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/9da3f5261aeab479334f01655868bddbdbf271e6))
212
-
213
- ### [0.5.5](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.4...v0.5.5) (2021-07-12)
214
-
215
-
216
- ### Features
217
-
218
- * **find nodes:** handle `DeserializationError` from ES ([39f9f05](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/39f9f05ba5e019892c978d71ecdceb58c87f774e))
219
-
220
- ### [0.5.4](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.3...v0.5.4) (2021-07-11)
221
-
222
-
223
- ### Bug Fixes
224
-
225
- * **find nodes:** keep original `id` if no existing `[@id](https://gitlab.com/id)` ([971f359](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/971f35994b5abb1d8433a734e3f6093ad8aa57b2))
226
-
227
- ### [0.5.3](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.2...v0.5.3) (2021-07-11)
228
-
229
-
230
- ### Bug Fixes
231
-
232
- * **api:** check for access token on each call ([9ed4ad0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/9ed4ad02d5af9f9df7ae9d5b7d93ac693b8343f5))
233
-
234
- ### [0.5.2](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.1...v0.5.2) (2021-07-09)
235
-
236
-
237
- ### Features
238
-
239
- * **find nodes:** enable/disable normalized search with env var ([c5ae896](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/c5ae89698f61f58ee17febbf89f0d73a26c3a72b))
240
-
241
- ### [0.5.1](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.5.0...v0.5.1) (2021-07-07)
242
-
243
-
244
- ### Bug Fixes
245
-
246
- * **find nodes:** only query by `id` for `Term` ([816bfc9](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/816bfc9f3f9b761971167824f88ed7564193c1ff))
247
-
248
- ## [0.5.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.4.0...v0.5.0) (2021-07-07)
249
-
250
-
251
- ### ⚠ BREAKING CHANGES
252
-
253
- * **es:** import `findNodes` method from `./dist/find-nodes`
254
-
255
- ### Features
256
-
257
- * **find nodes:** handle find nodes by `[@id](https://gitlab.com/id)` except `Term` ([5173bb7](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/5173bb71372959b48ea32746da008b3b6baf0898))
258
- * **find nodes:** search by `name` lowercase using `nameNormalized` field ([b68eaea](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/b68eaeabc547bb1fd8eac4e18035028d2569510b))
259
-
260
-
261
- * **es:** rename to `find-nodes.ts` ([f337ca5](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/f337ca53536105debea3a20509cbd3714f7cce4f))
262
-
263
- ## [0.4.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.3.0...v0.4.0) (2021-06-02)
264
-
265
-
266
- ### ⚠ BREAKING CHANGES
267
-
268
- * **package:** require schema `4.0.0`
269
-
270
- ### Features
271
-
272
- * **package:** use schema `4.0.0` ([eb39b0b](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/eb39b0ba5684d5fe9b1e888478283fd822a50e49))
273
-
274
- ## [0.3.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.2.5...v0.3.0) (2021-05-03)
275
-
276
-
277
- ### Features
278
-
279
- * **package:** use schema 3.2.0 ([1426e1e](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/1426e1eebb873674ecf4303ea40a2f546bb841b8))
280
-
281
- ### [0.2.5](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.2.4...v0.2.5) (2021-03-11)
282
-
283
- ### [0.2.4](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.2.3...v0.2.4) (2021-03-05)
284
-
285
-
286
- ### Features
287
-
288
- * **utils:** catch ElasticSearch errors ([f18279a](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/f18279a2f58059df528d138bb654f3cf88c4287d))
289
-
290
- ### [0.2.3](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.2.2...v0.2.3) (2021-03-01)
291
-
292
-
293
- ### Features
294
-
295
- * **es:** search by `name` lowercase using `nameNormalized` field ([f32944f](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/f32944f28d83d69a8179996ff8064712ec3259fa))
296
-
297
- ### [0.2.2](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.2.1...v0.2.2) (2021-02-22)
298
-
299
-
300
- ### Features
301
-
302
- * **es:** add debug on findNode query ([b79a14e](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/b79a14eb987906063176e19b41a4cd9f61710010))
303
-
304
- ### [0.2.1](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.2.0...v0.2.1) (2021-02-10)
305
-
306
-
307
- ### Bug Fixes
308
-
309
- * **es:** query all extendable keys ([ea90d4a](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/ea90d4ac5c034afbe6e4d0def44dae24fc7be8b5))
310
-
311
- ## [0.2.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.1.1...v0.2.0) (2021-02-09)
312
-
313
- ### [0.1.1](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.1.0...v0.1.1) (2021-02-06)
314
-
315
- ## [0.1.0](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.21...v0.1.0) (2021-02-05)
316
-
317
-
318
- ### ⚠ BREAKING CHANGES
319
-
320
- * schema version bumped to 1.0.1
321
-
322
- ### Features
323
-
324
- * update schema to 1.0.1 ([95ef6cd](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/95ef6cd1580d304c4775a086cc247701f335a66d))
325
-
326
- ### [0.0.21](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.20...v0.0.21) (2021-01-31)
327
-
328
-
329
- ### Bug Fixes
330
-
331
- * **progress:** do not rethrow error if handled ([061a2f1](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/061a2f1b9f775d282ccd39c67c9bf47efe1e695a))
332
-
333
- ### [0.0.20](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.19...v0.0.20) (2021-01-27)
334
-
335
-
336
- ### Bug Fixes
337
-
338
- * **s3:** decode key when accessing s3 objects ([980bd9a](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/980bd9ab398bd34aa75df7c962b7ac28f07120a5))
339
-
340
- ### [0.0.19](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.18...v0.0.19) (2021-01-25)
341
-
342
-
343
- ### Features
344
-
345
- * **es:** find existing Term by their `id` ([e4e4f7d](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/e4e4f7d5655b796e6ee629f02eb9ba047dad18e9))
346
-
347
- ### [0.0.18](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.17...v0.0.18) (2021-01-18)
348
-
349
-
350
- ### Bug Fixes
351
-
352
- * **package:** add missing lodash.get ([da4cc0e](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/da4cc0e0f50e52bd7254a670163787c3d6667b6d))
353
-
354
- ### [0.0.17](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.16...v0.0.17) (2021-01-18)
355
-
356
-
357
- ### Features
358
-
359
- * **es:** add method to query es from node data ([ae45621](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/ae4562124218d3631de83025d75a7899dc0b02fe))
360
-
361
- ### [0.0.16](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.15...v0.0.16) (2021-01-08)
362
-
363
-
364
- ### Bug Fixes
365
-
366
- * **lambda:** set Payload as string ([5357127](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/535712735d34aa314161dc474ee54a06f07f183e))
367
-
368
- ### [0.0.15](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.14...v0.0.15) (2021-01-08)
369
-
370
-
371
- ### Features
372
-
373
- * **utils:** add functions convert functionParam to s3/sns event ([881e11f](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/881e11f21aa80b61ed69b279d6372bd51194f4b4))
374
-
375
- ### [0.0.14](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.13...v0.0.14) (2020-12-21)
376
-
377
-
378
- ### Bug Fixes
379
-
380
- * **utils:** revert change broken annoying IFunctionParam ([2b15702](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/2b15702f360ebfe5346fc3bc45d56fbe8eb18ae2))
381
-
382
- ### [0.0.13](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.12...v0.0.13) (2020-12-21)
383
-
384
-
385
- ### Bug Fixes
386
-
387
- * use partial function params everywhere ([2c6d634](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/2c6d6346af93a3c7074a07d61fde8dbb3f4fdeeb))
388
-
389
- ### [0.0.12](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.11...v0.0.12) (2020-12-21)
390
-
391
-
392
- ### Bug Fixes
393
-
394
- * **utils:** set timestamp in record only if exists ([5adb153](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/5adb153148f6804dc4221c72347d397a676ccbd6))
395
-
396
- ### [0.0.11](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.10...v0.0.11) (2020-12-21)
397
-
398
-
399
- ### Features
400
-
401
- * **utils:** parse timestamp for sns/s3 events ([39b16a4](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/39b16a438dcb5f8c5efd32e6b9a8259ccc798c84))
402
-
403
-
404
- ### Bug Fixes
405
-
406
- * **utils:** handle `date` in `isUndefined` ([265a9a8](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/265a9a82ade70fac2ec9dc641b66a168cf8ac818))
407
-
408
- ### [0.0.10](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.9...v0.0.10) (2020-12-11)
409
-
410
-
411
- ### Features
412
-
413
- * **requests:** add get, post and put methods ([1347588](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/13475888ebc9def2b0ba29d62fb65f095d08e3cd))
414
-
415
- ### [0.0.9](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.8...v0.0.9) (2020-12-11)
416
-
417
-
418
- ### Bug Fixes
419
-
420
- * **index:** add missing lambda file ([7beeb2c](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/7beeb2ce84345ae4b46ea906d9e0691b4ead6ff4))
421
-
422
- ### [0.0.8](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.7...v0.0.8) (2020-12-11)
423
-
424
-
425
- ### Features
426
-
427
- * **lambda:** add invoke method ([cfea05f](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/cfea05fad2a13810297d3259d25de313957fa9af))
428
-
429
- ### [0.0.7](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.6...v0.0.7) (2020-12-10)
430
-
431
-
432
- ### Features
433
-
434
- * **s3:** add function to list folder ([cc2f5a2](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/cc2f5a20198a9f434dcf63890ff0a75658155359))
435
-
436
- ### [0.0.6](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.5...v0.0.6) (2020-11-19)
437
-
438
-
439
- ### Bug Fixes
440
-
441
- * **progress:** override bucket from func params ([865bcbb](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/865bcbb7b9db13e074b241165c716a0099b61885))
442
-
443
- ### [0.0.5](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.4...v0.0.5) (2020-11-19)
444
-
445
-
446
- ### Bug Fixes
447
-
448
- * **progress:** override bucket des using params ([b3bbd19](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/b3bbd19b3e42900d1949ce9decbe49ed612e7c3d))
449
-
450
- ### [0.0.4](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.3...v0.0.4) (2020-11-18)
451
-
452
-
453
- ### Features
454
-
455
- * **s3:** instantiate s3 on method call ([4bcaafd](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/4bcaafd5b2bbb001c743dd1b189e3187693b8a95))
456
-
457
- ### [0.0.3](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.2...v0.0.3) (2020-11-18)
458
-
459
-
460
- ### Features
461
-
462
- * **s3:** handle type inference for loadJSON ([7f86b5d](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/7f86b5d0317fbfa58645910c7e19277292e85431))
463
-
464
- ### [0.0.2](https://gitlab.com/hestia-earth/hestia-pipeline-utils/compare/v0.0.1...v0.0.2) (2020-11-18)
465
-
466
-
467
- ### Bug Fixes
468
-
469
- * fix wrong typings file ([659b6d9](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/659b6d95da97090bff8485e3e35d1387ee562751))
470
-
471
- ### 0.0.1 (2020-11-18)
472
-
473
-
474
- ### Features
475
-
476
- * add files from pipeline ([e070ef4](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/e070ef407643128ff68e217f2de361c0f9dbdc89))
477
- * **s3:** handle delete object locally ([fc3f20d](https://gitlab.com/hestia-earth/hestia-pipeline-utils/commit/fc3f20d0017ba4970dc1f5812f5a2a290b3ba1eb))