@fedify/fedify 1.6.0-dev.766 → 1.6.0-dev.768
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/CHANGES.md +5 -0
- package/README.md +1 -1
- package/SPONSORS.md +1 -1
- package/esm/deno.js +1 -1
- package/esm/federation/middleware.js +9 -0
- package/esm/vocab/vocab.js +176 -176
- package/package.json +1 -1
- package/types/federation/context.d.ts +14 -0
- package/types/federation/context.d.ts.map +1 -1
- package/types/federation/middleware.d.ts +3 -0
- package/types/federation/middleware.d.ts.map +1 -1
    
        package/CHANGES.md
    CHANGED
    
    
    
        package/README.md
    CHANGED
    
    | @@ -104,7 +104,7 @@ financial contributors:[^2] | |
| 104 104 |  | 
| 105 105 | 
             
            ### Backers
         | 
| 106 106 |  | 
| 107 | 
            -
            yamanoku,  | 
| 107 | 
            +
            yamanoku, Encyclia, taye, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
         | 
| 108 108 |  | 
| 109 109 | 
             
            ### One-time donations
         | 
| 110 110 |  | 
    
        package/SPONSORS.md
    CHANGED
    
    | @@ -25,7 +25,7 @@ Supporters | |
| 25 25 | 
             
            Backers
         | 
| 26 26 | 
             
            -------
         | 
| 27 27 |  | 
| 28 | 
            -
            yamanoku,  | 
| 28 | 
            +
            yamanoku, Encyclia, taye, okin, Andy Piper, box464, Evan Prodromou, Rafael Goulart, malte
         | 
| 29 29 |  | 
| 30 30 | 
             
            One-time donations
         | 
| 31 31 | 
             
            ------------------
         | 
    
        package/esm/deno.js
    CHANGED
    
    
| @@ -16,6 +16,7 @@ import { lookupObject, traverseCollection, } from "../vocab/lookup.js"; | |
| 16 16 | 
             
            import { getTypeId } from "../vocab/type.js";
         | 
| 17 17 | 
             
            import { Activity, CryptographicKey, Multikey, } from "../vocab/vocab.js";
         | 
| 18 18 | 
             
            import { handleWebFinger } from "../webfinger/handler.js";
         | 
| 19 | 
            +
            import { lookupWebFinger, } from "../webfinger/lookup.js";
         | 
| 19 20 | 
             
            import { buildCollectionSynchronizationHeader } from "./collection.js";
         | 
| 20 21 | 
             
            import { handleActor, handleCollection, handleInbox, handleObject, } from "./handler.js";
         | 
| 21 22 | 
             
            import { InboxListenerSet, routeActivity } from "./inbox.js";
         | 
| @@ -2012,6 +2013,14 @@ export class ContextImpl { | |
| 2012 2013 | 
             
                            userAgent: options?.userAgent ?? this.federation.userAgent,
         | 
| 2013 2014 | 
             
                        });
         | 
| 2014 2015 | 
             
                }
         | 
| 2016 | 
            +
                lookupWebFinger(resource, options = {}) {
         | 
| 2017 | 
            +
                    return lookupWebFinger(resource, {
         | 
| 2018 | 
            +
                        ...options,
         | 
| 2019 | 
            +
                        userAgent: options.userAgent ?? this.federation.userAgent,
         | 
| 2020 | 
            +
                        tracerProvider: options.tracerProvider ?? this.tracerProvider,
         | 
| 2021 | 
            +
                        allowPrivateAddress: this.federation.allowPrivateAddress,
         | 
| 2022 | 
            +
                    });
         | 
| 2023 | 
            +
                }
         | 
| 2015 2024 | 
             
                sendActivity(sender, recipients, activity, options = {}) {
         | 
| 2016 2025 | 
             
                    const tracer = this.tracerProvider.getTracer(metadata.name, metadata.version);
         | 
| 2017 2026 | 
             
                    return tracer.startActiveSpan(this.federation.outboxQueue == null || options.immediate
         |