@fluidframework/protocol-base
Advanced tools
Comparing version 0.1015.0 to 0.1016.0-11198
@@ -8,5 +8,6 @@ /*! | ||
extends: [ | ||
"@fluidframework/eslint-config-fluid", | ||
"@fluidframework/eslint-config-fluid/eslint7", | ||
], | ||
rules: { | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
@@ -16,2 +17,2 @@ "@typescript-eslint/strict-boolean-expressions": "off", | ||
} | ||
} | ||
} |
@@ -154,2 +154,3 @@ "use strict"; | ||
exports.AttachmentTreeEntry = AttachmentTreeEntry; | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
function addBlobToTree(tree, blobName, content) { | ||
@@ -156,0 +157,0 @@ tree.entries.push({ |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/protocol-base"; | ||
export declare const pkgVersion = "0.1015.0"; | ||
export declare const pkgVersion = "0.1016.0-11198"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.pkgName = "@fluidframework/protocol-base"; | ||
exports.pkgVersion = "0.1015.0"; | ||
exports.pkgVersion = "0.1016.0-11198"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -97,2 +97,3 @@ "use strict"; | ||
if (keyMap !== undefined) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return | ||
return keyMap.value; | ||
@@ -146,3 +147,3 @@ } | ||
this.emit("error", { eventName: "ProposalInDisconnectedState", key }); | ||
return Promise.reject(false); | ||
return Promise.reject(new Error("Can't proposal in disconnected state")); | ||
} | ||
@@ -149,0 +150,0 @@ const deferred = new common_utils_1.Deferred(); |
@@ -7,4 +7,3 @@ /*! | ||
* Check if the string is a system message type, which includes | ||
* MessageType.RemoteHelp, MessageType.Integrate, MessageType.ClientJoin, | ||
* MessageType.ClientLeave, MessageType.Fork | ||
* MessageType.RemoteHelp, MessageType.ClientJoin, MessageType.ClientLeave | ||
* | ||
@@ -11,0 +10,0 @@ * @param type - the type to check |
@@ -10,4 +10,3 @@ "use strict"; | ||
* Check if the string is a system message type, which includes | ||
* MessageType.RemoteHelp, MessageType.Integrate, MessageType.ClientJoin, | ||
* MessageType.ClientLeave, MessageType.Fork | ||
* MessageType.RemoteHelp, MessageType.ClientJoin, MessageType.ClientLeave | ||
* | ||
@@ -18,7 +17,5 @@ * @param type - the type to check | ||
exports.isSystemType = (type) => (type === protocol_definitions_1.MessageType.RemoteHelp || | ||
type === protocol_definitions_1.MessageType.Integrate || | ||
type === protocol_definitions_1.MessageType.ClientJoin || | ||
type === protocol_definitions_1.MessageType.ClientLeave || | ||
type === protocol_definitions_1.MessageType.Fork || | ||
type === protocol_definitions_1.MessageType.Control); | ||
//# sourceMappingURL=utils.js.map |
@@ -145,2 +145,3 @@ /*! | ||
} | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
export function addBlobToTree(tree, blobName, content) { | ||
@@ -147,0 +148,0 @@ tree.entries.push({ |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/protocol-base"; | ||
export declare const pkgVersion = "0.1015.0"; | ||
export declare const pkgVersion = "0.1016.0-11198"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -8,3 +8,3 @@ /*! | ||
export const pkgName = "@fluidframework/protocol-base"; | ||
export const pkgVersion = "0.1015.0"; | ||
export const pkgVersion = "0.1016.0-11198"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -92,2 +92,3 @@ /*! | ||
if (keyMap !== undefined) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return | ||
return keyMap.value; | ||
@@ -141,3 +142,3 @@ } | ||
this.emit("error", { eventName: "ProposalInDisconnectedState", key }); | ||
return Promise.reject(false); | ||
return Promise.reject(new Error("Can't proposal in disconnected state")); | ||
} | ||
@@ -144,0 +145,0 @@ const deferred = new Deferred(); |
@@ -7,4 +7,3 @@ /*! | ||
* Check if the string is a system message type, which includes | ||
* MessageType.RemoteHelp, MessageType.Integrate, MessageType.ClientJoin, | ||
* MessageType.ClientLeave, MessageType.Fork | ||
* MessageType.RemoteHelp, MessageType.ClientJoin, MessageType.ClientLeave | ||
* | ||
@@ -11,0 +10,0 @@ * @param type - the type to check |
@@ -8,4 +8,3 @@ /*! | ||
* Check if the string is a system message type, which includes | ||
* MessageType.RemoteHelp, MessageType.Integrate, MessageType.ClientJoin, | ||
* MessageType.ClientLeave, MessageType.Fork | ||
* MessageType.RemoteHelp, MessageType.ClientJoin, MessageType.ClientLeave | ||
* | ||
@@ -16,7 +15,5 @@ * @param type - the type to check | ||
export const isSystemType = (type) => (type === MessageType.RemoteHelp || | ||
type === MessageType.Integrate || | ||
type === MessageType.ClientJoin || | ||
type === MessageType.ClientLeave || | ||
type === MessageType.Fork || | ||
type === MessageType.Control); | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@fluidframework/protocol-base", | ||
"version": "0.1015.0", | ||
"version": "0.1016.0-11198", | ||
"description": "Fluid protocol base", | ||
@@ -22,3 +22,3 @@ "homepage": "https://fluidframework.com", | ||
"clean": "rimraf dist lib *.tsbuildinfo *.build.log", | ||
"eslint": "eslint --ext=ts,tsx --format stylish src", | ||
"eslint": "eslint --format stylish src", | ||
"eslint:fix": "eslint --ext=ts,tsx --format stylish src --fix", | ||
@@ -56,4 +56,4 @@ "lint": "npm run eslint", | ||
"@fluidframework/common-utils": "^0.25.0", | ||
"@fluidframework/gitresources": "^0.1015.0", | ||
"@fluidframework/protocol-definitions": "^0.1015.0", | ||
"@fluidframework/gitresources": "0.1016.0-11198", | ||
"@fluidframework/protocol-definitions": "0.1016.0-11198", | ||
"assert": "^2.0.0", | ||
@@ -64,3 +64,3 @@ "lodash": "^4.17.19" | ||
"@fluidframework/build-common": "^0.19.2", | ||
"@fluidframework/eslint-config-fluid": "^0.19.1", | ||
"@fluidframework/eslint-config-fluid": "^0.21.0", | ||
"@microsoft/api-extractor": "^7.7.2", | ||
@@ -71,14 +71,13 @@ "@types/assert": "^1.5.1", | ||
"@types/node": "^10.17.24", | ||
"@typescript-eslint/eslint-plugin": "~2.17.0", | ||
"@typescript-eslint/parser": "~2.17.0", | ||
"@typescript-eslint/eslint-plugin": "~4.2.0", | ||
"@typescript-eslint/parser": "~4.2.0", | ||
"concurrently": "^5.2.0", | ||
"copyfiles": "^2.1.0", | ||
"eslint": "~6.8.0", | ||
"eslint-plugin-eslint-comments": "~3.1.2", | ||
"eslint-plugin-import": "2.20.0", | ||
"eslint": "~7.9.0", | ||
"eslint-plugin-eslint-comments": "~3.2.0", | ||
"eslint-plugin-import": "~2.22.0", | ||
"eslint-plugin-no-null": "~1.0.2", | ||
"eslint-plugin-optimize-regex": "~1.1.7", | ||
"eslint-plugin-prefer-arrow": "~1.1.7", | ||
"eslint-plugin-react": "~7.18.0", | ||
"eslint-plugin-unicorn": "~15.0.1", | ||
"eslint-plugin-prefer-arrow": "~1.2.2", | ||
"eslint-plugin-react": "~7.21.2", | ||
"eslint-plugin-unicorn": "~22.0.0", | ||
"mocha": "^8.1.1", | ||
@@ -85,0 +84,0 @@ "mocha-junit-reporter": "^1.18.0", |
@@ -167,2 +167,3 @@ /*! | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
export function addBlobToTree(tree: ITree, blobName: string, content: object) { | ||
@@ -169,0 +170,0 @@ tree.entries.push( |
@@ -9,2 +9,2 @@ /*! | ||
export const pkgName = "@fluidframework/protocol-base"; | ||
export const pkgVersion = "0.1015.0"; | ||
export const pkgVersion = "0.1016.0-11198"; |
@@ -143,2 +143,3 @@ /*! | ||
if (keyMap !== undefined) { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return | ||
return keyMap.value; | ||
@@ -198,3 +199,3 @@ } | ||
this.emit("error", { eventName: "ProposalInDisconnectedState", key }); | ||
return Promise.reject(false); | ||
return Promise.reject(new Error("Can't proposal in disconnected state")); | ||
} | ||
@@ -201,0 +202,0 @@ |
@@ -10,4 +10,3 @@ /*! | ||
* Check if the string is a system message type, which includes | ||
* MessageType.RemoteHelp, MessageType.Integrate, MessageType.ClientJoin, | ||
* MessageType.ClientLeave, MessageType.Fork | ||
* MessageType.RemoteHelp, MessageType.ClientJoin, MessageType.ClientLeave | ||
* | ||
@@ -19,6 +18,4 @@ * @param type - the type to check | ||
type === MessageType.RemoteHelp || | ||
type === MessageType.Integrate || | ||
type === MessageType.ClientJoin || | ||
type === MessageType.ClientLeave || | ||
type === MessageType.Fork || | ||
type === MessageType.Control); |
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
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
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
229840
24
2830
+ Added@fluidframework/gitresources@0.1016.0-11198(transitive)
+ Added@fluidframework/protocol-definitions@0.1016.0-11198(transitive)
- Removed@fluidframework/gitresources@0.1015.0(transitive)
- Removed@fluidframework/protocol-definitions@0.1015.0(transitive)