@microlink/mql 0.13.19 → 0.13.20
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
CHANGED
|
@@ -191,7 +191,7 @@ type MqlErrorGeneratedProps = {
|
|
|
191
191
|
name: string
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
export type
|
|
194
|
+
export type MqlErrorProps = {
|
|
195
195
|
code: string
|
|
196
196
|
status: MqlStatus
|
|
197
197
|
message: string
|
|
@@ -202,10 +202,10 @@ export type MqlError = {
|
|
|
202
202
|
url?: string
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
export type
|
|
205
|
+
export type MqlError = MqlErrorProps & MqlErrorGeneratedProps
|
|
206
206
|
|
|
207
207
|
export declare class MicrolinkError extends Error {
|
|
208
|
-
constructor(props:
|
|
208
|
+
constructor(props: MqlErrorProps)
|
|
209
209
|
readonly code: string
|
|
210
210
|
readonly status: MqlStatus
|
|
211
211
|
readonly message: string
|
|
@@ -234,7 +234,7 @@ interface mql {
|
|
|
234
234
|
) => Promise<HTTPResponseRaw>
|
|
235
235
|
extend: (gotOpts?: object) => mql
|
|
236
236
|
stream: (input: RequestInfo, init?: RequestInit) => ReadableStream
|
|
237
|
-
MicrolinkError: new (props: object) =>
|
|
237
|
+
MicrolinkError: new (props: object) => MqlErrorProps
|
|
238
238
|
version: string
|
|
239
239
|
}
|
|
240
240
|
|
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.20",
|
|
6
6
|
"types": "lightweight/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
"require": "./src/node.js",
|