Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: interop-alliance/wallet-export-ts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: interop-alliance/wallet-export-ts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: refs/heads/add-validate-cli-tool
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 7 commits
  • 17 files changed
  • 1 contributor

Commits on Feb 17, 2025

  1. Copy the full SHA
    40b05c6 View commit details
  2. Refactor importActorProfile and validateExportStream functions to imp…

    …rove error handling, normalize file names, and skip system-generated files
    0marSalah committed Feb 17, 2025
    Copy the full SHA
    163c9c4 View commit details
  3. fix test-node action

    0marSalah committed Feb 17, 2025
    Copy the full SHA
    ad75e6d View commit details
  4. Copy the full SHA
    c2417d3 View commit details
  5. Copy the full SHA
    1666668 View commit details

Commits on Feb 18, 2025

  1. Refactor importActorProfile function to streamline error handling and…

    … remove redundant console logs
    0marSalah committed Feb 18, 2025
    Copy the full SHA
    89f761e View commit details
  2. Add CLI support and improve importActorProfile function with enhanced…

    … options and error handling
    0marSalah committed Feb 18, 2025
    Copy the full SHA
    53446a3 View commit details
Showing with 202 additions and 47 deletions.
  1. +3 −0 dist/cli.d.ts
  2. +1 −0 dist/cli.d.ts.map
  3. +55 −0 dist/cli.js
  4. +1 −0 dist/cli.js.map
  5. +7 −1 dist/index.d.ts
  6. +1 −1 dist/index.d.ts.map
  7. +18 −16 dist/index.js
  8. +1 −1 dist/index.js.map
  9. +1 −1 dist/verify.d.ts.map
  10. +12 −1 dist/verify.js
  11. +1 −1 dist/verify.js.map
  12. BIN out/test-export-2024-01-01.tar
  13. +5 −2 package.json
  14. +56 −0 src/cli.ts
  15. +22 −18 src/index.ts
  16. +14 −1 src/verify.ts
  17. +4 −4 test/index.spec.ts
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
@@ -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