massimo-cli 0.1.2 → 0.1.4
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
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# massimo-cli
|
|
2
2
|
|
|
3
3
|
Check out the full documentation for Massimo on [massimohttp.dev](https://massimohttp.dev).
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install
|
|
8
|
+
npm install massimo-cli
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## License
|
package/lib/graphql-generator.js
CHANGED
|
@@ -23,7 +23,7 @@ function generateTypesFromGraphQL ({ schema, name }) {
|
|
|
23
23
|
|
|
24
24
|
const functionName = `generate${capitalize(camelcasedName)}Client`
|
|
25
25
|
|
|
26
|
-
writer.writeLine("import { type PlatformaticClientOptions } from '
|
|
26
|
+
writer.writeLine("import { type PlatformaticClientOptions } from 'massimo'")
|
|
27
27
|
writer.blankLine()
|
|
28
28
|
|
|
29
29
|
writer.write('interface GraphQLQueryOptions').block(() => {
|
|
@@ -69,7 +69,7 @@ function generateImplementationFromGraqhQL ({ name, url }) {
|
|
|
69
69
|
useSingleQuote: true
|
|
70
70
|
})
|
|
71
71
|
|
|
72
|
-
writer.writeLine("import { buildGraphQLClient } from '
|
|
72
|
+
writer.writeLine("import { buildGraphQLClient } from 'massimo'")
|
|
73
73
|
writer.writeLine("import { join } from 'node:path'")
|
|
74
74
|
writer.blankLine()
|
|
75
75
|
|
package/lib/openapi-common.js
CHANGED
package/lib/openapi-generator.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { generateOperationId } from '
|
|
1
|
+
import { generateOperationId } from 'massimo'
|
|
2
2
|
import CodeBlockWriter from 'code-block-writer'
|
|
3
3
|
import { writeOperations } from './openapi-common.js'
|
|
4
4
|
import { capitalize, toJavaScriptName } from './utils.js'
|
|
@@ -36,7 +36,7 @@ function generateImplementationFromOpenAPI ({ name, fullResponse, fullRequest, v
|
|
|
36
36
|
useSingleQuote: true
|
|
37
37
|
})
|
|
38
38
|
|
|
39
|
-
writer.writeLine("import { buildOpenAPIClient } from '
|
|
39
|
+
writer.writeLine("import { buildOpenAPIClient } from 'massimo'")
|
|
40
40
|
writer.writeLine("import { join } from 'node:path'")
|
|
41
41
|
writer.blankLine()
|
|
42
42
|
|
|
@@ -117,7 +117,7 @@ function generateTypesFromOpenAPI ({
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
writer.writeLine(
|
|
120
|
-
"import { type GetHeadersOptions, type PlatformaticClientOptions, type StatusCode1xx, type StatusCode2xx, type StatusCode3xx, type StatusCode4xx, type StatusCode5xx } from '
|
|
120
|
+
"import { type GetHeadersOptions, type PlatformaticClientOptions, type StatusCode1xx, type StatusCode2xx, type StatusCode3xx, type StatusCode4xx, type StatusCode5xx } from 'massimo'"
|
|
121
121
|
)
|
|
122
122
|
writer.writeLine("import { type FormData } from 'undici'")
|
|
123
123
|
writer.blankLine()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "massimo-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "A client for HTTP services.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"pino-pretty": "^13.0.0",
|
|
31
31
|
"undici": "^7.0.0",
|
|
32
32
|
"yaml": "^2.4.1",
|
|
33
|
-
"
|
|
33
|
+
"massimo": "0.1.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@platformatic/composer": "3.0.0-alpha.6",
|