memlab 1.0.0-alpha

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 ADDED
@@ -0,0 +1,11 @@
1
+ # `memlab`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const api = require('memlab');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
package/bin/memlab ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
2
+
3
+ /**
4
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ *
9
+ * @emails oncall+ws_labs
10
+ * @format
11
+ */
12
+
13
+ var cli = require("@memlab/cli");
14
+ cli.run();
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
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
+ */
10
+ export * from '@memlab/api';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,26 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ var desc = Object.getOwnPropertyDescriptor(m, k);
14
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
15
+ desc = { enumerable: true, get: function() { return m[k]; } };
16
+ }
17
+ Object.defineProperty(o, k2, desc);
18
+ }) : (function(o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ o[k2] = m[k];
21
+ }));
22
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
23
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ __exportStar(require("@memlab/api"), exports);
package/package.json ADDED
@@ -0,0 +1,75 @@
1
+ {
2
+ "name": "memlab",
3
+ "version": "1.0.0-alpha",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/facebookincubator/memlab.git"
7
+ },
8
+ "license": "MIT",
9
+ "description": "memlab is a framework that analyzes memory and finds memory leaks in JavaScript applications.",
10
+ "main": "dist/index.js",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "bin": {
15
+ "memlab": "bin/memlab"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "keywords": [
21
+ "facebook",
22
+ "memlab",
23
+ "javascript",
24
+ "memory",
25
+ "leak",
26
+ "detector",
27
+ "heap",
28
+ "snapshot"
29
+ ],
30
+ "dependencies": {
31
+ "@memlab/cli": "^1.0.0",
32
+ "@memlab/api": "^1.0.0",
33
+ "@memlab/core": "^1.0.0",
34
+ "@memlab/e2e": "^1.0.0",
35
+ "@memlab/heap-analysis": "^1.0.0",
36
+ "ansi": "^0.3.1",
37
+ "babar": "^0.2.0",
38
+ "chalk": "^4.0.0",
39
+ "fs-extra": "^4.0.2",
40
+ "minimist": "^1.2.0",
41
+ "puppeteer": "^13.5.1",
42
+ "string-width": "^4.2.0",
43
+ "util.promisify": "^1.1.1",
44
+ "xvfb": "^0.4.0"
45
+ },
46
+ "devDependencies": {
47
+ "@types/fs-extra": "^9.0.3",
48
+ "@types/jest": "^27.4.1",
49
+ "@types/minimist": "^1.2.2",
50
+ "@types/node": "^12.16.3",
51
+ "@types/puppeteer": "^5.4.4",
52
+ "jest": "^27.5.1",
53
+ "ts-jest": "^27.1.4",
54
+ "typescript": "^4.6.3"
55
+ },
56
+ "scripts": {
57
+ "build-pkg": "tsc",
58
+ "clean-pkg": "rm -rf ./dist && rm -rf ./node_modules && rm -f ./tsconfig.tsbuildinfo"
59
+ },
60
+ "devEngines": {
61
+ "node": "12.x || 13.x || 14.x || 15.x || 16.x",
62
+ "npm": "7.x"
63
+ },
64
+ "workspaces": [
65
+ "./packages/core",
66
+ "./packages/e2e",
67
+ "./packages/heap-analysis",
68
+ "./packages/api",
69
+ "./packages/cli"
70
+ ],
71
+ "bugs": {
72
+ "url": "https://github.com/facebookincubator/memlab/issues"
73
+ },
74
+ "homepage": "https://github.com/facebookincubator/memlab#readme"
75
+ }