clearpostcode 0.0.0-stage → 2.0.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/LICENSE +16 -0
- package/README.md +207 -2
- package/dist/cjs/addresses.d.ts +28 -0
- package/dist/cjs/addresses.js +64 -0
- package/dist/cjs/browser.d.ts +39 -0
- package/dist/cjs/browser.js +54 -0
- package/dist/cjs/client.d.ts +146 -0
- package/dist/cjs/client.js +188 -0
- package/dist/cjs/errors.d.ts +73 -0
- package/dist/cjs/errors.js +111 -0
- package/dist/cjs/generated.d.ts +546 -0
- package/dist/cjs/generated.js +63 -0
- package/dist/cjs/http.d.ts +62 -0
- package/dist/cjs/http.js +173 -0
- package/dist/cjs/index.d.ts +24 -0
- package/dist/cjs/index.js +54 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/page.d.ts +20 -0
- package/dist/cjs/page.js +39 -0
- package/dist/cjs/version.d.ts +2 -0
- package/dist/cjs/version.js +24 -0
- package/dist/esm/addresses.d.ts +28 -0
- package/dist/esm/addresses.js +47 -0
- package/dist/esm/browser.d.ts +39 -0
- package/dist/esm/browser.js +33 -0
- package/dist/esm/client.d.ts +146 -0
- package/dist/esm/client.js +169 -0
- package/dist/esm/errors.d.ts +73 -0
- package/dist/esm/errors.js +92 -0
- package/dist/esm/generated.d.ts +546 -0
- package/dist/esm/generated.js +42 -0
- package/dist/esm/http.d.ts +62 -0
- package/dist/esm/http.js +161 -0
- package/dist/esm/index.d.ts +24 -0
- package/dist/esm/index.js +37 -0
- package/dist/esm/page.d.ts +20 -0
- package/dist/esm/page.js +17 -0
- package/dist/esm/version.d.ts +2 -0
- package/dist/esm/version.js +2 -0
- package/package.json +80 -4
package/dist/esm/http.js
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { OPERATIONS } from "./generated.js";
|
|
2
|
+
import { APIConnectionError, APIError, APITimeoutError, errorFor } from "./errors.js";
|
|
3
|
+
const RETRY_STATUS = new Set([408, 429, 500, 502, 503, 504]);
|
|
4
|
+
/** A POST (a bulk call) is retried only on answers that say nothing was billed: never after a timeout or a dropped
|
|
5
|
+
* connection, when the API may have answered and billed it. */
|
|
6
|
+
const RETRY_POST = new Set([429, 503]);
|
|
7
|
+
/** Seconds from a Retry-After header: delta-seconds or an HTTP date. */
|
|
8
|
+
function retryAfterOf(h) {
|
|
9
|
+
const v = h.get("retry-after");
|
|
10
|
+
if (v === null)
|
|
11
|
+
return null;
|
|
12
|
+
const n = Number(v);
|
|
13
|
+
if (Number.isFinite(n))
|
|
14
|
+
return Math.max(0, n);
|
|
15
|
+
const at = Date.parse(v);
|
|
16
|
+
return Number.isNaN(at) ? null : Math.max(0, (at - Date.now()) / 1000);
|
|
17
|
+
}
|
|
18
|
+
const intOf = (v) => (v == null || v === "" || !Number.isFinite(Number(v)) ? null : Number(v));
|
|
19
|
+
/** RateLimit-Limit/-Remaining/-Reset, with the policy name and any gaps filled from RateLimit and RateLimit-Policy. */
|
|
20
|
+
export function rateLimitOf(h) {
|
|
21
|
+
const structured = h.get("ratelimit");
|
|
22
|
+
const m = structured?.match(/^\s*"([^"]+)"\s*;(.*)$/);
|
|
23
|
+
const item = (s, k) => s?.match(new RegExp(`(?:^|;)\\s*${k}=(\\d+)`))?.[1];
|
|
24
|
+
const policy = m?.[1] ?? null;
|
|
25
|
+
const q = policy ? h.get("ratelimit-policy")?.split(",").find((p) => p.trim().startsWith(`"${policy}"`)) : undefined;
|
|
26
|
+
const r = {
|
|
27
|
+
policy,
|
|
28
|
+
limit: intOf(h.get("ratelimit-limit")) ?? intOf(item(q, "q")),
|
|
29
|
+
remaining: intOf(h.get("ratelimit-remaining")) ?? intOf(item(m?.[2], "r")),
|
|
30
|
+
reset: intOf(h.get("ratelimit-reset")) ?? intOf(item(m?.[2], "t")),
|
|
31
|
+
};
|
|
32
|
+
return r.policy === null && r.limit === null && r.remaining === null && r.reset === null ? null : r;
|
|
33
|
+
}
|
|
34
|
+
/** Wait ms, or until the signal aborts (then throw its reason). */
|
|
35
|
+
function sleep(ms, signal) {
|
|
36
|
+
return new Promise((resolve, reject) => {
|
|
37
|
+
if (signal?.aborted)
|
|
38
|
+
return reject(signal.reason);
|
|
39
|
+
const t = setTimeout(done, ms);
|
|
40
|
+
function done() {
|
|
41
|
+
signal?.removeEventListener("abort", stop);
|
|
42
|
+
resolve();
|
|
43
|
+
}
|
|
44
|
+
function stop() {
|
|
45
|
+
clearTimeout(t);
|
|
46
|
+
reject(signal?.reason);
|
|
47
|
+
}
|
|
48
|
+
signal?.addEventListener("abort", stop, { once: true });
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/** Exponential backoff with jitter: about 0.5 s, 1 s, 2 s… up to 8 s. */
|
|
52
|
+
const backoff = (attempt) => Math.min(8000, 500 * 2 ** attempt) * (0.5 + Math.random() / 2);
|
|
53
|
+
export class Transport {
|
|
54
|
+
config;
|
|
55
|
+
constructor(config) {
|
|
56
|
+
this.config = config;
|
|
57
|
+
}
|
|
58
|
+
/** The URL for an operation: path parameters encoded into the path, then the query it takes. */
|
|
59
|
+
url(id, call) {
|
|
60
|
+
const op = OPERATIONS[id];
|
|
61
|
+
const path = op.path.replace(/\{(\w+)\}/g, (_, k) => {
|
|
62
|
+
const v = String(call.path?.[k] ?? "").trim();
|
|
63
|
+
if (!v)
|
|
64
|
+
throw new TypeError(`${id} needs a ${k}`);
|
|
65
|
+
return encodeURIComponent(v);
|
|
66
|
+
});
|
|
67
|
+
const q = new URLSearchParams();
|
|
68
|
+
for (const [k, v] of Object.entries(call.query ?? {})) {
|
|
69
|
+
if (v === undefined || v === null)
|
|
70
|
+
continue;
|
|
71
|
+
if (!op.query.includes(k))
|
|
72
|
+
throw new TypeError(`${id} takes no "${k}" parameter (it takes: ${op.query.join(", ") || "none"})`);
|
|
73
|
+
q.set(k, String(v));
|
|
74
|
+
}
|
|
75
|
+
if (this.config.key && this.config.keyInQuery)
|
|
76
|
+
q.set("key", this.config.key);
|
|
77
|
+
const s = q.toString();
|
|
78
|
+
return `${this.config.baseUrl}${path}${s ? `?${s}` : ""}`;
|
|
79
|
+
}
|
|
80
|
+
/** Make the call, retrying 429s, 5xx answers, timeouts and dropped connections with backoff (a POST: 429 and 503
|
|
81
|
+
* only). No wait is longer than maxRetryDelay: a longer Retry-After is thrown at once. */
|
|
82
|
+
async request(id, call = {}, options = {}) {
|
|
83
|
+
const url = this.url(id, call);
|
|
84
|
+
const headers = { accept: "application/json", ...this.config.headers };
|
|
85
|
+
if (this.config.key && !this.config.keyInQuery)
|
|
86
|
+
headers["x-api-key"] = this.config.key;
|
|
87
|
+
if (call.body !== undefined)
|
|
88
|
+
headers["content-type"] = "application/json";
|
|
89
|
+
const method = OPERATIONS[id].method;
|
|
90
|
+
// redirect: "error": the key header never follows a redirect to another host.
|
|
91
|
+
const init = { method, headers, redirect: "error", body: call.body === undefined ? undefined : JSON.stringify(call.body) };
|
|
92
|
+
const retries = options.maxRetries ?? this.config.maxRetries;
|
|
93
|
+
for (let attempt = 0;; attempt++) {
|
|
94
|
+
let wait;
|
|
95
|
+
try {
|
|
96
|
+
const { response, text } = await this.attempt(url, init, options);
|
|
97
|
+
if (response.ok) {
|
|
98
|
+
let json;
|
|
99
|
+
try {
|
|
100
|
+
json = JSON.parse(text);
|
|
101
|
+
}
|
|
102
|
+
catch {
|
|
103
|
+
throw new APIError(response.status, { detail: "The answer was not JSON." }, response.headers, null);
|
|
104
|
+
}
|
|
105
|
+
return { data: json.data, meta: json.meta, status: response.status, requestId: response.headers.get("x-request-id"), rateLimit: rateLimitOf(response.headers) };
|
|
106
|
+
}
|
|
107
|
+
let problem = null;
|
|
108
|
+
try {
|
|
109
|
+
problem = JSON.parse(text);
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
problem = null;
|
|
113
|
+
}
|
|
114
|
+
const after = retryAfterOf(response.headers);
|
|
115
|
+
const error = errorFor(response.status, problem, response.headers, after);
|
|
116
|
+
if (!(method === "POST" ? RETRY_POST : RETRY_STATUS).has(response.status) || attempt >= retries)
|
|
117
|
+
throw error;
|
|
118
|
+
const limit = rateLimitOf(response.headers);
|
|
119
|
+
const advised = after ?? (response.status === 429 && limit?.remaining === 0 ? limit.reset : null);
|
|
120
|
+
if (advised !== null && advised * 1000 > this.config.maxRetryDelay)
|
|
121
|
+
throw error;
|
|
122
|
+
wait = advised !== null ? advised * 1000 : Math.min(backoff(attempt), this.config.maxRetryDelay);
|
|
123
|
+
}
|
|
124
|
+
catch (e) {
|
|
125
|
+
if (e instanceof APIError || options.signal?.aborted)
|
|
126
|
+
throw e;
|
|
127
|
+
if (!(e instanceof APIConnectionError) || method === "POST" || attempt >= retries)
|
|
128
|
+
throw e;
|
|
129
|
+
wait = Math.min(backoff(attempt), this.config.maxRetryDelay);
|
|
130
|
+
}
|
|
131
|
+
await sleep(wait, options.signal);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/** One attempt within the timeout: the response and its body. */
|
|
135
|
+
async attempt(url, init, options) {
|
|
136
|
+
const timeout = options.timeout ?? this.config.timeout;
|
|
137
|
+
const ctl = new AbortController();
|
|
138
|
+
const timer = setTimeout(() => ctl.abort(new APITimeoutError(`No answer within ${timeout} ms`)), timeout);
|
|
139
|
+
const outer = options.signal;
|
|
140
|
+
const relay = () => ctl.abort(outer?.reason);
|
|
141
|
+
if (outer?.aborted)
|
|
142
|
+
relay();
|
|
143
|
+
else
|
|
144
|
+
outer?.addEventListener("abort", relay, { once: true });
|
|
145
|
+
try {
|
|
146
|
+
const response = await this.config.fetch(url, { ...init, signal: ctl.signal });
|
|
147
|
+
return { response, text: await response.text() };
|
|
148
|
+
}
|
|
149
|
+
catch (e) {
|
|
150
|
+
if (ctl.signal.reason instanceof APITimeoutError)
|
|
151
|
+
throw ctl.signal.reason;
|
|
152
|
+
if (outer?.aborted)
|
|
153
|
+
throw outer.reason;
|
|
154
|
+
throw new APIConnectionError(`Could not reach the ClearPostcode API: ${e instanceof Error ? e.message : String(e)}`, { cause: e });
|
|
155
|
+
}
|
|
156
|
+
finally {
|
|
157
|
+
clearTimeout(timer);
|
|
158
|
+
outer?.removeEventListener("abort", relay);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClearPostcode: UK postcode data (lookup, validation, autocomplete, nearest, reverse geocoding, distance, districts,
|
|
3
|
+
* sectors, areas and places) and Address lookup (Royal Mail PAF, early access). No dependencies.
|
|
4
|
+
* Docs: https://clearpostcode.co.uk/developers/docs
|
|
5
|
+
*/
|
|
6
|
+
import { Client, type ClientOptions } from "./client.js";
|
|
7
|
+
import { VERSION } from "./version.js";
|
|
8
|
+
/**
|
|
9
|
+
* The client for servers, scripts and edge functions. The key comes from `key`, else the CLEAR_POSTCODE_KEY
|
|
10
|
+
* environment variable; with neither, calls run keyless (rate-limited per network). `key: null` forces keyless.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ClearPostcode extends Client {
|
|
13
|
+
constructor(options?: ClientOptions);
|
|
14
|
+
}
|
|
15
|
+
export default ClearPostcode;
|
|
16
|
+
export { VERSION };
|
|
17
|
+
export * from "./errors.js";
|
|
18
|
+
export type * from "./generated.js";
|
|
19
|
+
export { BASE_URL } from "./generated.js";
|
|
20
|
+
export type { ClientOptions, PostcodeRecord, PostcodeField, PostcodeWith, BulkLookupItem, BulkResult, ReversePoint, Postcodes, Outcodes, Sectors, Areas, Places, Account } from "./client.js";
|
|
21
|
+
export { BULK_POSTCODES, BULK_POINTS } from "./client.js";
|
|
22
|
+
export type { Addresses, AddressSuggestParams } from "./addresses.js";
|
|
23
|
+
export type { Page } from "./page.js";
|
|
24
|
+
export type { RateLimit, RequestOptions, Result } from "./http.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ClearPostcode: UK postcode data (lookup, validation, autocomplete, nearest, reverse geocoding, distance, districts,
|
|
3
|
+
* sectors, areas and places) and Address lookup (Royal Mail PAF, early access). No dependencies.
|
|
4
|
+
* Docs: https://clearpostcode.co.uk/developers/docs
|
|
5
|
+
*/
|
|
6
|
+
import { Client, transportConfig } from "./client.js";
|
|
7
|
+
import { ClearPostcodeError } from "./errors.js";
|
|
8
|
+
import { VERSION } from "./version.js";
|
|
9
|
+
const g = globalThis;
|
|
10
|
+
/** The runtime, for the user agent: node/24.12.0, bun/1.3.0, deno/2.5.0. */
|
|
11
|
+
function runtime() {
|
|
12
|
+
const v = g.process?.versions;
|
|
13
|
+
if (v?.bun)
|
|
14
|
+
return `bun/${v.bun}`;
|
|
15
|
+
if (g.Deno?.version?.deno)
|
|
16
|
+
return `deno/${g.Deno.version.deno}`;
|
|
17
|
+
return v?.node ? `node/${v.node}` : "js";
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The client for servers, scripts and edge functions. The key comes from `key`, else the CLEAR_POSTCODE_KEY
|
|
21
|
+
* environment variable; with neither, calls run keyless (rate-limited per network). `key: null` forces keyless.
|
|
22
|
+
*/
|
|
23
|
+
export class ClearPostcode extends Client {
|
|
24
|
+
constructor(options = {}) {
|
|
25
|
+
const key = (options.key === undefined ? g.process?.env?.CLEAR_POSTCODE_KEY : options.key) || null;
|
|
26
|
+
// A web page or a web worker: browsers' user agents start "Mozilla/"; Node, Bun, Deno and Workers' do not.
|
|
27
|
+
const inBrowser = typeof g.document !== "undefined" || /^Mozilla\//.test(g.navigator?.userAgent ?? "");
|
|
28
|
+
if (inBrowser && key?.startsWith("cp_live_"))
|
|
29
|
+
throw new ClearPostcodeError("Secret keys (cp_live_) stay on your server. In a browser, use a publishable key (cp_pub_) locked to your domain, with clearpostcode/browser.");
|
|
30
|
+
super(transportConfig(options, key, { keyInQuery: false, headers: inBrowser ? {} : { "user-agent": `clearpostcode-js/${VERSION} ${runtime()}` } }));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export default ClearPostcode;
|
|
34
|
+
export { VERSION };
|
|
35
|
+
export * from "./errors.js";
|
|
36
|
+
export { BASE_URL } from "./generated.js";
|
|
37
|
+
export { BULK_POSTCODES, BULK_POINTS } from "./client.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { OperationTypes } from "./generated.js";
|
|
2
|
+
import type { Call, RequestOptions, Result, Transport } from "./http.js";
|
|
3
|
+
/** One page of a list. `next()` fetches the page after it (null after the last). */
|
|
4
|
+
export interface Page<T, M> extends Result<T[], M> {
|
|
5
|
+
/** meta.next_cursor: pass it as `cursor` for the next page; null on the last page. */
|
|
6
|
+
readonly nextCursor: string | null;
|
|
7
|
+
readonly hasMore: boolean;
|
|
8
|
+
next(options?: RequestOptions): Promise<Page<T, M> | null>;
|
|
9
|
+
}
|
|
10
|
+
type Paged = {
|
|
11
|
+
[K in keyof OperationTypes]: OperationTypes[K]["meta"] extends {
|
|
12
|
+
next_cursor?: string | null;
|
|
13
|
+
} ? (OperationTypes[K]["data"] extends unknown[] ? K : never) : never;
|
|
14
|
+
}[keyof OperationTypes];
|
|
15
|
+
type Item<I extends Paged> = OperationTypes[I]["data"][number];
|
|
16
|
+
/** A page of a cursor-paged operation; `cursorParam` names the query parameter the cursor goes back in. */
|
|
17
|
+
export declare function pageOf<I extends Paged>(t: Transport, id: I, call: Call, cursorParam: string, cursor: string | null, options: RequestOptions): Promise<Page<Item<I>, OperationTypes[I]["meta"]>>;
|
|
18
|
+
/** Every item of a list, following the cursor page after page. Nothing is fetched until the first item is read. */
|
|
19
|
+
export declare function every<T, M>(first: () => Promise<Page<T, M>>): AsyncGenerator<T>;
|
|
20
|
+
export {};
|
package/dist/esm/page.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** A page of a cursor-paged operation; `cursorParam` names the query parameter the cursor goes back in. */
|
|
2
|
+
export async function pageOf(t, id, call, cursorParam, cursor, options) {
|
|
3
|
+
const r = await t.request(id, cursor ? { ...call, query: { ...call.query, [cursorParam]: cursor } } : call, options);
|
|
4
|
+
const nextCursor = r.meta.next_cursor ?? null;
|
|
5
|
+
return {
|
|
6
|
+
...r,
|
|
7
|
+
data: r.data,
|
|
8
|
+
nextCursor,
|
|
9
|
+
hasMore: nextCursor !== null,
|
|
10
|
+
next: (o = options) => (nextCursor === null ? Promise.resolve(null) : pageOf(t, id, call, cursorParam, nextCursor, o)),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Every item of a list, following the cursor page after page. Nothing is fetched until the first item is read. */
|
|
14
|
+
export async function* every(first) {
|
|
15
|
+
for (let page = await first(); page; page = await page.next())
|
|
16
|
+
yield* page.data;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clearpostcode",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "UK postcode lookup API client: validate, autocomplete, nearest, reverse geocode, distance, council, ward and constituency, plus Royal Mail address lookup. Typed, retries built in, no dependencies.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/cjs/index.js",
|
|
7
|
+
"module": "./dist/esm/index.js",
|
|
8
|
+
"types": "./dist/esm/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/esm/index.d.ts",
|
|
13
|
+
"default": "./dist/esm/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/cjs/index.d.ts",
|
|
17
|
+
"default": "./dist/cjs/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"./browser": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/esm/browser.d.ts",
|
|
23
|
+
"default": "./dist/esm/browser.js"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/cjs/browser.d.ts",
|
|
27
|
+
"default": "./dist/cjs/browser.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
31
|
+
},
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "node scripts/build.mjs",
|
|
39
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
40
|
+
"test": "node ../scripts/generate.mjs --check && tsc -p tsconfig.json && node --test test/*.test.ts",
|
|
41
|
+
"check:package": "npm run build && npx --yes publint@0.3 && npx --yes @arethetypeswrong/cli@0.18 --pack . --profile node16",
|
|
42
|
+
"smoke": "npm run build && node scripts/smoke.mjs",
|
|
43
|
+
"prepublishOnly": "node ../scripts/generate.mjs --live && npm test && npm run build"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"postcode",
|
|
47
|
+
"uk postcode",
|
|
48
|
+
"postcode lookup",
|
|
49
|
+
"postcode api",
|
|
50
|
+
"postcode validation",
|
|
51
|
+
"postcode autocomplete",
|
|
52
|
+
"address lookup",
|
|
53
|
+
"address autocomplete",
|
|
54
|
+
"royal mail paf",
|
|
55
|
+
"reverse geocode",
|
|
56
|
+
"geocoding",
|
|
57
|
+
"council",
|
|
58
|
+
"ward",
|
|
59
|
+
"constituency",
|
|
60
|
+
"uk"
|
|
61
|
+
],
|
|
62
|
+
"homepage": "https://clearpostcode.co.uk/developers",
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"author": "ClearPostcode <hello@clearpostcode.co.uk>",
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=20"
|
|
67
|
+
},
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "git+https://github.com/clearpostcode/postcode-api.git",
|
|
71
|
+
"directory": "npm"
|
|
72
|
+
},
|
|
73
|
+
"bugs": {
|
|
74
|
+
"url": "https://github.com/clearpostcode/postcode-api/issues",
|
|
75
|
+
"email": "hello@clearpostcode.co.uk"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@types/node": "^24.19.4",
|
|
79
|
+
"esbuild": "^0.28.2",
|
|
80
|
+
"typescript": "^7.0.2"
|
|
81
|
+
}
|
|
82
|
+
}
|