applesauce-wallet 0.0.0-next-20250313145241 → 0.0.0-next-20250313155042

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.
@@ -17,9 +17,10 @@ export const ANIMATED_QR_FRAGMENTS = {
17
17
  export function sendAnimated(token, options) {
18
18
  // start the stream as soon as there is subscriber
19
19
  return defer(() => {
20
- let encoded = typeof token === "string" ? token : getEncodedTokenV4(token);
21
- let buffer = Buffer.from(encoded);
22
- let ur = UR.fromBuffer(buffer);
20
+ let str = typeof token === "string" ? token : getEncodedTokenV4(token);
21
+ let utf8 = new TextEncoder();
22
+ let buffer = utf8.encode(str);
23
+ let ur = UR.from(buffer);
23
24
  let encoder = new UREncoder(ur, options?.fragmentLength ?? 100, 0);
24
25
  return interval(options?.interval ?? ANIMATED_QR_INTERVAL.FAST).pipe(map(() => encoder.nextPart()));
25
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-wallet",
3
- "version": "0.0.0-next-20250313145241",
3
+ "version": "0.0.0-next-20250313155042",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -80,17 +80,16 @@
80
80
  "@cashu/cashu-ts": "2.0.0-rc1",
81
81
  "@gandlaf21/bc-ur": "^1.1.12",
82
82
  "@noble/hashes": "^1.7.1",
83
- "applesauce-actions": "0.0.0-next-20250313145241",
84
- "applesauce-core": "0.0.0-next-20250313145241",
85
- "applesauce-factory": "0.0.0-next-20250313145241",
86
- "buffer": "^6.0.3",
83
+ "applesauce-actions": "0.0.0-next-20250313155042",
84
+ "applesauce-core": "0.0.0-next-20250313155042",
85
+ "applesauce-factory": "0.0.0-next-20250313155042",
87
86
  "nostr-tools": "^2.10.4",
88
87
  "rxjs": "^7.8.1"
89
88
  },
90
89
  "devDependencies": {
91
90
  "@hirez_io/observer-spy": "^2.2.0",
92
91
  "@types/debug": "^4.1.12",
93
- "applesauce-signers": "0.0.0-next-20250313145241",
92
+ "applesauce-signers": "0.0.0-next-20250313155042",
94
93
  "typescript": "^5.7.3",
95
94
  "vitest": "^3.0.5"
96
95
  },