@anephenix/objection-relations 0.0.6 → 0.0.8
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 +1 -1
- package/package.json +18 -16
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# objection-relations
|
|
2
2
|
|
|
3
|
-
[](https://github.com/anephenix/objection-relations/actions/workflows/node.js.yml) [](https://codeclimate.com/github/anephenix/objection-relations/maintainability) [](https://codeclimate.com/github/anephenix/objection-relations/test_coverage)
|
|
3
|
+
[](https://badge.fury.io/js/%40anephenix%2Fobjection-relations) [](https://github.com/anephenix/objection-relations/actions/workflows/node.js.yml) [](https://codeclimate.com/github/anephenix/objection-relations/maintainability) [](https://codeclimate.com/github/anephenix/objection-relations/test_coverage) [](https://socket.dev/npm/package/@anephenix/objection-relations)
|
|
4
4
|
|
|
5
5
|
A relations helper for Objection.js. This provides a convenient way to define
|
|
6
6
|
relations in the `relationMappings` function on an Objection.js model.
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.8",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -16,32 +16,38 @@
|
|
|
16
16
|
"pluralize": "^8.0.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@
|
|
19
|
+
"@eslint/js": "^9.19.0",
|
|
20
20
|
"@types/jest": "^29.5.14",
|
|
21
21
|
"@types/lodash.snakecase": "^4.1.9",
|
|
22
22
|
"@types/pluralize": "^0.0.33",
|
|
23
|
+
"eslint": "^9.19.0",
|
|
24
|
+
"globals": "^15.14.0",
|
|
23
25
|
"husky": "^9.1.7",
|
|
24
|
-
"
|
|
26
|
+
"mocha": "^11.1.0",
|
|
27
|
+
"nyc": "^17.1.0",
|
|
25
28
|
"size-limit": "^11.1.6",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"typescript": "^5.7.3"
|
|
29
|
+
"size-limit-preset-node-lib": "^0.3.0",
|
|
30
|
+
"ts-node": "^10.9.2",
|
|
31
|
+
"typescript": "^5.7.3",
|
|
32
|
+
"typescript-eslint": "^8.23.0"
|
|
29
33
|
},
|
|
30
34
|
"author": "Paul Jensen <paul@anephenix.com>",
|
|
31
35
|
"scripts": {
|
|
32
36
|
"analyze": "size-limit --why",
|
|
33
|
-
"build": "
|
|
34
|
-
"
|
|
37
|
+
"build": "tsc --project tsconfig.json",
|
|
38
|
+
"cover": "NODE_ENV=test npx nyc --reporter=lcov npm t",
|
|
39
|
+
"lint": "npx eslint .",
|
|
35
40
|
"prepare-patch-release": "npm run update-changelog && git add CHANGELOG.md && git commit -m \"Updated changelog\" && npm version patch",
|
|
36
41
|
"publish-patch-release": "npm run prepare-patch-release && git push origin main && git push --tags",
|
|
37
42
|
"size": "size-limit",
|
|
38
43
|
"start": "tsdx watch --target node",
|
|
39
|
-
"test": "
|
|
40
|
-
"update-changelog": "node scripts/update-changelog.
|
|
44
|
+
"test": "NODE_ENV=test npx mocha --require ts-node/register --extensions ts test/**/*",
|
|
45
|
+
"update-changelog": "npx ts-node scripts/update-changelog.ts",
|
|
46
|
+
"prepare": "husky"
|
|
41
47
|
},
|
|
42
48
|
"husky": {
|
|
43
49
|
"hooks": {
|
|
44
|
-
"pre-commit": "
|
|
50
|
+
"pre-commit": "npm run lint && npm test"
|
|
45
51
|
}
|
|
46
52
|
},
|
|
47
53
|
"name": "@anephenix/objection-relations",
|
|
@@ -54,11 +60,7 @@
|
|
|
54
60
|
},
|
|
55
61
|
"size-limit": [
|
|
56
62
|
{
|
|
57
|
-
"path": "dist/
|
|
58
|
-
"limit": "10 KB"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"path": "dist/objection-relations.esm.js",
|
|
63
|
+
"path": "dist/index.js",
|
|
62
64
|
"limit": "10 KB"
|
|
63
65
|
}
|
|
64
66
|
]
|