@memlab/api 1.0.20 → 1.0.22

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/API.d.ts CHANGED
@@ -169,7 +169,7 @@ export declare function findLeaks(runResult: BrowserInteractionResultReader): Pr
169
169
  * analysis class you are using for `heapAnalyzer`.
170
170
  * * **Examples**:
171
171
  * ```javascript
172
- * const {takeSnapshots, StringAnalysis} = require('@memlab/api');
172
+ * const {analyze, takeSnapshots, StringAnalysis} = require('@memlab/api');
173
173
  *
174
174
  * (async function () {
175
175
  * const scenario = {
package/dist/API.js CHANGED
@@ -164,7 +164,7 @@ exports.findLeaks = findLeaks;
164
164
  * analysis class you are using for `heapAnalyzer`.
165
165
  * * **Examples**:
166
166
  * ```javascript
167
- * const {takeSnapshots, StringAnalysis} = require('@memlab/api');
167
+ * const {analyze, takeSnapshots, StringAnalysis} = require('@memlab/api');
168
168
  *
169
169
  * (async function () {
170
170
  * const scenario = {
@@ -12,9 +12,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- const core_1 = require("@memlab/core");
16
15
  const fs_extra_1 = __importDefault(require("fs-extra"));
17
16
  const path_1 = __importDefault(require("path"));
17
+ const core_1 = require("@memlab/core");
18
18
  const BaseResultReader_1 = __importDefault(require("./BaseResultReader"));
19
19
  /**
20
20
  * A utility entity to read all generated files from
@@ -127,10 +127,9 @@ class BrowserInteractionResultReader extends BaseResultReader_1.default {
127
127
  */
128
128
  getRunMetaInfo() {
129
129
  this.check();
130
- const metaFile = this.fileManager.getRunMetaFile({
130
+ return core_1.runInfoUtils.runMetaInfoManager.loadRunMetaInfo({
131
131
  workDir: this.workDir,
132
132
  });
133
- return core_1.utils.loadRunMetaInfo(metaFile);
134
133
  }
135
134
  }
136
135
  exports.default = BrowserInteractionResultReader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memlab/api",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "license": "MIT",
5
5
  "description": "memlab API",
6
6
  "author": "Liang Gong <lgong@fb.com>",