@fluidframework/map 2.0.0-dev.4.2.0.153917 → 2.0.0-dev.4.3.0.158678
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/dist/directory.js +6 -1
- package/dist/directory.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/directory.js +6 -1
- package/lib/directory.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +15 -15
- package/src/directory.ts +7 -1
- package/src/packageVersion.ts +1 -1
package/dist/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/map";
|
|
8
|
-
export declare const pkgVersion = "2.0.0-dev.4.
|
|
8
|
+
export declare const pkgVersion = "2.0.0-dev.4.3.0.158678";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluidframework/map";
|
|
11
|
-
exports.pkgVersion = "2.0.0-dev.4.
|
|
11
|
+
exports.pkgVersion = "2.0.0-dev.4.3.0.158678";
|
|
12
12
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qBAAqB,CAAC;AAChC,QAAA,UAAU,GAAG,wBAAwB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/map\";\nexport const pkgVersion = \"2.0.0-dev.4.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qBAAqB,CAAC;AAChC,QAAA,UAAU,GAAG,wBAAwB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/map\";\nexport const pkgVersion = \"2.0.0-dev.4.3.0.158678\";\n"]}
|
package/lib/directory.js
CHANGED
|
@@ -649,6 +649,9 @@ function isDirectoryLocalOpMetadata(metadata) {
|
|
|
649
649
|
metadata.type === "createSubDir"));
|
|
650
650
|
}
|
|
651
651
|
/* eslint-enable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access */
|
|
652
|
+
function assertNonNullClientId(clientId) {
|
|
653
|
+
assert(clientId !== null, "client id should never be null");
|
|
654
|
+
}
|
|
652
655
|
/**
|
|
653
656
|
* Node of the directory tree.
|
|
654
657
|
* @sealed
|
|
@@ -1110,6 +1113,7 @@ class SubDirectory extends TypedEventEmitter {
|
|
|
1110
1113
|
if (!this.needProcessSubDirectoryOperation(msg, op, local, localOpMetadata)) {
|
|
1111
1114
|
return;
|
|
1112
1115
|
}
|
|
1116
|
+
assertNonNullClientId(msg.clientId);
|
|
1113
1117
|
this.createSubDirectoryCore(op.subdirName, local, msg.sequenceNumber, msg.clientId);
|
|
1114
1118
|
}
|
|
1115
1119
|
/**
|
|
@@ -1497,7 +1501,7 @@ class SubDirectory extends TypedEventEmitter {
|
|
|
1497
1501
|
// If the message is either from the creator of directory or this directory was created when
|
|
1498
1502
|
// container was detached or in case this directory is already live(known to other clients)
|
|
1499
1503
|
// and the op was created after the directory was created then apply this op.
|
|
1500
|
-
return (this.clientIds.has(msg.clientId) ||
|
|
1504
|
+
return ((msg.clientId !== null && this.clientIds.has(msg.clientId)) ||
|
|
1501
1505
|
this.clientIds.has("detached") ||
|
|
1502
1506
|
(this.sequenceNumber !== -1 && this.sequenceNumber <= msg.referenceSequenceNumber));
|
|
1503
1507
|
}
|
|
@@ -1513,6 +1517,7 @@ class SubDirectory extends TypedEventEmitter {
|
|
|
1513
1517
|
*/
|
|
1514
1518
|
needProcessSubDirectoryOperation(msg, op, local, localOpMetadata) {
|
|
1515
1519
|
const pendingSubDirectoryMessageId = this.pendingSubDirectories.get(op.subdirName);
|
|
1520
|
+
assertNonNullClientId(msg.clientId);
|
|
1516
1521
|
if (pendingSubDirectoryMessageId !== undefined) {
|
|
1517
1522
|
if (local) {
|
|
1518
1523
|
assert(isSubDirLocalOpMetadata(localOpMetadata), 0x012 /* pendingMessageId is missing from the local client's operation */);
|