@secrecy/lib 1.32.0 → 1.33.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.
@@ -1,5 +1,6 @@
1
1
  import { httpBatchLink, loggerLink, createTRPCProxyClient, TRPCClientError, } from '@trpc/client';
2
2
  import superjson from 'superjson';
3
+ import { SECRECY_LIB_VERSION } from './versioning';
3
4
  export function isTRPCClientError(cause) {
4
5
  return cause instanceof TRPCClientError;
5
6
  }
@@ -27,6 +28,7 @@ export const createTRPCClient = (session, onAccessDenied) => createTRPCProxyClie
27
28
  controller.abort();
28
29
  }, 20000);
29
30
  const headers = new Headers(init?.headers);
31
+ headers.set('secrecy-lib-version', SECRECY_LIB_VERSION);
30
32
  if (typeof session === 'string') {
31
33
  headers.set('secrecy-session', session);
32
34
  }
@@ -0,0 +1 @@
1
+ export const SECRECY_LIB_VERSION = '1.0.0';
@@ -0,0 +1 @@
1
+ export declare const SECRECY_LIB_VERSION = "1.0.0";
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.32.0",
5
+ "version": "1.33.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"