Skip to content

Commit

Permalink
Add CLI support and improve importActorProfile function with enhanced…
Browse files Browse the repository at this point in the history
… options and error handling
  • Loading branch information
0marSalah committed Feb 18, 2025
1 parent 89f761e commit 53446a3
Show file tree
Hide file tree
Showing 11 changed files with 101 additions and 22 deletions.
3 changes: 3 additions & 0 deletions dist/cli.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
export {};
//# sourceMappingURL=cli.d.ts.map
1 change: 1 addition & 0 deletions dist/cli.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions dist/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cli.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ export declare function exportActorProfile({ actorProfile, outbox, followers, fo
/**
* Imports an ActivityPub profile from a .tar archive stream.
* @param tarStream - A ReadableStream containing the .tar archive.
* @param options - Options for the import process.
* @returns A promise that resolves to the parsed profile data.
*/
export declare function importActorProfile(tarStream: Readable): Promise<Record<string, any>>;
export declare function importActorProfile(tarStream: Readable, options?: {
console?: Pick<Console, 'log' | 'warn' | 'error'>;
onError?: (error: Error, context: {
fileName?: string;
}) => void;
}): Promise<Record<string, any>>;
export * from './verify';
//# sourceMappingURL=index.d.ts.map
2 changes: 1 addition & 1 deletion dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 18 additions & 16 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 53446a3

Please sign in to comment.