forked from panva/jose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
161 lines (161 loc) · 5.6 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
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
161
{
"name": "jose",
"version": "4.14.4",
"description": "'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes",
"keywords": [
"browser",
"bun",
"cloudflare",
"compact",
"decode",
"decrypt",
"deno",
"detached",
"ec",
"ecdsa",
"eddsa",
"edge",
"electron",
"embedded",
"encrypt",
"flattened",
"general",
"jose",
"json web token",
"jsonwebtoken",
"jwa",
"jwe",
"jwk",
"jwks",
"jws",
"jwt",
"netlify",
"next",
"nextjs",
"oct",
"okp",
"payload",
"pem",
"pkcs8",
"rsa",
"secp256k1",
"sign",
"signature",
"spki",
"validate",
"vercel",
"verify",
"webcrypto",
"workerd",
"workers",
"x509"
],
"homepage": "https://github.com/panva/jose",
"repository": "panva/jose",
"funding": {
"url": "https://github.com/sponsors/panva"
},
"license": "MIT",
"author": "Filip Skokan <[email protected]>",
"sideEffects": false,
"imports": {
"#dist": {
"import": "./dist/node/esm/index.js",
"require": "./dist/node/cjs/index.js"
},
"#dist/*": {
"import": "./dist/node/esm/*.js",
"require": "./dist/node/cjs/*.js"
},
"#dist/webapi/*": {
"import": "./dist/browser/*.js"
},
"#dist/webapi": {
"import": "./dist/browser/index.js"
}
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"bun": "./dist/browser/index.js",
"deno": "./dist/browser/index.js",
"browser": "./dist/browser/index.js",
"worker": "./dist/browser/index.js",
"import": "./dist/node/esm/index.js",
"require": "./dist/node/cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "./dist/node/cjs/index.js",
"browser": "./dist/browser/index.js",
"types": "./dist/types/index.d.ts",
"files": [
"dist/**/package.json",
"dist/**/*.js",
"dist/types/**/*.d.ts",
"!dist/**/*.bundle.js",
"!dist/**/*.umd.js",
"!dist/**/*.min.js",
"!dist/node/webcrypto/**/*",
"!dist/types/runtime/*",
"!dist/types/lib/*",
"!dist/deno/**/*"
],
"scripts": {
"build": "tsc",
"build-all": "run-s clear build:*",
"build:browser": "run-s runtime-browser 'build -- -p ./tsconfig/browser.json' && echo '{\"type\": \"module\"}'> dist/browser/package.json",
"build:browser-bundle": "esbuild --bundle dist/browser/index.js --format=esm --target=es2018 --outfile=dist/browser/index.bundle.js",
"build:browser-bundle-min": "esbuild --minify --bundle dist/browser/index.js --format=esm --target=es2018 --outfile=dist/browser/index.bundle.min.js",
"build:browser-umd": "rollup dist/browser/index.bundle.js --format umd --name jose -o dist/browser/index.umd.js && rollup dist/browser/index.bundle.min.js --compact --format umd --name jose -o dist/browser/index.umd.min.js",
"build:deno": "npm run-script runtime-deno && find dist/deno -name '*.ts' -type f -print0 | xargs -0 sed -i.bak -e \"s/\\.js'/.ts'/g\" -e \"s/\\.d'/.d.ts'/g\" && npm run-script sedcleanup",
"build:types": "npm run-script build -- -p ./tsconfig/types.json && cd src && find . -name '*.d.ts' -maxdepth 2 -type f -exec rsync -R \"{}\" ../dist/types \\; && cd .. && run-s -s types:find | xargs -0 sed -i.bak -e \"s/\\.js'/'/g\" -e \"s/\\.d'/'/g\" && npm run-script sedcleanup",
"build:node-cjs": "run-s runtime-node 'build -- -p ./tsconfig/node-cjs.json'",
"build:node-esm": "run-s runtime-node 'build -- -p ./tsconfig/node-esm.json' && echo '{\"type\": \"module\"}'> dist/node/esm/package.json",
"clear": "rm -Rf dist",
"sedcleanup": "find . -name '*.bak' -type f -print0 | xargs -0 rm -f",
"docs:generate": "typedoc",
"runtime-browser": "run-s runtime:clear runtime:browser:* runtime:refs",
"runtime-deno": "npm run-script runtime-browser && mkdir -p dist/deno && cp -R src/. dist/deno && rm -R dist/deno/runtime/browser dist/deno/runtime/node",
"runtime-node": "run-s runtime:clear runtime:node:* runtime:refs",
"runtime:browser:copy": "cp ./src/runtime/browser/*.ts ./src/runtime",
"runtime:clear": "run-s -s runtime:find | xargs -0 rm -f",
"runtime:find": "find src/runtime -not -name '*.d.ts' -maxdepth 1 -type f -print0",
"types:find": "find dist/types -name '*.d.ts' -type f -print0",
"runtime:node:copy": "cp ./src/runtime/node/*.ts ./src/runtime",
"runtime:refs": "run-s -s runtime:find | xargs -0 sed -i.bak -e \"s/'\\.\\.\\//'\\.\\//g\" -e \"s/'\\.\\/\\.\\./'../g\" && npm run-script sedcleanup",
"test": "ava",
"test:types": "tsd -f test/types",
"format": "prettier --loglevel silent --write ./test ./tap ./src ./tools ./cookbook",
"tap:browsers": "./tap/.browsers.sh",
"tap:bun": "./tap/.bun.sh",
"tap:deno": "./tap/.deno.sh",
"tap:edge-runtime": "./tap/.edge-runtime.sh",
"tap:electron": "./tap/.electron.sh",
"tap:node": "bash -c './tap/.node.sh'",
"tap:workerd": "./tap/.workerd.sh"
},
"devDependencies": {
"@types/node": "^18.16.8",
"@types/qunit": "^2.19.5",
"ava": "^5.2.0",
"edge-runtime": "^2.2.0",
"esbuild": "^0.17.19",
"glob": "^10.2.3",
"nock": "^13.3.1",
"npm-run-all2": "^6.0.5",
"patch-package": "^7.0.0",
"prettier": "^2.8.8",
"prettier-plugin-jsdoc": "^0.4.2",
"qunit": "^2.19.4",
"rollup": "^3.21.6",
"tar": "^6.1.14",
"timekeeper": "^2.2.0",
"tsd": "^0.28.1",
"typedoc": "^0.24.7",
"typedoc-plugin-markdown": "^3.15.3",
"typedoc-plugin-mdn-links": "^3.0.3",
"typescript": "^5.0.4"
},
"deno": "./dist/browser/index.js"
}