@adrdp/pg-rest 0.0.0-stage → 0.1.1
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 +184 -2
- package/dist/adapter-SqPs6SuJ.d.ts +27 -0
- package/dist/adapters/bun.d.ts +22 -0
- package/dist/adapters/bun.js +22 -0
- package/dist/adapters/node-postgres.d.ts +27 -0
- package/dist/adapters/node-postgres.js +34 -0
- package/dist/adapters/pglite.d.ts +24 -0
- package/dist/adapters/pglite.js +20 -0
- package/dist/adapters/postgres-js.d.ts +24 -0
- package/dist/adapters/postgres-js.js +21 -0
- package/dist/index.d.ts +259 -0
- package/dist/index.js +3549 -0
- package/package.json +87 -4
package/package.json
CHANGED
|
@@ -1,6 +1,89 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adrdp/pg-rest",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "A PostgREST-compatible REST layer for PostgreSQL, consumed as a library (Bun, Node.js and other runtimes with web-standard Request/Response). You decide who the user is (RLS) — no JWT required.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Alexandre Dos Reis",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/alexandre-dos-reis/pg-rest.git"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"module": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./adapters/bun": {
|
|
24
|
+
"types": "./dist/adapters/bun.d.ts",
|
|
25
|
+
"default": "./dist/adapters/bun.js"
|
|
26
|
+
},
|
|
27
|
+
"./adapters/node-postgres": {
|
|
28
|
+
"types": "./dist/adapters/node-postgres.d.ts",
|
|
29
|
+
"default": "./dist/adapters/node-postgres.js"
|
|
30
|
+
},
|
|
31
|
+
"./adapters/postgres-js": {
|
|
32
|
+
"types": "./dist/adapters/postgres-js.d.ts",
|
|
33
|
+
"default": "./dist/adapters/postgres-js.js"
|
|
34
|
+
},
|
|
35
|
+
"./adapters/pglite": {
|
|
36
|
+
"types": "./dist/adapters/pglite.d.ts",
|
|
37
|
+
"default": "./dist/adapters/pglite.js"
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "tsdown",
|
|
43
|
+
"dev": "tsdown --watch",
|
|
44
|
+
"test": "bun test",
|
|
45
|
+
"typecheck": "tsc --noEmit",
|
|
46
|
+
"prepublishOnly": "bun run build",
|
|
47
|
+
"test:compare": "bun test tests/compare",
|
|
48
|
+
"bench": "bun bench/run.ts",
|
|
49
|
+
"changeset": "changeset",
|
|
50
|
+
"version": "changeset version && bun run check:examples --fix && bun install --lockfile-only",
|
|
51
|
+
"release": "changeset publish",
|
|
52
|
+
"prepare": "git rev-parse --git-dir > /dev/null 2>&1 && git config core.hooksPath scripts/githooks || true",
|
|
53
|
+
"check:examples": "bun run scripts/check-example-versions.ts",
|
|
54
|
+
"link:examples": "scripts/link-examples.sh",
|
|
55
|
+
"lint": "oxlint src tests",
|
|
56
|
+
"fmt": "oxfmt src tests",
|
|
57
|
+
"fmt:check": "oxfmt --check src tests"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@changesets/cli": "^3.0.3",
|
|
61
|
+
"@electric-sql/pglite": "^0.5.15",
|
|
62
|
+
"@hono/node-server": "^2.1.6",
|
|
63
|
+
"@types/bun": "latest",
|
|
64
|
+
"@types/pg": "^8.23.1",
|
|
65
|
+
"autocannon": "^8.0.0",
|
|
66
|
+
"oxfmt": "^0.76.0",
|
|
67
|
+
"oxlint": "^1.91.0",
|
|
68
|
+
"pg": "^8.23.1",
|
|
69
|
+
"postgres": "^4.0.0",
|
|
70
|
+
"tsdown": "^0.17.0",
|
|
71
|
+
"typescript": "^5.9.3"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@electric-sql/pglite": ">=0.2.0",
|
|
75
|
+
"pg": "^8.0.0",
|
|
76
|
+
"postgres": ">=3.0.0"
|
|
77
|
+
},
|
|
78
|
+
"peerDependenciesMeta": {
|
|
79
|
+
"pg": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"postgres": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"@electric-sql/pglite": {
|
|
86
|
+
"optional": true
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|