@fluidframework/protocol-base
Advanced tools
Comparing version 0.1018.0-13426 to 0.1018.0-13520
@@ -20,3 +20,3 @@ /*! | ||
*/ | ||
export declare function getGitType(value: SummaryObject): string; | ||
export declare function getGitType(value: SummaryObject): "blob" | "tree"; | ||
/** | ||
@@ -23,0 +23,0 @@ * Build a tree hierarchy base on a flat tree |
@@ -8,2 +8,3 @@ "use strict"; | ||
const protocol_definitions_1 = require("@fluidframework/protocol-definitions"); | ||
const common_utils_1 = require("@fluidframework/common-utils"); | ||
/** | ||
@@ -19,9 +20,8 @@ * Take a summary object and returns its git mode. | ||
case 2 /* Blob */: | ||
case 4 /* Attachment */: | ||
return protocol_definitions_1.FileMode.File; | ||
case 0 /* Commit */: | ||
return protocol_definitions_1.FileMode.Commit; | ||
case 1 /* Tree */: | ||
return protocol_definitions_1.FileMode.Directory; | ||
default: | ||
throw new Error(); | ||
common_utils_1.unreachableCase(type, `Unknown type: ${type}`); | ||
} | ||
@@ -40,11 +40,8 @@ } | ||
case 2 /* Blob */: | ||
case 4 /* Attachment */: | ||
return "blob"; | ||
case 0 /* Commit */: | ||
return "commit"; | ||
case 1 /* Tree */: | ||
return "tree"; | ||
case 4 /* Attachment */: | ||
return "attachment"; | ||
default: | ||
throw new Error(); | ||
common_utils_1.unreachableCase(type, `Unknown type: ${type}`); | ||
} | ||
@@ -51,0 +48,0 @@ } |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/protocol-base"; | ||
export declare const pkgVersion = "0.1018.0-13426"; | ||
export declare const pkgVersion = "0.1018.0-13520"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.pkgName = "@fluidframework/protocol-base"; | ||
exports.pkgVersion = "0.1018.0-13426"; | ||
exports.pkgVersion = "0.1018.0-13520"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -20,3 +20,3 @@ /*! | ||
*/ | ||
export declare function getGitType(value: SummaryObject): string; | ||
export declare function getGitType(value: SummaryObject): "blob" | "tree"; | ||
/** | ||
@@ -23,0 +23,0 @@ * Build a tree hierarchy base on a flat tree |
@@ -6,2 +6,3 @@ /*! | ||
import { FileMode, TreeEntry, } from "@fluidframework/protocol-definitions"; | ||
import { unreachableCase } from "@fluidframework/common-utils"; | ||
/** | ||
@@ -17,9 +18,8 @@ * Take a summary object and returns its git mode. | ||
case 2 /* Blob */: | ||
case 4 /* Attachment */: | ||
return FileMode.File; | ||
case 0 /* Commit */: | ||
return FileMode.Commit; | ||
case 1 /* Tree */: | ||
return FileMode.Directory; | ||
default: | ||
throw new Error(); | ||
unreachableCase(type, `Unknown type: ${type}`); | ||
} | ||
@@ -37,11 +37,8 @@ } | ||
case 2 /* Blob */: | ||
case 4 /* Attachment */: | ||
return "blob"; | ||
case 0 /* Commit */: | ||
return "commit"; | ||
case 1 /* Tree */: | ||
return "tree"; | ||
case 4 /* Attachment */: | ||
return "attachment"; | ||
default: | ||
throw new Error(); | ||
unreachableCase(type, `Unknown type: ${type}`); | ||
} | ||
@@ -48,0 +45,0 @@ } |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/protocol-base"; | ||
export declare const pkgVersion = "0.1018.0-13426"; | ||
export declare const pkgVersion = "0.1018.0-13520"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -8,3 +8,3 @@ /*! | ||
export const pkgName = "@fluidframework/protocol-base"; | ||
export const pkgVersion = "0.1018.0-13426"; | ||
export const pkgVersion = "0.1018.0-13520"; | ||
//# sourceMappingURL=packageVersion.js.map |
{ | ||
"name": "@fluidframework/protocol-base", | ||
"version": "0.1018.0-13426", | ||
"version": "0.1018.0-13520", | ||
"description": "Fluid protocol base", | ||
@@ -57,4 +57,4 @@ "homepage": "https://fluidframework.com", | ||
"@fluidframework/common-utils": "^0.27.0-0", | ||
"@fluidframework/gitresources": "0.1018.0-13426", | ||
"@fluidframework/protocol-definitions": "0.1018.0-13426", | ||
"@fluidframework/gitresources": "0.1018.0-13520", | ||
"@fluidframework/protocol-definitions": "0.1018.0-13520", | ||
"assert": "^2.0.0", | ||
@@ -61,0 +61,0 @@ "lodash": "^4.17.19" |
@@ -17,3 +17,3 @@ /*! | ||
} from "@fluidframework/protocol-definitions"; | ||
import { unreachableCase } from "@fluidframework/common-utils"; | ||
/** | ||
@@ -29,9 +29,8 @@ * Take a summary object and returns its git mode. | ||
case SummaryType.Blob: | ||
case SummaryType.Attachment: | ||
return FileMode.File; | ||
case SummaryType.Commit: | ||
return FileMode.Commit; | ||
case SummaryType.Tree: | ||
return FileMode.Directory; | ||
default: | ||
throw new Error(); | ||
unreachableCase(type, `Unknown type: ${type}`); | ||
} | ||
@@ -46,3 +45,3 @@ } | ||
*/ | ||
export function getGitType(value: SummaryObject): string { | ||
export function getGitType(value: SummaryObject): "blob" | "tree" { | ||
const type = value.type === SummaryType.Handle ? value.handleType : value.type; | ||
@@ -52,11 +51,8 @@ | ||
case SummaryType.Blob: | ||
case SummaryType.Attachment: | ||
return "blob"; | ||
case SummaryType.Commit: | ||
return "commit"; | ||
case SummaryType.Tree: | ||
return "tree"; | ||
case SummaryType.Attachment: | ||
return "attachment"; | ||
default: | ||
throw new Error(); | ||
unreachableCase(type, `Unknown type: ${type}`); | ||
} | ||
@@ -63,0 +59,0 @@ } |
@@ -9,2 +9,2 @@ /*! | ||
export const pkgName = "@fluidframework/protocol-base"; | ||
export const pkgVersion = "0.1018.0-13426"; | ||
export const pkgVersion = "0.1018.0-13520"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
218567
2699
+ Added@fluidframework/gitresources@0.1018.0-13520(transitive)
+ Added@fluidframework/protocol-definitions@0.1018.0-13520(transitive)
+ Addedfor-each@0.3.3(transitive)
- Removed@fluidframework/gitresources@0.1018.0-13426(transitive)
- Removed@fluidframework/protocol-definitions@0.1018.0-13426(transitive)
- Removedfor-each@0.3.4(transitive)