@lapo/asn1js 1.2.3 → 1.3.0

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/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@lapo/asn1js",
3
- "version": "1.2.3",
3
+ "version": "1.3.0",
4
4
  "description": "Generic ASN.1 parser/decoder that can decode any valid ASN.1 DER or BER structures.",
5
+ "type": "module",
5
6
  "main": "asn1.js",
6
7
  "repository": {
7
8
  "type": "git",
@@ -13,30 +14,47 @@
13
14
  "bugs": { "url": "https://github.com/lapo-luchini/asn1js/issues" },
14
15
  "homepage": "https://lapo.it/asn1js/",
15
16
  "files": [ "asn1.js", "base64.js", "hex.js", "int10.js", "oids.js" ],
16
- "scripts" : {
17
- "lint" : "npx eslint asn1.js base64.js hex.js int10.js oids.js",
18
- "test" : "node test"
17
+ "scripts": {
18
+ "lint": "npx eslint asn1.js base64.js hex.js int10.js oids.js tags.js index.js parseRFC.js dumpASN1.js",
19
+ "lint-action": "npx @action-validator/cli .github/workflows/node.js.yml",
20
+ "serve": "echo 'Connect to http://localhost:3000/' ; npx statik --port 3000 .",
21
+ "test": "node test"
22
+ },
23
+ "engines": {
24
+ "node": ">=12.20.0"
25
+ },
26
+ "devDependencies": {
27
+ "eslint": "^8.34.0"
19
28
  },
20
29
  "eslintConfig": {
21
30
  "env": {
22
- "amd": true,
31
+ "es6": true,
23
32
  "browser": true,
24
33
  "node": true
25
34
  },
35
+ "parserOptions": {
36
+ "ecmaVersion": 2015,
37
+ "sourceType": "module"
38
+ },
26
39
  "extends": [ "eslint:recommended" ],
27
40
  "globals": {
28
41
  "Uint8Array": "readonly"
29
42
  },
30
43
  "rules": {
31
44
  "strict": [ "error", "function" ],
32
- "indent": [ "error", 4, { "ignoredNodes": [ "Program > ExpressionStatement > CallExpression > FunctionExpression > BlockStatement > ExpressionStatement[directive='use strict']:first-child" ] } ],
45
+ "indent": [ "error", 4 ],
33
46
  "linebreak-style": [ "error", "unix" ],
34
47
  "semi": [ "warn", "always" ],
48
+ "quotes": [ "error", "single", { "avoidEscape": true } ],
49
+ "no-var": [ "warn" ],
35
50
  "comma-dangle": [ "error", "never" ]
36
51
  },
37
52
  "overrides": [
38
53
  {
39
- "files": [ "test.js" ],
54
+ "files": [ "test.js", "parseRFC.js", "dumpASN1.js" ],
55
+ "parserOptions": {
56
+ "ecmaVersion": 2021
57
+ },
40
58
  "rules": {
41
59
  "strict": [ "error", "global" ],
42
60
  "comma-dangle": [ "error", "always-multiline" ]
@@ -44,7 +62,19 @@
44
62
  }, {
45
63
  "files": [ "oids.js" ],
46
64
  "rules": {
47
- "indent": "off"
65
+ "indent": "off",
66
+ "quotes": [ "warn", "double" ]
67
+ }
68
+ }, {
69
+ "files": [ "tags.js" ],
70
+ "rules": {
71
+ "comma-dangle": [ "error", "always-multiline" ],
72
+ "quotes": [ "warn", "double" ]
73
+ }
74
+ }, {
75
+ "files": [ "defs.js" ],
76
+ "parserOptions": {
77
+ "ecmaVersion": 2021
48
78
  }
49
79
  }
50
80
  ]