@indiciaosint/sdk 2.0.0 → 2.0.1
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/BaseClient.js +2 -2
- package/dist/core/fetcher/Headers.d.ts +4 -2
- package/dist/core/fetcher/Headers.d.ts.map +1 -1
- package/dist/core/fetcher/Headers.js +1 -83
- package/dist/core/fetcher/Headers.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/BaseClient.js
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@indiciaosint/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "2.0.
|
|
10
|
-
"User-Agent": "@indiciaosint/sdk/2.0.
|
|
9
|
+
"X-Fern-SDK-Version": "2.0.1",
|
|
10
|
+
"User-Agent": "@indiciaosint/sdk/2.0.1",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options?.headers);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headers.d.ts","sourceRoot":"","sources":["../../../core/fetcher/Headers.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Headers.d.ts","sourceRoot":"","sources":["../../../core/fetcher/Headers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;CAAqB,CAAC"}
|
|
@@ -1,84 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
if (typeof globalThis.Headers !== "undefined") {
|
|
3
|
-
Headers = globalThis.Headers;
|
|
4
|
-
}
|
|
5
|
-
else {
|
|
6
|
-
Headers = class Headers {
|
|
7
|
-
headers;
|
|
8
|
-
constructor(init) {
|
|
9
|
-
this.headers = new Map();
|
|
10
|
-
if (init) {
|
|
11
|
-
if (init instanceof Headers) {
|
|
12
|
-
init.forEach((value, key) => this.append(key, value));
|
|
13
|
-
}
|
|
14
|
-
else if (Array.isArray(init)) {
|
|
15
|
-
for (const [key, value] of init) {
|
|
16
|
-
if (typeof key === "string" && typeof value === "string") {
|
|
17
|
-
this.append(key, value);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new TypeError("Each header entry must be a [string, string] tuple");
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
for (const [key, value] of Object.entries(init)) {
|
|
26
|
-
if (typeof value === "string") {
|
|
27
|
-
this.append(key, value);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
throw new TypeError("Header values must be strings");
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
append(name, value) {
|
|
37
|
-
const key = name.toLowerCase();
|
|
38
|
-
const existing = this.headers.get(key) || [];
|
|
39
|
-
this.headers.set(key, [...existing, value]);
|
|
40
|
-
}
|
|
41
|
-
delete(name) {
|
|
42
|
-
const key = name.toLowerCase();
|
|
43
|
-
this.headers.delete(key);
|
|
44
|
-
}
|
|
45
|
-
get(name) {
|
|
46
|
-
const key = name.toLowerCase();
|
|
47
|
-
const values = this.headers.get(key);
|
|
48
|
-
return values ? values.join(", ") : null;
|
|
49
|
-
}
|
|
50
|
-
has(name) {
|
|
51
|
-
const key = name.toLowerCase();
|
|
52
|
-
return this.headers.has(key);
|
|
53
|
-
}
|
|
54
|
-
set(name, value) {
|
|
55
|
-
const key = name.toLowerCase();
|
|
56
|
-
this.headers.set(key, [value]);
|
|
57
|
-
}
|
|
58
|
-
forEach(callbackfn, thisArg) {
|
|
59
|
-
const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
|
|
60
|
-
this.headers.forEach((values, key) => boundCallback(values.join(", "), key, this));
|
|
61
|
-
}
|
|
62
|
-
getSetCookie() {
|
|
63
|
-
return this.headers.get("set-cookie") || [];
|
|
64
|
-
}
|
|
65
|
-
*entries() {
|
|
66
|
-
for (const [key, values] of this.headers.entries()) {
|
|
67
|
-
yield [key, values.join(", ")];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
*keys() {
|
|
71
|
-
yield* this.headers.keys();
|
|
72
|
-
}
|
|
73
|
-
*values() {
|
|
74
|
-
for (const values of this.headers.values()) {
|
|
75
|
-
yield values.join(", ");
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
[Symbol.iterator]() {
|
|
79
|
-
return this.entries();
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
export { Headers };
|
|
1
|
+
export const Headers = globalThis.Headers;
|
|
84
2
|
//# sourceMappingURL=Headers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headers.js","sourceRoot":"","sources":["../../../core/fetcher/Headers.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Headers.js","sourceRoot":"","sources":["../../../core/fetcher/Headers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.
|
|
1
|
+
export const SDK_VERSION = "2.0.1";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|