@ayepi/core 0.1.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/LICENSE +21 -0
- package/README.md +89 -0
- package/dist/client/index.cjs +5 -0
- package/dist/client/index.d.cts +2 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +2 -0
- package/dist/doer.cjs +110 -0
- package/dist/doer.d.cts +75 -0
- package/dist/doer.d.ts +75 -0
- package/dist/doer.js +106 -0
- package/dist/errors.d.cts +1729 -0
- package/dist/errors.d.ts +1729 -0
- package/dist/index.cjs +2004 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1968 -0
- package/dist/retry.cjs +135 -0
- package/dist/retry.d.cts +90 -0
- package/dist/retry.d.ts +90 -0
- package/dist/retry.js +129 -0
- package/dist/stats.cjs +0 -0
- package/dist/stats.d.cts +150 -0
- package/dist/stats.d.ts +150 -0
- package/dist/stats.js +0 -0
- package/dist/types.d.cts +54 -0
- package/dist/types.d.ts +54 -0
- package/dist/ws-transport.cjs +1472 -0
- package/dist/ws-transport.js +1383 -0
- package/package.json +110 -0
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ayepi/core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "zod-first, painfully-typed HTTP + WebSocket API library with OpenAPI 3.1 + AsyncAPI 3.0 generation",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/ClickerMonkey/ayepi.git",
|
|
12
|
+
"directory": "packages/core"
|
|
13
|
+
},
|
|
14
|
+
"homepage": "https://github.com/ClickerMonkey/ayepi/tree/main/packages/core#readme",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/ClickerMonkey/ayepi/issues"
|
|
17
|
+
},
|
|
18
|
+
"type": "module",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"default": "./dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/index.d.cts",
|
|
31
|
+
"default": "./dist/index.cjs"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"./client": {
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./dist/client/index.d.ts",
|
|
37
|
+
"default": "./dist/client/index.js"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./dist/client/index.d.cts",
|
|
41
|
+
"default": "./dist/client/index.cjs"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"./doer": {
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./dist/doer.d.ts",
|
|
47
|
+
"default": "./dist/doer.js"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./dist/doer.d.cts",
|
|
51
|
+
"default": "./dist/doer.cjs"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"./retry": {
|
|
55
|
+
"import": {
|
|
56
|
+
"types": "./dist/retry.d.ts",
|
|
57
|
+
"default": "./dist/retry.js"
|
|
58
|
+
},
|
|
59
|
+
"require": {
|
|
60
|
+
"types": "./dist/retry.d.cts",
|
|
61
|
+
"default": "./dist/retry.cjs"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"./stats": {
|
|
65
|
+
"import": {
|
|
66
|
+
"types": "./dist/stats.d.ts",
|
|
67
|
+
"default": "./dist/stats.js"
|
|
68
|
+
},
|
|
69
|
+
"require": {
|
|
70
|
+
"types": "./dist/stats.d.cts",
|
|
71
|
+
"default": "./dist/stats.cjs"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"./package.json": "./package.json"
|
|
75
|
+
},
|
|
76
|
+
"engines": {
|
|
77
|
+
"node": ">=18"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"zod": "^4"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@arethetypeswrong/cli": "^0.17.0",
|
|
84
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
85
|
+
"esbuild": "^0.28.0",
|
|
86
|
+
"publint": "^0.3.0",
|
|
87
|
+
"tsdown": "^0.12.0",
|
|
88
|
+
"vitest": "^2.1.8"
|
|
89
|
+
},
|
|
90
|
+
"keywords": [
|
|
91
|
+
"api",
|
|
92
|
+
"zod",
|
|
93
|
+
"openapi",
|
|
94
|
+
"asyncapi",
|
|
95
|
+
"websocket",
|
|
96
|
+
"typescript",
|
|
97
|
+
"rpc",
|
|
98
|
+
"fetch"
|
|
99
|
+
],
|
|
100
|
+
"scripts": {
|
|
101
|
+
"build": "tsdown",
|
|
102
|
+
"typecheck": "tsc --noEmit",
|
|
103
|
+
"smoke": "tsx example.ts --run",
|
|
104
|
+
"test": "vitest run --coverage",
|
|
105
|
+
"test:coverage": "vitest run --coverage",
|
|
106
|
+
"test:watch": "vitest",
|
|
107
|
+
"attw": "attw --pack .",
|
|
108
|
+
"publint": "publint"
|
|
109
|
+
}
|
|
110
|
+
}
|