user-agents 2.0.0-alpha.6 → 2.0.0-alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/user-agents.json +87572 -77530
- package/package.json +1 -2
- package/src/update-data.ts +0 -4
- package/src/user-agent.ts +2 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "user-agents",
|
3
|
-
"version": "2.0.0-alpha.
|
3
|
+
"version": "2.0.0-alpha.7",
|
4
4
|
"description": "A JavaScript library for generating random user agents. ",
|
5
5
|
"main": "./dist/index.cjs",
|
6
6
|
"module": "./dist/index.js",
|
@@ -24,7 +24,6 @@
|
|
24
24
|
"postbuild": "yarn gunzip-data && cp src/user-agents.json dist/",
|
25
25
|
"gunzip-data": "node --loader ts-node/esm src/gunzip-data.ts src/user-agents.json.gz",
|
26
26
|
"lint": "eslint src/ && prettier --check src/",
|
27
|
-
"postversion": "git push && git push --tags",
|
28
27
|
"test": "NODE_ENV=testing mocha --exit --require @babel/register --extensions '.ts, .js'",
|
29
28
|
"update-data": "node --loader ts-node/esm src/update-data.ts src/user-agents.json.gz"
|
30
29
|
},
|
package/src/update-data.ts
CHANGED
@@ -96,10 +96,6 @@ const getUserAgentTable = async (limit = 1e4) => {
|
|
96
96
|
profile.weight = weight;
|
97
97
|
delete profile.sessionId;
|
98
98
|
|
99
|
-
// Deleting these because they weren't in the old format, but we should leave them in...
|
100
|
-
delete profile.language;
|
101
|
-
delete profile.oscpu;
|
102
|
-
|
103
99
|
// Find the device category.
|
104
100
|
const parser = new UAParser(profile.userAgent);
|
105
101
|
const device = parser.getDevice();
|