Skip to content

Commit 53446a3

Browse files
committedFeb 18, 2025·
Add CLI support and improve importActorProfile function with enhanced options and error handling
1 parent 89f761e commit 53446a3

11 files changed

+101
-22
lines changed
 

‎dist/cli.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
export {};
3+
//# sourceMappingURL=cli.d.ts.map

‎dist/cli.d.ts.map

+1
Original file line numberDiff line numberDiff line change

‎dist/cli.js

+55
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/cli.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ export declare function exportActorProfile({ actorProfile, outbox, followers, fo
2424
/**
2525
* Imports an ActivityPub profile from a .tar archive stream.
2626
* @param tarStream - A ReadableStream containing the .tar archive.
27+
* @param options - Options for the import process.
2728
* @returns A promise that resolves to the parsed profile data.
2829
*/
29-
export declare function importActorProfile(tarStream: Readable): Promise<Record<string, any>>;
30+
export declare function importActorProfile(tarStream: Readable, options?: {
31+
console?: Pick<Console, 'log' | 'warn' | 'error'>;
32+
onError?: (error: Error, context: {
33+
fileName?: string;
34+
}) => void;
35+
}): Promise<Record<string, any>>;
3036
export * from './verify';
3137
//# sourceMappingURL=index.d.ts.map

‎dist/index.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

‎dist/index.js

+18-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/verify.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

‎dist/verify.js

+12-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/verify.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.