@power-plant/hey-api 0.0.11 → 0.0.12
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 +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ The Power Plant monorepo is a collection of packages that are designed to work t
|
|
|
33
33
|
|
|
34
34
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
35
35
|
|
|
36
|
-
[](https://docs.stormsoftware.com/projects/power-plant) [](http://commitizen.github.io/cz-cli/)  
|
|
37
37
|
|
|
38
38
|
<!-- prettier-ignore-start -->
|
|
39
39
|
<!-- markdownlint-disable -->
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("@hey-api/openapi-ts"),l=require("@power-plant/core"),u=require("@power-plant/openapi-schema");u=s(u,1);let d=require("@stryke/convert/to-array");var f=(0,l.defineGenerator)({meta:{name:`hey-api`,title:`Hey API`,description:`A generator that uses the OpenAPI specification to generate source code using Hey API.`,version:`1.0`,tags:[`openapi`],links:[{href:`https://heyapi.dev`,description:`Hey API Documentation`},{href:`https://github.com/heyapi/heyapi`,description:`Hey API GitHub Repository`}]},schema:u.default,generator:async(e,t)=>{let{cwd:n}=(0,l.
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("@hey-api/openapi-ts"),l=require("@power-plant/core"),u=require("@power-plant/openapi-schema");u=s(u,1);let d=require("@stryke/convert/to-array");var f=(0,l.defineGenerator)({meta:{name:`hey-api`,title:`Hey API`,description:`A generator that uses the OpenAPI specification to generate source code using Hey API.`,version:`1.0`,tags:[`openapi`],links:[{href:`https://heyapi.dev`,description:`Hey API Documentation`},{href:`https://github.com/heyapi/heyapi`,description:`Hey API GitHub Repository`}]},schema:u.default,generator:async(e,t)=>{let{cwd:n}=(0,l.useExecution)();return(await(0,c.createClient)((0,d.toArray)(t).map(t=>({...t,output:t.output??{path:n},input:e})))).reduce((e,t)=>(t.gen.render().forEach(t=>{e[t.path]={path:t.path,chunks:[{content:t.content}]}}),e),{})}});module.exports=f;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createClient as e}from"@hey-api/openapi-ts";import{defineGenerator as t,
|
|
1
|
+
import{createClient as e}from"@hey-api/openapi-ts";import{defineGenerator as t,useExecution as n}from"@power-plant/core";import r from"@power-plant/openapi-schema";import{toArray as i}from"@stryke/convert/to-array";var a=t({meta:{name:`hey-api`,title:`Hey API`,description:`A generator that uses the OpenAPI specification to generate source code using Hey API.`,version:`1.0`,tags:[`openapi`],links:[{href:`https://heyapi.dev`,description:`Hey API Documentation`},{href:`https://github.com/heyapi/heyapi`,description:`Hey API GitHub Repository`}]},schema:r,generator:async(t,r)=>{let{cwd:a}=n();return(await e(i(r).map(e=>({...e,output:e.output??{path:a},input:t})))).reduce((e,t)=>(t.gen.render().forEach(t=>{e[t.path]={path:t.path,chunks:[{content:t.content}]}}),e),{})}});export{a as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/hey-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant generator for using Hey API to generate code from an OpenAPI schema.",
|
|
6
6
|
"keywords": [
|
|
@@ -68,18 +68,18 @@
|
|
|
68
68
|
"files": ["dist"],
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
71
|
-
"@power-plant/core": "^0.0.
|
|
71
|
+
"@power-plant/core": "^0.0.16",
|
|
72
72
|
"@power-plant/openapi-schema": "^0.0.1",
|
|
73
|
-
"@power-plant/schema": "^0.0.
|
|
73
|
+
"@power-plant/schema": "^0.0.16",
|
|
74
74
|
"@stryke/convert": "^0.7.26",
|
|
75
75
|
"@stryke/type-checks": "^0.6.28",
|
|
76
76
|
"@stryke/types": "^0.12.23"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
79
|
+
"@powerlines/plugin-tsdown": "^0.1.545",
|
|
80
80
|
"@types/node": "^25.9.5",
|
|
81
|
-
"powerlines": "^0.47.
|
|
81
|
+
"powerlines": "^0.47.144"
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": { "access": "public" },
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "8cb4ebd50961de43b9482885f5ba5779b8ded913"
|
|
85
85
|
}
|