Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CHANGELOG.md
examples/release-notes.md
**/cspell-cache-flatpack.json
**/cspell-cache-flatted.json
**/.npm*.json
coverage
**/*.schema.json
integration-tests/config/config.json
Expand Down
36,873 changes: 36,873 additions & 0 deletions packages/flatpack-json/fixtures/.npm-packages-info-v1.json

Large diffs are not rendered by default.

36,899 changes: 36,899 additions & 0 deletions packages/flatpack-json/fixtures/.npm-packages-info-v1a.json

Large diffs are not rendered by default.

12,130 changes: 12,130 additions & 0 deletions packages/flatpack-json/fixtures/.npm-packages-info-v2.json

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions packages/flatpack-json/src/CompactStorage.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { Flatpacked, FlatpackOptions, Serializable } from './types.mjs';

export interface CompactStorageApi {
toJSON<V extends Serializable>(json: V): Flatpacked;
}

export abstract class CompactStorage implements CompactStorageApi {
readonly options?: FlatpackOptions | undefined;
constructor(options?: FlatpackOptions | undefined) {
this.options = options;
}
abstract toJSON<V extends Serializable>(json: V): Flatpacked;
}
Loading
Loading