@whitewall/blip-warehouse 0.0.8 → 0.0.10
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/api/src/index.d.ts +1 -1
- package/dist/api/src/types.d.ts +1 -1
- package/dist/cjs/{chunk-DYk-Zboy.js → chunk-U64pC571.js} +2 -3
- package/dist/cjs/index.js +2 -4
- package/dist/cjs/{undici-CNAV_IlA.js → undici-AlvjFlUK.js} +4704 -3726
- package/dist/esm/{chunk-CLyj0VIr.js → chunk-Cpt029wX.js} +1 -2
- package/dist/esm/index.js +2 -4
- package/dist/esm/{undici-a1nz442l.js → undici-C2YCJDeQ.js} +4704 -3726
- package/dist/src/warehouse/types.d.ts +10 -18
- package/package.json +3 -3
|
@@ -24,11 +24,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
value: mod,
|
|
25
25
|
enumerable: true
|
|
26
26
|
}) : target, mod));
|
|
27
|
-
var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
|
|
28
27
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
29
28
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
30
29
|
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
31
30
|
});
|
|
32
31
|
|
|
33
32
|
//#endregion
|
|
34
|
-
export { __require as n,
|
|
33
|
+
export { __require as n, __toESM as r, __commonJSMin as t };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as __toESM } from "./chunk-Cpt029wX.js";
|
|
2
2
|
|
|
3
3
|
//#region src/client.ts
|
|
4
4
|
var BlipWarehouseClient = class {
|
|
5
|
-
baseUrl;
|
|
6
|
-
token;
|
|
7
5
|
constructor(config) {
|
|
8
6
|
this.baseUrl = config.baseUrl?.replace(/\/$/, "") ?? "https://api.warehouse.whitewall.dev";
|
|
9
7
|
this.token = config.token;
|
|
@@ -39,7 +37,7 @@ var BlipWarehouseClient = class {
|
|
|
39
37
|
const url = `${this.baseUrl}/blip/historical-ingest`;
|
|
40
38
|
let dispatcher;
|
|
41
39
|
if (typeof process !== "undefined" && process.versions && process.versions.node) {
|
|
42
|
-
const { Agent } = await import("./undici-
|
|
40
|
+
const { Agent } = await import("./undici-C2YCJDeQ.js").then((m) => /* @__PURE__ */ __toESM(m.default));
|
|
43
41
|
dispatcher = new Agent({
|
|
44
42
|
connectTimeout: 6e4 * 30,
|
|
45
43
|
bodyTimeout: 6e4 * 30
|