@powerlines/plugin-asyncapi 0.1.40 → 0.1.41
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-2iqDdw7f.d.cts → index-Dusx2Dcx.d.cts} +186 -229
- package/dist/{index-2iqDdw7f.d.ts → index-Dusx2Dcx.d.ts} +186 -229
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.ts +1 -2
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -4,4 +4,4 @@ import {Generator}from'@asyncapi/generator';import {isAsyncAPIDocument}from'@asy
|
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var s=Object.defineProperty;var n=(t,i)=>s(t,"name",{value:i,configurable:true});const g=n(t=>({name:"asyncapi",config(){return {asyncapi:m(t,{schema:joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot,"schema.yaml"),output:"string",install:false,compile:false,debug:this.config.mode==="development"||this.config.logLevel==="debug"||this.config.logLevel==="trace",targetDir:joinPaths(this.builtinsPath,"asyncapi")})}},async configResolved(){if(!this.config.asyncapi.schema)throw new Error('AsyncAPI schema is required. Please specify it in the plugin options or your Powerlines configuration under "asyncapi.schema".');if(!this.config.asyncapi.document||!isAsyncAPIDocument(this.config.asyncapi.document))if(isAsyncAPIDocument(this.config.asyncapi.schema))this.config.asyncapi.document=this.config.asyncapi.schema;else if(existsSync(this.config.asyncapi.schema.toString())){const i=await this.fs.
|
|
7
|
+
var s=Object.defineProperty;var n=(t,i)=>s(t,"name",{value:i,configurable:true});const g=n(t=>({name:"asyncapi",config(){return {asyncapi:m(t,{schema:joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot,"schema.yaml"),output:"string",install:false,compile:false,debug:this.config.mode==="development"||this.config.logLevel==="debug"||this.config.logLevel==="trace",targetDir:joinPaths(this.builtinsPath,"asyncapi")})}},async configResolved(){if(!this.config.asyncapi.schema)throw new Error('AsyncAPI schema is required. Please specify it in the plugin options or your Powerlines configuration under "asyncapi.schema".');if(!this.config.asyncapi.document||!isAsyncAPIDocument(this.config.asyncapi.document))if(isAsyncAPIDocument(this.config.asyncapi.schema))this.config.asyncapi.document=this.config.asyncapi.schema;else if(existsSync(this.config.asyncapi.schema.toString())){const i=await this.fs.read(this.config.asyncapi.schema.toString());if(!i)throw new Error(`Failed to read AsyncAPI schema from file: ${this.config.asyncapi.schema.toString()}`);this.config.asyncapi.document=i;}else {const i=await fetchRequest(this.config.asyncapi.schema.toString());if(!i)throw new Error(`Failed to fetch AsyncAPI schema from endpoint: ${this.config.asyncapi.schema.toString()}`);this.config.asyncapi.document=bufferToString(i);}if(!this.config.asyncapi.templateName)throw new Error('AsyncAPI template name is required. Please specify it in the plugin options or your Powerlines configuration under "asyncapi.templateName".');if(!this.config.asyncapi.outputPath)throw new Error('AsyncAPI output path is required. Please specify it in the plugin options or your Powerlines configuration under "asyncapi.outputPath".');!existsSync(this.config.asyncapi.templateName)&&!isPackageExists(this.config.asyncapi.templateName)&&(this.devDependencies[this.config.asyncapi.templateName]="latest"),this.config.asyncapi.outputPath=replacePathTokens(this,this.config.asyncapi.outputPath);},async prepare(){await new Generator(this.config.asyncapi.templateName,this.config.asyncapi.outputPath,this.config.asyncapi).generate(this.config.asyncapi.document);}}),"plugin");var R=g;export{R as default,g as plugin};
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AsyncAPIPluginContext, a as AsyncAPIPluginOptions, c as AsyncAPIPluginResolvedConfig, b as AsyncAPIPluginUserConfig, f as __ΩAsyncAPIPluginContext, _ as __ΩAsyncAPIPluginOptions, e as __ΩAsyncAPIPluginResolvedConfig, d as __ΩAsyncAPIPluginUserConfig } from '../index-
|
|
1
|
+
export { A as AsyncAPIPluginContext, a as AsyncAPIPluginOptions, c as AsyncAPIPluginResolvedConfig, b as AsyncAPIPluginUserConfig, f as __ΩAsyncAPIPluginContext, _ as __ΩAsyncAPIPluginOptions, e as __ΩAsyncAPIPluginResolvedConfig, d as __ΩAsyncAPIPluginUserConfig } from '../index-Dusx2Dcx.cjs';
|
|
2
2
|
import '@asyncapi/generator';
|
|
3
3
|
import '@asyncapi/parser/esm/models/v3/asyncapi';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
import '@stryke/types/array';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as AsyncAPIPluginContext, a as AsyncAPIPluginOptions, c as AsyncAPIPluginResolvedConfig, b as AsyncAPIPluginUserConfig, f as __ΩAsyncAPIPluginContext, _ as __ΩAsyncAPIPluginOptions, e as __ΩAsyncAPIPluginResolvedConfig, d as __ΩAsyncAPIPluginUserConfig } from '../index-
|
|
1
|
+
export { A as AsyncAPIPluginContext, a as AsyncAPIPluginOptions, c as AsyncAPIPluginResolvedConfig, b as AsyncAPIPluginUserConfig, f as __ΩAsyncAPIPluginContext, _ as __ΩAsyncAPIPluginOptions, e as __ΩAsyncAPIPluginResolvedConfig, d as __ΩAsyncAPIPluginUserConfig } from '../index-Dusx2Dcx.js';
|
|
2
2
|
import '@asyncapi/generator';
|
|
3
3
|
import '@asyncapi/parser/esm/models/v3/asyncapi';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
import '@stryke/types/array';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@asyncapi/generator';
|
|
2
2
|
import '@asyncapi/parser/esm/models/v3/asyncapi';
|
|
3
|
-
export { A as AsyncAPIPluginContext, a as AsyncAPIPluginOptions, c as AsyncAPIPluginResolvedConfig, b as AsyncAPIPluginUserConfig, f as __ΩAsyncAPIPluginContext, _ as __ΩAsyncAPIPluginOptions, e as __ΩAsyncAPIPluginResolvedConfig, d as __ΩAsyncAPIPluginUserConfig } from '../index-
|
|
3
|
+
export { A as AsyncAPIPluginContext, a as AsyncAPIPluginOptions, c as AsyncAPIPluginResolvedConfig, b as AsyncAPIPluginUserConfig, f as __ΩAsyncAPIPluginContext, _ as __ΩAsyncAPIPluginOptions, e as __ΩAsyncAPIPluginResolvedConfig, d as __ΩAsyncAPIPluginUserConfig } from '../index-Dusx2Dcx.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
6
6
|
import '@storm-software/config/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
import '@stryke/types/array';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@asyncapi/generator';
|
|
2
2
|
import '@asyncapi/parser/esm/models/v3/asyncapi';
|
|
3
|
-
export { A as AsyncAPIPluginContext, a as AsyncAPIPluginOptions, c as AsyncAPIPluginResolvedConfig, b as AsyncAPIPluginUserConfig, f as __ΩAsyncAPIPluginContext, _ as __ΩAsyncAPIPluginOptions, e as __ΩAsyncAPIPluginResolvedConfig, d as __ΩAsyncAPIPluginUserConfig } from '../index-
|
|
3
|
+
export { A as AsyncAPIPluginContext, a as AsyncAPIPluginOptions, c as AsyncAPIPluginResolvedConfig, b as AsyncAPIPluginUserConfig, f as __ΩAsyncAPIPluginContext, _ as __ΩAsyncAPIPluginOptions, e as __ΩAsyncAPIPluginResolvedConfig, d as __ΩAsyncAPIPluginUserConfig } from '../index-Dusx2Dcx.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
6
6
|
import '@storm-software/config/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
import '@stryke/types/array';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-asyncapi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from AsyncAPI specifications.",
|
|
6
6
|
"repository": {
|
|
@@ -101,18 +101,18 @@
|
|
|
101
101
|
"dependencies": {
|
|
102
102
|
"@asyncapi/generator": "^2.8.4",
|
|
103
103
|
"@asyncapi/parser": "^3.4.0",
|
|
104
|
-
"@stryke/convert": "^0.6.
|
|
105
|
-
"@stryke/fs": "^0.33.
|
|
106
|
-
"@stryke/http": "^0.11.
|
|
107
|
-
"@stryke/path": "^0.21.
|
|
104
|
+
"@stryke/convert": "^0.6.8",
|
|
105
|
+
"@stryke/fs": "^0.33.4",
|
|
106
|
+
"@stryke/http": "^0.11.9",
|
|
107
|
+
"@stryke/path": "^0.21.2",
|
|
108
108
|
"defu": "^6.1.4",
|
|
109
|
-
"powerlines": "^0.
|
|
109
|
+
"powerlines": "^0.25.0"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
|
-
"@powerlines/nx": "^0.10.
|
|
113
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
112
|
+
"@powerlines/nx": "^0.10.38",
|
|
113
|
+
"@powerlines/plugin-plugin": "^0.11.46",
|
|
114
114
|
"@types/node": "^24.10.1"
|
|
115
115
|
},
|
|
116
116
|
"publishConfig": { "access": "public" },
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "acb1d0727c31f10519b7a59d73d245e6949414d3"
|
|
118
118
|
}
|