@powerlines/plugin-asyncapi 0.1.381 → 0.1.383
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 +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
- package/dist/_virtual/_rolldown/runtime.mjs +0 -3
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://stormsoftware.com/projects/powerlines) [](http://commitizen.github.io/cz-cli/)  
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
2
|
const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
|
|
3
3
|
let _asyncapi_generator = require("@asyncapi/generator");
|
|
4
|
-
let
|
|
4
|
+
let _asyncapi_parser_esm_document_js = require("@asyncapi/parser/esm/document.js");
|
|
5
5
|
let _stryke_fs_exists = require("@stryke/fs/exists");
|
|
6
6
|
let _stryke_fs_package_fns = require("@stryke/fs/package-fns");
|
|
7
7
|
let _stryke_path_join = require("@stryke/path/join");
|
|
@@ -31,7 +31,7 @@ const plugin = (options) => {
|
|
|
31
31
|
},
|
|
32
32
|
async configResolved() {
|
|
33
33
|
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\".");
|
|
34
|
-
if (!this.config.asyncapi.document || !(0,
|
|
34
|
+
if (!this.config.asyncapi.document || !(0, _asyncapi_parser_esm_document_js.isAsyncAPIDocument)(this.config.asyncapi.document)) if ((0, _asyncapi_parser_esm_document_js.isAsyncAPIDocument)(this.config.asyncapi.schema)) this.config.asyncapi.document = this.config.asyncapi.schema;
|
|
35
35
|
else if ((0, _stryke_fs_exists.existsSync)(this.config.asyncapi.schema.toString())) {
|
|
36
36
|
const document = await this.fs.read(this.config.asyncapi.schema.toString());
|
|
37
37
|
if (!document) throw new Error(`Failed to read AsyncAPI schema from file: ${this.config.asyncapi.schema.toString()}`);
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Generator } from "@asyncapi/generator";
|
|
2
|
-
import { isAsyncAPIDocument } from "@asyncapi/parser/esm/document";
|
|
2
|
+
import { isAsyncAPIDocument } from "@asyncapi/parser/esm/document.js";
|
|
3
3
|
import { existsSync } from "@stryke/fs/exists";
|
|
4
4
|
import { isPackageExists } from "@stryke/fs/package-fns";
|
|
5
5
|
import { joinPaths } from "@stryke/path/join";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-asyncapi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.383",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from AsyncAPI specifications.",
|
|
6
6
|
"repository": {
|
|
@@ -91,18 +91,18 @@
|
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"@asyncapi/generator": "^2.11.0",
|
|
93
93
|
"@asyncapi/parser": "^3.6.0",
|
|
94
|
-
"@stryke/convert": "^0.6.
|
|
95
|
-
"@stryke/fs": "^0.33.
|
|
96
|
-
"@stryke/http": "^0.12.
|
|
97
|
-
"@stryke/path": "^0.27.
|
|
94
|
+
"@stryke/convert": "^0.6.57",
|
|
95
|
+
"@stryke/fs": "^0.33.64",
|
|
96
|
+
"@stryke/http": "^0.12.53",
|
|
97
|
+
"@stryke/path": "^0.27.3",
|
|
98
98
|
"defu": "^6.1.4",
|
|
99
|
-
"powerlines": "^0.42.
|
|
99
|
+
"powerlines": "^0.42.20"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
102
|
+
"@powerlines/plugin-plugin": "^0.12.330",
|
|
103
103
|
"@types/node": "^25.5.0"
|
|
104
104
|
},
|
|
105
105
|
"publishConfig": { "access": "public" },
|
|
106
106
|
"types": "./dist/index.d.cts",
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "c0cb55f77d02626e594888d7c34bca5f0fb8b337"
|
|
108
108
|
}
|