@fluidframework/fluid-runner 2.0.0-internal.2.0.2 → 2.0.0-internal.2.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.
- package/README.md +4 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -13
- package/dist/index.js.map +1 -1
- package/dist/logger/csvFileLogger.js +1 -1
- package/dist/logger/csvFileLogger.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/logger/csvFileLogger.js +1 -1
- package/lib/logger/csvFileLogger.js.map +1 -1
- package/package.json +19 -16
- package/src/index.ts +2 -2
- package/src/logger/csvFileLogger.ts +1 -1
package/README.md
CHANGED
|
@@ -39,16 +39,17 @@ The default format is currently `JSON`
|
|
|
39
39
|
There is an optional command line option `telemetryProp` that allows you to specify additional properties that will be added to every telemetry entry. The format follows these rules:
|
|
40
40
|
- every key must be a string
|
|
41
41
|
- values may be either a string or a number
|
|
42
|
-
-
|
|
42
|
+
- keys and values cannot be empty
|
|
43
43
|
|
|
44
44
|
Example of valid usages:
|
|
45
45
|
```
|
|
46
46
|
--telemetryProp prop1 value1 --telemetryProp prop2 10.5
|
|
47
47
|
--telemetryProp " prop1 " " value1 " prop2 value2
|
|
48
|
-
--telemetryProp
|
|
49
|
-
--telemetryProp
|
|
48
|
+
--telemetryProp prop1 "aaa=bbb" prop2 "aaa\"bbb"
|
|
50
49
|
```
|
|
51
50
|
|
|
51
|
+
> No trimming of white-space inside quotes
|
|
52
|
+
|
|
52
53
|
Example of invalid usages:
|
|
53
54
|
```
|
|
54
55
|
--telemetryProp "10" value1
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
export { ICodeLoaderBundle, IFluidFileConverter } from "./codeLoaderBundle";
|
|
6
|
-
export
|
|
6
|
+
export { createContainerAndExecute, exportFile, IExportFileResponse } from "./exportFile";
|
|
7
7
|
export { fluidRunner } from "./fluidRunner";
|
|
8
8
|
export { OutputFormat } from "./logger/fileLogger";
|
|
9
9
|
export { createLogger, getTelemetryFileValidationError } from "./logger/loggerUtils";
|
|
10
|
-
export
|
|
10
|
+
export { parseBundleAndExportFile } from "./parseBundleAndExportFile";
|
|
11
11
|
export { getSnapshotFileContent } from "./utils";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,19 +3,11 @@
|
|
|
3
3
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
4
4
|
* Licensed under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.getSnapshotFileContent = exports.getTelemetryFileValidationError = exports.createLogger = exports.OutputFormat = exports.fluidRunner = void 0;
|
|
18
|
-
|
|
7
|
+
exports.getSnapshotFileContent = exports.parseBundleAndExportFile = exports.getTelemetryFileValidationError = exports.createLogger = exports.OutputFormat = exports.fluidRunner = exports.exportFile = exports.createContainerAndExecute = void 0;
|
|
8
|
+
var exportFile_1 = require("./exportFile");
|
|
9
|
+
Object.defineProperty(exports, "createContainerAndExecute", { enumerable: true, get: function () { return exportFile_1.createContainerAndExecute; } });
|
|
10
|
+
Object.defineProperty(exports, "exportFile", { enumerable: true, get: function () { return exportFile_1.exportFile; } });
|
|
19
11
|
var fluidRunner_1 = require("./fluidRunner");
|
|
20
12
|
Object.defineProperty(exports, "fluidRunner", { enumerable: true, get: function () { return fluidRunner_1.fluidRunner; } });
|
|
21
13
|
var fileLogger_1 = require("./logger/fileLogger");
|
|
@@ -23,7 +15,8 @@ Object.defineProperty(exports, "OutputFormat", { enumerable: true, get: function
|
|
|
23
15
|
var loggerUtils_1 = require("./logger/loggerUtils");
|
|
24
16
|
Object.defineProperty(exports, "createLogger", { enumerable: true, get: function () { return loggerUtils_1.createLogger; } });
|
|
25
17
|
Object.defineProperty(exports, "getTelemetryFileValidationError", { enumerable: true, get: function () { return loggerUtils_1.getTelemetryFileValidationError; } });
|
|
26
|
-
|
|
18
|
+
var parseBundleAndExportFile_1 = require("./parseBundleAndExportFile");
|
|
19
|
+
Object.defineProperty(exports, "parseBundleAndExportFile", { enumerable: true, get: function () { return parseBundleAndExportFile_1.parseBundleAndExportFile; } });
|
|
27
20
|
var utils_1 = require("./utils");
|
|
28
21
|
Object.defineProperty(exports, "getSnapshotFileContent", { enumerable: true, get: function () { return utils_1.getSnapshotFileContent; } });
|
|
29
22
|
/* eslint-enable import/no-internal-modules */
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,2CAA0F;AAAjF,uHAAA,yBAAyB,OAAA;AAAE,wGAAA,UAAU,OAAA;AAC9C,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,kDAAmD;AAA1C,0GAAA,YAAY,OAAA;AACrB,oDAAqF;AAA5E,2GAAA,YAAY,OAAA;AAAE,8HAAA,+BAA+B,OAAA;AACtD,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,iCAAiD;AAAxC,+GAAA,sBAAsB,OAAA;AAC/B,8CAA8C","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/* eslint-disable import/no-internal-modules */\nexport { ICodeLoaderBundle, IFluidFileConverter } from \"./codeLoaderBundle\";\nexport { createContainerAndExecute, exportFile, IExportFileResponse } from \"./exportFile\";\nexport { fluidRunner } from \"./fluidRunner\";\nexport { OutputFormat } from \"./logger/fileLogger\";\nexport { createLogger, getTelemetryFileValidationError } from \"./logger/loggerUtils\";\nexport { parseBundleAndExportFile } from \"./parseBundleAndExportFile\";\nexport { getSnapshotFileContent } from \"./utils\";\n/* eslint-enable import/no-internal-modules */\n"]}
|
|
@@ -38,7 +38,7 @@ class CSVFileLogger extends baseFileLogger_1.BaseFileLogger {
|
|
|
38
38
|
this.columns = new Set();
|
|
39
39
|
}
|
|
40
40
|
async flush() {
|
|
41
|
-
//
|
|
41
|
+
// No flushing is performed since we need all log entries to determine set of CSV columns
|
|
42
42
|
}
|
|
43
43
|
send(event) {
|
|
44
44
|
// eslint-disable-next-line guard-for-in, no-restricted-syntax
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csvFileLogger.js","sourceRoot":"","sources":["../../src/logger/csvFileLogger.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,uCAAiC;AAEjC,qDAAkD;AAElD;;;GAGG;AACH,MAAa,aAAc,SAAQ,+BAAc;IAAjD;;QACI,wDAAwD;QACvC,YAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAuBzC,CAAC;IArBU,KAAK,CAAC,KAAK;QACd,
|
|
1
|
+
{"version":3,"file":"csvFileLogger.js","sourceRoot":"","sources":["../../src/logger/csvFileLogger.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,uCAAiC;AAEjC,qDAAkD;AAElD;;;GAGG;AACH,MAAa,aAAc,SAAQ,+BAAc;IAAjD;;QACI,wDAAwD;QACvC,YAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAuBzC,CAAC;IArBU,KAAK,CAAC,KAAK;QACd,yFAAyF;IAC7F,CAAC;IAEM,IAAI,CAAC,KAA0B;QAClC,8DAA8D;QAC9D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACtB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAC1B;QACD,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,KAAK;QACd,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC;QACpB,8DAA8D;QAC9D,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,YAAY,EAAE;YACnC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAC3B;QAED,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAA,gBAAK,EAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAClF,CAAC;CACJ;AAzBD,sCAyBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport * as fs from \"fs\";\nimport { parse } from \"json2csv\";\nimport { ITelemetryBaseEvent } from \"@fluidframework/common-definitions\";\nimport { BaseFileLogger } from \"./baseFileLogger\";\n\n/**\n * FileLogger that writes events into a defined CSV file\n * @internal\n */\nexport class CSVFileLogger extends BaseFileLogger {\n /** Store the column names to write as the CSV header */\n private readonly columns = new Set();\n\n public async flush(): Promise<void> {\n // No flushing is performed since we need all log entries to determine set of CSV columns\n }\n\n public send(event: ITelemetryBaseEvent): void {\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (const prop in event) {\n this.columns.add(prop);\n }\n super.send(event);\n }\n\n public async close(): Promise<void> {\n await super.close();\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (const field in this.defaultProps) {\n this.columns.add(field);\n }\n\n fs.writeFileSync(this.filePath, parse(this.events, Array.from(this.columns)));\n }\n}\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
export { ICodeLoaderBundle, IFluidFileConverter } from "./codeLoaderBundle";
|
|
6
|
-
export
|
|
6
|
+
export { createContainerAndExecute, exportFile, IExportFileResponse } from "./exportFile";
|
|
7
7
|
export { fluidRunner } from "./fluidRunner";
|
|
8
8
|
export { OutputFormat } from "./logger/fileLogger";
|
|
9
9
|
export { createLogger, getTelemetryFileValidationError } from "./logger/loggerUtils";
|
|
10
|
-
export
|
|
10
|
+
export { parseBundleAndExportFile } from "./parseBundleAndExportFile";
|
|
11
11
|
export { getSnapshotFileContent } from "./utils";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export { createContainerAndExecute, exportFile } from "./exportFile";
|
|
6
6
|
export { fluidRunner } from "./fluidRunner";
|
|
7
7
|
export { OutputFormat } from "./logger/fileLogger";
|
|
8
8
|
export { createLogger, getTelemetryFileValidationError } from "./logger/loggerUtils";
|
|
9
|
-
export
|
|
9
|
+
export { parseBundleAndExportFile } from "./parseBundleAndExportFile";
|
|
10
10
|
export { getSnapshotFileContent } from "./utils";
|
|
11
11
|
/* eslint-enable import/no-internal-modules */
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,yBAAyB,EAAE,UAAU,EAAuB,MAAM,cAAc,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACjD,8CAA8C","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/* eslint-disable import/no-internal-modules */\nexport { ICodeLoaderBundle, IFluidFileConverter } from \"./codeLoaderBundle\";\nexport { createContainerAndExecute, exportFile, IExportFileResponse } from \"./exportFile\";\nexport { fluidRunner } from \"./fluidRunner\";\nexport { OutputFormat } from \"./logger/fileLogger\";\nexport { createLogger, getTelemetryFileValidationError } from \"./logger/loggerUtils\";\nexport { parseBundleAndExportFile } from \"./parseBundleAndExportFile\";\nexport { getSnapshotFileContent } from \"./utils\";\n/* eslint-enable import/no-internal-modules */\n"]}
|
|
@@ -16,7 +16,7 @@ export class CSVFileLogger extends BaseFileLogger {
|
|
|
16
16
|
this.columns = new Set();
|
|
17
17
|
}
|
|
18
18
|
async flush() {
|
|
19
|
-
//
|
|
19
|
+
// No flushing is performed since we need all log entries to determine set of CSV columns
|
|
20
20
|
}
|
|
21
21
|
send(event) {
|
|
22
22
|
// eslint-disable-next-line guard-for-in, no-restricted-syntax
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"csvFileLogger.js","sourceRoot":"","sources":["../../src/logger/csvFileLogger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,cAAc;IAAjD;;QACI,wDAAwD;QACvC,YAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAuBzC,CAAC;IArBU,KAAK,CAAC,KAAK;QACd,
|
|
1
|
+
{"version":3,"file":"csvFileLogger.js","sourceRoot":"","sources":["../../src/logger/csvFileLogger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;GAGG;AACH,MAAM,OAAO,aAAc,SAAQ,cAAc;IAAjD;;QACI,wDAAwD;QACvC,YAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAuBzC,CAAC;IArBU,KAAK,CAAC,KAAK;QACd,yFAAyF;IAC7F,CAAC;IAEM,IAAI,CAAC,KAA0B;QAClC,8DAA8D;QAC9D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;YACtB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SAC1B;QACD,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,KAAK;QACd,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC;QACpB,8DAA8D;QAC9D,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,YAAY,EAAE;YACnC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SAC3B;QAED,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAClF,CAAC;CACJ","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport * as fs from \"fs\";\nimport { parse } from \"json2csv\";\nimport { ITelemetryBaseEvent } from \"@fluidframework/common-definitions\";\nimport { BaseFileLogger } from \"./baseFileLogger\";\n\n/**\n * FileLogger that writes events into a defined CSV file\n * @internal\n */\nexport class CSVFileLogger extends BaseFileLogger {\n /** Store the column names to write as the CSV header */\n private readonly columns = new Set();\n\n public async flush(): Promise<void> {\n // No flushing is performed since we need all log entries to determine set of CSV columns\n }\n\n public send(event: ITelemetryBaseEvent): void {\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (const prop in event) {\n this.columns.add(prop);\n }\n super.send(event);\n }\n\n public async close(): Promise<void> {\n await super.close();\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (const field in this.defaultProps) {\n this.columns.add(field);\n }\n\n fs.writeFileSync(this.filePath, parse(this.events, Array.from(this.columns)));\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/fluid-runner",
|
|
3
|
-
"version": "2.0.0-internal.2.0
|
|
3
|
+
"version": "2.0.0-internal.2.1.0",
|
|
4
4
|
"description": "Utility for running various functionality inside a Fluid Framework environment",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -32,10 +32,7 @@
|
|
|
32
32
|
"test:coverage": "nyc npm test -- --reporter xunit --reporter-option output=nyc/junit-report.xml",
|
|
33
33
|
"test:mocha": "mocha --ignore 'dist/test/types/*' --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup --unhandled-rejections=strict",
|
|
34
34
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
35
|
-
"tsc": "tsc"
|
|
36
|
-
"tsfmt": "tsfmt --verify",
|
|
37
|
-
"tsfmt:fix": "tsfmt --replace",
|
|
38
|
-
"typetests:gen": "fluid-type-validator -g -d ."
|
|
35
|
+
"tsc": "tsc"
|
|
39
36
|
},
|
|
40
37
|
"nyc": {
|
|
41
38
|
"all": true,
|
|
@@ -58,22 +55,24 @@
|
|
|
58
55
|
"temp-directory": "nyc/.nyc_output"
|
|
59
56
|
},
|
|
60
57
|
"dependencies": {
|
|
61
|
-
"@fluidframework/aqueduct": ">=2.0.0-internal.2.0
|
|
58
|
+
"@fluidframework/aqueduct": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
62
59
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
63
|
-
"@fluidframework/container-definitions": ">=2.0.0-internal.2.0
|
|
64
|
-
"@fluidframework/container-loader": ">=2.0.0-internal.2.0
|
|
65
|
-
"@fluidframework/core-interfaces": ">=2.0.0-internal.2.0
|
|
66
|
-
"@fluidframework/driver-definitions": ">=2.0.0-internal.2.0
|
|
67
|
-
"@fluidframework/odsp-driver": ">=2.0.0-internal.2.0
|
|
68
|
-
"@fluidframework/odsp-driver-definitions": ">=2.0.0-internal.2.0
|
|
69
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-internal.2.0
|
|
60
|
+
"@fluidframework/container-definitions": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
61
|
+
"@fluidframework/container-loader": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
62
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
63
|
+
"@fluidframework/driver-definitions": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
64
|
+
"@fluidframework/odsp-driver": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
65
|
+
"@fluidframework/odsp-driver-definitions": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
66
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
70
67
|
"json2csv": "^5.0.7",
|
|
71
68
|
"yargs": "13.2.2"
|
|
72
69
|
},
|
|
73
70
|
"devDependencies": {
|
|
74
|
-
"@
|
|
75
|
-
"@fluidframework/
|
|
76
|
-
"@fluidframework/
|
|
71
|
+
"@fluid-tools/build-cli": "^0.5.0",
|
|
72
|
+
"@fluidframework/build-common": "^1.1.0",
|
|
73
|
+
"@fluidframework/eslint-config-fluid": "^1.1.0",
|
|
74
|
+
"@fluidframework/fluid-runner-previous": "npm:@fluidframework/fluid-runner@2.0.0-internal.2.0.0",
|
|
75
|
+
"@fluidframework/mocha-test-setup": ">=2.0.0-internal.2.1.0 <2.0.0-internal.3.0.0",
|
|
77
76
|
"@rushstack/eslint-config": "^2.5.1",
|
|
78
77
|
"@types/mocha": "^9.1.1",
|
|
79
78
|
"@types/node": "^14.18.0",
|
|
@@ -84,5 +83,9 @@
|
|
|
84
83
|
"nyc": "^15.0.0",
|
|
85
84
|
"rimraf": "^2.6.2",
|
|
86
85
|
"typescript": "~4.5.5"
|
|
86
|
+
},
|
|
87
|
+
"typeValidation": {
|
|
88
|
+
"version": "2.0.0-internal.2.1.0",
|
|
89
|
+
"broken": {}
|
|
87
90
|
}
|
|
88
91
|
}
|
package/src/index.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
/* eslint-disable import/no-internal-modules */
|
|
7
7
|
export { ICodeLoaderBundle, IFluidFileConverter } from "./codeLoaderBundle";
|
|
8
|
-
export
|
|
8
|
+
export { createContainerAndExecute, exportFile, IExportFileResponse } from "./exportFile";
|
|
9
9
|
export { fluidRunner } from "./fluidRunner";
|
|
10
10
|
export { OutputFormat } from "./logger/fileLogger";
|
|
11
11
|
export { createLogger, getTelemetryFileValidationError } from "./logger/loggerUtils";
|
|
12
|
-
export
|
|
12
|
+
export { parseBundleAndExportFile } from "./parseBundleAndExportFile";
|
|
13
13
|
export { getSnapshotFileContent } from "./utils";
|
|
14
14
|
/* eslint-enable import/no-internal-modules */
|
|
@@ -17,7 +17,7 @@ export class CSVFileLogger extends BaseFileLogger {
|
|
|
17
17
|
private readonly columns = new Set();
|
|
18
18
|
|
|
19
19
|
public async flush(): Promise<void> {
|
|
20
|
-
//
|
|
20
|
+
// No flushing is performed since we need all log entries to determine set of CSV columns
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
public send(event: ITelemetryBaseEvent): void {
|