@microlink/mql 0.18.1 → 0.19.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.md CHANGED
File without changes
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- export type ColorScheme = 'dark' | 'light'
1
+ export type ColorScheme = 'dark' | 'light' | 'no-preference'
2
2
 
3
3
  type WaitUntilEvent =
4
+ | 'auto'
4
5
  | 'load'
5
6
  | 'domcontentloaded'
6
7
  | 'networkidle0'
@@ -31,15 +32,30 @@ type PdfOptions = {
31
32
  }
32
33
 
33
34
  type ScreenshotOptions = {
35
+ animated?: boolean
34
36
  codeScheme?: string
35
37
  element?: string
36
38
  fullPage?: boolean
37
39
  omitBackground?: boolean
38
40
  optimizeForSpeed?: boolean
39
41
  overlay?: ScreenshotOverlay
42
+ palette?: boolean
43
+ quality?: number
40
44
  type?: 'jpeg' | 'png'
41
45
  }
42
46
 
47
+ type MetaOptions = {
48
+ author?: boolean
49
+ date?: boolean
50
+ description?: boolean
51
+ image?: boolean
52
+ lang?: boolean
53
+ logo?: boolean | { square: boolean }
54
+ publisher?: boolean
55
+ title?: boolean
56
+ url?: boolean
57
+ }
58
+
43
59
  type MqlClientOptions = {
44
60
  apiKey?: string
45
61
  endpoint?: string
@@ -81,6 +97,7 @@ export type MicrolinkApiOptions = {
81
97
  adblock?: boolean
82
98
  animations?: boolean
83
99
  audio?: boolean
100
+ cacheKey?: string
84
101
  click?: string | string[]
85
102
  colorScheme?: ColorScheme
86
103
  data?: MqlQuery
@@ -95,13 +112,13 @@ export type MicrolinkApiOptions = {
95
112
  insights?: boolean | { lighthouse?: boolean | object; technologies?: boolean }
96
113
  javascript?: boolean
97
114
  mediaType?: string
98
- meta?: boolean | { logo: { square: boolean } }
115
+ meta?: boolean | MetaOptions
99
116
  modules?: string | string[]
100
117
  palette?: boolean
101
118
  pdf?: boolean | PdfOptions
102
119
  ping?: boolean | object
103
120
  prerender?: boolean | 'auto'
104
- proxy?: string | { countryCode?: string }
121
+ proxy?: string | { url: string } | { location: string }
105
122
  retry?: number
106
123
  screenshot?: boolean | ScreenshotOptions
107
124
  scripts?: string | string[]
package/dist/index.js CHANGED
@@ -1869,7 +1869,7 @@ var distribution = /*#__PURE__*/Object.freeze({
1869
1869
 
1870
1870
  var require$$1 = /*@__PURE__*/getAugmentedNamespace(distribution);
1871
1871
 
1872
- const VERSION = '0.18.1';
1872
+ const VERSION = '0.19.0';
1873
1873
 
1874
1874
  var constants = {
1875
1875
  VERSION,
package/dist/index.umd.js CHANGED
@@ -1875,7 +1875,7 @@
1875
1875
 
1876
1876
  var require$$1 = /*@__PURE__*/getAugmentedNamespace(distribution);
1877
1877
 
1878
- const VERSION = '0.18.1';
1878
+ const VERSION = '0.19.0';
1879
1879
 
1880
1880
  var constants = {
1881
1881
  VERSION,
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.18.1",
5
+ "version": "0.19.0",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
8
8
  "types": "./dist/index.d.ts",
@@ -73,6 +73,15 @@
73
73
  "src/index.js",
74
74
  "src/main.mjs"
75
75
  ],
76
+ "scripts": {
77
+ "build": "rollup -c rollup.config.js --bundleConfigAsCjs",
78
+ "clean:build": "rm -rf dist/index.js",
79
+ "dev": "pnpm run build -- -w",
80
+ "prebuild": "pnpm run clean:build",
81
+ "prepublishOnly": "pnpm run build",
82
+ "pretest": "pnpm run build",
83
+ "test": "ava --verbose && tsd"
84
+ },
76
85
  "license": "MIT",
77
86
  "ava": {
78
87
  "files": [
@@ -92,12 +101,5 @@
92
101
  },
93
102
  "directory": "test"
94
103
  },
95
- "scripts": {
96
- "build": "rollup -c rollup.config.js --bundleConfigAsCjs",
97
- "clean:build": "rm -rf dist/index.js",
98
- "dev": "pnpm run build -- -w",
99
- "prebuild": "pnpm run clean:build",
100
- "pretest": "pnpm run build",
101
- "test": "ava --verbose && tsd"
102
- }
103
- }
104
+ "gitHead": "c93fff8082b69c8e76bc159be82daf8a26b419bb"
105
+ }