@secrecy/lib 1.59.2 → 1.59.3

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.
@@ -24,8 +24,8 @@ export const createTRPCClient = (opts) => createTRPCProxyClient({
24
24
  },
25
25
  }),
26
26
  httpBatchLink({
27
- url: opts.baseUrl
28
- ? `${opts.baseUrl}/api/trpc`
27
+ url: opts.apiUrl
28
+ ? `${opts.apiUrl}/trpc`
29
29
  : 'https://api.secrecy.tech/trpc',
30
30
  maxURLLength: 2083,
31
31
  fetch: async (input, init) => {
@@ -7,7 +7,7 @@ export type RouterOutputs = inferRouterOutputs<AppRouter>;
7
7
  export declare function isTRPCClientError(cause: unknown): cause is TRPCClientError<AppRouter>;
8
8
  export interface CreateTrpcClientOptions {
9
9
  session?: string | null | undefined;
10
- baseUrl?: string | null | undefined;
10
+ apiUrl?: string | null | undefined;
11
11
  onAccessDenied?: () => void | Promise<void> | null | undefined;
12
12
  }
13
13
  export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@secrecy/lib",
3
3
  "author": "Anonymize <anonymize@gmail.com>",
4
4
  "description": "Anonymize Secrecy Library",
5
- "version": "1.59.2",
5
+ "version": "1.59.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"