@microlink/mql 0.13.18 → 0.13.19
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/lightweight/index.d.ts +26 -9
- package/lightweight/index.js +1 -1
- package/lightweight/index.umd.js +1 -1
- package/package.json +1 -1
package/lightweight/index.d.ts
CHANGED
|
@@ -184,22 +184,39 @@ export type HTTPResponseRaw = HTTPResponse & { body: ArrayBuffer }
|
|
|
184
184
|
|
|
185
185
|
export type MqlResponse = MqlPayload & { response: HTTPResponseWithBody }
|
|
186
186
|
|
|
187
|
-
export type
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
export type MqlOptions = MqlClientOptions & MicrolinkApiOptions
|
|
188
|
+
|
|
189
|
+
type MqlErrorGeneratedProps = {
|
|
190
190
|
description: string
|
|
191
|
-
headers: { [key: string]: string }
|
|
192
|
-
message: string
|
|
193
|
-
more: string
|
|
194
191
|
name: string
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export type MqlError = {
|
|
195
|
+
code: string
|
|
195
196
|
status: MqlStatus
|
|
197
|
+
message: string
|
|
198
|
+
data?: MqlResponseData
|
|
199
|
+
headers?: { [key: string]: string }
|
|
200
|
+
more?: string
|
|
196
201
|
statusCode?: number
|
|
197
|
-
url
|
|
202
|
+
url?: string
|
|
198
203
|
}
|
|
199
204
|
|
|
200
|
-
export type
|
|
205
|
+
export type MqlErrorProps = MqlError & MqlErrorGeneratedProps
|
|
201
206
|
|
|
202
|
-
export
|
|
207
|
+
export declare class MicrolinkError extends Error {
|
|
208
|
+
constructor(props: MqlError)
|
|
209
|
+
readonly code: string
|
|
210
|
+
readonly status: MqlStatus
|
|
211
|
+
readonly message: string
|
|
212
|
+
readonly description: string
|
|
213
|
+
readonly name: string
|
|
214
|
+
readonly data?: MqlResponseData
|
|
215
|
+
readonly headers?: { [key: string]: string }
|
|
216
|
+
readonly more?: string
|
|
217
|
+
readonly statusCode?: number
|
|
218
|
+
readonly url?: string
|
|
219
|
+
}
|
|
203
220
|
|
|
204
221
|
export const version: string
|
|
205
222
|
|
package/lightweight/index.js
CHANGED
package/lightweight/index.umd.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@microlink/mql",
|
|
3
3
|
"description": "Microlink Query Language. The official HTTP client to interact with Microlink API for Node.js, browsers & Deno.",
|
|
4
4
|
"homepage": "https://microlink.io/mql",
|
|
5
|
-
"version": "0.13.
|
|
5
|
+
"version": "0.13.19",
|
|
6
6
|
"types": "lightweight/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
"require": "./src/node.js",
|