@secrecy/lib 1.83.2 → 1.83.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.
@@ -74,7 +74,7 @@ export async function uploadData({ storageType, data, password, forcePassword =
74
74
  }
75
75
  else {
76
76
  if (!currentIdentity) {
77
- throw new Error('Unable to encrypt data without keyPair!');
77
+ throw new Error('Unable to encrypt data without currentIdentity!');
78
78
  }
79
79
  if (!data.key) {
80
80
  throw new Error('Unable to encrypt data without key!');
@@ -38,7 +38,7 @@ export const createTRPCClient = (opts) => innerCreateTRPCClient({
38
38
  headers,
39
39
  signal: controller.signal,
40
40
  mode: 'cors',
41
- credentials: 'include',
41
+ credentials: opts.session ? 'include' : 'omit',
42
42
  });
43
43
  void call.finally(() => {
44
44
  clearTimeout(id);
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.83.2",
5
+ "version": "1.83.3",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"