@data-loom/postgrest-js 0.0.2-alpha.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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -0
  3. package/package.json +68 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Dataloom
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ ### Quick start
2
+
3
+ Install
4
+
5
+ ```bash
6
+ npm install @data-loom/postgrest-js
7
+ ```
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@data-loom/postgrest-js",
3
+ "version": "0.0.2-alpha.1",
4
+ "description": "Isomorphic PostgREST client",
5
+ "keywords": [
6
+ "postgrest",
7
+ "dataloom"
8
+ ],
9
+ "license": "MIT",
10
+ "author": "Dataloom",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "main": "dist/cjs/index.js",
15
+ "module": "dist/esm/wrapper.mjs",
16
+ "exports": {
17
+ "import": {
18
+ "types": "./dist/cjs/index.d.ts",
19
+ "default": "./dist/esm/wrapper.mjs"
20
+ },
21
+ "require": {
22
+ "types": "./dist/cjs/index.d.ts",
23
+ "default": "./dist/cjs/index.js"
24
+ }
25
+ },
26
+ "types": "./dist/cjs/index.d.ts",
27
+ "scripts": {
28
+ "clean": "rimraf dist docs/v2",
29
+ "format": "prettier --write \"{src,test}/**/*.ts\" wrapper.mjs",
30
+ "format:check": "prettier --check \"{src,test}/**/*.ts\"",
31
+ "build": "run-s clean format build:*",
32
+ "build:cjs": "npx tsc -p tsconfig.json",
33
+ "build:esm": "cpy wrapper.mjs dist/esm/",
34
+ "docs": "typedoc src/index.ts --out docs/v2",
35
+ "docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
36
+ "test": "run-s format:check test:types db:clean db:run test:run db:clean && node test/smoke.cjs && node test/smoke.mjs",
37
+ "test:run": "jest --runInBand --coverage",
38
+ "test:update": "run-s db:clean db:run db:generate-test-types && jest --runInBand --updateSnapshot && run-s db:clean",
39
+ "test:types": "run-s build && tsd --files 'test/**/*.test-d.ts'",
40
+ "test:cov": "exit 0",
41
+ "lint": "exit 0",
42
+ "test:types:watch": "run-s build && tsd --files 'test/**/*.test-d.ts' --watch",
43
+ "db:clean": "cd test/db && docker compose down --volumes",
44
+ "db:run": "cd test/db && docker compose up --detach && wait-for-localhost 3000",
45
+ "db:generate-test-types": "cd test/db && docker compose up --detach && wait-for-localhost 8080 && curl --location 'http://0.0.0.0:8080/generators/typescript?included_schemas=public,personal&detect_one_to_one_relationships=true' > ../types.generated.ts && sed -i 's/export type Json = .*/export type Json = unknown;/' ../types.generated.ts"
46
+ },
47
+ "dependencies": {
48
+ "@data-loom/node-fetch": "0.0.2-alpha.1"
49
+ },
50
+ "devDependencies": {
51
+ "@types/jest": "~29.2.4",
52
+ "cpy-cli": "^5.0.0",
53
+ "jest": "^29.6.1",
54
+ "node-abort-controller": "^3.0.1",
55
+ "npm-run-all": "^4.1.5",
56
+ "prettier": "^2",
57
+ "rimraf": "^3.0.0",
58
+ "semantic-release-plugin-update-version-in-files": "^1.1.0",
59
+ "ts-expect": "^1.3.0",
60
+ "ts-jest": "^28.0.7",
61
+ "tsd": "^0.31.2",
62
+ "type-fest": "^4.18.2",
63
+ "typedoc": "~0.23.24",
64
+ "typescript": "^4",
65
+ "wait-for-localhost-cli": "^3.0.0",
66
+ "eslint": "^8"
67
+ }
68
+ }