@smartive/graphql-magic 17.8.0 → 17.8.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 +3 -3
- package/dist/cjs/index.cjs +3 -2
- package/dist/esm/models/utils.js +3 -2
- package/dist/esm/models/utils.js.map +1 -1
- package/docs/package-lock.json +293 -789
- package/docs/package.json +5 -5
- package/package.json +6 -6
- package/src/models/utils.ts +3 -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.8.0",
|
|
19
|
+
"@docusaurus/preset-classic": "3.8.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": "^19.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.8.0",
|
|
28
|
+
"@docusaurus/tsconfig": "3.8.0",
|
|
29
|
+
"@docusaurus/types": "3.8.0",
|
|
30
30
|
"typescript": "5.8.3"
|
|
31
31
|
},
|
|
32
32
|
"browserslist": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartive/graphql-magic",
|
|
3
|
-
"version": "17.8.
|
|
3
|
+
"version": "17.8.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -68,18 +68,18 @@
|
|
|
68
68
|
"@smartive/eslint-config": "6.5.0",
|
|
69
69
|
"@smartive/prettier-config": "3.1.2",
|
|
70
70
|
"@types/jest": "29.5.14",
|
|
71
|
-
"@types/lodash": "4.17.
|
|
71
|
+
"@types/lodash": "4.17.17",
|
|
72
72
|
"@types/luxon": "3.6.2",
|
|
73
|
-
"@types/pg": "8.15.
|
|
73
|
+
"@types/pg": "8.15.2",
|
|
74
74
|
"@types/uuid": "10.0.0",
|
|
75
75
|
"create-ts-index": "1.14.0",
|
|
76
76
|
"del-cli": "6.0.0",
|
|
77
|
-
"esbuild": "0.25.
|
|
78
|
-
"eslint": "9.
|
|
77
|
+
"esbuild": "0.25.5",
|
|
78
|
+
"eslint": "9.27.0",
|
|
79
79
|
"jest": "29.7.0",
|
|
80
80
|
"mock-knex": "0.4.13",
|
|
81
81
|
"prettier": "3.5.3",
|
|
82
|
-
"ts-jest": "29.3.
|
|
82
|
+
"ts-jest": "29.3.4",
|
|
83
83
|
"ts-node": "10.9.2",
|
|
84
84
|
"typescript": "5.8.3"
|
|
85
85
|
}
|
package/src/models/utils.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import assert from 'assert';
|
|
2
1
|
import camelCase from 'lodash/camelCase';
|
|
3
2
|
import lodashGet from 'lodash/get';
|
|
4
3
|
import startCase from 'lodash/startCase';
|
|
@@ -161,7 +160,9 @@ export const get = <T, U extends keyof ForSure<T>>(object: T | null | undefined,
|
|
|
161
160
|
};
|
|
162
161
|
|
|
163
162
|
export const getString = (v: unknown) => {
|
|
164
|
-
|
|
163
|
+
if (typeof v !== 'string') {
|
|
164
|
+
throw new Error(`Expected string, got ${typeof v}`);
|
|
165
|
+
}
|
|
165
166
|
|
|
166
167
|
return v;
|
|
167
168
|
};
|