@rpcbase/api 0.129.0 → 0.131.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.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/initApi.d.ts.map +1 -1
- package/package.json +7 -1
package/dist/index.js
CHANGED
|
@@ -16,7 +16,6 @@ import require$$7$1 from "node:buffer";
|
|
|
16
16
|
import require$$1$4 from "node:net";
|
|
17
17
|
import require$$13 from "stream";
|
|
18
18
|
import require$$14 from "util";
|
|
19
|
-
import { initApiClient } from "@rpcbase/client";
|
|
20
19
|
const MOCK_TYPE = "MOCK_TYPE";
|
|
21
20
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
22
21
|
function getDefaultExportFromCjs(x) {
|
|
@@ -21838,6 +21837,11 @@ function requireLib() {
|
|
|
21838
21837
|
}
|
|
21839
21838
|
var libExports = requireLib();
|
|
21840
21839
|
const cors = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
|
|
21840
|
+
const loadInitApiClient = async () => {
|
|
21841
|
+
const clientPackageName = "@rpcbase/client";
|
|
21842
|
+
const clientModule = await import(clientPackageName);
|
|
21843
|
+
return clientModule.initApiClient;
|
|
21844
|
+
};
|
|
21841
21845
|
process.env = {
|
|
21842
21846
|
...env,
|
|
21843
21847
|
...__rb_env__,
|
|
@@ -21848,6 +21852,7 @@ const initApi = async ({
|
|
|
21848
21852
|
routes,
|
|
21849
21853
|
cors: corsOptions
|
|
21850
21854
|
}) => {
|
|
21855
|
+
const initApiClient = await loadInitApiClient();
|
|
21851
21856
|
await initApiClient({
|
|
21852
21857
|
app
|
|
21853
21858
|
});
|