@fluidframework/aqueduct 2.0.0-internal.3.0.0 → 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.
Files changed (64) hide show
  1. package/README.md +29 -29
  2. package/dist/container-runtime-factories/baseContainerRuntimeFactory.d.ts.map +1 -1
  3. package/dist/container-runtime-factories/baseContainerRuntimeFactory.js +3 -1
  4. package/dist/container-runtime-factories/baseContainerRuntimeFactory.js.map +1 -1
  5. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts.map +1 -1
  6. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js +1 -4
  7. package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
  8. package/dist/container-services/containerServices.d.ts.map +1 -1
  9. package/dist/container-services/containerServices.js +3 -1
  10. package/dist/container-services/containerServices.js.map +1 -1
  11. package/dist/data-object-factories/dataObjectFactory.d.ts.map +1 -1
  12. package/dist/data-object-factories/dataObjectFactory.js.map +1 -1
  13. package/dist/data-object-factories/pureDataObjectFactory.d.ts.map +1 -1
  14. package/dist/data-object-factories/pureDataObjectFactory.js +4 -2
  15. package/dist/data-object-factories/pureDataObjectFactory.js.map +1 -1
  16. package/dist/data-objects/dataObject.d.ts.map +1 -1
  17. package/dist/data-objects/dataObject.js +1 -1
  18. package/dist/data-objects/dataObject.js.map +1 -1
  19. package/dist/data-objects/pureDataObject.d.ts.map +1 -1
  20. package/dist/data-objects/pureDataObject.js +15 -5
  21. package/dist/data-objects/pureDataObject.js.map +1 -1
  22. package/dist/data-objects/types.d.ts.map +1 -1
  23. package/dist/data-objects/types.js.map +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/request-handlers/requestHandlers.d.ts +1 -1
  28. package/dist/request-handlers/requestHandlers.d.ts.map +1 -1
  29. package/dist/request-handlers/requestHandlers.js +4 -2
  30. package/dist/request-handlers/requestHandlers.js.map +1 -1
  31. package/dist/test/containerServices.spec.js +15 -4
  32. package/dist/test/containerServices.spec.js.map +1 -1
  33. package/dist/test/defaultRoute.spec.js +3 -1
  34. package/dist/test/defaultRoute.spec.js.map +1 -1
  35. package/dist/test/tsconfig.tsbuildinfo +1 -1
  36. package/dist/test/types/validateAqueductPrevious.generated.js +1 -3
  37. package/dist/test/types/validateAqueductPrevious.generated.js.map +1 -1
  38. package/dist/utils/attachUtils.js +3 -1
  39. package/dist/utils/attachUtils.js.map +1 -1
  40. package/dist/utils/containerInteractions.d.ts.map +1 -1
  41. package/dist/utils/containerInteractions.js.map +1 -1
  42. package/lib/container-runtime-factories/baseContainerRuntimeFactory.js +5 -3
  43. package/lib/container-runtime-factories/baseContainerRuntimeFactory.js.map +1 -1
  44. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js +1 -4
  45. package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js.map +1 -1
  46. package/lib/container-services/containerServices.js +3 -1
  47. package/lib/container-services/containerServices.js.map +1 -1
  48. package/lib/data-object-factories/dataObjectFactory.js +1 -1
  49. package/lib/data-object-factories/dataObjectFactory.js.map +1 -1
  50. package/lib/data-object-factories/pureDataObjectFactory.js +4 -2
  51. package/lib/data-object-factories/pureDataObjectFactory.js.map +1 -1
  52. package/lib/data-objects/dataObject.js +1 -1
  53. package/lib/data-objects/dataObject.js.map +1 -1
  54. package/lib/data-objects/pureDataObject.js +15 -5
  55. package/lib/data-objects/pureDataObject.js.map +1 -1
  56. package/lib/data-objects/types.js.map +1 -1
  57. package/lib/index.js +1 -1
  58. package/lib/index.js.map +1 -1
  59. package/lib/request-handlers/requestHandlers.js +4 -2
  60. package/lib/request-handlers/requestHandlers.js.map +1 -1
  61. package/lib/utils/attachUtils.js +3 -1
  62. package/lib/utils/attachUtils.js.map +1 -1
  63. package/lib/utils/containerInteractions.js.map +1 -1
  64. package/package.json +112 -115
@@ -1 +1 @@
1
- {"version":3,"file":"attachUtils.js","sourceRoot":"","sources":["../../src/utils/attachUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,gBAAwC;IACxE,IAAI,gBAAgB,CAAC,WAAW,KAAK,WAAW,CAAC,QAAQ,EAAE;QACvD,OAAO;KACV;IAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,gBAAgB,CAAC,IAAI,CACjB,UAAU,EACV,GAAG,EAAE;YACD,OAAO,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;IACX,CAAC,CAAC,CAAC;AACP,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IFluidDataStoreRuntime } from \"@fluidframework/datastore-definitions\";\nimport { AttachState } from \"@fluidframework/container-definitions\";\n\nexport async function waitForAttach(dataStoreRuntime: IFluidDataStoreRuntime): Promise<void> {\n if (dataStoreRuntime.attachState === AttachState.Attached) {\n return;\n }\n\n return new Promise((resolve) => {\n dataStoreRuntime.once(\n \"attached\",\n () => {\n Promise.resolve().then(() => resolve()).catch(() => { });\n });\n });\n}\n"]}
1
+ {"version":3,"file":"attachUtils.js","sourceRoot":"","sources":["../../src/utils/attachUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,gBAAwC;IAC3E,IAAI,gBAAgB,CAAC,WAAW,KAAK,WAAW,CAAC,QAAQ,EAAE;QAC1D,OAAO;KACP;IAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC9B,gBAAgB,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;YACtC,OAAO,CAAC,OAAO,EAAE;iBACf,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;iBACrB,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IFluidDataStoreRuntime } from \"@fluidframework/datastore-definitions\";\nimport { AttachState } from \"@fluidframework/container-definitions\";\n\nexport async function waitForAttach(dataStoreRuntime: IFluidDataStoreRuntime): Promise<void> {\n\tif (dataStoreRuntime.attachState === AttachState.Attached) {\n\t\treturn;\n\t}\n\n\treturn new Promise((resolve) => {\n\t\tdataStoreRuntime.once(\"attached\", () => {\n\t\t\tPromise.resolve()\n\t\t\t\t.then(() => resolve())\n\t\t\t\t.catch(() => {});\n\t\t});\n\t});\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"containerInteractions.js","sourceRoot":"","sources":["../../src/utils/containerInteractions.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAAkB,SAAqB;IACtF,MAAM,GAAG,GAAG,GAAG,CAAC;IAChB,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAElD,sBAAsB;IACtB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,IAAI,QAAQ,CAAC,QAAQ,KAAK,cAAc,EAAE;QACjE,MAAM,IAAI,KAAK,CAAC,4CAA4C,GAAG,GAAG,CAAC,CAAC;KACvE;SAAM,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,6BAA6B,GAAG,GAAG,CAAC,CAAC;KACxD;IAED,+DAA+D;IAC/D,OAAO,QAAQ,CAAC,KAAK,CAAC;AAC1B,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAC9C,EAAU,EAAE,SAAqB;IACjC,MAAM,GAAG,GAAG,IAAI,EAAE,EAAE,CAAC;IACrB,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAElD,sBAAsB;IACtB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,IAAI,QAAQ,CAAC,QAAQ,KAAK,cAAc,EAAE;QACjE,MAAM,IAAI,KAAK,CAAC,6CAA6C,EAAE,gBAAgB,GAAG,GAAG,CAAC,CAAC;KAC1F;SAAM,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,2BAA2B,EAAE,gBAAgB,GAAG,GAAG,CAAC,CAAC;KACxE;IAED,+DAA+D;IAC/D,OAAO,QAAQ,CAAC,KAAK,CAAC;AAC1B,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CACxC,IAAY,EAAE,SAAqB;IACnC,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IAExD,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,IAAI,QAAQ,CAAC,QAAQ,KAAK,cAAc,EAAE;QACjE,MAAM,IAAI,KAAK,CAAC,mDAAmD,IAAI,GAAG,CAAC,CAAC;KAC/E;SAAM,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,iCAAiC,IAAI,GAAG,CAAC,CAAC;KAC7D;IAED,+DAA+D;IAC/D,OAAO,QAAQ,CAAC,KAAK,CAAC;AAC1B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { FluidObject } from \"@fluidframework/core-interfaces\";\nimport { IContainer } from \"@fluidframework/container-definitions\";\n\n/**\n * Helper function for getting the default Fluid Object from a Container. This function only works for\n * Containers that support \"/\" request.\n *\n * @typeParam T - Defines the type you expect to be returned.\n *\n * @param container - Container you're attempting to get the object from\n */\nexport async function getDefaultObjectFromContainer<T = FluidObject>(container: IContainer): Promise<T> {\n const url = \"/\";\n const response = await container.request({ url });\n\n // Verify the response\n if (response.status !== 200 || response.mimeType !== \"fluid/object\") {\n throw new Error(`Unable to retrieve Fluid object at URL: \"${url}\"`);\n } else if (response.value === undefined) {\n throw new Error(`Empty response from URL: \"${url}\"`);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return response.value;\n}\n\n/**\n * Helper function for getting as Fluid Object from a Container given a Unique Id. This function only works for\n * Containers that support getting FluidObjects via request.\n *\n * @typeParam T - Defines the type you expect to be returned.\n *\n * @param id - Unique id of the FluidObject\n * @param container - Container you're attempting to get the object from\n */\nexport async function getObjectWithIdFromContainer<T = FluidObject>(\n id: string, container: IContainer): Promise<T> {\n const url = `/${id}`;\n const response = await container.request({ url });\n\n // Verify the response\n if (response.status !== 200 || response.mimeType !== \"fluid/object\") {\n throw new Error(`Unable to retrieve Fluid object with ID: \"${id}\" from URL: \"${url}\"`);\n } else if (response.value === undefined) {\n throw new Error(`Empty response for ID: \"${id}\" from URL: \"${url}\"`);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return response.value;\n}\n\n/**\n * Helper function for getting a Fluid Object from a Container given a path/url. This function only works for\n * Containers that support getting FluidObjects via request.\n *\n * @typeParam T - Defines the type you expect to be returned.\n *\n * @param path - Unique path/url of the FluidObject\n * @param container - Container you're attempting to get the object from\n */\nexport async function getObjectFromContainer<T = FluidObject>(\n path: string, container: IContainer): Promise<T> {\n const response = await container.request({ url: path });\n\n if (response.status !== 200 || response.mimeType !== \"fluid/object\") {\n throw new Error(`Unable to retrieve Fluid object with from URL: \"${path}\"`);\n } else if (response.value === undefined) {\n throw new Error(`Empty response for from URL: \"${path}\"`);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return response.value;\n}\n"]}
1
+ {"version":3,"file":"containerInteractions.js","sourceRoot":"","sources":["../../src/utils/containerInteractions.ts"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAClD,SAAqB;IAErB,MAAM,GAAG,GAAG,GAAG,CAAC;IAChB,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAElD,sBAAsB;IACtB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,IAAI,QAAQ,CAAC,QAAQ,KAAK,cAAc,EAAE;QACpE,MAAM,IAAI,KAAK,CAAC,4CAA4C,GAAG,GAAG,CAAC,CAAC;KACpE;SAAM,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE;QACxC,MAAM,IAAI,KAAK,CAAC,6BAA6B,GAAG,GAAG,CAAC,CAAC;KACrD;IAED,+DAA+D;IAC/D,OAAO,QAAQ,CAAC,KAAK,CAAC;AACvB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CACjD,EAAU,EACV,SAAqB;IAErB,MAAM,GAAG,GAAG,IAAI,EAAE,EAAE,CAAC;IACrB,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IAElD,sBAAsB;IACtB,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,IAAI,QAAQ,CAAC,QAAQ,KAAK,cAAc,EAAE;QACpE,MAAM,IAAI,KAAK,CAAC,6CAA6C,EAAE,gBAAgB,GAAG,GAAG,CAAC,CAAC;KACvF;SAAM,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE;QACxC,MAAM,IAAI,KAAK,CAAC,2BAA2B,EAAE,gBAAgB,GAAG,GAAG,CAAC,CAAC;KACrE;IAED,+DAA+D;IAC/D,OAAO,QAAQ,CAAC,KAAK,CAAC;AACvB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC3C,IAAY,EACZ,SAAqB;IAErB,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IAExD,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,IAAI,QAAQ,CAAC,QAAQ,KAAK,cAAc,EAAE;QACpE,MAAM,IAAI,KAAK,CAAC,mDAAmD,IAAI,GAAG,CAAC,CAAC;KAC5E;SAAM,IAAI,QAAQ,CAAC,KAAK,KAAK,SAAS,EAAE;QACxC,MAAM,IAAI,KAAK,CAAC,iCAAiC,IAAI,GAAG,CAAC,CAAC;KAC1D;IAED,+DAA+D;IAC/D,OAAO,QAAQ,CAAC,KAAK,CAAC;AACvB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { FluidObject } from \"@fluidframework/core-interfaces\";\nimport { IContainer } from \"@fluidframework/container-definitions\";\n\n/**\n * Helper function for getting the default Fluid Object from a Container. This function only works for\n * Containers that support \"/\" request.\n *\n * @typeParam T - Defines the type you expect to be returned.\n *\n * @param container - Container you're attempting to get the object from\n */\nexport async function getDefaultObjectFromContainer<T = FluidObject>(\n\tcontainer: IContainer,\n): Promise<T> {\n\tconst url = \"/\";\n\tconst response = await container.request({ url });\n\n\t// Verify the response\n\tif (response.status !== 200 || response.mimeType !== \"fluid/object\") {\n\t\tthrow new Error(`Unable to retrieve Fluid object at URL: \"${url}\"`);\n\t} else if (response.value === undefined) {\n\t\tthrow new Error(`Empty response from URL: \"${url}\"`);\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/no-unsafe-return\n\treturn response.value;\n}\n\n/**\n * Helper function for getting as Fluid Object from a Container given a Unique Id. This function only works for\n * Containers that support getting FluidObjects via request.\n *\n * @typeParam T - Defines the type you expect to be returned.\n *\n * @param id - Unique id of the FluidObject\n * @param container - Container you're attempting to get the object from\n */\nexport async function getObjectWithIdFromContainer<T = FluidObject>(\n\tid: string,\n\tcontainer: IContainer,\n): Promise<T> {\n\tconst url = `/${id}`;\n\tconst response = await container.request({ url });\n\n\t// Verify the response\n\tif (response.status !== 200 || response.mimeType !== \"fluid/object\") {\n\t\tthrow new Error(`Unable to retrieve Fluid object with ID: \"${id}\" from URL: \"${url}\"`);\n\t} else if (response.value === undefined) {\n\t\tthrow new Error(`Empty response for ID: \"${id}\" from URL: \"${url}\"`);\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/no-unsafe-return\n\treturn response.value;\n}\n\n/**\n * Helper function for getting a Fluid Object from a Container given a path/url. This function only works for\n * Containers that support getting FluidObjects via request.\n *\n * @typeParam T - Defines the type you expect to be returned.\n *\n * @param path - Unique path/url of the FluidObject\n * @param container - Container you're attempting to get the object from\n */\nexport async function getObjectFromContainer<T = FluidObject>(\n\tpath: string,\n\tcontainer: IContainer,\n): Promise<T> {\n\tconst response = await container.request({ url: path });\n\n\tif (response.status !== 200 || response.mimeType !== \"fluid/object\") {\n\t\tthrow new Error(`Unable to retrieve Fluid object with from URL: \"${path}\"`);\n\t} else if (response.value === undefined) {\n\t\tthrow new Error(`Empty response for from URL: \"${path}\"`);\n\t}\n\n\t// eslint-disable-next-line @typescript-eslint/no-unsafe-return\n\treturn response.value;\n}\n"]}
package/package.json CHANGED
@@ -1,117 +1,114 @@
1
1
  {
2
- "name": "@fluidframework/aqueduct",
3
- "version": "2.0.0-internal.3.0.0",
4
- "description": "A set of implementations for Fluid Framework interfaces.",
5
- "homepage": "https://fluidframework.com",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/microsoft/FluidFramework.git",
9
- "directory": "packages/framework/aqueduct"
10
- },
11
- "license": "MIT",
12
- "author": "Microsoft and contributors",
13
- "sideEffects": false,
14
- "main": "dist/index.js",
15
- "module": "lib/index.js",
16
- "types": "dist/index.d.ts",
17
- "files": [
18
- "dist/**/*",
19
- "lib/**/*"
20
- ],
21
- "scripts": {
22
- "build": "concurrently npm:build:compile npm:lint && npm run build:docs",
23
- "build:commonjs": "npm run tsc && npm run typetests:gen && npm run build:test",
24
- "build:compile": "concurrently npm:build:commonjs npm:build:esnext",
25
- "build:docs": "api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/",
26
- "build:esnext": "tsc --project ./tsconfig.esnext.json",
27
- "build:full": "npm run build",
28
- "build:full:compile": "npm run build:compile",
29
- "build:test": "tsc --project ./src/test/tsconfig.json",
30
- "ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
31
- "clean": "rimraf dist lib *.tsbuildinfo *.build.log",
32
- "eslint": "eslint --format stylish src",
33
- "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
34
- "format": "npm run prettier:fix",
35
- "lint": "npm run eslint",
36
- "lint:fix": "npm run eslint:fix",
37
- "prettier": "prettier --check . --ignore-path ../../../.prettierignore",
38
- "prettier:fix": "prettier --write . --ignore-path ../../../.prettierignore",
39
- "test": "npm run test:mocha",
40
- "test:coverage": "nyc npm test -- --reporter xunit --reporter-option output=nyc/junit-report.xml",
41
- "test:mocha": "mocha --ignore 'dist/test/types/*' --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup --unhandled-rejections=strict",
42
- "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
43
- "tsc": "tsc",
44
- "typetests:gen": "flub generate typetests --generate --dir .",
45
- "typetests:prepare": "flub generate typetests --prepare --dir . --pin"
46
- },
47
- "nyc": {
48
- "all": true,
49
- "cache-dir": "nyc/.cache",
50
- "exclude": [
51
- "src/test/**/*.ts",
52
- "dist/test/**/*.js"
53
- ],
54
- "exclude-after-remap": false,
55
- "include": [
56
- "src/**/*.ts",
57
- "dist/**/*.js"
58
- ],
59
- "report-dir": "nyc/report",
60
- "reporter": [
61
- "cobertura",
62
- "html",
63
- "text"
64
- ],
65
- "temp-directory": "nyc/.nyc_output"
66
- },
67
- "dependencies": {
68
- "@fluidframework/common-definitions": "^0.20.1",
69
- "@fluidframework/common-utils": "^1.0.0",
70
- "@fluidframework/container-definitions": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
71
- "@fluidframework/container-loader": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
72
- "@fluidframework/container-runtime": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
73
- "@fluidframework/container-runtime-definitions": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
74
- "@fluidframework/core-interfaces": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
75
- "@fluidframework/datastore": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
76
- "@fluidframework/datastore-definitions": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
77
- "@fluidframework/map": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
78
- "@fluidframework/request-handler": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
79
- "@fluidframework/runtime-definitions": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
80
- "@fluidframework/runtime-utils": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
81
- "@fluidframework/synthesize": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
82
- "@fluidframework/view-interfaces": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
83
- "uuid": "^8.3.1"
84
- },
85
- "devDependencies": {
86
- "@fluid-tools/build-cli": "^0.8.0",
87
- "@fluidframework/aqueduct-previous": "npm:@fluidframework/aqueduct@2.0.0-internal.2.2.0",
88
- "@fluidframework/build-common": "^1.1.0",
89
- "@fluidframework/build-tools": "^0.8.0",
90
- "@fluidframework/eslint-config-fluid": "^2.0.0",
91
- "@fluidframework/mocha-test-setup": ">=2.0.0-internal.3.0.0 <2.0.0-internal.4.0.0",
92
- "@microsoft/api-extractor": "^7.22.2",
93
- "@rushstack/eslint-config": "^2.5.1",
94
- "@types/mocha": "^9.1.1",
95
- "@types/node": "^14.18.36",
96
- "concurrently": "^6.2.0",
97
- "copyfiles": "^2.4.1",
98
- "cross-env": "^7.0.2",
99
- "eslint": "~8.6.0",
100
- "mocha": "^10.0.0",
101
- "nyc": "^15.0.0",
102
- "prettier": "~2.6.2",
103
- "rimraf": "^2.6.2",
104
- "typescript": "~4.5.5"
105
- },
106
- "module:es5": "es5/index.js",
107
- "typeValidation": {
108
- "version": "2.0.0-internal.3.0.0",
109
- "baselineRange": ">=2.0.0-internal.2.0.0 <2.0.0-internal.3.0.0",
110
- "baselineVersion": "2.0.0-internal.2.1.1",
111
- "broken": {
112
- "InterfaceDeclaration_IDataObjectProps": {
113
- "forwardCompat": false
114
- }
115
- }
116
- }
2
+ "name": "@fluidframework/aqueduct",
3
+ "version": "2.0.0-internal.3.1.0",
4
+ "description": "A set of implementations for Fluid Framework interfaces.",
5
+ "homepage": "https://fluidframework.com",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/microsoft/FluidFramework.git",
9
+ "directory": "packages/framework/aqueduct"
10
+ },
11
+ "license": "MIT",
12
+ "author": "Microsoft and contributors",
13
+ "sideEffects": false,
14
+ "main": "dist/index.js",
15
+ "module": "lib/index.js",
16
+ "types": "dist/index.d.ts",
17
+ "files": [
18
+ "dist/**/*",
19
+ "lib/**/*"
20
+ ],
21
+ "scripts": {
22
+ "build": "concurrently npm:build:compile npm:lint && npm run build:docs",
23
+ "build:commonjs": "npm run tsc && npm run typetests:gen && npm run build:test",
24
+ "build:compile": "concurrently npm:build:commonjs npm:build:esnext",
25
+ "build:docs": "api-extractor run --local --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/",
26
+ "build:esnext": "tsc --project ./tsconfig.esnext.json",
27
+ "build:full": "npm run build",
28
+ "build:full:compile": "npm run build:compile",
29
+ "build:test": "tsc --project ./src/test/tsconfig.json",
30
+ "ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
31
+ "clean": "rimraf dist lib *.tsbuildinfo *.build.log",
32
+ "eslint": "eslint --format stylish src",
33
+ "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
34
+ "format": "npm run prettier:fix",
35
+ "lint": "npm run prettier && npm run eslint",
36
+ "lint:fix": "npm run prettier:fix && npm run eslint:fix",
37
+ "prettier": "prettier --check . --ignore-path ../../../.prettierignore",
38
+ "prettier:fix": "prettier --write . --ignore-path ../../../.prettierignore",
39
+ "test": "npm run test:mocha",
40
+ "test:coverage": "nyc npm test -- --reporter xunit --reporter-option output=nyc/junit-report.xml",
41
+ "test:mocha": "mocha --ignore 'dist/test/types/*' --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup --unhandled-rejections=strict",
42
+ "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
43
+ "tsc": "tsc",
44
+ "typetests:gen": "flub generate typetests --generate --dir .",
45
+ "typetests:prepare": "flub generate typetests --prepare --dir . --pin"
46
+ },
47
+ "nyc": {
48
+ "all": true,
49
+ "cache-dir": "nyc/.cache",
50
+ "exclude": [
51
+ "src/test/**/*.ts",
52
+ "dist/test/**/*.js"
53
+ ],
54
+ "exclude-after-remap": false,
55
+ "include": [
56
+ "src/**/*.ts",
57
+ "dist/**/*.js"
58
+ ],
59
+ "report-dir": "nyc/report",
60
+ "reporter": [
61
+ "cobertura",
62
+ "html",
63
+ "text"
64
+ ],
65
+ "temp-directory": "nyc/.nyc_output"
66
+ },
67
+ "dependencies": {
68
+ "@fluidframework/common-definitions": "^0.20.1",
69
+ "@fluidframework/common-utils": "^1.0.0",
70
+ "@fluidframework/container-definitions": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
71
+ "@fluidframework/container-loader": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
72
+ "@fluidframework/container-runtime": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
73
+ "@fluidframework/container-runtime-definitions": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
74
+ "@fluidframework/core-interfaces": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
75
+ "@fluidframework/datastore": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
76
+ "@fluidframework/datastore-definitions": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
77
+ "@fluidframework/map": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
78
+ "@fluidframework/request-handler": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
79
+ "@fluidframework/runtime-definitions": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
80
+ "@fluidframework/runtime-utils": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
81
+ "@fluidframework/synthesize": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
82
+ "@fluidframework/view-interfaces": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
83
+ "uuid": "^8.3.1"
84
+ },
85
+ "devDependencies": {
86
+ "@fluid-tools/build-cli": "^0.9.0",
87
+ "@fluidframework/aqueduct-previous": "npm:@fluidframework/aqueduct@2.0.0-internal.3.0.0",
88
+ "@fluidframework/build-common": "^1.1.0",
89
+ "@fluidframework/build-tools": "^0.9.0",
90
+ "@fluidframework/eslint-config-fluid": "^2.0.0",
91
+ "@fluidframework/mocha-test-setup": ">=2.0.0-internal.3.1.0 <2.0.0-internal.4.0.0",
92
+ "@microsoft/api-extractor": "^7.22.2",
93
+ "@rushstack/eslint-config": "^2.5.1",
94
+ "@types/mocha": "^9.1.1",
95
+ "@types/node": "^14.18.36",
96
+ "concurrently": "^6.2.0",
97
+ "copyfiles": "^2.4.1",
98
+ "cross-env": "^7.0.2",
99
+ "eslint": "~8.6.0",
100
+ "mocha": "^10.0.0",
101
+ "nyc": "^15.0.0",
102
+ "prettier": "~2.6.2",
103
+ "rimraf": "^2.6.2",
104
+ "typescript": "~4.5.5"
105
+ },
106
+ "module:es5": "es5/index.js",
107
+ "typeValidation": {
108
+ "version": "2.0.0-internal.3.1.0",
109
+ "previousVersionStyle": "~previousMinor",
110
+ "baselineRange": ">=2.0.0-internal.3.0.0 <2.0.0-internal.3.1.0",
111
+ "baselineVersion": "2.0.0-internal.3.0.0",
112
+ "broken": {}
113
+ }
117
114
  }