@atproto-labs/did-resolver
Advanced tools
Comparing version 0.1.2 to 0.1.3
# @atproto-labs/did-resolver | ||
## 0.1.3 | ||
### Patch Changes | ||
- Updated dependencies [[`cb4abbb67`](https://github.com/bluesky-social/atproto/commit/cb4abbb673c69a8a89b49dca5c038f3da2153c6c), [`cb4abbb67`](https://github.com/bluesky-social/atproto/commit/cb4abbb673c69a8a89b49dca5c038f3da2153c6c), [`cb4abbb67`](https://github.com/bluesky-social/atproto/commit/cb4abbb673c69a8a89b49dca5c038f3da2153c6c)]: | ||
- @atproto/did@0.1.2 | ||
## 0.1.2 | ||
@@ -4,0 +11,0 @@ |
@@ -28,3 +28,3 @@ "use strict"; | ||
// should still check if the msid is valid. | ||
(0, did_1.checkDidPlc)(did); | ||
(0, did_1.assertDidPlc)(did); | ||
const url = new URL(`/${did}`, this.plcDirectoryUrl); | ||
@@ -31,0 +31,0 @@ return this.fetch(url, { |
@@ -20,2 +20,6 @@ "use strict"; | ||
const didDocumentUrl = buildDidWebDocumentUrl(did); | ||
// Note we do not explicitly check for "localhost" here. Instead, we rely on | ||
// the injected 'fetch' function to handle the URL. If the URL is | ||
// "localhost", or resolves to a private IP address, the fetch function is | ||
// responsible for handling it. | ||
return this.fetch(didDocumentUrl, { | ||
@@ -22,0 +26,0 @@ redirect: 'error', |
{ | ||
"name": "@atproto-labs/did-resolver", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "description": "DID resolution and verification library", | ||
"@atproto-labs/simple-store-memory": "0.1.1", | ||
"@atproto/did": "0.1.1" | ||
"@atproto/did": "0.1.2" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
@@ -9,3 +9,3 @@ import { | ||
import { pipe } from '@atproto-labs/pipe' | ||
import { Did, checkDidPlc, didDocumentValidator } from '@atproto/did' | ||
import { Did, assertDidPlc, didDocumentValidator } from '@atproto/did' | ||
@@ -47,3 +47,3 @@ import { DidMethod, ResolveDidOptions } from '../did-method.js' | ||
// should still check if the msid is valid. | ||
checkDidPlc(did) | ||
assertDidPlc(did) | ||
@@ -50,0 +50,0 @@ const url = new URL(`/${did}`, this.plcDirectoryUrl) |
@@ -33,2 +33,7 @@ import { | ||
// Note we do not explicitly check for "localhost" here. Instead, we rely on | ||
// the injected 'fetch' function to handle the URL. If the URL is | ||
// "localhost", or resolves to a private IP address, the fetch function is | ||
// responsible for handling it. | ||
return this.fetch(didDocumentUrl, { | ||
@@ -35,0 +40,0 @@ redirect: 'error', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
40479
643
+ Added@atproto/did@0.1.2(transitive)
- Removed@atproto/did@0.1.1(transitive)
Updated@atproto/did@0.1.2