@smartive/graphql-magic 16.2.0 → 16.2.2
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/CHANGELOG.md +2 -10
- package/dist/cjs/index.cjs +2 -2
- package/dist/esm/resolvers/mutations.js +2 -2
- package/dist/esm/resolvers/mutations.js.map +1 -1
- package/docs/package-lock.json +1392 -1342
- package/docs/package.json +5 -5
- package/package.json +3 -3
- package/src/resolvers/mutations.ts +2 -2
package/docs/package.json
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"typecheck": "tsc"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@docusaurus/core": "3.
|
|
19
|
-
"@docusaurus/preset-classic": "3.
|
|
18
|
+
"@docusaurus/core": "3.6.0",
|
|
19
|
+
"@docusaurus/preset-classic": "3.6.0",
|
|
20
20
|
"@mdx-js/react": "^3.0.0",
|
|
21
21
|
"clsx": "^2.0.0",
|
|
22
22
|
"prism-react-renderer": "^2.3.0",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"react-dom": "^18.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@docusaurus/module-type-aliases": "3.
|
|
28
|
-
"@docusaurus/tsconfig": "3.
|
|
29
|
-
"@docusaurus/types": "3.
|
|
27
|
+
"@docusaurus/module-type-aliases": "3.6.0",
|
|
28
|
+
"@docusaurus/tsconfig": "3.6.0",
|
|
29
|
+
"@docusaurus/types": "3.6.0",
|
|
30
30
|
"typescript": "5.5.4"
|
|
31
31
|
},
|
|
32
32
|
"browserslist": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartive/graphql-magic",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@smartive/eslint-config": "3.3.0",
|
|
73
73
|
"@smartive/prettier-config": "3.1.2",
|
|
74
|
-
"@types/jest": "29.5.
|
|
75
|
-
"@types/lodash": "4.17.
|
|
74
|
+
"@types/jest": "29.5.14",
|
|
75
|
+
"@types/lodash": "4.17.13",
|
|
76
76
|
"@types/luxon": "3.4.2",
|
|
77
77
|
"@types/pg": "8.11.10",
|
|
78
78
|
"@types/uuid": "9.0.8",
|
|
@@ -279,7 +279,7 @@ const restore = async (model: EntityModel, { where }: { where: any }, ctx: FullC
|
|
|
279
279
|
const data = { prev: relatedEntity, input: {}, normalizedInput, next: { ...relatedEntity, ...normalizedInput } };
|
|
280
280
|
if (ctx.mutationHook) {
|
|
281
281
|
beforeHooks.push(async () => {
|
|
282
|
-
await ctx.mutationHook(
|
|
282
|
+
await ctx.mutationHook(currentModel, 'restore', 'before', data, ctx);
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
285
|
mutations.push(async () => {
|
|
@@ -288,7 +288,7 @@ const restore = async (model: EntityModel, { where }: { where: any }, ctx: FullC
|
|
|
288
288
|
});
|
|
289
289
|
if (ctx.mutationHook) {
|
|
290
290
|
afterHooks.push(async () => {
|
|
291
|
-
await ctx.mutationHook(
|
|
291
|
+
await ctx.mutationHook(currentModel, 'restore', 'after', data, ctx);
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
|