crawler-user-agents 1.0.104 → 1.0.105

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/composer.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "monperrus/crawler-user-agents",
3
+ "description": "This repository contains a list of of HTTP user-agents used by robots, crawlers, and spiders as in single JSON file.",
4
+ "type": "library",
5
+ "license": "MIT",
6
+ "keywords": ["crawlers", "user-agents", "listing", "json"],
7
+ "authors": [
8
+ {
9
+ "name": "Martin Monperrus",
10
+ "email": "martin.monperrus@gnieh.org"
11
+ }
12
+ ],
13
+ "minimum-stability": "dev",
14
+ "autoload": {
15
+ "files": [
16
+ "main.php"
17
+ ]
18
+ },
19
+ "support": {
20
+ "email": "martin.monperrus@gnieh.org",
21
+ "issues": "https://github.com/monperrus/crawler-user-agents/issues"
22
+ },
23
+ "require": {}
24
+ }
package/main.php ADDED
@@ -0,0 +1,6 @@
1
+ <?php
2
+ if (!function_exists('get_crawler_user_agents_list')) {
3
+ function get_crawler_user_agents_list() {
4
+ return json_decode(file_get_contents('crawler-user-agents.json'), true);
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crawler-user-agents",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "main": "crawler-user-agents.json",
5
5
  "typings": "./index.d.ts",
6
6
  "author": "Martin Monperrus <martin.monperrus@gnieh.org>",