@atproto/oauth-client 0.7.4 → 0.7.6

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atproto/oauth-client
2
2
 
3
+ ## 0.7.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#5157](https://github.com/bluesky-social/atproto/pull/5157) [`8bcba69`](https://github.com/bluesky-social/atproto/commit/8bcba69cf1f02d09e07b51ce091918312029df63) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Minor syntax fix in tests
8
+
9
+ ## 0.7.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#5151](https://github.com/bluesky-social/atproto/pull/5151) [`a51c45d`](https://github.com/bluesky-social/atproto/commit/a51c45d38f6bd7b8765f640e564cf921d52162e7) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Update dependencies
14
+
15
+ - Updated dependencies [[`60e9b83`](https://github.com/bluesky-social/atproto/commit/60e9b8391f212c274b1f21991ee2a3a2d14f2f88), [`60e9b83`](https://github.com/bluesky-social/atproto/commit/60e9b8391f212c274b1f21991ee2a3a2d14f2f88), [`a51c45d`](https://github.com/bluesky-social/atproto/commit/a51c45d38f6bd7b8765f640e564cf921d52162e7)]:
16
+ - @atproto-labs/fetch@0.3.2
17
+ - @atproto/did@0.5.2
18
+ - @atproto-labs/did-resolver@0.3.3
19
+ - @atproto-labs/handle-resolver@0.4.3
20
+ - @atproto-labs/identity-resolver@0.4.2
21
+ - @atproto-labs/simple-store@0.4.2
22
+ - @atproto-labs/simple-store-memory@0.2.2
23
+ - @atproto/jwk@0.7.2
24
+ - @atproto/oauth-types@0.7.3
25
+ - @atproto/xrpc@0.8.2
26
+
3
27
  ## 0.7.4
4
28
 
5
29
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/oauth-client",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },
@@ -29,16 +29,16 @@
29
29
  "core-js": "^3",
30
30
  "multiformats": "^13.0.0",
31
31
  "zod": "^3.23.8",
32
- "@atproto-labs/fetch": "^0.3.1",
33
- "@atproto-labs/did-resolver": "^0.3.2",
34
- "@atproto-labs/simple-store": "^0.4.1",
35
- "@atproto-labs/simple-store-memory": "^0.2.1",
36
- "@atproto-labs/handle-resolver": "^0.4.2",
37
- "@atproto/did": "^0.5.1",
38
- "@atproto-labs/identity-resolver": "^0.4.1",
39
- "@atproto/jwk": "^0.7.1",
40
- "@atproto/oauth-types": "^0.7.2",
41
- "@atproto/xrpc": "^0.8.1"
32
+ "@atproto-labs/did-resolver": "^0.3.3",
33
+ "@atproto-labs/fetch": "^0.3.2",
34
+ "@atproto-labs/handle-resolver": "^0.4.3",
35
+ "@atproto-labs/identity-resolver": "^0.4.2",
36
+ "@atproto-labs/simple-store-memory": "^0.2.2",
37
+ "@atproto/oauth-types": "^0.7.3",
38
+ "@atproto/xrpc": "^0.8.2",
39
+ "@atproto/jwk": "^0.7.2",
40
+ "@atproto-labs/simple-store": "^0.4.2",
41
+ "@atproto/did": "^0.5.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "vitest": "^4.0.16"
package/src/util.test.ts CHANGED
@@ -68,19 +68,16 @@ describe(timeoutSignal, () => {
68
68
  })
69
69
 
70
70
  it('falls back to a plain Error when DOMException is unavailable', () => {
71
- const originalDomException = globalThis.DOMException
72
- try {
73
- // @ts-expect-error intentionally removing a built-in to emulate RN
74
- globalThis.DOMException = undefined
75
-
76
- const signal = timeoutSignal(1000)
77
- vi.advanceTimersByTime(1000)
78
-
79
- expect(signal.aborted).toBe(true)
80
- expect(signal.reason).toBeInstanceOf(Error)
81
- } finally {
82
- globalThis.DOMException = originalDomException
83
- }
71
+ using _ = vi
72
+ .spyOn(globalThis, 'DOMException', 'get')
73
+ // @ts-expect-error intentionally removing a built-in to emulate React Native
74
+ .mockImplementation(() => undefined)
75
+
76
+ const signal = timeoutSignal(1000)
77
+ vi.advanceTimersByTime(1000)
78
+
79
+ expect(signal.aborted).toBe(true)
80
+ expect(signal.reason).toBeInstanceOf(Error)
84
81
  })
85
82
  })
86
83
  })