@rpcbase/api 0.130.0 → 0.132.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.
@@ -0,0 +1,4 @@
1
+ export * from './types';
2
+ export * from './initApi';
3
+ export * from './pagination';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
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
  });