@microlink/google 1.2.5 → 1.2.7

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.
Files changed (2) hide show
  1. package/package.json +10 -5
  2. package/src/index.d.ts +18 -24
package/package.json CHANGED
@@ -2,7 +2,8 @@
2
2
  "name": "@microlink/google",
3
3
  "description": "Structured Google data from 10 verticals through Microlink API",
4
4
  "homepage": "https://github.com/microlinkhq/microlink",
5
- "version": "1.2.5",
5
+ "version": "1.2.7",
6
+ "types": "./src/index.d.ts",
6
7
  "exports": {
7
8
  "types": "./src/index.d.ts",
8
9
  "require": "./src/index.js",
@@ -36,7 +37,7 @@
36
37
  "serp"
37
38
  ],
38
39
  "dependencies": {
39
- "@microlink/mql": "0.20.0"
40
+ "@microlink/mql": "0.20.1"
40
41
  },
41
42
  "devDependencies": {
42
43
  "ava": "latest",
@@ -50,7 +51,8 @@
50
51
  "postcss-focus": "latest",
51
52
  "proxyquire": "latest",
52
53
  "tinyrun": "latest",
53
- "tinyspawn": "latest"
54
+ "tinyspawn": "latest",
55
+ "tsd": "latest"
54
56
  },
55
57
  "engines": {
56
58
  "node": ">= 24"
@@ -63,8 +65,11 @@
63
65
  "dev": "tinyrun \"pnpm dev:src\" \"pnpm dev:server\"",
64
66
  "dev:server": "browser-sync start --server docs --files \"docs/index.html, docs/README.md, docs/static/**/*.(css|js)\"",
65
67
  "dev:src": "gulp",
66
- "test": "exit 0"
68
+ "test": "tsd"
67
69
  },
68
70
  "license": "MIT",
69
- "gitHead": "ba8696f75f04ed51df500de41233c6c2458cff55"
71
+ "tsd": {
72
+ "directory": "test"
73
+ },
74
+ "gitHead": "3fd41c4194a94397dbce7a0e4daf77f47f74864f"
70
75
  }
package/src/index.d.ts CHANGED
@@ -303,29 +303,23 @@ interface ContextOptions {
303
303
  timeout?: number
304
304
  }
305
305
 
306
- export declare const DOMAIN: string
307
-
308
- export declare function buildPath(
309
- query: string,
310
- limit?: number,
311
- location?: string
312
- ): string
313
-
314
- export declare function buildUrl(
315
- query: string,
316
- options?: {
317
- limit?: number
318
- location?: string
319
- type?: Type
320
- period?: Period
321
- page?: number
322
- }
323
- ): URL
324
-
325
- interface createGoogleClient {
326
- (options?: ContextOptions): GoogleClient
327
- }
306
+ declare function createGoogleClient(options?: ContextOptions): GoogleClient
307
+
308
+ declare namespace createGoogleClient {
309
+ const DOMAIN: string
310
+
311
+ function buildPath(query: string, limit?: number, location?: string): string
328
312
 
329
- declare const createGoogleClient: createGoogleClient
313
+ function buildUrl(
314
+ query: string,
315
+ options?: {
316
+ limit?: number
317
+ location?: string
318
+ type?: Type
319
+ period?: Period
320
+ page?: number
321
+ }
322
+ ): URL
323
+ }
330
324
 
331
- export default createGoogleClient
325
+ export = createGoogleClient