@powerlines/plugin-openapi 0.2.676 → 0.2.677
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 +2 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Object.
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __create = Object.create;
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -30,7 +30,6 @@ require('./types/index.cjs');
|
|
|
30
30
|
let _power_plant_openapi_typescript = require("@power-plant/openapi-typescript");
|
|
31
31
|
_power_plant_openapi_typescript = __toESM(_power_plant_openapi_typescript, 1);
|
|
32
32
|
let _powerlines_plugin_power_plant = require("@powerlines/plugin-power-plant");
|
|
33
|
-
_powerlines_plugin_power_plant = __toESM(_powerlines_plugin_power_plant, 1);
|
|
34
33
|
let _stryke_fs_exists = require("@stryke/fs/exists");
|
|
35
34
|
let _stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
36
35
|
let defu = require("defu");
|
|
@@ -55,7 +54,7 @@ function parseOpenAPISchema(content) {
|
|
|
55
54
|
* @returns Powerlines plugin instances.
|
|
56
55
|
*/
|
|
57
56
|
const plugin = (options = {}) => {
|
|
58
|
-
return [(0, _powerlines_plugin_power_plant.
|
|
57
|
+
return [(0, _powerlines_plugin_power_plant.plugin)(_power_plant_openapi_typescript.default), {
|
|
59
58
|
name: "openapi",
|
|
60
59
|
config() {
|
|
61
60
|
return { openapi: (0, defu.default)(options, {
|
|
@@ -97,5 +96,4 @@ const plugin = (options = {}) => {
|
|
|
97
96
|
};
|
|
98
97
|
|
|
99
98
|
//#endregion
|
|
100
|
-
exports.default = plugin;
|
|
101
99
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -18,5 +18,5 @@ declare module "powerlines" {
|
|
|
18
18
|
*/
|
|
19
19
|
declare const plugin: <TContext extends OpenAPIPluginContext = OpenAPIPluginContext>(options?: OpenAPIPluginOptions) => Plugin<TContext>[];
|
|
20
20
|
//#endregion
|
|
21
|
-
export { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, type OpenAPISchema, type PowerPlantOpenAPITypeScriptOptions, plugin
|
|
21
|
+
export { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, type OpenAPISchema, type PowerPlantOpenAPITypeScriptOptions, plugin };
|
|
22
22
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -18,5 +18,5 @@ declare module "powerlines" {
|
|
|
18
18
|
*/
|
|
19
19
|
declare const plugin: <TContext extends OpenAPIPluginContext = OpenAPIPluginContext>(options?: OpenAPIPluginOptions) => Plugin<TContext>[];
|
|
20
20
|
//#endregion
|
|
21
|
-
export { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, type OpenAPISchema, type PowerPlantOpenAPITypeScriptOptions, plugin
|
|
21
|
+
export { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, type OpenAPISchema, type PowerPlantOpenAPITypeScriptOptions, plugin };
|
|
22
22
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./types/index.mjs";
|
|
2
2
|
import openapiTypeScriptGenerator from "@power-plant/openapi-typescript";
|
|
3
|
-
import
|
|
3
|
+
import { plugin as plugin$1 } from "@powerlines/plugin-power-plant";
|
|
4
4
|
import { existsSync } from "@stryke/fs/exists";
|
|
5
5
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
6
6
|
import defu from "defu";
|
|
@@ -24,7 +24,7 @@ function parseOpenAPISchema(content) {
|
|
|
24
24
|
* @returns Powerlines plugin instances.
|
|
25
25
|
*/
|
|
26
26
|
const plugin = (options = {}) => {
|
|
27
|
-
return [
|
|
27
|
+
return [plugin$1(openapiTypeScriptGenerator), {
|
|
28
28
|
name: "openapi",
|
|
29
29
|
config() {
|
|
30
30
|
return { openapi: defu(options, {
|
|
@@ -66,5 +66,5 @@ const plugin = (options = {}) => {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
//#endregion
|
|
69
|
-
export { plugin
|
|
69
|
+
export { plugin };
|
|
70
70
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-openapi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.677",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from OpenAPI specifications.",
|
|
6
6
|
"repository": {
|
|
@@ -98,18 +98,18 @@
|
|
|
98
98
|
"@power-plant/core": "^0.0.89",
|
|
99
99
|
"@power-plant/openapi-schema": "^0.0.1",
|
|
100
100
|
"@power-plant/openapi-typescript": "^0.0.69",
|
|
101
|
-
"@powerlines/plugin-power-plant": "^0.1.
|
|
101
|
+
"@powerlines/plugin-power-plant": "^0.1.67",
|
|
102
102
|
"@stryke/fs": "^0.33.110",
|
|
103
103
|
"@stryke/path": "^0.29.35",
|
|
104
104
|
"defu": "^6.1.7",
|
|
105
|
-
"powerlines": "^0.47.
|
|
105
|
+
"powerlines": "^0.47.210",
|
|
106
106
|
"yaml": "^2.9.0"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
109
|
+
"@powerlines/plugin-plugin": "^0.12.623",
|
|
110
110
|
"@types/node": "^25.9.5"
|
|
111
111
|
},
|
|
112
112
|
"publishConfig": { "access": "public" },
|
|
113
113
|
"types": "./dist/index.d.cts",
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "4ee69b33975e2fa912d2c73700dc7e949f25b2d4"
|
|
115
115
|
}
|