@atproto/oauth-client 0.7.5 → 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 +6 -0
- package/package.json +5 -5
- package/src/util.test.ts +10 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 0.7.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/oauth-client",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=22"
|
|
6
6
|
},
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"zod": "^3.23.8",
|
|
32
32
|
"@atproto-labs/did-resolver": "^0.3.3",
|
|
33
33
|
"@atproto-labs/fetch": "^0.3.2",
|
|
34
|
+
"@atproto-labs/handle-resolver": "^0.4.3",
|
|
34
35
|
"@atproto-labs/identity-resolver": "^0.4.2",
|
|
35
36
|
"@atproto-labs/simple-store-memory": "^0.2.2",
|
|
36
|
-
"@atproto/
|
|
37
|
+
"@atproto/oauth-types": "^0.7.3",
|
|
38
|
+
"@atproto/xrpc": "^0.8.2",
|
|
37
39
|
"@atproto/jwk": "^0.7.2",
|
|
38
|
-
"@atproto-labs/handle-resolver": "^0.4.3",
|
|
39
40
|
"@atproto-labs/simple-store": "^0.4.2",
|
|
40
|
-
"@atproto/
|
|
41
|
-
"@atproto/xrpc": "^0.8.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
|
-
|
|
72
|
-
|
|
73
|
-
// @ts-expect-error intentionally removing a built-in to emulate
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
})
|