user-agents 1.1.9 → 2.0.0-alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +38 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/user-agents.json +151323 -0
- package/package.json +49 -28
- package/src/{gunzip-data.js → gunzip-data.ts} +4 -5
- package/src/index.ts +4 -0
- package/src/{update-data.js → update-data.ts} +36 -36
- package/src/user-agent.ts +215 -0
- package/.babelrc +0 -31
- package/.circleci/config.yml +0 -207
- package/.clabot +0 -7
- package/.eslintrc +0 -15
- package/.github/pull_request_template.md +0 -7
- package/CLA.md +0 -126
- package/CONTRIBUTING.md +0 -8
- package/media/ycombinator.png +0 -0
- package/src/index.js +0 -4
- package/src/user-agent.js +0 -154
- package/src/user-agents.json.gz +0 -0
- package/test/test-user-agent.js +0 -113
- package/webpack.config.js +0 -49
package/webpack.config.js
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
const path = require('path');
|
2
|
-
|
3
|
-
const webpack = require('webpack');
|
4
|
-
const TerserPlugin = require('terser-webpack-plugin');
|
5
|
-
|
6
|
-
|
7
|
-
const mode = process.env.NODE_ENV || 'development';
|
8
|
-
|
9
|
-
|
10
|
-
module.exports = {
|
11
|
-
entry: {
|
12
|
-
index: path.resolve(__dirname, 'src', 'index.js'),
|
13
|
-
},
|
14
|
-
output: {
|
15
|
-
path: path.resolve(__dirname, 'dist'),
|
16
|
-
filename: '[name].js',
|
17
|
-
library: 'user-agents',
|
18
|
-
libraryTarget: 'umd',
|
19
|
-
umdNamedDefine: true,
|
20
|
-
},
|
21
|
-
module: {
|
22
|
-
rules: [
|
23
|
-
{
|
24
|
-
test: /\.js$/,
|
25
|
-
include: path.resolve(__dirname, 'src'),
|
26
|
-
enforce: 'pre',
|
27
|
-
loader: 'eslint-loader',
|
28
|
-
},
|
29
|
-
{
|
30
|
-
test: /\.js$/,
|
31
|
-
include: path.resolve(__dirname, 'src'),
|
32
|
-
loader: 'babel-loader',
|
33
|
-
},
|
34
|
-
{
|
35
|
-
test: /\.(gif|jpg|jpeg|png|svg)$/,
|
36
|
-
loader: 'url-loader',
|
37
|
-
},
|
38
|
-
],
|
39
|
-
},
|
40
|
-
target: 'node',
|
41
|
-
devtool: 'source-map',
|
42
|
-
optimization: {
|
43
|
-
minimize: true,
|
44
|
-
minimizer: [
|
45
|
-
new TerserPlugin(),
|
46
|
-
],
|
47
|
-
},
|
48
|
-
mode,
|
49
|
-
};
|