@fluid-experimental/data-object-base 2.63.0-358419 → 2.63.0-359461
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/runtimeFactory.js.map +1 -1
- package/lib/runtimeFactory.js.map +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeFactory.js","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAMH,yEAAkF;AAOlF,qEAA8E;AAE9E,MAAM,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"runtimeFactory.js","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAMH,yEAAkF;AAOlF,qEAA8E;AAE9E,MAAM,cAAc,GAAG,EAAE,CAAC;AAY1B;;GAEG;AACH,MAAa,cAAe,SAAQ,+BAAoB;IAMvD,YAAmB,KAA0B;QAC5C,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;QACrD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACjD,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAE1E,IAAI,CAAC,QAAQ,GAAG,CACf,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC;YAChD,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,CAAC,GAAG,cAAc,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAChD,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAuC,CAAC;IACnF,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAA0B;QAC3D,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC/E,MAAM,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,aAAa,CACzB,OAA0B,EAC1B,QAAiB;QAEjB,MAAM,OAAO,GAAG,MAAM,IAAA,+BAAoB,EAAC;YAC1C,OAAO;YACP,eAAe,EAAE,IAAI,CAAC,QAAQ;YAC9B,QAAQ;YACR,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SACzC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IAChB,CAAC;CACD;AAtCD,wCAsCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {\n\tIContainerContext,\n\tIRuntime,\n} from \"@fluidframework/container-definitions/internal\";\nimport { loadContainerRuntime } from \"@fluidframework/container-runtime/internal\";\nimport type { IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport type { FluidObject } from \"@fluidframework/core-interfaces\";\nimport type {\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions/internal\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils/internal\";\n\nconst defaultStoreId = \"\";\n\n/**\n * {@link RuntimeFactory} construction properties.\n * @internal\n */\nexport interface RuntimeFactoryProps {\n\tdefaultStoreFactory: IFluidDataStoreFactory;\n\tstoreFactories: IFluidDataStoreFactory[];\n\tprovideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n}\n\n/**\n * @internal\n */\nexport class RuntimeFactory extends RuntimeFactoryHelper {\n\tprivate readonly registry: NamedFluidDataStoreRegistryEntries;\n\n\tprivate readonly defaultStoreFactory: IFluidDataStoreFactory;\n\tprivate readonly provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\n\tpublic constructor(props: RuntimeFactoryProps) {\n\t\tsuper();\n\n\t\tthis.defaultStoreFactory = props.defaultStoreFactory;\n\t\tthis.provideEntryPoint = props.provideEntryPoint;\n\t\tconst storeFactories = props.storeFactories ?? [this.defaultStoreFactory];\n\n\t\tthis.registry = (\n\t\t\tstoreFactories.includes(this.defaultStoreFactory)\n\t\t\t\t? storeFactories\n\t\t\t\t: [...storeFactories, this.defaultStoreFactory]\n\t\t).map((factory) => [factory.type, factory]) as NamedFluidDataStoreRegistryEntries;\n\t}\n\n\tpublic async instantiateFirstTime(runtime: IContainerRuntime): Promise<void> {\n\t\tconst dataStore = await runtime.createDataStore(this.defaultStoreFactory.type);\n\t\tawait dataStore.trySetAlias(defaultStoreId);\n\t}\n\n\tpublic async preInitialize(\n\t\tcontext: IContainerContext,\n\t\texisting: boolean,\n\t): Promise<IContainerRuntime & IRuntime> {\n\t\tconst runtime = await loadContainerRuntime({\n\t\t\tcontext,\n\t\t\tregistryEntries: this.registry,\n\t\t\texisting,\n\t\t\tprovideEntryPoint: this.provideEntryPoint,\n\t\t});\n\n\t\treturn runtime;\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeFactory.js","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAOlF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"runtimeFactory.js","sourceRoot":"","sources":["../src/runtimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAOlF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,cAAc,GAAG,EAAE,CAAC;AAY1B;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,oBAAoB;IAMvD,YAAmB,KAA0B;QAC5C,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;QACrD,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACjD,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;QAE1E,IAAI,CAAC,QAAQ,GAAG,CACf,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC;YAChD,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,CAAC,GAAG,cAAc,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAChD,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAAuC,CAAC;IACnF,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAA0B;QAC3D,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC/E,MAAM,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,aAAa,CACzB,OAA0B,EAC1B,QAAiB;QAEjB,MAAM,OAAO,GAAG,MAAM,oBAAoB,CAAC;YAC1C,OAAO;YACP,eAAe,EAAE,IAAI,CAAC,QAAQ;YAC9B,QAAQ;YACR,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SACzC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC;IAChB,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {\n\tIContainerContext,\n\tIRuntime,\n} from \"@fluidframework/container-definitions/internal\";\nimport { loadContainerRuntime } from \"@fluidframework/container-runtime/internal\";\nimport type { IContainerRuntime } from \"@fluidframework/container-runtime-definitions/internal\";\nimport type { FluidObject } from \"@fluidframework/core-interfaces\";\nimport type {\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions/internal\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils/internal\";\n\nconst defaultStoreId = \"\";\n\n/**\n * {@link RuntimeFactory} construction properties.\n * @internal\n */\nexport interface RuntimeFactoryProps {\n\tdefaultStoreFactory: IFluidDataStoreFactory;\n\tstoreFactories: IFluidDataStoreFactory[];\n\tprovideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n}\n\n/**\n * @internal\n */\nexport class RuntimeFactory extends RuntimeFactoryHelper {\n\tprivate readonly registry: NamedFluidDataStoreRegistryEntries;\n\n\tprivate readonly defaultStoreFactory: IFluidDataStoreFactory;\n\tprivate readonly provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\n\tpublic constructor(props: RuntimeFactoryProps) {\n\t\tsuper();\n\n\t\tthis.defaultStoreFactory = props.defaultStoreFactory;\n\t\tthis.provideEntryPoint = props.provideEntryPoint;\n\t\tconst storeFactories = props.storeFactories ?? [this.defaultStoreFactory];\n\n\t\tthis.registry = (\n\t\t\tstoreFactories.includes(this.defaultStoreFactory)\n\t\t\t\t? storeFactories\n\t\t\t\t: [...storeFactories, this.defaultStoreFactory]\n\t\t).map((factory) => [factory.type, factory]) as NamedFluidDataStoreRegistryEntries;\n\t}\n\n\tpublic async instantiateFirstTime(runtime: IContainerRuntime): Promise<void> {\n\t\tconst dataStore = await runtime.createDataStore(this.defaultStoreFactory.type);\n\t\tawait dataStore.trySetAlias(defaultStoreId);\n\t}\n\n\tpublic async preInitialize(\n\t\tcontext: IContainerContext,\n\t\texisting: boolean,\n\t): Promise<IContainerRuntime & IRuntime> {\n\t\tconst runtime = await loadContainerRuntime({\n\t\t\tcontext,\n\t\t\tregistryEntries: this.registry,\n\t\t\texisting,\n\t\t\tprovideEntryPoint: this.provideEntryPoint,\n\t\t});\n\n\t\treturn runtime;\n\t}\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/data-object-base",
|
|
3
|
-
"version": "2.63.0-
|
|
3
|
+
"version": "2.63.0-359461",
|
|
4
4
|
"description": "Data object base for synchronously and lazily loaded object scenarios",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"es5/**/*"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@fluid-internal/client-utils": "2.63.0-
|
|
37
|
-
"@fluidframework/container-definitions": "2.63.0-
|
|
38
|
-
"@fluidframework/container-runtime": "2.63.0-
|
|
39
|
-
"@fluidframework/container-runtime-definitions": "2.63.0-
|
|
40
|
-
"@fluidframework/core-interfaces": "2.63.0-
|
|
41
|
-
"@fluidframework/core-utils": "2.63.0-
|
|
42
|
-
"@fluidframework/datastore": "2.63.0-
|
|
43
|
-
"@fluidframework/datastore-definitions": "2.63.0-
|
|
44
|
-
"@fluidframework/request-handler": "2.63.0-
|
|
45
|
-
"@fluidframework/runtime-definitions": "2.63.0-
|
|
46
|
-
"@fluidframework/runtime-utils": "2.63.0-
|
|
47
|
-
"@fluidframework/shared-object-base": "2.63.0-
|
|
36
|
+
"@fluid-internal/client-utils": "2.63.0-359461",
|
|
37
|
+
"@fluidframework/container-definitions": "2.63.0-359461",
|
|
38
|
+
"@fluidframework/container-runtime": "2.63.0-359461",
|
|
39
|
+
"@fluidframework/container-runtime-definitions": "2.63.0-359461",
|
|
40
|
+
"@fluidframework/core-interfaces": "2.63.0-359461",
|
|
41
|
+
"@fluidframework/core-utils": "2.63.0-359461",
|
|
42
|
+
"@fluidframework/datastore": "2.63.0-359461",
|
|
43
|
+
"@fluidframework/datastore-definitions": "2.63.0-359461",
|
|
44
|
+
"@fluidframework/request-handler": "2.63.0-359461",
|
|
45
|
+
"@fluidframework/runtime-definitions": "2.63.0-359461",
|
|
46
|
+
"@fluidframework/runtime-utils": "2.63.0-359461",
|
|
47
|
+
"@fluidframework/shared-object-base": "2.63.0-359461"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@arethetypeswrong/cli": "^0.17.1",
|