@fluidframework/map 1.2.0-77818 → 1.2.1
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/api-extractor.json +1 -1
- package/dist/directory.d.ts +9 -10
- package/dist/directory.d.ts.map +1 -1
- package/dist/directory.js +10 -10
- package/dist/directory.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/directory.d.ts +9 -10
- package/lib/directory.d.ts.map +1 -1
- package/lib/directory.js +10 -10
- package/lib/directory.js.map +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +13 -13
- package/src/directory.ts +19 -18
- package/src/index.ts +5 -5
- package/src/packageVersion.ts +1 -1
package/api-extractor.json
CHANGED
package/dist/directory.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { LocalValueMaker } from "./localValues";
|
|
|
11
11
|
/**
|
|
12
12
|
* Operation indicating a value should be set for a key.
|
|
13
13
|
*/
|
|
14
|
-
interface IDirectorySetOperation {
|
|
14
|
+
export interface IDirectorySetOperation {
|
|
15
15
|
/**
|
|
16
16
|
* String identifier of the operation type.
|
|
17
17
|
*/
|
|
@@ -32,7 +32,7 @@ interface IDirectorySetOperation {
|
|
|
32
32
|
/**
|
|
33
33
|
* Operation indicating a key should be deleted from the directory.
|
|
34
34
|
*/
|
|
35
|
-
interface IDirectoryDeleteOperation {
|
|
35
|
+
export interface IDirectoryDeleteOperation {
|
|
36
36
|
/**
|
|
37
37
|
* String identifier of the operation type.
|
|
38
38
|
*/
|
|
@@ -49,11 +49,11 @@ interface IDirectoryDeleteOperation {
|
|
|
49
49
|
/**
|
|
50
50
|
* An operation on a specific key within a directory
|
|
51
51
|
*/
|
|
52
|
-
declare type IDirectoryKeyOperation = IDirectorySetOperation | IDirectoryDeleteOperation;
|
|
52
|
+
export declare type IDirectoryKeyOperation = IDirectorySetOperation | IDirectoryDeleteOperation;
|
|
53
53
|
/**
|
|
54
54
|
* Operation indicating the directory should be cleared.
|
|
55
55
|
*/
|
|
56
|
-
interface IDirectoryClearOperation {
|
|
56
|
+
export interface IDirectoryClearOperation {
|
|
57
57
|
/**
|
|
58
58
|
* String identifier of the operation type.
|
|
59
59
|
*/
|
|
@@ -66,11 +66,11 @@ interface IDirectoryClearOperation {
|
|
|
66
66
|
/**
|
|
67
67
|
* An operation on one or more of the keys within a directory
|
|
68
68
|
*/
|
|
69
|
-
declare type IDirectoryStorageOperation = IDirectoryKeyOperation | IDirectoryClearOperation;
|
|
69
|
+
export declare type IDirectoryStorageOperation = IDirectoryKeyOperation | IDirectoryClearOperation;
|
|
70
70
|
/**
|
|
71
71
|
* Operation indicating a subdirectory should be created.
|
|
72
72
|
*/
|
|
73
|
-
interface IDirectoryCreateSubDirectoryOperation {
|
|
73
|
+
export interface IDirectoryCreateSubDirectoryOperation {
|
|
74
74
|
/**
|
|
75
75
|
* String identifier of the operation type.
|
|
76
76
|
*/
|
|
@@ -87,7 +87,7 @@ interface IDirectoryCreateSubDirectoryOperation {
|
|
|
87
87
|
/**
|
|
88
88
|
* Operation indicating a subdirectory should be deleted.
|
|
89
89
|
*/
|
|
90
|
-
interface IDirectoryDeleteSubDirectoryOperation {
|
|
90
|
+
export interface IDirectoryDeleteSubDirectoryOperation {
|
|
91
91
|
/**
|
|
92
92
|
* String identifier of the operation type.
|
|
93
93
|
*/
|
|
@@ -104,7 +104,7 @@ interface IDirectoryDeleteSubDirectoryOperation {
|
|
|
104
104
|
/**
|
|
105
105
|
* An operation on the subdirectories within a directory
|
|
106
106
|
*/
|
|
107
|
-
declare type IDirectorySubDirectoryOperation = IDirectoryCreateSubDirectoryOperation | IDirectoryDeleteSubDirectoryOperation;
|
|
107
|
+
export declare type IDirectorySubDirectoryOperation = IDirectoryCreateSubDirectoryOperation | IDirectoryDeleteSubDirectoryOperation;
|
|
108
108
|
/**
|
|
109
109
|
* Any operation on a directory
|
|
110
110
|
*/
|
|
@@ -162,7 +162,7 @@ export declare class DirectoryFactory {
|
|
|
162
162
|
* SubDirectories can be retrieved for use as working directories.
|
|
163
163
|
*
|
|
164
164
|
* @example
|
|
165
|
-
* ```
|
|
165
|
+
* ```typescript
|
|
166
166
|
* mySharedDirectory.createSubDirectory("a").createSubDirectory("b").createSubDirectory("c").set("foo", val1);
|
|
167
167
|
* const mySubDir = mySharedDirectory.getWorkingDirectory("/a/b/c");
|
|
168
168
|
* mySubDir.get("foo"); // returns val1
|
|
@@ -366,5 +366,4 @@ export declare class SharedDirectory extends SharedObject<ISharedDirectoryEvents
|
|
|
366
366
|
protected applyStashedOp(): void;
|
|
367
367
|
private serializeDirectory;
|
|
368
368
|
}
|
|
369
|
-
export {};
|
|
370
369
|
//# sourceMappingURL=directory.d.ts.map
|
package/dist/directory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../src/directory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EACH,yBAAyB,EAE5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACH,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,EAClB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAa,MAAM,oCAAoC,CAAC;AAG/F,OAAO,EACH,UAAU,EAGV,kBAAkB,EA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EAAE,eAAe,EAAE,OAAO;IAO7D;;;OAGG;cACa,QAAQ,CAAC,OAAO,EAAE,sBAAsB;IAgBxD;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,oBAAoB;IAmC7C;;;OAGG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,yBAAyB,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,GAAG,IAAI;IASzG;;;MAGE;IACF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,OAAO;IAQzD;;;OAGG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;;;;;OASG;IACH,OAAO,CAAC,SAAS;IAYjB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IA6F1B;;OAEG;IACH,SAAS,CAAC,cAAc;IAIxB,OAAO,CAAC,kBAAkB;CAiE7B"}
|
package/dist/directory.js
CHANGED
|
@@ -91,7 +91,7 @@ DirectoryFactory.Attributes = {
|
|
|
91
91
|
* SubDirectories can be retrieved for use as working directories.
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* ```
|
|
94
|
+
* ```typescript
|
|
95
95
|
* mySharedDirectory.createSubDirectory("a").createSubDirectory("b").createSubDirectory("c").set("foo", val1);
|
|
96
96
|
* const mySubDir = mySharedDirectory.getWorkingDirectory("/a/b/c");
|
|
97
97
|
* mySubDir.get("foo"); // returns val1
|
|
@@ -907,7 +907,7 @@ class SubDirectory extends common_utils_1.TypedEventEmitter {
|
|
|
907
907
|
if (local) {
|
|
908
908
|
(0, common_utils_1.assert)(isClearLocalOpMetadata(localOpMetadata), 0x00f /* `pendingMessageId is missing from the local client's ${op.type} operation` */);
|
|
909
909
|
const pendingClearMessageId = this.pendingClearMessageIds.shift();
|
|
910
|
-
(0, common_utils_1.assert)(pendingClearMessageId === localOpMetadata.pendingMessageId,
|
|
910
|
+
(0, common_utils_1.assert)(pendingClearMessageId === localOpMetadata.pendingMessageId, 0x32a /* pendingMessageId does not match */);
|
|
911
911
|
return;
|
|
912
912
|
}
|
|
913
913
|
this.clearExceptPendingKeys();
|
|
@@ -1000,10 +1000,10 @@ class SubDirectory extends common_utils_1.TypedEventEmitter {
|
|
|
1000
1000
|
* @internal
|
|
1001
1001
|
*/
|
|
1002
1002
|
resubmitClearMessage(op, localOpMetadata) {
|
|
1003
|
-
(0, common_utils_1.assert)(isClearLocalOpMetadata(localOpMetadata),
|
|
1003
|
+
(0, common_utils_1.assert)(isClearLocalOpMetadata(localOpMetadata), 0x32b /* Invalid localOpMetadata for clear */);
|
|
1004
1004
|
// We don't reuse the metadata pendingMessageId but send a new one on each submit.
|
|
1005
1005
|
const pendingClearMessageId = this.pendingClearMessageIds.shift();
|
|
1006
|
-
(0, common_utils_1.assert)(pendingClearMessageId === localOpMetadata.pendingMessageId,
|
|
1006
|
+
(0, common_utils_1.assert)(pendingClearMessageId === localOpMetadata.pendingMessageId, 0x32c /* pendingMessageId does not match */);
|
|
1007
1007
|
this.submitClearMessage(op, localOpMetadata.previousStorage);
|
|
1008
1008
|
}
|
|
1009
1009
|
/**
|
|
@@ -1039,10 +1039,10 @@ class SubDirectory extends common_utils_1.TypedEventEmitter {
|
|
|
1039
1039
|
* @internal
|
|
1040
1040
|
*/
|
|
1041
1041
|
resubmitKeyMessage(op, localOpMetadata) {
|
|
1042
|
-
(0, common_utils_1.assert)(isKeyEditLocalOpMetadata(localOpMetadata),
|
|
1042
|
+
(0, common_utils_1.assert)(isKeyEditLocalOpMetadata(localOpMetadata), 0x32d /* Invalid localOpMetadata in submit */);
|
|
1043
1043
|
// clear the old pending message id
|
|
1044
1044
|
const pendingMessageIds = this.pendingKeys.get(op.key);
|
|
1045
|
-
(0, common_utils_1.assert)(pendingMessageIds !== undefined && pendingMessageIds[0] === localOpMetadata.pendingMessageId,
|
|
1045
|
+
(0, common_utils_1.assert)(pendingMessageIds !== undefined && pendingMessageIds[0] === localOpMetadata.pendingMessageId, 0x32e /* Unexpected pending message received */);
|
|
1046
1046
|
pendingMessageIds.shift();
|
|
1047
1047
|
if (pendingMessageIds.length === 0) {
|
|
1048
1048
|
this.pendingKeys.delete(op.key);
|
|
@@ -1101,10 +1101,10 @@ class SubDirectory extends common_utils_1.TypedEventEmitter {
|
|
|
1101
1101
|
* @internal
|
|
1102
1102
|
*/
|
|
1103
1103
|
resubmitSubDirectoryMessage(op, localOpMetadata) {
|
|
1104
|
-
(0, common_utils_1.assert)(isSubDirLocalOpMetadata(localOpMetadata),
|
|
1104
|
+
(0, common_utils_1.assert)(isSubDirLocalOpMetadata(localOpMetadata), 0x32f /* Invalid localOpMetadata for sub directory op */);
|
|
1105
1105
|
// clear the old pending message id
|
|
1106
1106
|
const pendingMessageIds = this.pendingSubDirectories.get(op.subdirName);
|
|
1107
|
-
(0, common_utils_1.assert)(pendingMessageIds !== undefined && pendingMessageIds[0] === localOpMetadata.pendingMessageId,
|
|
1107
|
+
(0, common_utils_1.assert)(pendingMessageIds !== undefined && pendingMessageIds[0] === localOpMetadata.pendingMessageId, 0x330 /* Unexpected pending message received */);
|
|
1108
1108
|
pendingMessageIds.shift();
|
|
1109
1109
|
if (pendingMessageIds.length === 0) {
|
|
1110
1110
|
this.pendingSubDirectories.delete(op.subdirName);
|
|
@@ -1255,7 +1255,7 @@ class SubDirectory extends common_utils_1.TypedEventEmitter {
|
|
|
1255
1255
|
if (local) {
|
|
1256
1256
|
(0, common_utils_1.assert)(localOpMetadata !== undefined && isKeyEditLocalOpMetadata(localOpMetadata), 0x011 /* pendingMessageId is missing from the local client's operation */);
|
|
1257
1257
|
const pendingMessageIds = this.pendingKeys.get(op.key);
|
|
1258
|
-
(0, common_utils_1.assert)(pendingMessageIds !== undefined && pendingMessageIds[0] === localOpMetadata.pendingMessageId,
|
|
1258
|
+
(0, common_utils_1.assert)(pendingMessageIds !== undefined && pendingMessageIds[0] === localOpMetadata.pendingMessageId, 0x331 /* Unexpected pending message received */);
|
|
1259
1259
|
pendingMessageIds.shift();
|
|
1260
1260
|
if (pendingMessageIds.length === 0) {
|
|
1261
1261
|
this.pendingKeys.delete(op.key);
|
|
@@ -1282,7 +1282,7 @@ class SubDirectory extends common_utils_1.TypedEventEmitter {
|
|
|
1282
1282
|
if (local) {
|
|
1283
1283
|
(0, common_utils_1.assert)(isSubDirLocalOpMetadata(localOpMetadata), 0x012 /* pendingMessageId is missing from the local client's operation */);
|
|
1284
1284
|
const pendingMessageIds = this.pendingSubDirectories.get(op.subdirName);
|
|
1285
|
-
(0, common_utils_1.assert)(pendingMessageIds !== undefined && pendingMessageIds[0] === localOpMetadata.pendingMessageId,
|
|
1285
|
+
(0, common_utils_1.assert)(pendingMessageIds !== undefined && pendingMessageIds[0] === localOpMetadata.pendingMessageId, 0x332 /* Unexpected pending message received */);
|
|
1286
1286
|
pendingMessageIds.shift();
|
|
1287
1287
|
if (pendingMessageIds.length === 0) {
|
|
1288
1288
|
this.pendingSubDirectories.delete(op.subdirName);
|