@power-plant/asyncapi 0.0.11 → 0.0.13

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
@@ -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
- [![Version](https://img.shields.io/badge/version-0.0.8-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://docs.stormsoftware.com/projects/power-plant)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/power-plant/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
36
+ [![Version](https://img.shields.io/badge/version-0.0.12-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://docs.stormsoftware.com/projects/power-plant)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/power-plant/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
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("@asyncapi/generator"),l=require("@asyncapi/parser/esm/document.js"),u=require("@power-plant/asyncapi-schema");u=s(u,1);let d=require("@power-plant/core");function f(e,t){return t===void 0?{}:typeof t==`string`?{[e]:{path:e,source:[{content:t}]}}:(Array.isArray(t)?t:[t]).reduce((t,n)=>{let r=n.metadata?.fileName??e;return t[r]={path:r,source:[{content:n.content}]},t},{})}var p=(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:`1.0`,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.useContext)();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 p=await u.handleEntrypoint();return f(i??`output`,p)}});module.exports=p;
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("@asyncapi/generator"),l=require("@asyncapi/parser/esm/document.js"),u=require("@power-plant/asyncapi-schema");u=s(u,1);let d=require("@power-plant/core");function f(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 p=(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:`1.0`,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 p=await u.handleEntrypoint();return f(i??`output`,p)}});module.exports=p;
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.js";import n from"@power-plant/asyncapi-schema";import{defineGenerator as r,useContext as i}from"@power-plant/core";function a(e,t){return t===void 0?{}:typeof t==`string`?{[e]:{path:e,source:[{content:t}]}}:(Array.isArray(t)?t:[t]).reduce((t,n)=>{let r=n.metadata?.fileName??e;return t[r]={path:r,source:[{content:n.content}]},t},{})}var o=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:`1.0`,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:o,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(o,s||u,d);f.validateAsyncAPIDocument(n),await f.setupOutput(),f.setLogLevel(),await f.installAndSetupTemplate(),await f.configureTemplateWorkflow(l);let p=await f.handleEntrypoint();return a(c??`output`,p)}});export{o as default};
1
+ import{Generator as e}from"@asyncapi/generator";import{isAsyncAPIDocument as t}from"@asyncapi/parser/esm/document.js";import n from"@power-plant/asyncapi-schema";import{defineGenerator as r,useExecution as i}from"@power-plant/core";function a(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 o=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:`1.0`,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:o,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(o,s||u,d);f.validateAsyncAPIDocument(n),await f.setupOutput(),f.setLogLevel(),await f.installAndSetupTemplate(),await f.configureTemplateWorkflow(l);let p=await f.handleEntrypoint();return a(c??`output`,p)}});export{o 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.11",
3
+ "version": "0.0.13",
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.0",
72
72
  "@power-plant/asyncapi-schema": "^0.0.1",
73
- "@power-plant/core": "^0.0.15",
74
- "@power-plant/schema": "^0.0.15",
73
+ "@power-plant/core": "^0.0.17",
74
+ "@power-plant/schema": "^0.0.17",
75
75
  "@stryke/convert": "^0.7.26",
76
76
  "@stryke/type-checks": "^0.6.28",
77
77
  "@stryke/types": "^0.12.23"
78
78
  },
79
79
  "devDependencies": {
80
- "@powerlines/plugin-tsdown": "^0.1.544",
80
+ "@powerlines/plugin-tsdown": "^0.1.545",
81
81
  "@types/node": "^25.9.5",
82
- "powerlines": "^0.47.143"
82
+ "powerlines": "^0.47.144"
83
83
  },
84
84
  "publishConfig": { "access": "public" },
85
- "gitHead": "53b9aaba951c67546a3774251f4ad973eccc3997"
85
+ "gitHead": "7346b39899095e30744680cd9994a6c229d4f16a"
86
86
  }