forked from lapo-luchini/asn1js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
112 lines (112 loc) · 3.24 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"name": "@lapo/asn1js",
"version": "2.0.4",
"description": "Generic ASN.1 parser/decoder that can decode any valid ASN.1 DER or BER structures.",
"type": "module",
"main": "asn1.js",
"repository": {
"type": "git",
"url": "git+https://github.com/lapo-luchini/asn1js.git"
},
"keywords": [ "asn1", "ber", "der", "pem" ],
"author": "Lapo Luchini <[email protected]>",
"license": "ISC",
"bugs": { "url": "https://github.com/lapo-luchini/asn1js/issues" },
"homepage": "https://lapo.it/asn1js/",
"files": [ "asn1.js", "base64.js", "hex.js", "int10.js", "dom.js", "defs.js", "oids.js", "rfcdef.js", "dumpASN1.js" ],
"scripts": {
"lint": "npx eslint asn1.js base64.js hex.js int10.js dom.js defs.js oids.js rfcdef.js tags.js context.js index.js parseRFC.js dumpASN1.js test.js testDefs.js vite.config.js theme.js",
"lint-action": "npx @action-validator/cli .github/workflows/node.js.yml",
"build": "vite build",
"serve": "echo 'Connect to http://localhost:3000/' ; npx statik --port 3000 .",
"test": "node test",
"testdefs": "node testDefs"
},
"bin": {
"dumpASN1": "./dumpASN1.js"
},
"engines": {
"node": ">=12.20.0"
},
"devDependencies": {
"@rollup/wasm-node": "^4.17.2",
"eslint": "^8.34.0",
"htmlparser2": "^9.1.0",
"vite": "^5.2.10",
"vite-plugin-dom": "^1.0.3",
"vite-plugin-singlefile": "^2.0.1"
},
"overrides": {
"rollup": "npm:@rollup/wasm-node"
},
"pnpm": {
"overrides": {
"rollup": "npm:@rollup/wasm-node"
}
},
"eslintConfig": {
"env": {
"es6": true,
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2015,
"sourceType": "module"
},
"extends": [ "eslint:recommended" ],
"globals": {
"Uint8Array": "readonly"
},
"rules": {
"strict": [ "error", "function" ],
"indent": [ "error", 4 ],
"no-trailing-spaces": [ "error" ],
"linebreak-style": [ "error", "unix" ],
"eol-last": [ "error", "always" ],
"semi": [ "warn", "always" ],
"quotes": [ "error", "single", { "avoidEscape": true } ],
"no-var": [ "warn" ],
"comma-dangle": [ "error", "always-multiline" ]
},
"overrides": [
{
"files": [ "defs.js" ],
"parserOptions": {
"ecmaVersion": 2020
}
}, {
"files": [ "test.js", "parseRFC.js", "dumpASN1.js" ],
"parserOptions": {
"ecmaVersion": 2021
},
"rules": {
"strict": [ "error", "global" ]
}
}, {
"files": [ "oids.js" ],
"rules": {
"indent": "off",
"quotes": [ "warn", "double" ]
}
}, {
"files": [ "tags.js", "rfcdef.js" ],
"rules": {
"indent": [ "error", 2, { "ignoredNodes": [ "Program > ExpressionStatement > CallExpression > FunctionExpression > BlockStatement > ExpressionStatement[directive='use strict']:first-child" ] } ],
"comma-dangle": "off",
"quotes": [ "warn", "double" ]
}
}, {
"files": [ "defs.js" ],
"parserOptions": {
"ecmaVersion": 2021
}
}, {
"files": [ "testDefs.js" ],
"parserOptions": {
"ecmaVersion": 2022
}
}
]
}
}