@atproto-labs/did-resolver
Advanced tools
Comparing version 0.1.9 to 0.1.10
# @atproto-labs/did-resolver | ||
## 0.1.10 | ||
### Patch Changes | ||
- [#3220](https://github.com/bluesky-social/atproto/pull/3220) [`61dc0d60e`](https://github.com/bluesky-social/atproto/commit/61dc0d60e19b88c6427a54c6d95a391b5f4da7bd) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Apply new linting rules regarding import order | ||
- Updated dependencies [[`61dc0d60e`](https://github.com/bluesky-social/atproto/commit/61dc0d60e19b88c6427a54c6d95a391b5f4da7bd)]: | ||
- @atproto-labs/simple-store-memory@0.1.2 | ||
- @atproto-labs/simple-store@0.1.2 | ||
- @atproto-labs/fetch@0.2.1 | ||
- @atproto/did@0.1.5 | ||
## 0.1.9 | ||
@@ -4,0 +16,0 @@ |
@@ -0,6 +1,6 @@ | ||
import { Did, DidDocument } from '@atproto/did'; | ||
import { CachedGetter, SimpleStore } from '@atproto-labs/simple-store'; | ||
import { Did, DidDocument } from '@atproto/did'; | ||
import { DidMethod, ResolveDidOptions } from './did-method.js'; | ||
import { DidResolver, ResolvedDocument } from './did-resolver.js'; | ||
export type { DidMethod, ResolvedDocument, ResolveDidOptions }; | ||
export type { DidMethod, ResolveDidOptions, ResolvedDocument }; | ||
export type DidCache = SimpleStore<Did, DidDocument>; | ||
@@ -7,0 +7,0 @@ export type DidResolverCachedOptions = { |
import { Did } from '@atproto/did'; | ||
import { DidMethod, DidMethods, ResolveDidOptions } from './did-method.js'; | ||
import { DidResolver, ResolvedDocument } from './did-resolver.js'; | ||
export type { DidMethod, ResolvedDocument, ResolveDidOptions }; | ||
export type { DidMethod, ResolveDidOptions, ResolvedDocument }; | ||
export declare class DidResolverBase<M extends string = string> implements DidResolver<M> { | ||
@@ -6,0 +6,0 @@ protected readonly methods: Map<string, DidMethod<M>>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DidResolverBase = void 0; | ||
const zod_1 = require("zod"); | ||
const did_1 = require("@atproto/did"); | ||
const fetch_1 = require("@atproto-labs/fetch"); | ||
const did_1 = require("@atproto/did"); | ||
const zod_1 = require("zod"); | ||
class DidResolverBase { | ||
@@ -8,0 +8,0 @@ constructor(methods) { |
@@ -0,3 +1,3 @@ | ||
import { Did } from '@atproto/did'; | ||
import { Fetch } from '@atproto-labs/fetch'; | ||
import { Did } from '@atproto/did'; | ||
import { DidMethod, ResolveDidOptions } from '../did-method.js'; | ||
@@ -4,0 +4,0 @@ export type DidPlcMethodOptions = { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DidPlcMethod = void 0; | ||
const did_1 = require("@atproto/did"); | ||
const fetch_1 = require("@atproto-labs/fetch"); | ||
const pipe_1 = require("@atproto-labs/pipe"); | ||
const did_1 = require("@atproto/did"); | ||
const fetchSuccessHandler = (0, pipe_1.pipe)((0, fetch_1.fetchOkProcessor)(), (0, fetch_1.fetchJsonProcessor)(/^application\/(did\+ld\+)?json$/), (0, fetch_1.fetchJsonZodProcessor)(did_1.didDocumentValidator)); | ||
@@ -8,0 +8,0 @@ class DidPlcMethod { |
@@ -0,3 +1,3 @@ | ||
import { Did } from '@atproto/did'; | ||
import { Fetch } from '@atproto-labs/fetch'; | ||
import { Did } from '@atproto/did'; | ||
import { DidMethod, ResolveDidOptions } from '../did-method.js'; | ||
@@ -4,0 +4,0 @@ export type DidWebMethodOptions = { |
@@ -5,5 +5,5 @@ "use strict"; | ||
exports.buildDidWebDocumentUrl = buildDidWebDocumentUrl; | ||
const did_1 = require("@atproto/did"); | ||
const fetch_1 = require("@atproto-labs/fetch"); | ||
const pipe_1 = require("@atproto-labs/pipe"); | ||
const did_1 = require("@atproto/did"); | ||
const fetchSuccessHandler = (0, pipe_1.pipe)((0, fetch_1.fetchOkProcessor)(), (0, fetch_1.fetchJsonProcessor)(/^application\/(did\+ld\+)?json$/), (0, fetch_1.fetchJsonZodProcessor)(did_1.didDocumentValidator)); | ||
@@ -10,0 +10,0 @@ class DidWebMethod { |
{ | ||
"name": "@atproto-labs/did-resolver", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"license": "MIT", | ||
@@ -28,7 +28,7 @@ "description": "DID resolution and verification library", | ||
"zod": "^3.23.8", | ||
"@atproto-labs/fetch": "0.2.0", | ||
"@atproto-labs/fetch": "0.2.1", | ||
"@atproto-labs/pipe": "0.1.0", | ||
"@atproto-labs/simple-store": "0.1.1", | ||
"@atproto-labs/simple-store-memory": "0.1.1", | ||
"@atproto/did": "0.1.4" | ||
"@atproto-labs/simple-store": "0.1.2", | ||
"@atproto-labs/simple-store-memory": "0.1.2", | ||
"@atproto/did": "0.1.5" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
@@ -6,3 +6,2 @@ import { Did, DidDocument } from '@atproto/did' | ||
} from '@atproto-labs/simple-store-memory' | ||
import { DidCache } from './did-cache.js' | ||
@@ -9,0 +8,0 @@ |
@@ -0,4 +1,3 @@ | ||
import { Did, DidDocument } from '@atproto/did' | ||
import { CachedGetter, SimpleStore } from '@atproto-labs/simple-store' | ||
import { Did, DidDocument } from '@atproto/did' | ||
import { DidCacheMemory } from './did-cache-memory.js' | ||
@@ -8,3 +7,3 @@ import { DidMethod, ResolveDidOptions } from './did-method.js' | ||
export type { DidMethod, ResolvedDocument, ResolveDidOptions } | ||
export type { DidMethod, ResolveDidOptions, ResolvedDocument } | ||
@@ -11,0 +10,0 @@ export type DidCache = SimpleStore<Did, DidDocument> |
@@ -0,9 +1,8 @@ | ||
import { ZodError } from 'zod' | ||
import { Did, DidError, extractDidMethod } from '@atproto/did' | ||
import { FetchError, FetchResponseError } from '@atproto-labs/fetch' | ||
import { Did, DidError, extractDidMethod } from '@atproto/did' | ||
import { ZodError } from 'zod' | ||
import { DidMethod, DidMethods, ResolveDidOptions } from './did-method.js' | ||
import { DidResolver, ResolvedDocument } from './did-resolver.js' | ||
export type { DidMethod, ResolvedDocument, ResolveDidOptions } | ||
export type { DidMethod, ResolveDidOptions, ResolvedDocument } | ||
@@ -10,0 +9,0 @@ export class DidResolverBase<M extends string = string> |
import { Did, DidDocument } from '@atproto/did' | ||
import { ResolveDidOptions } from './did-method.js' | ||
@@ -4,0 +3,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { Did, assertDidPlc, didDocumentValidator } from '@atproto/did' | ||
import { | ||
@@ -9,4 +10,2 @@ Fetch, | ||
import { pipe } from '@atproto-labs/pipe' | ||
import { Did, assertDidPlc, didDocumentValidator } from '@atproto/did' | ||
import { DidMethod, ResolveDidOptions } from '../did-method.js' | ||
@@ -13,0 +12,0 @@ |
@@ -0,4 +1,5 @@ | ||
import { Did, DidError, didDocumentValidator, didWebToUrl } from '@atproto/did' | ||
import { | ||
Fetch, | ||
bindFetch, | ||
Fetch, | ||
fetchJsonProcessor, | ||
@@ -9,4 +10,2 @@ fetchJsonZodProcessor, | ||
import { pipe } from '@atproto-labs/pipe' | ||
import { Did, didDocumentValidator, DidError, didWebToUrl } from '@atproto/did' | ||
import { DidMethod, ResolveDidOptions } from '../did-method.js' | ||
@@ -13,0 +12,0 @@ |
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
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
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
45565
+ Added@atproto-labs/fetch@0.2.1(transitive)
+ Added@atproto-labs/simple-store@0.1.2(transitive)
+ Added@atproto-labs/simple-store-memory@0.1.2(transitive)
+ Added@atproto/did@0.1.5(transitive)
- Removed@atproto-labs/fetch@0.2.0(transitive)
- Removed@atproto-labs/simple-store@0.1.1(transitive)
- Removed@atproto-labs/simple-store-memory@0.1.1(transitive)
- Removed@atproto/did@0.1.4(transitive)
Updated@atproto-labs/fetch@0.2.1
Updated@atproto/did@0.1.5