@pierre/storage 1.0.1 → 1.0.2

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/README.md CHANGED
@@ -622,6 +622,8 @@ interface FileDiff {
622
622
  bytes: number;
623
623
  isEof: boolean;
624
624
  raw: string;
625
+ additions: number;
626
+ deletions: number;
625
627
  }
626
628
 
627
629
  interface FilteredFile {
package/dist/index.cjs CHANGED
@@ -122,7 +122,9 @@ var diffFileRawSchema = zod.z.object({
122
122
  old_path: zod.z.string().nullable().optional(),
123
123
  raw: zod.z.string(),
124
124
  bytes: zod.z.number(),
125
- is_eof: zod.z.boolean()
125
+ is_eof: zod.z.boolean(),
126
+ additions: zod.z.number().optional(),
127
+ deletions: zod.z.number().optional()
126
128
  });
127
129
  var filteredFileRawSchema = zod.z.object({
128
130
  path: zod.z.string(),
@@ -512,7 +514,7 @@ function concatChunks(a, b) {
512
514
 
513
515
  // package.json
514
516
  var package_default = {
515
- version: "1.0.1"};
517
+ version: "1.0.2"};
516
518
 
517
519
  // src/version.ts
518
520
  var PACKAGE_NAME = "code-storage-sdk";
@@ -1598,7 +1600,9 @@ function transformFileDiff(raw) {
1598
1600
  oldPath: raw.old_path ?? void 0,
1599
1601
  raw: raw.raw,
1600
1602
  bytes: raw.bytes,
1601
- isEof: raw.is_eof
1603
+ isEof: raw.is_eof,
1604
+ additions: raw.additions ?? 0,
1605
+ deletions: raw.deletions ?? 0
1602
1606
  };
1603
1607
  }
1604
1608
  function transformFilteredFile(raw) {