@fluid-experimental/pact-map 2.0.0-internal.3.0.1 → 2.0.0-internal.3.1.0

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.
@@ -4,10 +4,10 @@
4
4
  */
5
5
 
6
6
  import {
7
- IChannelAttributes,
8
- IFluidDataStoreRuntime,
9
- IChannelServices,
10
- IChannelFactory,
7
+ IChannelAttributes,
8
+ IFluidDataStoreRuntime,
9
+ IChannelServices,
10
+ IChannelFactory,
11
11
  } from "@fluidframework/datastore-definitions";
12
12
  import { PactMap } from "./pactMap";
13
13
  import { IPactMap } from "./interfaces";
@@ -17,38 +17,39 @@ import { pkgVersion } from "./packageVersion";
17
17
  * The factory that produces the PactMap
18
18
  */
19
19
  export class PactMapFactory implements IChannelFactory {
20
- public static readonly Type = "https://graph.microsoft.com/types/pact-map";
20
+ public static readonly Type = "https://graph.microsoft.com/types/pact-map";
21
21
 
22
- public static readonly Attributes: IChannelAttributes = {
23
- type: PactMapFactory.Type,
24
- snapshotFormatVersion: "0.1",
25
- packageVersion: pkgVersion,
26
- };
22
+ public static readonly Attributes: IChannelAttributes = {
23
+ type: PactMapFactory.Type,
24
+ snapshotFormatVersion: "0.1",
25
+ packageVersion: pkgVersion,
26
+ };
27
27
 
28
- public get type(): string {
29
- return PactMapFactory.Type;
30
- }
28
+ public get type(): string {
29
+ return PactMapFactory.Type;
30
+ }
31
31
 
32
- public get attributes(): IChannelAttributes {
33
- return PactMapFactory.Attributes;
34
- }
32
+ public get attributes(): IChannelAttributes {
33
+ return PactMapFactory.Attributes;
34
+ }
35
35
 
36
- /**
37
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
38
- */
39
- public async load(
40
- runtime: IFluidDataStoreRuntime,
41
- id: string,
42
- services: IChannelServices,
43
- attributes: IChannelAttributes): Promise<IPactMap> {
44
- const pactMap = new PactMap(id, runtime, attributes);
45
- await pactMap.load(services);
46
- return pactMap;
47
- }
36
+ /**
37
+ * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
38
+ */
39
+ public async load(
40
+ runtime: IFluidDataStoreRuntime,
41
+ id: string,
42
+ services: IChannelServices,
43
+ attributes: IChannelAttributes,
44
+ ): Promise<IPactMap> {
45
+ const pactMap = new PactMap(id, runtime, attributes);
46
+ await pactMap.load(services);
47
+ return pactMap;
48
+ }
48
49
 
49
- public create(document: IFluidDataStoreRuntime, id: string): IPactMap {
50
- const pactMap = new PactMap(id, document, this.attributes);
51
- pactMap.initializeLocal();
52
- return pactMap;
53
- }
50
+ public create(document: IFluidDataStoreRuntime, id: string): IPactMap {
51
+ const pactMap = new PactMap(id, document, this.attributes);
52
+ pactMap.initializeLocal();
53
+ return pactMap;
54
+ }
54
55
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./lib",
5
- "module": "esnext"
6
- },
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./lib",
5
+ "module": "esnext",
6
+ },
7
7
  }
package/tsconfig.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
- "extends": "@fluidframework/build-common/ts-common-config.json",
3
- "exclude": [
4
- "src/test/**/*"
5
- ],
6
- "compilerOptions": {
7
- "rootDir": "./src",
8
- "outDir": "./dist",
9
- "composite": true
10
- },
11
- "include": [
12
- "src/**/*"
13
- ]
2
+ "extends": "@fluidframework/build-common/ts-common-config.json",
3
+ "exclude": ["src/test/**/*"],
4
+ "compilerOptions": {
5
+ "rootDir": "./src",
6
+ "outDir": "./dist",
7
+ "composite": true,
8
+ },
9
+ "include": ["src/**/*"],
14
10
  }