memlab 1.1.19 → 1.1.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/bin/memlab +13 -2
- package/dist/index.d.ts +2 -9
- package/dist/index.js +31 -9
- package/package.json +6 -6
package/bin/memlab
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env node --expose-gc --max-old-space-size=4096
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -10,5 +10,16 @@
|
|
|
10
10
|
* @format
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
var path = require('path');
|
|
14
|
+
var core = require('@memlab/core');
|
|
13
15
|
var cli = require("@memlab/cli");
|
|
14
|
-
|
|
16
|
+
|
|
17
|
+
// register `memlab` and `@memlab/cli` package info
|
|
18
|
+
// so that `memlab version` get use the info
|
|
19
|
+
Promise.all([
|
|
20
|
+
// register the current `memlab` package
|
|
21
|
+
core.PackageInfoLoader.registerPackage(path.join(__dirname, '..')),
|
|
22
|
+
cli.registerPackage(),
|
|
23
|
+
]).then(() => {
|
|
24
|
+
cli.run();
|
|
25
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @emails oncall+ws_labs
|
|
8
|
-
* @format
|
|
9
|
-
*/
|
|
1
|
+
/** @internal */
|
|
2
|
+
export declare function registerPackage(): Promise<void>;
|
|
10
3
|
export * from '@memlab/api';
|
|
11
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*
|
|
8
|
-
* @emails oncall+ws_labs
|
|
9
|
-
* @format
|
|
10
|
-
*/
|
|
11
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
3
|
if (k2 === undefined) k2 = k;
|
|
13
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -22,5 +13,36 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
22
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
24
15
|
};
|
|
16
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
18
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
19
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
20
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
21
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
22
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.registerPackage = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*
|
|
36
|
+
* @emails oncall+ws_labs
|
|
37
|
+
* @format
|
|
38
|
+
*/
|
|
39
|
+
const path_1 = __importDefault(require("path"));
|
|
40
|
+
const core_1 = require("@memlab/core");
|
|
41
|
+
/** @internal */
|
|
42
|
+
function registerPackage() {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return core_1.PackageInfoLoader.registerPackage(path_1.default.join(__dirname, '..'));
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
exports.registerPackage = registerPackage;
|
|
26
48
|
__exportStar(require("@memlab/api"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memlab",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "memlab is a framework that analyzes memory and finds memory leaks in JavaScript applications.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"snapshot"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memlab/cli": "^1.0.
|
|
29
|
-
"@memlab/api": "^1.0.
|
|
30
|
-
"@memlab/core": "^1.
|
|
31
|
-
"@memlab/e2e": "^1.0.
|
|
32
|
-
"@memlab/heap-analysis": "^1.0.
|
|
28
|
+
"@memlab/cli": "^1.0.7",
|
|
29
|
+
"@memlab/api": "^1.0.6",
|
|
30
|
+
"@memlab/core": "^1.1.6",
|
|
31
|
+
"@memlab/e2e": "^1.0.7",
|
|
32
|
+
"@memlab/heap-analysis": "^1.0.5",
|
|
33
33
|
"ansi": "^0.3.1",
|
|
34
34
|
"babar": "^0.2.0",
|
|
35
35
|
"chalk": "^4.0.0",
|