@fluidframework/protocol-base
Advanced tools
Comparing version 0.1012.0-3069 to 0.1012.0
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/protocol-base"; | ||
export declare const pkgVersion = "0.1012.0-3069"; | ||
export declare const pkgVersion = "0.1012.0"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.pkgName = "@fluidframework/protocol-base"; | ||
exports.pkgVersion = "0.1012.0-3069"; | ||
exports.pkgVersion = "0.1012.0"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const assert_1 = __importDefault(require("assert")); | ||
const assert_1 = require("assert"); | ||
// eslint-disable-next-line import/no-internal-modules | ||
@@ -39,3 +39,3 @@ const cloneDeep_1 = __importDefault(require("lodash/cloneDeep")); | ||
addRejection(clientId) { | ||
assert_1.default(!this.rejections.has(clientId), `!this.rejections.has(${clientId})`); | ||
assert_1.strict(!this.rejections.has(clientId), `!this.rejections.has(${clientId})`); | ||
this.rejections.add(clientId); | ||
@@ -111,3 +111,3 @@ } | ||
addMember(clientId, details) { | ||
assert_1.default(!this.members.has(clientId), `!this.members.has(${clientId})`); | ||
assert_1.strict(!this.members.has(clientId), `!this.members.has(${clientId})`); | ||
this.members.set(clientId, details); | ||
@@ -120,3 +120,3 @@ this.emit("addMember", clientId, details); | ||
removeMember(clientId) { | ||
assert_1.default(this.members.has(clientId), `this.members.has(${clientId})`); | ||
assert_1.strict(this.members.has(clientId), `this.members.has(${clientId})`); | ||
this.members.delete(clientId); | ||
@@ -157,4 +157,4 @@ this.emit("removeMember", clientId); | ||
addProposal(key, value, sequenceNumber, local, clientSequenceNumber) { | ||
assert_1.default(!this.proposals.has(sequenceNumber), `!this.proposals.has(${sequenceNumber})`); | ||
assert_1.default(!local || this.localProposals.has(clientSequenceNumber), `!${local} || this.localProposals.has(${clientSequenceNumber})`); | ||
assert_1.strict(!this.proposals.has(sequenceNumber), `!this.proposals.has(${sequenceNumber})`); | ||
assert_1.strict(!local || this.localProposals.has(clientSequenceNumber), `!${local} || this.localProposals.has(${clientSequenceNumber})`); | ||
const proposal = new PendingProposal(this.sendReject, sequenceNumber, key, value, [], local ? this.localProposals.get(clientSequenceNumber) : undefined); | ||
@@ -178,3 +178,3 @@ this.proposals.set(sequenceNumber, proposal); | ||
// track the total number of rejections. | ||
assert_1.default(this.proposals.has(sequenceNumber), `this.proposals.has(${sequenceNumber})`); | ||
assert_1.strict(this.proposals.has(sequenceNumber), `this.proposals.has(${sequenceNumber})`); | ||
const proposal = this.proposals.get(sequenceNumber); | ||
@@ -275,3 +275,3 @@ if (proposal !== undefined) { | ||
dispose() { | ||
assert_1.default.fail("Not implemented."); | ||
assert_1.strict.fail("Not implemented."); | ||
this.isDisposed = true; | ||
@@ -278,0 +278,0 @@ } |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/protocol-base"; | ||
export declare const pkgVersion = "0.1012.0-3069"; | ||
export declare const pkgVersion = "0.1012.0"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -8,3 +8,3 @@ /*! | ||
export const pkgName = "@fluidframework/protocol-base"; | ||
export const pkgVersion = "0.1012.0-3069"; | ||
export const pkgVersion = "0.1012.0"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
// eslint-disable-next-line import/no-internal-modules | ||
@@ -8,0 +8,0 @@ import cloneDeep from "lodash/cloneDeep"; |
{ | ||
"name": "@fluidframework/protocol-base", | ||
"version": "0.1012.0-3069", | ||
"version": "0.1012.0", | ||
"description": "Fluid protocol base", | ||
@@ -54,5 +54,5 @@ "homepage": "https://fluidframework.com", | ||
"dependencies": { | ||
"@fluidframework/common-utils": "^0.23.0-0", | ||
"@fluidframework/gitresources": "^0.1012.0-3069", | ||
"@fluidframework/protocol-definitions": "^0.1012.0-3069", | ||
"@fluidframework/common-utils": "^0.23.0", | ||
"@fluidframework/gitresources": "^0.1012.0", | ||
"@fluidframework/protocol-definitions": "^0.1012.0", | ||
"assert": "^2.0.0", | ||
@@ -62,4 +62,4 @@ "lodash": "^4.17.19" | ||
"devDependencies": { | ||
"@fluidframework/build-common": "^0.19.2-0", | ||
"@fluidframework/eslint-config-fluid": "^0.19.1-0", | ||
"@fluidframework/build-common": "^0.19.2", | ||
"@fluidframework/eslint-config-fluid": "^0.19.1", | ||
"@microsoft/api-extractor": "^7.7.2", | ||
@@ -66,0 +66,0 @@ "@types/assert": "^1.5.1", |
@@ -9,2 +9,2 @@ /*! | ||
export const pkgName = "@fluidframework/protocol-base"; | ||
export const pkgVersion = "0.1012.0-3069"; | ||
export const pkgVersion = "0.1012.0"; |
@@ -6,3 +6,3 @@ /*! | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
// eslint-disable-next-line import/no-internal-modules | ||
@@ -9,0 +9,0 @@ import cloneDeep from "lodash/cloneDeep"; |
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
224376