@power-plant/asyncapi 0.0.57 → 0.0.58
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 +9 -9
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("@asyncapi/generator"),l=require("@asyncapi/parser/esm/document"),u=require("@power-plant/asyncapi-schema");u=s(u,1);let d=require("@power-plant/core");var f=`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("@asyncapi/generator"),l=require("@asyncapi/parser/esm/document"),u=require("@power-plant/asyncapi-schema");u=s(u,1);let d=require("@power-plant/core");var f=`0.0.58`;function p(e,t){return t===void 0?{}:typeof t==`string`?{[e]:{path:e,chunks:[{content:t}]}}:(Array.isArray(t)?t:[t]).reduce((t,n)=>{let r=n.metadata?.fileName??e;return t[r]={path:r,chunks:[{content:n.content}]},t},{})}var m=(0,d.defineGenerator)({meta:{name:`asyncapi`,title:`AsyncAPI`,description:`A generator that uses the AsyncAPI specification to generate event-driven client SDKs and servers using @asyncapi/generator.`,version:f,tags:[`asyncapi`],links:[{href:`https://www.asyncapi.com`,description:`AsyncAPI Documentation`},{href:`https://github.com/asyncapi/generator`,description:`AsyncAPI GitHub Repository`}]},schema:u.default,generator:async(e,t)=>{let{templateName:n,outputPath:r,entrypoint:i,...a}=t,{cwd:o}=(0,d.useExecution)();if(!(0,l.isAsyncAPIDocument)(e))throw Error(`Invalid AsyncAPI schema`);let s={...a,entrypoint:i,output:`string`},u=new c.Generator(n,r||o,s);u.validateAsyncAPIDocument(e),await u.setupOutput(),u.setLogLevel(),await u.installAndSetupTemplate(),await u.configureTemplateWorkflow(a);let f=await u.handleEntrypoint();return p(i??`output`,f)}});module.exports=m;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Generator as e}from"@asyncapi/generator";import{isAsyncAPIDocument as t}from"@asyncapi/parser/esm/document";import n from"@power-plant/asyncapi-schema";import{defineGenerator as r,useExecution as i}from"@power-plant/core";var a=`0.0.
|
|
1
|
+
import{Generator as e}from"@asyncapi/generator";import{isAsyncAPIDocument as t}from"@asyncapi/parser/esm/document";import n from"@power-plant/asyncapi-schema";import{defineGenerator as r,useExecution as i}from"@power-plant/core";var a=`0.0.58`;function o(e,t){return t===void 0?{}:typeof t==`string`?{[e]:{path:e,chunks:[{content:t}]}}:(Array.isArray(t)?t:[t]).reduce((t,n)=>{let r=n.metadata?.fileName??e;return t[r]={path:r,chunks:[{content:n.content}]},t},{})}var s=r({meta:{name:`asyncapi`,title:`AsyncAPI`,description:`A generator that uses the AsyncAPI specification to generate event-driven client SDKs and servers using @asyncapi/generator.`,version:a,tags:[`asyncapi`],links:[{href:`https://www.asyncapi.com`,description:`AsyncAPI Documentation`},{href:`https://github.com/asyncapi/generator`,description:`AsyncAPI GitHub Repository`}]},schema:n,generator:async(n,r)=>{let{templateName:a,outputPath:s,entrypoint:c,...l}=r,{cwd:u}=i();if(!t(n))throw Error(`Invalid AsyncAPI schema`);let d={...l,entrypoint:c,output:`string`},f=new e(a,s||u,d);f.validateAsyncAPIDocument(n),await f.setupOutput(),f.setLogLevel(),await f.installAndSetupTemplate(),await f.configureTemplateWorkflow(l);let p=await f.handleEntrypoint();return o(c??`output`,p)}});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/asyncapi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.58",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant generator for using @asyncapi/generator to generate code from an AsyncAPI schema.",
|
|
6
6
|
"keywords": [
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
"@asyncapi/generator": "^3.3.0",
|
|
71
71
|
"@asyncapi/parser": "^3.6.1",
|
|
72
72
|
"@power-plant/asyncapi-schema": "^0.0.1",
|
|
73
|
-
"@power-plant/core": "^0.0.
|
|
74
|
-
"@power-plant/schema": "^0.0.
|
|
75
|
-
"@stryke/convert": "^0.7.
|
|
76
|
-
"@stryke/type-checks": "^0.6.
|
|
77
|
-
"@stryke/types": "^0.12.
|
|
73
|
+
"@power-plant/core": "^0.0.62",
|
|
74
|
+
"@power-plant/schema": "^0.0.60",
|
|
75
|
+
"@stryke/convert": "^0.7.30",
|
|
76
|
+
"@stryke/type-checks": "^0.6.32",
|
|
77
|
+
"@stryke/types": "^0.12.27"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
80
|
+
"@powerlines/plugin-tsdown": "^0.1.581",
|
|
81
81
|
"@types/node": "^25.9.5",
|
|
82
|
-
"powerlines": "^0.47.
|
|
82
|
+
"powerlines": "^0.47.180"
|
|
83
83
|
},
|
|
84
84
|
"publishConfig": { "access": "public" },
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "8c0a0818f68c23dd05ed28d09397f0b18a89b86a"
|
|
86
86
|
}
|