@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pierre/storage",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Pierre Git Storage SDK",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/index.ts CHANGED
@@ -345,6 +345,8 @@ function transformFileDiff(raw: RawFileDiff): FileDiff {
345
345
  raw: raw.raw,
346
346
  bytes: raw.bytes,
347
347
  isEof: raw.is_eof,
348
+ additions: raw.additions ?? 0,
349
+ deletions: raw.deletions ?? 0,
348
350
  };
349
351
  }
350
352
 
package/src/schemas.ts CHANGED
@@ -88,6 +88,8 @@ export const diffFileRawSchema = z.object({
88
88
  raw: z.string(),
89
89
  bytes: z.number(),
90
90
  is_eof: z.boolean(),
91
+ additions: z.number().optional(),
92
+ deletions: z.number().optional(),
91
93
  });
92
94
 
93
95
  export const filteredFileRawSchema = z.object({
package/src/types.ts CHANGED
@@ -426,6 +426,8 @@ export interface DiffFileBase {
426
426
 
427
427
  export interface FileDiff extends DiffFileBase {
428
428
  raw: string;
429
+ additions: number;
430
+ deletions: number;
429
431
  }
430
432
 
431
433
  export interface FilteredFile extends DiffFileBase {}