@blitznocode/blitz-orm 0.0.39
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 +661 -0
- package/dist/index.d.ts +250 -0
- package/dist/index.js +1828 -0
- package/package.json +75 -0
- package/readme.md +12 -0
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@blitznocode/blitz-orm",
|
|
3
|
+
"version": "0.0.39",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "tsup --watch",
|
|
8
|
+
"build": "tsup",
|
|
9
|
+
"lint": "eslint . --ext .ts,.cjs",
|
|
10
|
+
"lint-staged": "lint-staged --concurrent false",
|
|
11
|
+
"types": "tsc --noEmit",
|
|
12
|
+
"test": "jest --coverage",
|
|
13
|
+
"test:watch": "jest --watch",
|
|
14
|
+
"deploy": "npm run build && npm publish"
|
|
15
|
+
},
|
|
16
|
+
"private": false,
|
|
17
|
+
"license": "AGPL-3.0-only",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/blitz/blitz.git",
|
|
21
|
+
"directory": "packages/blitz-orm"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"README.md",
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=16.8.0"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"immer": "^9.0.19",
|
|
32
|
+
"nanoid": "^4.0.1",
|
|
33
|
+
"object-traversal": "^1.0.1",
|
|
34
|
+
"radash": "^10.7.0",
|
|
35
|
+
"typedb-client": "^2.14.2",
|
|
36
|
+
"uuid": "^9.0.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/jest": "^29.2.5",
|
|
40
|
+
"@types/node": "^18.11.18",
|
|
41
|
+
"@types/uuid": "^9.0.0",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^5.50.0",
|
|
43
|
+
"@typescript-eslint/parser": "^5.50.0",
|
|
44
|
+
"eslint": "^8.33.0",
|
|
45
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
46
|
+
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
47
|
+
"eslint-config-prettier": "^8.6.0",
|
|
48
|
+
"eslint-plugin-import": "^2.27.5",
|
|
49
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
50
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
51
|
+
"jest": "^29.3.1",
|
|
52
|
+
"prettier": "^2.8.3",
|
|
53
|
+
"ts-jest": "^29.0.3",
|
|
54
|
+
"tsup": "^6.5.0",
|
|
55
|
+
"typescript": "^4.9.5"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {},
|
|
58
|
+
"peerDependenciesMeta": {
|
|
59
|
+
"essentials": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"description": "Blitz-orm is a public package that can be open-sourced",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/blitz/blitz/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/blitz/blitz#readme",
|
|
68
|
+
"directories": {
|
|
69
|
+
"test": "tests"
|
|
70
|
+
},
|
|
71
|
+
"keywords": [
|
|
72
|
+
"ORM"
|
|
73
|
+
],
|
|
74
|
+
"author": "blitznocode"
|
|
75
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Blitz-orm is a public package that can be open-sourced
|
|
2
|
+
|
|
3
|
+
Similar to Prisma, it's used to interpret a BQL schema and provide the client and the server with tools to ensure they are "speaking the same language"
|
|
4
|
+
|
|
5
|
+
## Definitions
|
|
6
|
+
### Client
|
|
7
|
+
The client is usually a frontend app that will send BQL requests (queries or mutations) to the API
|
|
8
|
+
### Server
|
|
9
|
+
The server is usually and endpoint that receives a BQL object
|
|
10
|
+
|
|
11
|
+
## How does it work
|
|
12
|
+
The client can get
|