@heroku/buildpack-registry 1.0.0 → 1.0.2-beta.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/README.md +11 -0
- package/dist/buildpack-registry-api.d.ts +70 -0
- package/dist/buildpack-registry-api.js +55 -0
- package/dist/buildpack-registry.d.ts +36 -0
- package/dist/buildpack-registry.js +229 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/package.json +15 -16
package/README.md
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
# buildpack-registry.js
|
|
2
|
+
|
|
2
3
|
Node.js/TypeScript library for interacting with the [Heroku Buildpack Registry](https://devcenter.heroku.com/articles/buildpack-registry).
|
|
4
|
+
|
|
5
|
+
## Related
|
|
6
|
+
|
|
7
|
+
If you are looking for the heroku CLI plugin:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
$ heroku plugins:install @heroku-cli/plugin-buildpack-registry
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
It is at a different (private) repo [`@heroku-cli/plugin-buildpack-registry`](https://github.com/heroku/plugin-buildpack-registry). That plugin uses this library to interact with the buildpack registry.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Headers, Response } from 'node-fetch';
|
|
2
|
+
export { Response } from 'node-fetch';
|
|
3
|
+
export type IBody = {
|
|
4
|
+
[property: string]: string;
|
|
5
|
+
};
|
|
6
|
+
export type RevisionStatus = 'pending' | 'published' | 'failed';
|
|
7
|
+
export type RevisionBody = {
|
|
8
|
+
id: string;
|
|
9
|
+
buildpack_id: string;
|
|
10
|
+
published_by_email?: string;
|
|
11
|
+
ref?: string;
|
|
12
|
+
tarball?: string;
|
|
13
|
+
status: RevisionStatus;
|
|
14
|
+
error?: string;
|
|
15
|
+
created_at: Date;
|
|
16
|
+
updated_at: Date;
|
|
17
|
+
release: number;
|
|
18
|
+
checksum: string;
|
|
19
|
+
published_by_id: string;
|
|
20
|
+
license: string;
|
|
21
|
+
};
|
|
22
|
+
export type ReadmeBody = {
|
|
23
|
+
content?: string;
|
|
24
|
+
encoding?: string;
|
|
25
|
+
sha?: string;
|
|
26
|
+
};
|
|
27
|
+
export type Category = 'languages' | 'tools' | 'packages';
|
|
28
|
+
export type BuildpackBody = {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
created_at: Date;
|
|
32
|
+
updated_at: Date;
|
|
33
|
+
description: string;
|
|
34
|
+
category: Category;
|
|
35
|
+
two_factor_authentication: boolean;
|
|
36
|
+
blob_url: string;
|
|
37
|
+
source: {
|
|
38
|
+
type: 'github';
|
|
39
|
+
owner: string;
|
|
40
|
+
repo: string;
|
|
41
|
+
};
|
|
42
|
+
support: {
|
|
43
|
+
method: 'github' | 'email' | 'website' | 'unsupported';
|
|
44
|
+
address: string | null;
|
|
45
|
+
};
|
|
46
|
+
namespace: string;
|
|
47
|
+
logo: {
|
|
48
|
+
small: {
|
|
49
|
+
url: string;
|
|
50
|
+
width: number;
|
|
51
|
+
height: number;
|
|
52
|
+
};
|
|
53
|
+
medium: {
|
|
54
|
+
url: string;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export type HeaderOptions = {
|
|
61
|
+
token?: string;
|
|
62
|
+
secondFactor?: string;
|
|
63
|
+
};
|
|
64
|
+
export declare class BuildpackRegistryApi {
|
|
65
|
+
static url(): string;
|
|
66
|
+
static create(): BuildpackRegistryApi;
|
|
67
|
+
headers(options?: HeaderOptions): Headers;
|
|
68
|
+
post(path: string, body?: IBody, headers?: Headers): Promise<Response>;
|
|
69
|
+
get(path: string): Promise<Response>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildpackRegistryApi = exports.Response = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const node_fetch_1 = tslib_1.__importStar(require("node-fetch"));
|
|
6
|
+
var node_fetch_2 = require("node-fetch");
|
|
7
|
+
Object.defineProperty(exports, "Response", { enumerable: true, get: function () { return node_fetch_2.Response; } });
|
|
8
|
+
class BuildpackRegistryApi {
|
|
9
|
+
static url() {
|
|
10
|
+
if (process.env.HEROKU_BUILDPACK_REGISTRY_URL === undefined) {
|
|
11
|
+
return 'https://buildpack-registry.heroku.com';
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return process.env.HEROKU_BUILDPACK_REGISTRY_URL;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
static create() {
|
|
18
|
+
return new BuildpackRegistryApi();
|
|
19
|
+
}
|
|
20
|
+
headers(options = {}) {
|
|
21
|
+
const defaultHeaders = {
|
|
22
|
+
Accept: 'application/vnd.heroku+json; version=3.buildpack-registry',
|
|
23
|
+
'Content-Type': 'application/json'
|
|
24
|
+
};
|
|
25
|
+
if (options.token !== undefined) {
|
|
26
|
+
defaultHeaders.Authorization = `Bearer ${options.token}`;
|
|
27
|
+
}
|
|
28
|
+
if (options.secondFactor) {
|
|
29
|
+
defaultHeaders['Heroku-Two-Factor-Code'] = options.secondFactor;
|
|
30
|
+
}
|
|
31
|
+
if (process.env.HEROKU_HEADERS) {
|
|
32
|
+
const herokuHeaders = JSON.parse(process.env.HEROKU_HEADERS);
|
|
33
|
+
return new node_fetch_1.Headers(Object.assign(Object.assign({}, defaultHeaders), { herokuHeaders }));
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return new node_fetch_1.Headers(defaultHeaders);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async post(path, body, headers) {
|
|
40
|
+
const options = {
|
|
41
|
+
method: 'POST',
|
|
42
|
+
headers: headers ? headers : this.headers(),
|
|
43
|
+
};
|
|
44
|
+
if (body) {
|
|
45
|
+
options.body = JSON.stringify(body);
|
|
46
|
+
}
|
|
47
|
+
return (0, node_fetch_1.default)(`${BuildpackRegistryApi.url()}${path}`, options);
|
|
48
|
+
}
|
|
49
|
+
async get(path) {
|
|
50
|
+
return (0, node_fetch_1.default)(`${BuildpackRegistryApi.url()}${path}`, {
|
|
51
|
+
headers: this.headers()
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.BuildpackRegistryApi = BuildpackRegistryApi;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Result } from 'true-myth';
|
|
2
|
+
import { BuildpackBody, BuildpackRegistryApi as Api, Category, ReadmeBody, Response, RevisionBody, RevisionStatus } from './buildpack-registry-api';
|
|
3
|
+
export { BuildpackBody, Category, ReadmeBody, RevisionBody, RevisionStatus };
|
|
4
|
+
export type BuildpackSlugResult = {
|
|
5
|
+
result: boolean;
|
|
6
|
+
error?: string;
|
|
7
|
+
};
|
|
8
|
+
export type ResponseError = {
|
|
9
|
+
status: number;
|
|
10
|
+
path: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
export type InfoData = {
|
|
14
|
+
license: string;
|
|
15
|
+
category?: string;
|
|
16
|
+
description: string;
|
|
17
|
+
readme?: string;
|
|
18
|
+
support?: string;
|
|
19
|
+
source?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare class BuildpackRegistry {
|
|
22
|
+
static isValidBuildpackSlug(buildpack: string): Result<boolean, string>;
|
|
23
|
+
api: Api;
|
|
24
|
+
constructor();
|
|
25
|
+
requiresTwoFactor(buildpack: string): Promise<Result<boolean, ResponseError>>;
|
|
26
|
+
publish(buildpack: string, ref: string, token: string, secondFactor?: string): Promise<Result<RevisionBody, ResponseError>>;
|
|
27
|
+
rollback(buildpack: string, token: string, secondFactor?: string): Promise<Result<RevisionBody, ResponseError>>;
|
|
28
|
+
search(namespace?: string, name?: string, description?: string): Promise<Result<BuildpackBody[], ResponseError>>;
|
|
29
|
+
info(buildpack: string): Promise<Result<InfoData, ResponseError>>;
|
|
30
|
+
archive(buildpack: string, token: string, secondFactor?: string): Promise<Result<BuildpackBody, ResponseError>>;
|
|
31
|
+
revisionInfo(buildpack: string, revision_id: string): Promise<Result<RevisionBody, ResponseError>>;
|
|
32
|
+
buildpackExists(buildpack: string): Promise<Response>;
|
|
33
|
+
listVersions(buildpack: string): Promise<Result<RevisionBody[], ResponseError>>;
|
|
34
|
+
delay(ms: number): Promise<unknown>;
|
|
35
|
+
waitForRelease(buildpack_id: string, revision_id: string): Promise<RevisionStatus>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildpackRegistry = void 0;
|
|
4
|
+
const true_myth_1 = require("true-myth");
|
|
5
|
+
const buildpack_registry_api_1 = require("./buildpack-registry-api");
|
|
6
|
+
const BUILDPACK_FORMATTING_MESSAGE = "To specify a buildpack, please format it like the following: namespace/name (e.g. heroku/ruby). Also names can only contain letters, numbers, '_', and '-'.";
|
|
7
|
+
class BuildpackRegistry {
|
|
8
|
+
static isValidBuildpackSlug(buildpack) {
|
|
9
|
+
const nameParts = buildpack.split('/');
|
|
10
|
+
if (nameParts.length === 2 && nameParts[0].length > 0 && nameParts[1].length > 0 && /^[a-z0-9][a-z0-9_\-]*$/i.exec(nameParts[1])) {
|
|
11
|
+
return true_myth_1.Result.ok(true);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return true_myth_1.Result.err(BUILDPACK_FORMATTING_MESSAGE);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
constructor() {
|
|
18
|
+
this.api = buildpack_registry_api_1.BuildpackRegistryApi.create();
|
|
19
|
+
}
|
|
20
|
+
async requiresTwoFactor(buildpack) {
|
|
21
|
+
const path = `/buildpacks/${encodeURIComponent(buildpack)}`;
|
|
22
|
+
const response = await this.api.get(path);
|
|
23
|
+
if (response.status === 200) {
|
|
24
|
+
const body = await response.json();
|
|
25
|
+
return true_myth_1.Result.ok(body.two_factor_authentication);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
return true_myth_1.Result.err({
|
|
29
|
+
status: response.status,
|
|
30
|
+
path,
|
|
31
|
+
description: await response.text()
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
async publish(buildpack, ref, token, secondFactor) {
|
|
36
|
+
const options = { token };
|
|
37
|
+
if (secondFactor !== undefined) {
|
|
38
|
+
options.secondFactor = secondFactor;
|
|
39
|
+
}
|
|
40
|
+
const path = `/buildpacks/${encodeURIComponent(buildpack)}/revisions`;
|
|
41
|
+
const response = await this.api.post(path, { ref }, this.api.headers(options));
|
|
42
|
+
if (response.status >= 200 && response.status < 300) {
|
|
43
|
+
return true_myth_1.Result.ok(await response.json());
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return true_myth_1.Result.err({
|
|
47
|
+
status: response.status,
|
|
48
|
+
path,
|
|
49
|
+
description: await response.text()
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
async rollback(buildpack, token, secondFactor) {
|
|
54
|
+
const options = { token };
|
|
55
|
+
if (secondFactor !== undefined) {
|
|
56
|
+
options.secondFactor = secondFactor;
|
|
57
|
+
}
|
|
58
|
+
const path = `/buildpacks/${encodeURIComponent(buildpack)}/actions/rollback`;
|
|
59
|
+
const response = await this.api.post(path, undefined, this.api.headers(options));
|
|
60
|
+
if (response.status === 200) {
|
|
61
|
+
return true_myth_1.Result.ok(await response.json());
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
return true_myth_1.Result.err({
|
|
65
|
+
status: response.status,
|
|
66
|
+
path,
|
|
67
|
+
description: await response.text(),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
async search(namespace, name, description) {
|
|
72
|
+
let queryParams = [];
|
|
73
|
+
let queryString = '';
|
|
74
|
+
if (namespace) {
|
|
75
|
+
queryParams = namespace.split(',')
|
|
76
|
+
.map(namespace => `in[namespace][]=${namespace}`);
|
|
77
|
+
}
|
|
78
|
+
if (name) {
|
|
79
|
+
queryParams = queryParams.concat(name.split(',')
|
|
80
|
+
.map(name => `in[name][]=${name}`));
|
|
81
|
+
}
|
|
82
|
+
if (description) {
|
|
83
|
+
queryParams = queryParams.concat(`like[description]=${encodeURIComponent(description)}`);
|
|
84
|
+
}
|
|
85
|
+
if (queryParams.length > 0) {
|
|
86
|
+
queryString = `?${queryParams.join('&')}`;
|
|
87
|
+
}
|
|
88
|
+
const path = `/buildpacks${queryString}`;
|
|
89
|
+
const response = await this.api.get(path);
|
|
90
|
+
if (response.status === 200) {
|
|
91
|
+
return true_myth_1.Result.ok(await response.json());
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
return true_myth_1.Result.err({
|
|
95
|
+
status: response.status,
|
|
96
|
+
path,
|
|
97
|
+
description: await response.text(),
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
async info(buildpack) {
|
|
102
|
+
let path = `/buildpacks/${encodeURIComponent(buildpack)}`;
|
|
103
|
+
let response = await this.api.get(path);
|
|
104
|
+
if (response.status !== 200) {
|
|
105
|
+
return true_myth_1.Result.err({
|
|
106
|
+
status: response.status,
|
|
107
|
+
path,
|
|
108
|
+
description: await response.text(),
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
const bp_body = await response.json();
|
|
112
|
+
const result = await this.listVersions(buildpack);
|
|
113
|
+
if (result.isErr()) {
|
|
114
|
+
return true_myth_1.Result.err(result.unsafelyUnwrapErr());
|
|
115
|
+
}
|
|
116
|
+
const revisions = result.unsafelyUnwrap();
|
|
117
|
+
const revision = revisions.sort((a, b) => {
|
|
118
|
+
return a.release > b.release ? -1 : 1;
|
|
119
|
+
})[0];
|
|
120
|
+
path = `/buildpacks/${encodeURIComponent(buildpack)}/readme`;
|
|
121
|
+
response = await this.api.get(path);
|
|
122
|
+
if (response.status !== 200) {
|
|
123
|
+
return true_myth_1.Result.err({
|
|
124
|
+
status: response.status,
|
|
125
|
+
path,
|
|
126
|
+
description: await response.text()
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
const readme = await response.json();
|
|
130
|
+
const data = {
|
|
131
|
+
description: bp_body.description,
|
|
132
|
+
category: bp_body.category,
|
|
133
|
+
license: revision.license
|
|
134
|
+
};
|
|
135
|
+
if (bp_body.support.method === 'email') {
|
|
136
|
+
data.support = bp_body.support.address.replace('mailto:', '');
|
|
137
|
+
}
|
|
138
|
+
else if (bp_body.support.method === 'github') {
|
|
139
|
+
data.support = `https://github.com/${bp_body.source.owner}/${bp_body.source.repo}/issues`;
|
|
140
|
+
}
|
|
141
|
+
else if (bp_body.support.method === 'unsupported') {
|
|
142
|
+
data.support = 'Unsupported by author';
|
|
143
|
+
}
|
|
144
|
+
else {
|
|
145
|
+
data.support = bp_body.support.address;
|
|
146
|
+
}
|
|
147
|
+
if (bp_body.source.type === 'github') {
|
|
148
|
+
data.source = `https://github.com/${bp_body.source.owner}/${bp_body.source.repo}`;
|
|
149
|
+
}
|
|
150
|
+
if (readme.content) {
|
|
151
|
+
data.readme = `\n${Buffer.from(readme.content, readme.encoding).toString()}`;
|
|
152
|
+
}
|
|
153
|
+
return true_myth_1.Result.ok(data);
|
|
154
|
+
}
|
|
155
|
+
async archive(buildpack, token, secondFactor) {
|
|
156
|
+
const options = { token };
|
|
157
|
+
if (secondFactor !== undefined) {
|
|
158
|
+
options.secondFactor = secondFactor;
|
|
159
|
+
}
|
|
160
|
+
const path = `/buildpacks/${encodeURIComponent(buildpack)}/actions/archive`;
|
|
161
|
+
const response = await this.api.post(path, undefined, this.api.headers(options));
|
|
162
|
+
if (response.status === 200) {
|
|
163
|
+
return true_myth_1.Result.ok(await response.json());
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
return true_myth_1.Result.err({
|
|
167
|
+
status: response.status,
|
|
168
|
+
path,
|
|
169
|
+
description: await response.text(),
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
async revisionInfo(buildpack, revision_id) {
|
|
174
|
+
const path = `/buildpacks/${encodeURIComponent(buildpack)}/revisions/${encodeURIComponent(revision_id)}`;
|
|
175
|
+
const response = await this.api.get(path);
|
|
176
|
+
if (response.status === 200) {
|
|
177
|
+
return true_myth_1.Result.ok(await response.json());
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
return true_myth_1.Result.err({
|
|
181
|
+
status: response.status,
|
|
182
|
+
path,
|
|
183
|
+
description: await response.text(),
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
async buildpackExists(buildpack) {
|
|
188
|
+
return this.api.get(`/buildpacks/${encodeURIComponent(buildpack)}`);
|
|
189
|
+
}
|
|
190
|
+
async listVersions(buildpack) {
|
|
191
|
+
const path = `/buildpacks/${encodeURIComponent(buildpack)}/revisions`;
|
|
192
|
+
const response = await this.api.get(path);
|
|
193
|
+
if (response.status === 200) {
|
|
194
|
+
return true_myth_1.Result.ok(await response.json());
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
return true_myth_1.Result.err({
|
|
198
|
+
status: response.status,
|
|
199
|
+
path,
|
|
200
|
+
description: await response.text()
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
async delay(ms) {
|
|
205
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
206
|
+
}
|
|
207
|
+
async waitForRelease(buildpack_id, revision_id) {
|
|
208
|
+
let status = 'failed';
|
|
209
|
+
let status_count = 0;
|
|
210
|
+
const running = true;
|
|
211
|
+
while (running) {
|
|
212
|
+
status_count += 1;
|
|
213
|
+
const result = await this.revisionInfo(buildpack_id, revision_id);
|
|
214
|
+
if (result.isOk()) {
|
|
215
|
+
const revision = result.unsafelyUnwrap();
|
|
216
|
+
status = revision.status;
|
|
217
|
+
if (status !== 'pending') {
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
if (status_count === 60) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
await this.delay(2000);
|
|
225
|
+
}
|
|
226
|
+
return status;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
exports.BuildpackRegistry = BuildpackRegistry;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BuildpackBody, BuildpackRegistry, BuildpackSlugResult, Category, InfoData, ReadmeBody, ResponseError, RevisionBody, RevisionStatus, } from './buildpack-registry';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BuildpackRegistry = void 0;
|
|
4
|
+
var buildpack_registry_1 = require("./buildpack-registry");
|
|
5
|
+
Object.defineProperty(exports, "BuildpackRegistry", { enumerable: true, get: function () { return buildpack_registry_1.BuildpackRegistry; } });
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heroku/buildpack-registry",
|
|
3
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "1.0.2-beta.0",
|
|
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",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
8
|
+
"prepare": "tsc",
|
|
9
|
+
"lint": "eslint .",
|
|
10
|
+
"test": "vitest run --coverage",
|
|
11
|
+
"posttest": "tsc -p test --noEmit && npm run lint"
|
|
11
12
|
},
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
@@ -20,24 +21,22 @@
|
|
|
20
21
|
},
|
|
21
22
|
"homepage": "https://github.com/heroku/buildpack-registry.js#readme",
|
|
22
23
|
"devDependencies": {
|
|
23
|
-
"@types/
|
|
24
|
-
"@types/mocha": "^5.2.5",
|
|
25
|
-
"@types/nock": "^9.3.0",
|
|
26
|
-
"@types/node": "^10.7.1",
|
|
24
|
+
"@types/node": "^20.14.8",
|
|
27
25
|
"@types/node-fetch": "^2.1.2",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
26
|
+
"@vitest/coverage-v8": "^4.0.0",
|
|
27
|
+
"eslint": "^9.0.0",
|
|
28
|
+
"nock": "^13.3",
|
|
29
|
+
"typescript": "^5.7",
|
|
30
|
+
"typescript-eslint": "^8.0.0",
|
|
31
|
+
"vitest": "^4.0.0"
|
|
34
32
|
},
|
|
35
33
|
"dependencies": {
|
|
36
34
|
"node-fetch": "^2.2.0",
|
|
37
|
-
"true-myth": "^2.0.0"
|
|
35
|
+
"true-myth": "^2.0.0",
|
|
36
|
+
"tslib": "^2.8.1"
|
|
38
37
|
},
|
|
39
38
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
39
|
+
"node": ">= 20"
|
|
41
40
|
},
|
|
42
41
|
"files": [
|
|
43
42
|
"/dist"
|