@heroku/buildpack-registry 1.0.3 → 1.0.4
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.
|
@@ -110,10 +110,10 @@ class BuildpackRegistry {
|
|
|
110
110
|
}
|
|
111
111
|
const bp_body = await response.json();
|
|
112
112
|
const result = await this.listVersions(buildpack);
|
|
113
|
-
if (result.isErr
|
|
114
|
-
return true_myth_1.Result.err(result.
|
|
113
|
+
if (result.isErr) {
|
|
114
|
+
return true_myth_1.Result.err(result.error);
|
|
115
115
|
}
|
|
116
|
-
const revisions = result.
|
|
116
|
+
const revisions = result.value;
|
|
117
117
|
const revision = revisions.sort((a, b) => {
|
|
118
118
|
return a.release > b.release ? -1 : 1;
|
|
119
119
|
})[0];
|
|
@@ -211,8 +211,8 @@ class BuildpackRegistry {
|
|
|
211
211
|
while (running) {
|
|
212
212
|
status_count += 1;
|
|
213
213
|
const result = await this.revisionInfo(buildpack_id, revision_id);
|
|
214
|
-
if (result.isOk
|
|
215
|
-
const revision = result.
|
|
214
|
+
if (result.isOk) {
|
|
215
|
+
const revision = result.value;
|
|
216
216
|
status = revision.status;
|
|
217
217
|
if (status !== 'pending') {
|
|
218
218
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroku/buildpack-registry",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Node.js/TypeScript library for interfacing with the Heroku Buildpack Registry",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@types/node": "^20.14.8",
|
|
25
25
|
"@types/node-fetch": "^2.1.2",
|
|
26
26
|
"@vitest/coverage-v8": "^4.0.0",
|
|
27
|
-
"eslint": "^
|
|
27
|
+
"eslint": "^10.7.0",
|
|
28
28
|
"nock": "^13.3",
|
|
29
29
|
"typescript": "^5.7",
|
|
30
30
|
"typescript-eslint": "^8.0.0",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"node-fetch": "^2.2.0",
|
|
35
|
-
"true-myth": "^
|
|
35
|
+
"true-myth": "^9.4.0",
|
|
36
36
|
"tslib": "^2.8.1"
|
|
37
37
|
},
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">= 20"
|
|
39
|
+
"node": ">= 20.19"
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
42
42
|
"/dist"
|