@atproto/lex 0.0.12 → 0.0.14
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 +21 -0
- package/README.md +3 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atproto/lex
|
|
2
2
|
|
|
3
|
+
## 0.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4589](https://github.com/bluesky-social/atproto/pull/4589) [`369bb02`](https://github.com/bluesky-social/atproto/commit/369bb02b9f80f0e15e5242e54f09bd4e01117f3a) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Add ability to set default `headers` when creating XRPC agent
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`369bb02`](https://github.com/bluesky-social/atproto/commit/369bb02b9f80f0e15e5242e54f09bd4e01117f3a), [`369bb02`](https://github.com/bluesky-social/atproto/commit/369bb02b9f80f0e15e5242e54f09bd4e01117f3a), [`369bb02`](https://github.com/bluesky-social/atproto/commit/369bb02b9f80f0e15e5242e54f09bd4e01117f3a), [`369bb02`](https://github.com/bluesky-social/atproto/commit/369bb02b9f80f0e15e5242e54f09bd4e01117f3a)]:
|
|
10
|
+
- @atproto/lex-client@0.0.11
|
|
11
|
+
- @atproto/lex-data@0.0.10
|
|
12
|
+
- @atproto/lex-installer@0.0.14
|
|
13
|
+
- @atproto/lex-json@0.0.10
|
|
14
|
+
- @atproto/lex-schema@0.0.11
|
|
15
|
+
- @atproto/lex-builder@0.0.13
|
|
16
|
+
|
|
17
|
+
## 0.0.13
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies []:
|
|
22
|
+
- @atproto/lex-installer@0.0.13
|
|
23
|
+
|
|
3
24
|
## 0.0.12
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -487,7 +487,7 @@ import { PasswordSession } from '@atproto/lex-password-session'
|
|
|
487
487
|
import * as app from './lexicons/app.js'
|
|
488
488
|
|
|
489
489
|
// Create a session with app password credentials
|
|
490
|
-
const session = await PasswordSession.
|
|
490
|
+
const session = await PasswordSession.login({
|
|
491
491
|
service: 'https://bsky.social',
|
|
492
492
|
identifier: 'alice.bsky.social', // handle or email
|
|
493
493
|
password: 'xxxx-xxxx-xxxx-xxxx', // App password (not your main password)
|
|
@@ -555,7 +555,7 @@ await PasswordSession.delete(savedData)
|
|
|
555
555
|
Handle transient errors (network issues, server unavailability) separately from permanent failures:
|
|
556
556
|
|
|
557
557
|
```typescript
|
|
558
|
-
const session = await PasswordSession.
|
|
558
|
+
const session = await PasswordSession.login({
|
|
559
559
|
service: 'https://bsky.social',
|
|
560
560
|
identifier: 'alice.bsky.social',
|
|
561
561
|
password: 'xxxx-xxxx-xxxx-xxxx',
|
|
@@ -596,7 +596,7 @@ async function loginWithMainCredentials(
|
|
|
596
596
|
authFactorToken?: string,
|
|
597
597
|
): Promise<PasswordSession> {
|
|
598
598
|
try {
|
|
599
|
-
return await PasswordSession.
|
|
599
|
+
return await PasswordSession.login({
|
|
600
600
|
service: 'https://bsky.social',
|
|
601
601
|
identifier,
|
|
602
602
|
password,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/lex",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Lexicon tooling for AT",
|
|
6
6
|
"keywords": [
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"tslib": "^2.8.1",
|
|
38
38
|
"yargs": "^17.0.0",
|
|
39
|
-
"@atproto/lex-builder": "0.0.
|
|
40
|
-
"@atproto/lex-client": "0.0.
|
|
41
|
-
"@atproto/lex-data": "0.0.
|
|
42
|
-
"@atproto/lex-json": "0.0.
|
|
43
|
-
"@atproto/lex-installer": "0.0.
|
|
44
|
-
"@atproto/lex-schema": "0.0.
|
|
39
|
+
"@atproto/lex-builder": "^0.0.13",
|
|
40
|
+
"@atproto/lex-client": "^0.0.11",
|
|
41
|
+
"@atproto/lex-data": "^0.0.10",
|
|
42
|
+
"@atproto/lex-json": "^0.0.10",
|
|
43
|
+
"@atproto/lex-installer": "^0.0.14",
|
|
44
|
+
"@atproto/lex-schema": "^0.0.11"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/yargs": "^17.0.33",
|