@powerlines/plugin-openapi 0.2.680 → 0.2.682

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- //#region \0rolldown/runtime.js
2
+ // \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -25,8 +25,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
25
25
  enumerable: true
26
26
  }) : target, mod));
27
27
 
28
- //#endregion
29
- require('./types/index.cjs');
28
+ require("./types/index.cjs");
30
29
  let _power_plant_openapi_typescript = require("@power-plant/openapi-typescript");
31
30
  _power_plant_openapi_typescript = __toESM(_power_plant_openapi_typescript, 1);
32
31
  let _powerlines_plugin_power_plant = require("@powerlines/plugin-power-plant");
@@ -37,7 +36,7 @@ defu = __toESM(defu, 1);
37
36
  let powerlines_plugin_utils = require("powerlines/plugin-utils");
38
37
  let yaml = require("yaml");
39
38
 
40
- //#region src/index.ts
39
+ // src/index.ts
41
40
  function isLoadedDocument(value) {
42
41
  return typeof value === "object" && value !== null && !(value instanceof URL);
43
42
  }
@@ -95,5 +94,4 @@ const plugin = (options = {}) => {
95
94
  }];
96
95
  };
97
96
 
98
- //#endregion
99
97
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, OpenAPISchema, PowerPlantOpenAPITypeScriptOptions } from "./types/plugin.cjs";
2
2
  import "./types/index.cjs";
3
3
  import { Plugin } from "powerlines";
4
- //#region src/index.d.ts
5
4
  declare module "powerlines" {
6
5
  interface Config {
7
6
  openapi?: OpenAPIPluginOptions;
@@ -17,6 +16,5 @@ declare module "powerlines" {
17
16
  * @returns Powerlines plugin instances.
18
17
  */
19
18
  declare const plugin: <TContext extends OpenAPIPluginContext = OpenAPIPluginContext>(options?: OpenAPIPluginOptions) => Plugin<TContext>[];
20
- //#endregion
21
19
  export { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, type OpenAPISchema, type PowerPlantOpenAPITypeScriptOptions, plugin };
22
20
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YAqCY;IACR,UAAU;;;;;;;;;;;;cAqBD,SACX,iBAAiB,uBAAuB,sBAExC,UAAS,yBACR,OAAO"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;YAqCY;IACR,UAAU;;;;;;;;;;;;cAqBD,SACX,iBAAiB,uBAAuB,sBAExC,UAAS,yBACR,OAAO"}
package/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, OpenAPISchema, PowerPlantOpenAPITypeScriptOptions } from "./types/plugin.mjs";
2
2
  import "./types/index.mjs";
3
3
  import { Plugin } from "powerlines";
4
- //#region src/index.d.ts
5
4
  declare module "powerlines" {
6
5
  interface Config {
7
6
  openapi?: OpenAPIPluginOptions;
@@ -17,6 +16,5 @@ declare module "powerlines" {
17
16
  * @returns Powerlines plugin instances.
18
17
  */
19
18
  declare const plugin: <TContext extends OpenAPIPluginContext = OpenAPIPluginContext>(options?: OpenAPIPluginOptions) => Plugin<TContext>[];
20
- //#endregion
21
19
  export { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, type OpenAPISchema, type PowerPlantOpenAPITypeScriptOptions, plugin };
22
20
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import defu from "defu";
7
7
  import { replacePathTokens } from "powerlines/plugin-utils";
8
8
  import { parse } from "yaml";
9
9
 
10
- //#region src/index.ts
10
+ // src/index.ts
11
11
  function isLoadedDocument(value) {
12
12
  return typeof value === "object" && value !== null && !(value instanceof URL);
13
13
  }
@@ -65,6 +65,5 @@ const plugin = (options = {}) => {
65
65
  }];
66
66
  };
67
67
 
68
- //#endregion
69
68
  export { plugin };
70
69
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
1
+ {"version":3,"file":"index.mjs","names":["parseYaml","powerPlant"],"sources":[],"mappings":""}
@@ -2,7 +2,6 @@ import { ResolvedConfig, UserConfig } from "powerlines";
2
2
  import { OpenAPISchema, OpenAPISchema as OpenAPISchema$1 } from "@power-plant/openapi-schema";
3
3
  import { Options, Options as PowerPlantOpenAPITypeScriptOptions } from "@power-plant/openapi-typescript";
4
4
  import { PowerPlantPluginContext, PowerPlantPluginResolvedConfig } from "@powerlines/plugin-power-plant/types/plugin";
5
- //#region src/types/plugin.d.ts
6
5
  /**
7
6
  * Options for the OpenAPI Powerlines plugin.
8
7
  */
@@ -38,6 +37,5 @@ type OpenAPIPluginResolvedConfig = ResolvedConfig & PowerPlantPluginResolvedConf
38
37
  };
39
38
  };
40
39
  type OpenAPIPluginContext<TResolvedConfig extends OpenAPIPluginResolvedConfig = OpenAPIPluginResolvedConfig> = PowerPlantPluginContext<OpenAPISchema$1, Options, TResolvedConfig>;
41
- //#endregion
42
40
  export { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, type OpenAPISchema, type PowerPlantOpenAPITypeScriptOptions };
43
41
  //# sourceMappingURL=plugin.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;KAgCY,uBAAuB,QACjC,KAAK;;;;;;;;;;EAWL,kBAAkB,MAAM;;;;;;;;;EAUxB;;KAGU,0BAA0B;EACpC,UAAU;;KAGA,8BAA8B,iBACxC,+BACE,iBACA;EAEA,SAAS,KAAK;IACZ,iBAAiB,MAAM;IACvB;IACA,UAAU;;;KAIJ,qBACV,wBAAwB,8BACtB,+BACA,wBACF,iBACA,SACA"}
1
+ {"version":3,"file":"plugin.d.cts","names":["PowerPlantOpenAPITypeScriptOptions","OpenAPISchema"],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;KAgCY,uBAAuB,QACjC,KAAKA;;;;;;;;;;EAWL,kBAAkB,MAAMC;;;;;;;;;EAUxB;;KAGU,0BAA0B;EACpC,UAAU;;KAGA,8BAA8B,iBACxC,+BACEA,iBACAD;EAEA,SAAS,KAAK;IACZ,iBAAiB,MAAMC;IACvB;IACA,UAAUA;;;KAIJ,qBACV,wBAAwB,8BACtB,+BACA,wBACFA,iBACAD,SACA"}
@@ -2,7 +2,6 @@ import { Options, Options as PowerPlantOpenAPITypeScriptOptions } from "@power-p
2
2
  import { ResolvedConfig, UserConfig } from "powerlines";
3
3
  import { OpenAPISchema, OpenAPISchema as OpenAPISchema$1 } from "@power-plant/openapi-schema";
4
4
  import { PowerPlantPluginContext, PowerPlantPluginResolvedConfig } from "@powerlines/plugin-power-plant/types/plugin";
5
- //#region src/types/plugin.d.ts
6
5
  /**
7
6
  * Options for the OpenAPI Powerlines plugin.
8
7
  */
@@ -38,6 +37,5 @@ type OpenAPIPluginResolvedConfig = ResolvedConfig & PowerPlantPluginResolvedConf
38
37
  };
39
38
  };
40
39
  type OpenAPIPluginContext<TResolvedConfig extends OpenAPIPluginResolvedConfig = OpenAPIPluginResolvedConfig> = PowerPlantPluginContext<OpenAPISchema$1, Options, TResolvedConfig>;
41
- //#endregion
42
40
  export { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, type OpenAPISchema, type PowerPlantOpenAPITypeScriptOptions };
43
41
  //# sourceMappingURL=plugin.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":""}
1
+ {"version":3,"file":"plugin.d.mts","names":["PowerPlantOpenAPITypeScriptOptions","OpenAPISchema"],"sources":["../../src/types/plugin.ts"],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-openapi",
3
- "version": "0.2.680",
3
+ "version": "0.2.682",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code from OpenAPI specifications.",
6
6
  "repository": {
@@ -95,21 +95,21 @@
95
95
  "powerlines-plugin"
96
96
  ],
97
97
  "dependencies": {
98
- "@power-plant/core": "^0.0.93",
98
+ "@power-plant/core": "^0.0.98",
99
99
  "@power-plant/openapi-schema": "^0.0.1",
100
- "@power-plant/openapi-typescript": "^0.0.73",
101
- "@powerlines/plugin-power-plant": "^0.1.70",
102
- "@stryke/fs": "^0.33.116",
103
- "@stryke/path": "^0.29.41",
100
+ "@power-plant/openapi-typescript": "^0.0.78",
101
+ "@powerlines/plugin-power-plant": "^0.1.72",
102
+ "@stryke/fs": "^0.33.118",
103
+ "@stryke/path": "^0.29.43",
104
104
  "defu": "^6.1.7",
105
- "powerlines": "^0.47.213",
105
+ "powerlines": "^0.47.215",
106
106
  "yaml": "^2.9.1"
107
107
  },
108
108
  "devDependencies": {
109
- "@powerlines/plugin-plugin": "^0.12.626",
110
- "@types/node": "^25.9.7"
109
+ "@powerlines/plugin-plugin": "^0.12.628",
110
+ "@types/node": "^25.9.9"
111
111
  },
112
112
  "publishConfig": { "access": "public" },
113
113
  "types": "./dist/index.d.cts",
114
- "gitHead": "6303d77b4c8c2dadb7f0128d74e30c2cbb6ffe75"
114
+ "gitHead": "810bc635d1503594d09d9f0c8c93ea413745a9df"
115
115
  }