@powerlines/plugin-openapi 0.2.7 → 0.2.9

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.
@@ -13,7 +13,7 @@ import { PackageJson } from '@stryke/types/package-json';
13
13
  import { Jiti } from 'jiti';
14
14
  import { ParserOptions, ParseResult } from 'oxc-parser';
15
15
  import { Range } from 'semver';
16
- import { UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
16
+ import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
17
17
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
18
18
  import ts from 'typescript';
19
19
  import { PrimitiveJsonValue } from '@stryke/json/types';
@@ -939,6 +939,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
939
939
  * A logging function for the Powerlines engine
940
940
  */
941
941
  log: LogFn;
942
+ /**
943
+ * A logging function for fatal messages
944
+ */
945
+ fatal: (message: string | UnpluginMessage) => void;
946
+ /**
947
+ * A logging function for error messages
948
+ */
949
+ error: (message: string | UnpluginMessage) => void;
950
+ /**
951
+ * A logging function for warning messages
952
+ */
953
+ warn: (message: string | UnpluginMessage) => void;
954
+ /**
955
+ * A logging function for informational messages
956
+ */
957
+ info: (message: string | UnpluginMessage) => void;
958
+ /**
959
+ * A logging function for debug messages
960
+ */
961
+ debug: (message: string | UnpluginMessage) => void;
962
+ /**
963
+ * A logging function for trace messages
964
+ */
965
+ trace: (message: string | UnpluginMessage) => void;
942
966
  /**
943
967
  * The metadata information
944
968
  */
@@ -13,7 +13,7 @@ import { PackageJson } from '@stryke/types/package-json';
13
13
  import { Jiti } from 'jiti';
14
14
  import { ParserOptions, ParseResult } from 'oxc-parser';
15
15
  import { Range } from 'semver';
16
- import { UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
16
+ import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
17
17
  import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
18
18
  import ts from 'typescript';
19
19
  import { PrimitiveJsonValue } from '@stryke/json/types';
@@ -939,6 +939,30 @@ interface Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> {
939
939
  * A logging function for the Powerlines engine
940
940
  */
941
941
  log: LogFn;
942
+ /**
943
+ * A logging function for fatal messages
944
+ */
945
+ fatal: (message: string | UnpluginMessage) => void;
946
+ /**
947
+ * A logging function for error messages
948
+ */
949
+ error: (message: string | UnpluginMessage) => void;
950
+ /**
951
+ * A logging function for warning messages
952
+ */
953
+ warn: (message: string | UnpluginMessage) => void;
954
+ /**
955
+ * A logging function for informational messages
956
+ */
957
+ info: (message: string | UnpluginMessage) => void;
958
+ /**
959
+ * A logging function for debug messages
960
+ */
961
+ debug: (message: string | UnpluginMessage) => void;
962
+ /**
963
+ * A logging function for trace messages
964
+ */
965
+ trace: (message: string | UnpluginMessage) => void;
942
966
  /**
943
967
  * The metadata information
944
968
  */
@@ -1,5 +1,5 @@
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';
1
+ import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from './index-CyFASIxm.cjs';
2
+ export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from './index-CyFASIxm.cjs';
3
3
  import 'node:buffer';
4
4
  import 'node:stream';
5
5
  import 'openapi-typescript';
@@ -1,5 +1,5 @@
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';
1
+ import { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, P as Plugin } from './index-CyFASIxm.js';
2
+ export { c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from './index-CyFASIxm.js';
3
3
  import 'node:buffer';
4
4
  import 'node:stream';
5
5
  import 'openapi-typescript';
@@ -1,4 +1,4 @@
1
- export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.cjs';
1
+ export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CyFASIxm.cjs';
2
2
  import 'node:buffer';
3
3
  import 'node:stream';
4
4
  import 'openapi-typescript';
@@ -1,4 +1,4 @@
1
- export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CI7nhO_m.js';
1
+ export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CyFASIxm.js';
2
2
  import 'node:buffer';
3
3
  import 'node:stream';
4
4
  import 'openapi-typescript';
@@ -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-CI7nhO_m.cjs';
4
+ export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CyFASIxm.cjs';
5
5
  import '@storm-software/build-tools/types';
6
6
  import '@storm-software/config-tools/types';
7
7
  import '@storm-software/config/types';
@@ -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-CI7nhO_m.js';
4
+ export { O as OpenAPIPluginContext, a as OpenAPIPluginOptions, c as OpenAPIPluginResolvedConfig, b as OpenAPIPluginUserConfig } from '../index-CyFASIxm.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.7",
3
+ "version": "0.2.9",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to generate project code from OpenAPI specifications.",
6
6
  "repository": {
@@ -105,19 +105,19 @@
105
105
  "powerlines-plugin"
106
106
  ],
107
107
  "dependencies": {
108
- "@stryke/path": "^0.18.5",
109
- "@stryke/type-checks": "^0.3.10",
110
- "@stryke/types": "^0.10.0",
108
+ "@stryke/path": "^0.19.0",
109
+ "@stryke/type-checks": "^0.3.11",
110
+ "@stryke/types": "^0.10.1",
111
111
  "defu": "^6.1.4",
112
112
  "jiti": "^2.6.1",
113
113
  "openapi-typescript": "^7.10.1",
114
- "powerlines": "^0.18.0"
114
+ "powerlines": "^0.19.1"
115
115
  },
116
116
  "devDependencies": {
117
- "@powerlines/nx": "^0.10.3",
118
- "@powerlines/plugin-plugin": "^0.11.11",
117
+ "@powerlines/nx": "^0.10.5",
118
+ "@powerlines/plugin-plugin": "^0.11.13",
119
119
  "@types/node": "^22.19.0"
120
120
  },
121
121
  "publishConfig": { "access": "public" },
122
- "gitHead": "4af65138db7b5c7ccdbe493661f60c2a09ee1354"
122
+ "gitHead": "d25499feacd0143784f3cd426488909134bffab2"
123
123
  }
File without changes
File without changes