@fluidframework/task-manager 2.0.0-internal.3.0.2 → 2.0.0-internal.3.2.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 { TaskManager } from "./taskManager";
13
13
  import { ITaskManager } from "./interfaces";
@@ -17,38 +17,39 @@ import { pkgVersion } from "./packageVersion";
17
17
  * The factory that defines the task queue
18
18
  */
19
19
  export class TaskManagerFactory implements IChannelFactory {
20
- public static readonly Type = "https://graph.microsoft.com/types/task-manager";
20
+ public static readonly Type = "https://graph.microsoft.com/types/task-manager";
21
21
 
22
- public static readonly Attributes: IChannelAttributes = {
23
- type: TaskManagerFactory.Type,
24
- snapshotFormatVersion: "0.1",
25
- packageVersion: pkgVersion,
26
- };
22
+ public static readonly Attributes: IChannelAttributes = {
23
+ type: TaskManagerFactory.Type,
24
+ snapshotFormatVersion: "0.1",
25
+ packageVersion: pkgVersion,
26
+ };
27
27
 
28
- public get type() {
29
- return TaskManagerFactory.Type;
30
- }
28
+ public get type() {
29
+ return TaskManagerFactory.Type;
30
+ }
31
31
 
32
- public get attributes() {
33
- return TaskManagerFactory.Attributes;
34
- }
32
+ public get attributes() {
33
+ return TaskManagerFactory.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<ITaskManager> {
44
- const taskQueue = new TaskManager(id, runtime, attributes);
45
- await taskQueue.load(services);
46
- return taskQueue;
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<ITaskManager> {
45
+ const taskQueue = new TaskManager(id, runtime, attributes);
46
+ await taskQueue.load(services);
47
+ return taskQueue;
48
+ }
48
49
 
49
- public create(document: IFluidDataStoreRuntime, id: string): ITaskManager {
50
- const taskQueue = new TaskManager(id, document, this.attributes);
51
- taskQueue.initializeLocal();
52
- return taskQueue;
53
- }
50
+ public create(document: IFluidDataStoreRuntime, id: string): ITaskManager {
51
+ const taskQueue = new TaskManager(id, document, this.attributes);
52
+ taskQueue.initializeLocal();
53
+ return taskQueue;
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
  }