@atproto/api 0.7.0 → 0.7.2
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 +12 -0
- package/dist/client/types/app/bsky/feed/getAuthorFeed.d.ts +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
- package/src/client/lexicons.ts +1 -0
- package/src/client/types/app/bsky/feed/getAuthorFeed.ts +1 -0
- package/src/moderation/const/labels.ts +4 -4
- package/src/rich-text/detection.ts +1 -1
- package/tests/rich-text-detection.test.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"common-tags": "^1.8.2",
|
|
30
30
|
"@atproto/lex-cli": "^0.2.5",
|
|
31
|
-
"@atproto/dev-env": "^0.2.
|
|
31
|
+
"@atproto/dev-env": "^0.2.19"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"codegen": "pnpm docgen && node ./scripts/generate-code.mjs && lex gen-api ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/*",
|
package/src/client/lexicons.ts
CHANGED
|
@@ -99,23 +99,23 @@ export const LABELS: LabelDefinitionMap = {
|
|
|
99
99
|
strings: {
|
|
100
100
|
settings: {
|
|
101
101
|
en: {
|
|
102
|
-
name: '
|
|
102
|
+
name: 'Sign-in Required',
|
|
103
103
|
description:
|
|
104
|
-
'This user has requested that their
|
|
104
|
+
'This user has requested that their account only be shown to signed-in users.',
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
account: {
|
|
108
108
|
en: {
|
|
109
109
|
name: 'Sign-in Required',
|
|
110
110
|
description:
|
|
111
|
-
'This user has requested that their
|
|
111
|
+
'This user has requested that their account only be shown to signed-in users.',
|
|
112
112
|
},
|
|
113
113
|
},
|
|
114
114
|
content: {
|
|
115
115
|
en: {
|
|
116
116
|
name: 'Sign-in Required',
|
|
117
117
|
description:
|
|
118
|
-
'This user has requested that their content only be shown to
|
|
118
|
+
'This user has requested that their content only be shown to signed-in users.',
|
|
119
119
|
},
|
|
120
120
|
},
|
|
121
121
|
},
|
|
@@ -47,7 +47,7 @@ export function detectFacets(text: UnicodeString): Facet[] | undefined {
|
|
|
47
47
|
const start = text.utf16.indexOf(match[2], match.index)
|
|
48
48
|
const index = { start, end: start + match[2].length }
|
|
49
49
|
// strip ending puncuation
|
|
50
|
-
if (/[
|
|
50
|
+
if (/[.,;:!?]$/.test(uri)) {
|
|
51
51
|
uri = uri.slice(0, -1)
|
|
52
52
|
index.end--
|
|
53
53
|
}
|
|
@@ -41,6 +41,7 @@ describe('detectFacets', () => {
|
|
|
41
41
|
'start middle end.com/foo/bar?baz=bux#hash',
|
|
42
42
|
'newline1.com\nnewline2.com',
|
|
43
43
|
'a example.com/index.php php link',
|
|
44
|
+
'a trailing bsky.app: colon',
|
|
44
45
|
|
|
45
46
|
'not.. a..url ..here',
|
|
46
47
|
'e.g.',
|
|
@@ -162,6 +163,7 @@ describe('detectFacets', () => {
|
|
|
162
163
|
['example.com/index.php', 'https://example.com/index.php'],
|
|
163
164
|
[' php link'],
|
|
164
165
|
],
|
|
166
|
+
[['a trailing '], ['bsky.app', 'https://bsky.app'], [': colon']],
|
|
165
167
|
|
|
166
168
|
[['not.. a..url ..here']],
|
|
167
169
|
[['e.g.']],
|