es6-crawler-detect 4.0.0 → 4.0.1

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.
@@ -9,6 +9,7 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
+ "es6-crawler-detect": "^4.0.0",
12
13
  "express": "^4.21.1"
13
14
  }
14
15
  },
@@ -183,6 +184,12 @@
183
184
  "node": ">= 0.4"
184
185
  }
185
186
  },
187
+ "node_modules/es6-crawler-detect": {
188
+ "version": "4.0.0",
189
+ "resolved": "https://registry.npmjs.org/es6-crawler-detect/-/es6-crawler-detect-4.0.0.tgz",
190
+ "integrity": "sha512-i7Vw+cer4DoGzzc8tHUWMe5RVyJatAldQo86glFyqoOvmeVm0bosXovQYkLqo7Kgr1gOOtMg5vO2rocp/0rPmA==",
191
+ "license": "MIT"
192
+ },
186
193
  "node_modules/escape-html": {
187
194
  "version": "1.0.3",
188
195
  "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
@@ -6,6 +6,7 @@
6
6
  "author": "Jeffery Hussin <jefferytutorials@gmail.com> (http://github.com/jefferyhus)",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
+ "es6-crawler-detect": "^4.0.0",
9
10
  "express": "^4.21.1"
10
11
  }
11
12
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  const path = require('path');
4
4
  const express = require('express');
5
- const { middleware, Crawler } = require('../../dist/index');
5
+ const { middleware, Crawler } = require('es6-crawler-detect');
6
6
 
7
7
  const app = express();
8
8
  const port = 3000;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "es6-crawler-detect",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "This is an ES6 adaptation of the original PHP library CrawlerDetect, this library will help you detect bots/crawlers/spiders vie the useragent.",
5
- "main": "src/index.js",
5
+ "main": "dist/index.js",
6
6
  "directories": {
7
7
  "lib": "lib"
8
8
  },