@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 +2 -0
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +36 -8
- package/dist/index.d.ts +36 -8
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/schemas.ts +2 -0
- package/src/types.ts +2 -0
package/README.md
CHANGED
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.
|
|
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) {
|