@power-plant/openapi-typescript 0.0.54 → 0.0.55
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
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,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("@power-plant/core"),l=require("@power-plant/openapi-schema");l=s(l,1);let u=require("openapi-typescript");u=s(u,1);var d=`0.0.
|
|
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,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("@power-plant/core"),l=require("@power-plant/openapi-schema");l=s(l,1);let u=require("openapi-typescript");u=s(u,1);var d=`0.0.55`;function f(e){let{servers:t,info:n,...r}=e;return{...r,info:{...n,license:n.license?{name:n.license.name,url:n.license.url??``,identifier:n.license.identifier??``}:void 0},servers:t?.map(e=>({url:e.url,description:e.description??``,variables:e.variables??{}}))}}var p=(0,c.defineGenerator)({meta:{name:`openapi-typescript`,title:`OpenAPI TypeScript`,description:`A generator that uses openapi-typescript to generate TypeScript types from an OpenAPI schema.`,version:d,tags:[`openapi`,`openapi-typescript`],links:[{href:`https://openapi-ts.dev`,description:`OpenAPI TypeScript`},{href:`https://github.com/openapi-ts/openapi-typescript`,description:`OpenAPI TypeScript GitHub Repository`},{href:`https://github.com/storm-software/powerlines/blob/main/packages/plugins/plugin-openapi/src/index.ts`,description:`Powerlines OpenAPI plugin`}]},schema:l.default,generator:async(e,t)=>{let{cwd:n}=(0,c.useExecution)(),{output:r=`api.ts`,...i}=t,a=await(0,u.default)(f(e),{...i,cwd:n}),o=(0,u.astToString)(a,{fileName:r});return{[r]:{path:r,language:`typescript`,chunks:[{content:o,meta:{name:`openapi-typescript`}}]}}}});module.exports=p;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineGenerator as e,useExecution as t}from"@power-plant/core";import n from"@power-plant/openapi-schema";import r,{astToString as i}from"openapi-typescript";var a=`0.0.
|
|
1
|
+
import{defineGenerator as e,useExecution as t}from"@power-plant/core";import n from"@power-plant/openapi-schema";import r,{astToString as i}from"openapi-typescript";var a=`0.0.55`;function o(e){let{servers:t,info:n,...r}=e;return{...r,info:{...n,license:n.license?{name:n.license.name,url:n.license.url??``,identifier:n.license.identifier??``}:void 0},servers:t?.map(e=>({url:e.url,description:e.description??``,variables:e.variables??{}}))}}var s=e({meta:{name:`openapi-typescript`,title:`OpenAPI TypeScript`,description:`A generator that uses openapi-typescript to generate TypeScript types from an OpenAPI schema.`,version:a,tags:[`openapi`,`openapi-typescript`],links:[{href:`https://openapi-ts.dev`,description:`OpenAPI TypeScript`},{href:`https://github.com/openapi-ts/openapi-typescript`,description:`OpenAPI TypeScript GitHub Repository`},{href:`https://github.com/storm-software/powerlines/blob/main/packages/plugins/plugin-openapi/src/index.ts`,description:`Powerlines OpenAPI plugin`}]},schema:n,generator:async(e,n)=>{let{cwd:a}=t(),{output:s=`api.ts`,...c}=n,l=await r(o(e),{...c,cwd:a}),u=i(l,{fileName:s});return{[s]:{path:s,language:`typescript`,chunks:[{content:u,meta:{name:`openapi-typescript`}}]}}}});export{s as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/openapi-typescript",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant generator that uses openapi-typescript to generate TypeScript types from an OpenAPI schema.",
|
|
6
6
|
"keywords": [
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"typings": "dist/index.d.mts",
|
|
69
69
|
"files": ["dist"],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@power-plant/core": "0.0.
|
|
71
|
+
"@power-plant/core": "^0.0.75",
|
|
72
72
|
"@power-plant/openapi-schema": "^0.0.1",
|
|
73
|
-
"@power-plant/schema": "0.0.
|
|
73
|
+
"@power-plant/schema": "^0.0.73",
|
|
74
74
|
"openapi-typescript": "^7.13.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"powerlines": "^0.47.187"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": { "access": "public" },
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "622f141144aca145f4c30c7507d9470c48e0b0ec"
|
|
83
83
|
}
|