@ahoo-wang/fetcher-generator 2.2.8 → 2.3.0
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.zh-CN.md +2 -2
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/client/commandClientGenerator.d.ts.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +197 -186
- package/dist/index.js.map +1 -1
- package/dist/model/modelGenerator.d.ts.map +1 -1
- package/dist/utils/naming.d.ts +12 -0
- package/dist/utils/naming.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelGenerator.d.ts","sourceRoot":"","sources":["../../src/model/modelGenerator.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAaL,SAAS,
|
|
1
|
+
{"version":3,"file":"modelGenerator.d.ts","sourceRoot":"","sources":["../../src/model/modelGenerator.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAaL,SAAS,EAKV,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;;;;;GAQG;AACH,qBAAa,cAAe,SAAQ,iBAAiB;gBACvC,OAAO,EAAE,eAAe;IAIpC,OAAO,CAAC,qBAAqB;IAK7B;;;;;;;OAOG;IACH,QAAQ;IAoBR,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,WAAW;IAInB;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,SAAS;IAS9C,OAAO,CAAC,OAAO;IAyDf,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,gBAAgB;IA6BxB,OAAO,CAAC,mBAAmB;IAyD3B,OAAO,CAAC,8BAA8B;CA0BvC"}
|
package/dist/utils/naming.d.ts
CHANGED
|
@@ -18,4 +18,16 @@ export declare function pascalCase(name: string | string[]): string;
|
|
|
18
18
|
* @returns The camelCase formatted string
|
|
19
19
|
*/
|
|
20
20
|
export declare function camelCase(name: string | string[]): string;
|
|
21
|
+
/**
|
|
22
|
+
* Converts a string or array of strings to UPPER_SNAKE_CASE format.
|
|
23
|
+
*
|
|
24
|
+
* This function takes a string or array of strings and converts them to UPPER_SNAKE_CASE format
|
|
25
|
+
* by splitting the input based on common naming separators, converting each part to uppercase,
|
|
26
|
+
* and joining them with underscores. It properly handles consecutive uppercase letters
|
|
27
|
+
* (like acronyms) by treating them as single units.
|
|
28
|
+
*
|
|
29
|
+
* @param name - A string or array of strings to convert to UPPER_SNAKE_CASE
|
|
30
|
+
* @returns The UPPER_SNAKE_CASE formatted string
|
|
31
|
+
*/
|
|
32
|
+
export declare function upperSnakeCase(name: string | string[]): string;
|
|
21
33
|
//# sourceMappingURL=naming.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/utils/naming.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/utils/naming.ts"],"names":[],"mappings":"AAsEA;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAiB1D;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAGzD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAU9D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ahoo-wang/fetcher-generator",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "TypeScript code generator from OpenAPI specs for Wow domain-driven design framework. ",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fetch",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"ts-morph": "^27.0.0",
|
|
50
50
|
"commander": "^14.0.0",
|
|
51
51
|
"yaml": "^2.3.1",
|
|
52
|
-
"@ahoo-wang/fetcher": "2.
|
|
53
|
-
"@ahoo-wang/fetcher-eventstream": "2.
|
|
54
|
-
"@ahoo-wang/fetcher-
|
|
55
|
-
"@ahoo-wang/fetcher-
|
|
56
|
-
"@ahoo-wang/fetcher-
|
|
52
|
+
"@ahoo-wang/fetcher": "2.3.0",
|
|
53
|
+
"@ahoo-wang/fetcher-eventstream": "2.3.0",
|
|
54
|
+
"@ahoo-wang/fetcher-openapi": "2.3.0",
|
|
55
|
+
"@ahoo-wang/fetcher-wow": "2.3.0",
|
|
56
|
+
"@ahoo-wang/fetcher-decorator": "2.3.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@eslint/js": "^9.36.0",
|