crawler-user-agents 1.32.0 → 1.34.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.
Files changed (3) hide show
  1. package/index.d.mts +8 -0
  2. package/index.mjs +6 -0
  3. package/package.json +13 -1
package/index.d.mts ADDED
@@ -0,0 +1,8 @@
1
+ declare const crawlerUserAgents: {
2
+ pattern: string
3
+ addition_date?: string
4
+ url?: string
5
+ instances: string[]
6
+ }[]
7
+
8
+ export default crawlerUserAgents;
package/index.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import { createRequire } from 'node:module';
2
+
3
+ const require = createRequire(import.meta.url);
4
+ const crawlers = require('./crawler-user-agents.json');
5
+
6
+ export default crawlers;
package/package.json CHANGED
@@ -1,8 +1,20 @@
1
1
  {
2
2
  "name": "crawler-user-agents",
3
- "version": "1.32.0",
3
+ "version": "1.34.0",
4
4
  "main": "crawler-user-agents.json",
5
5
  "typings": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "require": {
9
+ "types": "./index.d.ts",
10
+ "default": "./crawler-user-agents.json"
11
+ },
12
+ "import": {
13
+ "types": "./index.d.mts",
14
+ "default": "./index.mjs"
15
+ }
16
+ }
17
+ },
6
18
  "author": "Martin Monperrus <martin.monperrus@gnieh.org>",
7
19
  "license": "MIT",
8
20
  "description": "This repository contains a list of of HTTP user-agents used by robots, crawlers, and spiders as in single JSON file.",