graphile-simple-inflector 0.1.7 → 0.1.9
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 +6 -12
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
<a href="https://github.com/launchql/launchql/actions/workflows/run-tests.yaml">
|
|
9
9
|
<img height="20" src="https://github.com/launchql/launchql/actions/workflows/run-tests.yaml/badge.svg" />
|
|
10
10
|
</a>
|
|
11
|
-
|
|
11
|
+
<a href="https://github.com/launchql/launchql/blob/main/LICENSE">
|
|
12
|
+
<img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/>
|
|
13
|
+
</a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/graphile-simple-inflector">
|
|
15
|
+
<img height="20" src="https://img.shields.io/github/package-json/v/launchql/launchql?filename=graphile%2Fgraphile-simple-inflector%2Fpackage.json"/>
|
|
16
|
+
</a>
|
|
12
17
|
</p>
|
|
13
18
|
|
|
14
19
|
Simplified naming inflector for Graphile/PostGraphile. It shortens common field names (e.g. `tableByNodeId` → `table`) and makes pluralization behave more predictably for numeric suffixes.
|
|
@@ -33,17 +38,6 @@ createPostGraphileSchema(pool, ['app_public'], {
|
|
|
33
38
|
});
|
|
34
39
|
```
|
|
35
40
|
|
|
36
|
-
## Testing
|
|
37
|
-
|
|
38
|
-
Tests expect a running PostgreSQL instance (see `utils/env.ts` for defaults). Seed the test database with the provided fixtures or let the test harness create them automatically:
|
|
39
|
-
|
|
40
|
-
```sh
|
|
41
|
-
psql -U postgres -f sql/roles.sql postgres
|
|
42
|
-
pnpm test --filter graphile-simple-inflector
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
The included SQL under `sql/` matches the original package's fixtures.
|
|
46
|
-
|
|
47
41
|
---
|
|
48
42
|
|
|
49
43
|
## Education and Tutorials
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-simple-inflector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Simple inflector plugin for Graphile/PostGraphile",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/launchql/launchql",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"url": "https://github.com/launchql/launchql/issues"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"graphile-test": "^2.8.
|
|
42
|
+
"graphile-test": "^2.8.10",
|
|
43
43
|
"graphql-tag": "2.12.6",
|
|
44
|
-
"makage": "^0.1.
|
|
45
|
-
"pgsql-test": "^2.14.
|
|
44
|
+
"makage": "^0.1.8",
|
|
45
|
+
"pgsql-test": "^2.14.13"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"graphile-build": "^4.14.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "4e1ff9771c2b07808a9830281abc24d12c689187"
|
|
51
51
|
}
|