@readme/oas-to-har 23.2.5 → 23.2.7

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
@@ -1,7 +1,8 @@
1
- import { DataForHAR, AuthForHAR, oasToHarOptions } from './lib/types.cjs';
1
+ import { AuthForHAR, oasToHarOptions } from './lib/types.cjs';
2
2
  import { Request } from 'har-format';
3
3
  import Oas from 'oas';
4
4
  import { Operation } from 'oas/operation';
5
+ import { DataForHAR } from 'oas/types';
5
6
 
6
7
  declare function oasToHar(oas: Oas, operationSchema?: Operation, values?: DataForHAR, auth?: AuthForHAR, opts?: oasToHarOptions): {
7
8
  log: {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { DataForHAR, AuthForHAR, oasToHarOptions } from './lib/types.js';
1
+ import { AuthForHAR, oasToHarOptions } from './lib/types.js';
2
2
  import { Request } from 'har-format';
3
3
  import Oas from 'oas';
4
4
  import { Operation } from 'oas/operation';
5
+ import { DataForHAR } from 'oas/types';
5
6
 
6
7
  declare function oasToHar(oas: Oas, operationSchema?: Operation, values?: DataForHAR, auth?: AuthForHAR, opts?: oasToHarOptions): {
7
8
  log: {
@@ -1 +1,6 @@
1
- "use strict";//# sourceMappingURL=types.cjs.map
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/lib/types.ts
2
+ var _types = require('oas/types');
3
+
4
+
5
+ exports.DataForHAR = _types.DataForHAR;
6
+ //# sourceMappingURL=types.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":""}
1
+ {"version":3,"sources":["../../src/lib/types.ts"],"names":[],"mappings":";AAEA,SAAS,kBAAkB","sourcesContent":["export type AuthForHAR = Record<string, number | string | { pass?: string; user?: string }>;\n\nexport { DataForHAR } from 'oas/types';\n\nexport interface oasToHarOptions {\n // If true, the operation URL will be rewritten and prefixed with https://try.readme.io/ in\n // order to funnel requests through our CORS-friendly proxy.\n proxyUrl: boolean;\n}\n"]}
@@ -1,21 +1,12 @@
1
+ export { DataForHAR } from 'oas/types';
2
+
1
3
  type AuthForHAR = Record<string, number | string | {
2
4
  pass?: string;
3
5
  user?: string;
4
6
  }>;
5
- interface DataForHAR {
6
- body?: any;
7
- cookie?: Record<string, any>;
8
- formData?: Record<string, any>;
9
- header?: Record<string, any>;
10
- path?: Record<string, any>;
11
- query?: Record<string, any>;
12
- server?: {
13
- selected: number;
14
- variables?: Record<string, unknown>;
15
- };
16
- }
7
+
17
8
  interface oasToHarOptions {
18
9
  proxyUrl: boolean;
19
10
  }
20
11
 
21
- export type { AuthForHAR, DataForHAR, oasToHarOptions };
12
+ export type { AuthForHAR, oasToHarOptions };
@@ -1,21 +1,12 @@
1
+ export { DataForHAR } from 'oas/types';
2
+
1
3
  type AuthForHAR = Record<string, number | string | {
2
4
  pass?: string;
3
5
  user?: string;
4
6
  }>;
5
- interface DataForHAR {
6
- body?: any;
7
- cookie?: Record<string, any>;
8
- formData?: Record<string, any>;
9
- header?: Record<string, any>;
10
- path?: Record<string, any>;
11
- query?: Record<string, any>;
12
- server?: {
13
- selected: number;
14
- variables?: Record<string, unknown>;
15
- };
16
- }
7
+
17
8
  interface oasToHarOptions {
18
9
  proxyUrl: boolean;
19
10
  }
20
11
 
21
- export type { AuthForHAR, DataForHAR, oasToHarOptions };
12
+ export type { AuthForHAR, oasToHarOptions };
package/dist/lib/types.js CHANGED
@@ -1 +1,6 @@
1
+ // src/lib/types.ts
2
+ import { DataForHAR } from "oas/types";
3
+ export {
4
+ DataForHAR
5
+ };
1
6
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../../src/lib/types.ts"],"sourcesContent":["export type AuthForHAR = Record<string, number | string | { pass?: string; user?: string }>;\n\nexport { DataForHAR } from 'oas/types';\n\nexport interface oasToHarOptions {\n // If true, the operation URL will be rewritten and prefixed with https://try.readme.io/ in\n // order to funnel requests through our CORS-friendly proxy.\n proxyUrl: boolean;\n}\n"],"mappings":";AAEA,SAAS,kBAAkB;","names":[]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@readme/oas-to-har",
3
3
  "description": "Utility to transform an OAS operation into a HAR representation",
4
- "version": "23.2.5",
4
+ "version": "23.2.7",
5
5
  "author": "Jon Ursenbach <jon@ursenba.ch>",
6
6
  "license": "ISC",
7
7
  "sideEffects": false,
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@readme/data-urls": "^3.0.0",
53
- "oas": "^24.2.1",
53
+ "oas": "^24.3.0",
54
54
  "qs": "^6.12.0",
55
55
  "remove-undefined-objects": "^5.0.0"
56
56
  },
@@ -67,5 +67,5 @@
67
67
  "vitest": "^1.4.0"
68
68
  },
69
69
  "prettier": "@readme/eslint-config/prettier",
70
- "gitHead": "b8e67b856db0d227db16334f592005d3520fe940"
70
+ "gitHead": "b0680d0588c1fd93d006c0c87b98b882cb057926"
71
71
  }