@kubb/oas 4.13.0 → 4.14.0

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.d.cts CHANGED
@@ -182,6 +182,8 @@ interface KubbEvents {
182
182
  id?: string;
183
183
  command: string;
184
184
  args?: readonly string[];
185
+ success: boolean;
186
+ error: Error | null;
185
187
  }];
186
188
  /**
187
189
  * Emitted when a new version of Kubb is available.
package/dist/index.d.ts CHANGED
@@ -182,6 +182,8 @@ interface KubbEvents {
182
182
  id?: string;
183
183
  command: string;
184
184
  args?: readonly string[];
185
+ success: boolean;
186
+ error: Error | null;
185
187
  }];
186
188
  /**
187
189
  * Emitted when a new version of Kubb is available.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/oas",
3
- "version": "4.13.0",
3
+ "version": "4.14.0",
4
4
  "description": "OpenAPI Specification (OAS) utilities and helpers for Kubb, providing parsing, normalization, and manipulation of OpenAPI/Swagger schemas.",
5
5
  "keywords": [
6
6
  "openapi",
@@ -51,12 +51,12 @@
51
51
  "@redocly/openapi-core": "^2.14.3",
52
52
  "json-schema-to-ts": "^3.1.1",
53
53
  "jsonpointer": "^5.0.1",
54
- "oas": "^28.7.0",
54
+ "oas": "^28.8.0",
55
55
  "oas-normalize": "^15.6.0",
56
56
  "openapi-types": "^12.1.3",
57
57
  "remeda": "^2.33.1",
58
58
  "swagger2openapi": "^7.0.8",
59
- "@kubb/core": "4.13.0"
59
+ "@kubb/core": "4.14.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@stoplight/yaml": "^4.3.0",
package/src/utils.spec.ts CHANGED
@@ -1,9 +1,13 @@
1
1
  import path from 'node:path'
2
+ import { fileURLToPath } from 'node:url'
2
3
  import type { Config } from '@kubb/core'
3
4
  import yaml from '@stoplight/yaml'
4
5
  import { describe, expect, test } from 'vitest'
5
6
  import { merge, parse, parseFromConfig } from './utils.ts'
6
7
 
8
+ const __filename = fileURLToPath(import.meta.url)
9
+ const __dirname = path.dirname(__filename)
10
+
7
11
  describe('utils', () => {
8
12
  test('merge of 2 oas documents', async () => {
9
13
  const documents = [