@itwin/perf-tools 3.0.0-extension.0 → 3.1.0-dev.5

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/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright © 2017-2021 Bentley Systems, Incorporated. All rights reserved.
3
+ Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -35,6 +35,7 @@ class Reporter {
35
35
  * @param fileName Name of the CSV file with or without .csv
36
36
  */
37
37
  exportCSV(fileName) {
38
+ var _a;
38
39
  let finalReport = "";
39
40
  if (!fileName.endsWith(".csv")) {
40
41
  fileName = `${fileName}.csv`;
@@ -43,7 +44,7 @@ class Reporter {
43
44
  finalReport += "TestSuite,TestName,ValueDescription,Value,Date,Info\n";
44
45
  }
45
46
  for (const entry of this._entries) {
46
- let info = JSON.stringify(entry.info);
47
+ let info = (_a = JSON.stringify(entry.info)) !== null && _a !== void 0 ? _a : "";
47
48
  info = info.replace(/\"/g, '""');
48
49
  info = `"${info}"`;
49
50
  finalReport += `${entry.testSuite},${entry.testName},${entry.valueDescription},${entry.value},${entry.date},${info}\n`;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@itwin/perf-tools",
3
- "version": "3.0.0-extension.0",
3
+ "version": "3.1.0-dev.5",
4
4
  "description": "Tools for collecting and reporting performance data",
5
5
  "main": "lib/cjs/index.js",
6
6
  "typings": "lib/cjs/index",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/imodeljs/imodeljs/tree/master/tools/perf-tools"
10
+ "url": "https://github.com/iTwin/itwinjs-core/tree/master/tools/perf-tools"
11
11
  },
12
12
  "keywords": [
13
13
  "Bentley",
14
14
  "iModel",
15
- "iModel.js",
15
+ "iTwin.js",
16
16
  "EC"
17
17
  ],
18
18
  "author": {
@@ -23,8 +23,8 @@
23
23
  "fs-extra": "^8.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@itwin/build-tools": "3.0.0-extension.0",
27
- "@itwin/eslint-plugin": "3.0.0-extension.0",
26
+ "@itwin/build-tools": "3.1.0-dev.5",
27
+ "@itwin/eslint-plugin": "3.1.0-dev.5",
28
28
  "@types/fs-extra": "^4.0.7",
29
29
  "eslint": "^7.11.0",
30
30
  "rimraf": "^3.0.2",
@@ -46,5 +46,6 @@
46
46
  "test": "",
47
47
  "docs": "",
48
48
  "cover": ""
49
- }
49
+ },
50
+ "readme": "# @itwin/perf-tools\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\n## Report\r\n\r\n`Reporter.ts` provides a way to report performance test results. The following are fields for reports:\r\n\r\n| Name | Description | Type |\r\n|:-----------:|--------------------------------------------------|:-------:|\r\n| `testSuite` | Name of the test suite that is being run | `string`|\r\n| `testName` | The particular test that is being reported | `string`|\r\n| `valueName` | The name/description of the value being recorded | `string`|\r\n| `value` | The actual value of the test | `number`|\r\n| `info` | A JSON object for additional details | `any` |\r\n"
50
51
  }