@atproto-labs/identity-resolver 0.3.4 → 0.3.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,23 @@
|
|
|
1
1
|
# @atproto-labs/identity-resolver
|
|
2
2
|
|
|
3
|
+
## 0.3.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @atproto-labs/did-resolver@0.2.6
|
|
9
|
+
- @atproto-labs/handle-resolver@0.3.6
|
|
10
|
+
|
|
11
|
+
## 0.3.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#4501](https://github.com/bluesky-social/atproto/pull/4501) [`2f78893`](https://github.com/bluesky-social/atproto/commit/2f78893ace3bbf14d4bac36837820ddb46658c98) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Re-export types internally used by `IdentityInfo`
|
|
16
|
+
|
|
17
|
+
- Updated dependencies []:
|
|
18
|
+
- @atproto-labs/did-resolver@0.2.5
|
|
19
|
+
- @atproto-labs/handle-resolver@0.3.5
|
|
20
|
+
|
|
3
21
|
## 0.3.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Dual MIT/Apache-2.0 License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2022-
|
|
3
|
+
Copyright (c) 2022-2026 Bluesky Social PBC, and Contributors
|
|
4
4
|
|
|
5
5
|
Except as otherwise noted in individual files, this software is licensed under the MIT license (<http://opensource.org/licenses/MIT>), or the Apache License, Version 2.0 (<http://www.apache.org/licenses/LICENSE-2.0>).
|
|
6
6
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AtprotoDid,
|
|
1
|
+
import { AtprotoDid, AtprotoDidDocument } from '@atproto-labs/did-resolver';
|
|
2
2
|
import { HANDLE_INVALID } from './constants';
|
|
3
|
+
export type { AtprotoDid, AtprotoDidDocument };
|
|
3
4
|
export type IdentityInfo = {
|
|
4
5
|
did: AtprotoDid;
|
|
5
|
-
didDoc:
|
|
6
|
+
didDoc: AtprotoDidDocument;
|
|
6
7
|
/**
|
|
7
8
|
* Will be 'handle.invalid' if the handle does not resolve to the
|
|
8
9
|
* same DID as the input, or if the handle is not present in the DID
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-resolver.d.ts","sourceRoot":"","sources":["../src/identity-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"identity-resolver.d.ts","sourceRoot":"","sources":["../src/identity-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAA;AAI9C,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,UAAU,CAAA;IACf,MAAM,EAAE,kBAAkB,CAAA;IAE1B;;;;OAIG;IACH,MAAM,EAAE,OAAO,cAAc,GAAG,MAAM,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CACL,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,YAAY,CAAC,CAAA;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-resolver.js","sourceRoot":"","sources":["../src/identity-resolver.ts"],"names":[],"mappings":"","sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"identity-resolver.js","sourceRoot":"","sources":["../src/identity-resolver.ts"],"names":[],"mappings":"","sourcesContent":["import { AtprotoDid, AtprotoDidDocument } from '@atproto-labs/did-resolver'\nimport { HANDLE_INVALID } from './constants'\n\nexport type { AtprotoDid, AtprotoDidDocument }\n\n// Consistent with `com.atproto.identity.defs#identityInfo` returned by\n// `com.atproto.identity.resolveIdentity` endpoint.\nexport type IdentityInfo = {\n did: AtprotoDid\n didDoc: AtprotoDidDocument\n\n /**\n * Will be 'handle.invalid' if the handle does not resolve to the\n * same DID as the input, or if the handle is not present in the DID\n * document.\n */\n handle: typeof HANDLE_INVALID | string\n}\n\nexport type ResolveIdentityOptions = {\n signal?: AbortSignal\n noCache?: boolean\n}\n\nexport interface IdentityResolver {\n resolve(\n identifier: string,\n options?: ResolveIdentityOptions,\n ): Promise<IdentityInfo>\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto-labs/identity-resolver",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A library resolving ATPROTO identities",
|
|
6
6
|
"keywords": [
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atproto-labs/did-resolver": "0.2.
|
|
29
|
-
"@atproto-labs/handle-resolver": "0.3.
|
|
28
|
+
"@atproto-labs/did-resolver": "0.2.6",
|
|
29
|
+
"@atproto-labs/handle-resolver": "0.3.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"typescript": "^5.6.3"
|
package/src/identity-resolver.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AtprotoDid,
|
|
3
|
-
AtprotoIdentityDidMethods,
|
|
4
|
-
DidDocument,
|
|
5
|
-
} from '@atproto-labs/did-resolver'
|
|
1
|
+
import { AtprotoDid, AtprotoDidDocument } from '@atproto-labs/did-resolver'
|
|
6
2
|
import { HANDLE_INVALID } from './constants'
|
|
7
3
|
|
|
4
|
+
export type { AtprotoDid, AtprotoDidDocument }
|
|
5
|
+
|
|
8
6
|
// Consistent with `com.atproto.identity.defs#identityInfo` returned by
|
|
9
7
|
// `com.atproto.identity.resolveIdentity` endpoint.
|
|
10
8
|
export type IdentityInfo = {
|
|
11
9
|
did: AtprotoDid
|
|
12
|
-
|
|
13
|
-
didDoc: DidDocument<AtprotoIdentityDidMethods>
|
|
10
|
+
didDoc: AtprotoDidDocument
|
|
14
11
|
|
|
15
12
|
/**
|
|
16
13
|
* Will be 'handle.invalid' if the handle does not resolve to the
|