-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathpackage.json
More file actions
160 lines (160 loc) · 5.89 KB
/
package.json
File metadata and controls
160 lines (160 loc) · 5.89 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"name": "otpauth",
"version": "9.5.0",
"description": "One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers",
"keywords": [
"otp",
"hotp",
"totp",
"one time password",
"2fa",
"2 factor",
"two factor",
"two-factor",
"2step",
"2 step",
"two step",
"two-step",
"auth",
"authenticator",
"google authenticator"
],
"author": "Héctor Molinero Fernández <hector@molinero.dev>",
"license": "MIT",
"homepage": "https://github.com/hectorm/otpauth",
"repository": {
"type": "git",
"url": "https://github.com/hectorm/otpauth.git"
},
"bugs": {
"url": "https://github.com/hectorm/otpauth/issues"
},
"funding": "https://github.com/hectorm/otpauth?sponsor=1",
"type": "module",
"types": "./dist/otpauth.d.ts",
"main": "./dist/otpauth.node.cjs",
"browser": "./dist/otpauth.esm.js",
"exports": {
".": {
"types": {
"import": "./dist/otpauth.d.ts",
"require": "./dist/otpauth.d.cts"
},
"bun": "./dist/otpauth.esm.js",
"deno": "./dist/otpauth.esm.js",
"node": {
"import": "./dist/otpauth.node.mjs",
"require": "./dist/otpauth.node.cjs"
},
"default": "./dist/otpauth.esm.js"
},
"./slim": {
"types": {
"import": "./dist/otpauth.d.ts",
"require": "./dist/otpauth.d.cts"
},
"default": "./dist/otpauth.slim.esm.js"
},
"./bare": {
"types": {
"import": "./dist/otpauth.d.ts",
"require": "./dist/otpauth.d.cts"
},
"default": "./dist/otpauth.bare.esm.js"
},
"./dist/*": {
"types": {
"import": "./dist/otpauth.d.ts",
"require": "./dist/otpauth.d.cts"
},
"default": "./dist/*"
}
},
"files": [
"dist/"
],
"scripts": {
"all": "run-s build docs lint test",
"build": "run-s build:clean build:types build:compile",
"build:clean": "rimraf ./dist/",
"build:compile": "rollup -c",
"build:types": "run-s build:types:clean build:types:compile",
"build:types:clean": "rimraf ./types/",
"build:types:compile": "tsc -p ./src/",
"docs": "run-s docs:clean docs:compile",
"docs:clean": "rimraf ./docs/",
"docs:compile": "typedoc ./src/index.js --readme none --out ./docs/",
"lint": "run-s lint:eslint lint:prettier lint:tsc",
"lint:eslint": "eslint --max-warnings 0 ./",
"lint:prettier": "prettier --list-different ./",
"lint:tsc": "tsc --noEmit",
"format": "run-s format:eslint format:prettier",
"format:eslint": "eslint --fix ./",
"format:prettier": "prettier --write ./",
"test": "run-s test:node test:deno test:bun test:browser",
"test:node": "run-s test:node:esm test:node:cjs",
"test:node:esm": "run-s test:node:esm:unmin test:node:esm:min",
"test:node:esm:unmin": "node ./test/node.test.mjs",
"test:node:esm:min": "node ./test/node.test.min.mjs",
"test:node:cjs": "run-s test:node:cjs:unmin test:node:cjs:min",
"test:node:cjs:unmin": "node ./test/node.test.cjs",
"test:node:cjs:min": "node ./test/node.test.min.cjs",
"test:deno": "run-s --npm-path deno test:deno:esm",
"test:deno:esm": "run-s --npm-path deno test:deno:esm:unmin test:deno:esm:min",
"test:deno:esm:unmin": "deno test --no-npm --allow-read=./test/,./dist/ ./test/deno.test.mjs",
"test:deno:esm:min": "deno test --no-npm --allow-read=./test/,./dist/ ./test/deno.test.min.mjs",
"test:bun": "run-s --npm-path bun test:bun:esm",
"test:bun:esm": "run-s --npm-path bun test:bun:esm:unmin test:bun:esm:min",
"test:bun:esm:unmin": "bun test ./test/bun.test.mjs",
"test:bun:esm:min": "bun test ./test/bun.test.min.mjs ",
"test:quickjs": "run-s test:quickjs:esm",
"test:quickjs:esm": "run-s test:quickjs:esm:unmin test:quickjs:esm:min",
"test:quickjs:esm:unmin": "qjs ./test/quickjs.test.mjs",
"test:quickjs:esm:min": "qjs ./test/quickjs.test.min.mjs ",
"test:browser": "run-s test:browser:chromium test:browser:firefox test:browser:webkit",
"test:browser:chromium": "run-s test:browser:chromium:umd",
"test:browser:chromium:umd": "run-s test:browser:chromium:umd:unmin test:browser:chromium:umd:min",
"test:browser:chromium:umd:unmin": "node ./test/browser.test.mjs chromium",
"test:browser:chromium:umd:min": "node ./test/browser.test.min.mjs chromium",
"test:browser:firefox": "run-s test:browser:firefox:umd",
"test:browser:firefox:umd": "run-s test:browser:firefox:umd:unmin test:browser:firefox:umd:min",
"test:browser:firefox:umd:unmin": "node ./test/browser.test.mjs firefox",
"test:browser:firefox:umd:min": "node ./test/browser.test.min.mjs firefox",
"test:browser:webkit": "run-s test:browser:webkit:umd",
"test:browser:webkit:umd": "run-s test:browser:webkit:umd:unmin test:browser:webkit:umd:min",
"test:browser:webkit:umd:unmin": "node ./test/browser.test.mjs webkit",
"test:browser:webkit:umd:min": "node ./test/browser.test.min.mjs webkit",
"version": "run-s all version:jsr version:git",
"version:jsr": "node ./scripts/jsr.mjs",
"version:git": "git add -A ./jsr.json ./types/ ./dist/ ./docs/"
},
"dependencies": {
"@noble/hashes": "2.0.1"
},
"devDependencies": {
"@eslint/core": "~1.1.1",
"@eslint/js": "~10.0.1",
"@rollup/plugin-node-resolve": "~16.0.3",
"@rollup/plugin-replace": "~6.0.3",
"@rollup/plugin-swc": "~0.4.0",
"@rollup/plugin-terser": "~1.0.0",
"@rollup/plugin-virtual": "~3.0.2",
"@swc/core": "~1.15.18",
"@types/eslint": "~9.6.1",
"@types/eslint-config-prettier": "~6.11.3",
"@types/node": "~25.3.5",
"chai": "~6.2.2",
"eslint": "~10.0.3",
"eslint-config-prettier": "~10.1.8",
"globals": "~17.4.0",
"mocha": "~11.7.5",
"npm-run-all2": "~8.0.4",
"playwright": "~1.58.2",
"prettier": "~3.8.1",
"rimraf": "~6.1.3",
"rollup": "~4.59.0",
"rollup-plugin-dts": "~6.3.0",
"typedoc": "~0.28.17",
"typescript": "~5.9.3"
}
}