@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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/lib/types.cjs +6 -1
- package/dist/lib/types.cjs.map +1 -1
- package/dist/lib/types.d.cts +4 -13
- package/dist/lib/types.d.ts +4 -13
- package/dist/lib/types.js +5 -0
- package/dist/lib/types.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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: {
|
package/dist/lib/types.cjs
CHANGED
package/dist/lib/types.cjs.map
CHANGED
|
@@ -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"]}
|
package/dist/lib/types.d.cts
CHANGED
|
@@ -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
|
-
|
|
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,
|
|
12
|
+
export type { AuthForHAR, oasToHarOptions };
|
package/dist/lib/types.d.ts
CHANGED
|
@@ -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
|
-
|
|
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,
|
|
12
|
+
export type { AuthForHAR, oasToHarOptions };
|
package/dist/lib/types.js
CHANGED
package/dist/lib/types.js.map
CHANGED
|
@@ -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.
|
|
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.
|
|
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": "
|
|
70
|
+
"gitHead": "b0680d0588c1fd93d006c0c87b98b882cb057926"
|
|
71
71
|
}
|