@atproto/api 0.7.0 → 0.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/api",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
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.17"
31
+ "@atproto/dev-env": "^0.2.18"
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/*/*",
@@ -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 (/[.,;!?]$/.test(uri)) {
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.']],