@nxgt/datasource-rest 3.0.0 → 3.0.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/README.md +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ bun add -d @nxgt/openapi-codegen typescript
|
|
|
18
18
|
|
|
19
19
|
`@nxgt/httpyz` and `@nxgt/openapi-httpyz` are required peers. The generated
|
|
20
20
|
`operations.ts` imports `zod`, so the app needs it too. TypeScript is a peer,
|
|
21
|
-
`^6.0.3`, as in every `@nxgt/*` package. `@nxgt/openapi-codegen` generates
|
|
21
|
+
`^6.0.3 || ^7.0.0`, as in every `@nxgt/*` package. `@nxgt/openapi-codegen` generates
|
|
22
22
|
the spec's files, with `nxgt-openapi generate`.
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
@@ -28,7 +28,7 @@ request:
|
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
30
|
import { RESTDataSource } from '@nxgt/datasource-rest';
|
|
31
|
-
import { operations } from './generated/bookmarks/operations
|
|
31
|
+
import { operations } from './generated/bookmarks/operations';
|
|
32
32
|
|
|
33
33
|
export class Bookmarks extends RESTDataSource.for(operations) {
|
|
34
34
|
bookmark(id: string) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/datasource-rest",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@nxgt/httpyz": "^0.
|
|
44
|
-
"@nxgt/openapi-codegen": "^0.
|
|
45
|
-
"@nxgt/openapi-httpyz": "^0.1
|
|
43
|
+
"@nxgt/httpyz": "^0.3.2",
|
|
44
|
+
"@nxgt/openapi-codegen": "^0.7.0",
|
|
45
|
+
"@nxgt/openapi-httpyz": "^0.3.1",
|
|
46
46
|
"@types/bun": "^1.4.0",
|
|
47
47
|
"zod": "^4.5.4"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@nxgt/httpyz": "^0.
|
|
51
|
-
"@nxgt/openapi-httpyz": "^0.1
|
|
52
|
-
"typescript": "^6.0.3"
|
|
50
|
+
"@nxgt/httpyz": "^0.3.2",
|
|
51
|
+
"@nxgt/openapi-httpyz": "^0.3.1",
|
|
52
|
+
"typescript": "^6.0.3 || ^7.0.0"
|
|
53
53
|
}
|
|
54
54
|
}
|