Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 2.61 KB
/
Copy pathpackage.json
File metadata and controls
94 lines (94 loc) · 2.61 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
{
"name": "@gratio/crypt",
"version": "2.2.0",
"description": "A very simple package for encrypting communications between server and client.",
"main": "index.js",
"module": "index.mjs",
"types": "types.d.ts",
"type": "commonjs",
"scripts": {
"build": "npm run build:client && npm run build:client:debug && npm run build:client:esm",
"build:client": "esbuild lib/client.browser.js --bundle --minify --target=es5 --format=iife --outfile=dist/gcrypt.min.js",
"build:client:debug": "esbuild lib/client.browser.js --bundle --target=es5 --format=iife --outfile=dist/gcrypt.js",
"build:client:esm": "esbuild lib/client.esm.js --bundle --minify --format=esm --outfile=dist/gcrypt.esm.js && esbuild lib/client.esm.js --bundle --minify --format=esm --outfile=dist/gcrypt.esm.mjs",
"pretest": "npm run build",
"prepack": "npm run build",
"test": "node --test"
},
"browser": {
"./index.js": "./index.browser.js"
},
"exports": {
".": {
"types": "./types.d.ts",
"browser": {
"import": "./index.browser.mjs",
"require": "./index.browser.js"
},
"import": "./index.mjs",
"require": "./index.js",
"default": "./index.js"
},
"./client": {
"types": "./types.d.ts",
"browser": {
"import": "./lib/client.esm.js",
"require": "./lib/client.browser.js"
},
"import": "./lib/client.esm.js",
"require": "./lib/client.js",
"default": "./lib/client.js"
},
"./server": {
"types": "./types.d.ts",
"require": "./lib/server.js",
"default": "./lib/server.js"
},
"./cypher": {
"types": "./types.d.ts",
"import": "./lib/cypher/index.js",
"require": "./lib/cypher/index.js",
"default": "./lib/cypher/index.js"
},
"./dist/*": "./dist/*",
"./package.json": "./package.json"
},
"files": [
"index.js",
"index.mjs",
"index.browser.js",
"index.browser.mjs",
"lib/client.js",
"lib/client.browser.js",
"lib/client.esm.js",
"lib/server.js",
"lib/cypher",
"dist",
"types.d.ts"
],
"repository": {
"type": "git",
"url": "git+https://github.com/Gratio-tech/Crypt.git"
},
"author": "Gratio",
"license": "MIT",
"bugs": {
"url": "https://github.com/Gratio-tech/Crypt/issues"
},
"homepage": "https://github.com/Gratio-tech/Crypt#readme",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/node": "^22.14.1",
"esbuild": "^0.24.0"
},
"peerDependencies": {
"@gratio/api": "^1.0.x"
},
"peerDependenciesMeta": {
"@gratio/api": {
"optional": true
}
}
}