@powerlines/plugin-openapi 0.2.4 → 0.2.5
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-kKpYkpj8.d.cts → index-CI7nhO_m.d.cts} +1 -1
- package/dist/{index-kKpYkpj8.d.ts → index-CI7nhO_m.d.ts} +1 -1
- package/dist/src/index.cjs +2 -2
- package/dist/src/index.d.cts +2 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +2 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1322,7 +1322,7 @@ type OpenAPIPluginOptions = Omit<OpenAPITSOptions, "cwd"> & {
|
|
|
1322
1322
|
*
|
|
1323
1323
|
* @defaultValue "\{builtinPath\}/openapi.ts"
|
|
1324
1324
|
*/
|
|
1325
|
-
|
|
1325
|
+
outputPath?: string;
|
|
1326
1326
|
};
|
|
1327
1327
|
type OpenAPIPluginUserConfig = UserConfig & {
|
|
1328
1328
|
openapi?: Omit<OpenAPIPluginOptions, "schema"> & Required<Pick<OpenAPIPluginOptions, "schema">> & Pick<OpenAPITSOptions, "cwd">;
|
|
@@ -1322,7 +1322,7 @@ type OpenAPIPluginOptions = Omit<OpenAPITSOptions, "cwd"> & {
|
|
|
1322
1322
|
*
|
|
1323
1323
|
* @defaultValue "\{builtinPath\}/openapi.ts"
|
|
1324
1324
|
*/
|
|
1325
|
-
|
|
1325
|
+
outputPath?: string;
|
|
1326
1326
|
};
|
|
1327
1327
|
type OpenAPIPluginUserConfig = UserConfig & {
|
|
1328
1328
|
openapi?: Omit<OpenAPIPluginOptions, "schema"> & Required<Pick<OpenAPIPluginOptions, "schema">> & Pick<OpenAPITSOptions, "cwd">;
|
package/dist/src/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var joinPaths=require('@stryke/path/join-paths'),a=require('defu'),
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var joinPaths=require('@stryke/path/join-paths'),a=require('defu'),s=require('openapi-typescript'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a__default=/*#__PURE__*/_interopDefault(a);var s__default=/*#__PURE__*/_interopDefault(s);/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var p=Object.defineProperty;var
|
|
7
|
+
var p=Object.defineProperty;var t=(o,i)=>p(o,"name",{value:i,configurable:true});const r=t((o={})=>({name:"openapi",config(){return {openapi:a__default.default(o,{schema:joinPaths.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot,"schema.yaml"),cwd:joinPaths.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),silent:this.config.logLevel===null})}},async prepare(){const i=await s__default.default(this.config.openapi.schema,this.config.openapi);this.config.openapi.outputPath?await this.fs.writeFile(this.config.openapi.outputPath,s.astToString(i,{fileName:this.config.openapi.outputPath})):await this.writeBuiltin(s.astToString(i),"openapi");}}),"plugin");var O=r;exports.default=O;exports.plugin=r;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
package/dist/src/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from '../index-
|
|
2
|
-
export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-
|
|
1
|
+
import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from '../index-CI7nhO_m.cjs';
|
|
2
|
+
export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.cjs';
|
|
3
3
|
import 'node:buffer';
|
|
4
4
|
import 'node:stream';
|
|
5
5
|
import 'openapi-typescript';
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from '../index-
|
|
2
|
-
export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-
|
|
1
|
+
import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from '../index-CI7nhO_m.js';
|
|
2
|
+
export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.js';
|
|
3
3
|
import 'node:buffer';
|
|
4
4
|
import 'node:stream';
|
|
5
5
|
import 'openapi-typescript';
|
package/dist/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {joinPaths}from'@stryke/path/join-paths';import a from'defu';import
|
|
1
|
+
import {joinPaths}from'@stryke/path/join-paths';import a from'defu';import s,{astToString}from'openapi-typescript';export*from'./types';/*****************************************
|
|
2
2
|
*
|
|
3
3
|
* ⚡ Built by Storm Software
|
|
4
4
|
*
|
|
5
5
|
*****************************************/
|
|
6
6
|
|
|
7
|
-
var p=Object.defineProperty;var
|
|
7
|
+
var p=Object.defineProperty;var t=(o,i)=>p(o,"name",{value:i,configurable:true});const r=t((o={})=>({name:"openapi",config(){return {openapi:a(o,{schema:joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot,"schema.yaml"),cwd:joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot),silent:this.config.logLevel===null})}},async prepare(){const i=await s(this.config.openapi.schema,this.config.openapi);this.config.openapi.outputPath?await this.fs.writeFile(this.config.openapi.outputPath,astToString(i,{fileName:this.config.openapi.outputPath})):await this.writeBuiltin(astToString(i),"openapi");}}),"plugin");var A=r;export{A as default,r as plugin};
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-
|
|
1
|
+
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.cjs';
|
|
2
2
|
import 'node:buffer';
|
|
3
3
|
import 'node:stream';
|
|
4
4
|
import 'openapi-typescript';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-
|
|
1
|
+
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.js';
|
|
2
2
|
import 'node:buffer';
|
|
3
3
|
import 'node:stream';
|
|
4
4
|
import 'openapi-typescript';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'node:buffer';
|
|
2
2
|
import 'node:stream';
|
|
3
3
|
import 'openapi-typescript';
|
|
4
|
-
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-
|
|
4
|
+
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.cjs';
|
|
5
5
|
import '@storm-software/build-tools/types';
|
|
6
6
|
import '@storm-software/config-tools/types';
|
|
7
7
|
import '@storm-software/config/types';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'node:buffer';
|
|
2
2
|
import 'node:stream';
|
|
3
3
|
import 'openapi-typescript';
|
|
4
|
-
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-
|
|
4
|
+
export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.js';
|
|
5
5
|
import '@storm-software/build-tools/types';
|
|
6
6
|
import '@storm-software/config-tools/types';
|
|
7
7
|
import '@storm-software/config/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-openapi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code from OpenAPI specifications.",
|
|
6
6
|
"repository": {
|
|
@@ -111,13 +111,13 @@
|
|
|
111
111
|
"defu": "^6.1.4",
|
|
112
112
|
"jiti": "^2.6.1",
|
|
113
113
|
"openapi-typescript": "^7.10.1",
|
|
114
|
-
"powerlines": "^0.
|
|
114
|
+
"powerlines": "^0.16.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
|
-
"@powerlines/nx": "^0.10.
|
|
118
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
117
|
+
"@powerlines/nx": "^0.10.1",
|
|
118
|
+
"@powerlines/plugin-plugin": "^0.11.9",
|
|
119
119
|
"@types/node": "^22.19.0"
|
|
120
120
|
},
|
|
121
121
|
"publishConfig": { "access": "public" },
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "097e9f257b733719a3aead815ef79686f4c46f25"
|
|
123
123
|
}
|