volter 0.0.15 → 0.0.17
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/README.md +2 -15
- package/package.json +19 -9
- package/{utils.ts → src/utils.ts} +9 -3
- package/tsconfig.json +21 -27
- package/biome.json +0 -40
- /package/{index.ts → src/index.ts} +0 -0
- /package/{receive.ts → src/receive.ts} +0 -0
- /package/{session.ts → src/session.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
To install dependencies:
|
|
4
|
-
|
|
5
|
-
```bash
|
|
6
|
-
bun install
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
To run:
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
bun run index.ts
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
This project was created using `bun init` in bun v1.2.21. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
|
|
1
|
+
# Volter
|
|
2
|
+
Secure, lightweight, and user-friendly modern JavaScript toolchain optimized for performance and minimalism.
|
package/package.json
CHANGED
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/package",
|
|
2
3
|
"name": "volter",
|
|
3
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.17",
|
|
4
5
|
"description": "Secure, lightweight, and user-friendly modern JavaScript toolchain optimized for performance and minimalism.",
|
|
5
6
|
"main": "index.ts",
|
|
6
7
|
"module": "index.ts",
|
|
7
8
|
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "bun build ./src/*.ts --outdir ./dist --target node"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
"./*": {
|
|
14
|
+
"types": "./dist/*.d.ts",
|
|
15
|
+
"import": "./dist/*.js",
|
|
16
|
+
"default": "./src/*.ts"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
8
19
|
"devDependencies": {
|
|
20
|
+
"@repo/typescript-config": "0.0.0",
|
|
21
|
+
"typescript": "latest",
|
|
9
22
|
"@types/bun": "latest"
|
|
10
23
|
},
|
|
11
|
-
"peerDependencies": {
|
|
12
|
-
"typescript": "^5"
|
|
13
|
-
},
|
|
24
|
+
"peerDependencies": {},
|
|
14
25
|
"dependencies": {
|
|
15
|
-
"@paralleldrive/cuid2": "
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"zod": "^4.1.7"
|
|
26
|
+
"@paralleldrive/cuid2": "latest",
|
|
27
|
+
"chalk": "latest",
|
|
28
|
+
"drizzle-orm": "latest",
|
|
29
|
+
"zod": "latest"
|
|
20
30
|
}
|
|
21
31
|
}
|
|
@@ -2,6 +2,15 @@ import { privateDecrypt, publicEncrypt, randomInt } from "node:crypto"
|
|
|
2
2
|
import os from "node:os"
|
|
3
3
|
import chalk from "chalk"
|
|
4
4
|
import cuid2 from "@paralleldrive/cuid2"
|
|
5
|
+
import { generateKeyPairSync } from "node:crypto"
|
|
6
|
+
import z from "zod"
|
|
7
|
+
import type { SocketAddress } from "node:net"
|
|
8
|
+
|
|
9
|
+
declare global {
|
|
10
|
+
interface Request {
|
|
11
|
+
ip: SocketAddress
|
|
12
|
+
}
|
|
13
|
+
}
|
|
5
14
|
|
|
6
15
|
export const pin = z.string().min(6).max(6).regex(/\d{6}/)
|
|
7
16
|
|
|
@@ -102,9 +111,6 @@ export function listAdapters(): Adapter[] {
|
|
|
102
111
|
return results
|
|
103
112
|
}
|
|
104
113
|
|
|
105
|
-
import { generateKeyPairSync } from "node:crypto"
|
|
106
|
-
import z from "zod"
|
|
107
|
-
|
|
108
114
|
type KeyPair = {
|
|
109
115
|
public: string
|
|
110
116
|
private: string
|
package/tsconfig.json
CHANGED
|
@@ -1,29 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// Some stricter flags (disabled by default)
|
|
25
|
-
"noUnusedLocals": false,
|
|
26
|
-
"noUnusedParameters": false,
|
|
27
|
-
"noPropertyAccessFromIndexSignature": false
|
|
28
|
-
}
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"declarationMap": true,
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"incremental": false,
|
|
8
|
+
"isolatedModules": true,
|
|
9
|
+
"lib": ["es2022", "DOM", "DOM.Iterable"],
|
|
10
|
+
"module": "NodeNext",
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"moduleResolution": "NodeNext",
|
|
13
|
+
"noUncheckedIndexedAccess": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"strict": true,
|
|
17
|
+
"target": "ES2022",
|
|
18
|
+
"outDir": "dist",
|
|
19
|
+
"rootDir": "src"
|
|
20
|
+
},
|
|
21
|
+
"include": ["src"],
|
|
22
|
+
"exclude": ["node_modules", "dist"]
|
|
29
23
|
}
|
package/biome.json
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
|
|
3
|
-
"vcs": {
|
|
4
|
-
"enabled": false,
|
|
5
|
-
"clientKind": "git",
|
|
6
|
-
"useIgnoreFile": false
|
|
7
|
-
},
|
|
8
|
-
"files": {
|
|
9
|
-
"ignoreUnknown": false
|
|
10
|
-
},
|
|
11
|
-
"formatter": {
|
|
12
|
-
"enabled": true,
|
|
13
|
-
"indentStyle": "tab"
|
|
14
|
-
},
|
|
15
|
-
"linter": {
|
|
16
|
-
"enabled": true,
|
|
17
|
-
"rules": {
|
|
18
|
-
"recommended": true
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"javascript": {
|
|
22
|
-
"formatter": {
|
|
23
|
-
"quoteStyle": "double",
|
|
24
|
-
"semicolons": "asNeeded",
|
|
25
|
-
"lineWidth": 160,
|
|
26
|
-
"arrowParentheses": "asNeeded"
|
|
27
|
-
},
|
|
28
|
-
"linter": {
|
|
29
|
-
"enabled": true
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"assist": {
|
|
33
|
-
"enabled": true,
|
|
34
|
-
"actions": {
|
|
35
|
-
"source": {
|
|
36
|
-
"organizeImports": "off"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|