Socket
Socket
Sign inDemoInstall

@memlab/core

Package Overview
Dependencies
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@memlab/core - npm Package Compare versions

Comparing version 1.1.11 to 1.1.12

LICENSE

2

dist/index.d.ts

@@ -52,2 +52,4 @@ /**

export { default as SequentialClustering } from './trace-cluster/SequentialClustering';
/** @internal */
export { default as TraceFinder } from './paths/TraceFinder';
//# sourceMappingURL=index.d.ts.map

5

dist/index.js

@@ -38,3 +38,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SequentialClustering = exports.EvaluationMetric = exports.NormalizedTrace = exports.leakClusterLogger = exports.ProcessManager = exports.modes = exports.constant = exports.analysis = exports.browserInfo = exports.serializer = exports.fileManager = exports.utils = exports.BaseOption = exports.info = exports.config = exports.registerPackage = void 0;
exports.TraceFinder = exports.SequentialClustering = exports.EvaluationMetric = exports.NormalizedTrace = exports.leakClusterLogger = exports.ProcessManager = exports.modes = exports.constant = exports.analysis = exports.browserInfo = exports.serializer = exports.fileManager = exports.utils = exports.BaseOption = exports.info = exports.config = exports.registerPackage = void 0;
const path_1 = __importDefault(require("path"));

@@ -104,1 +104,4 @@ const PackageInfoLoader_1 = require("./lib/PackageInfoLoader");

Object.defineProperty(exports, "SequentialClustering", { enumerable: true, get: function () { return __importDefault(SequentialClustering_1).default; } });
/** @internal */
var TraceFinder_1 = require("./paths/TraceFinder");
Object.defineProperty(exports, "TraceFinder", { enumerable: true, get: function () { return __importDefault(TraceFinder_1).default; } });

@@ -21,4 +21,3 @@ "use strict";

monoRepoDir: '',
defaultUserAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2)' +
' AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.0 Safari/537.36',
defaultUserAgent: 'default',
V8SyntheticRoots: [

@@ -25,0 +24,0 @@ '(GC roots)',

@@ -31,2 +31,3 @@ /**

history: number[];
historyNumberFormatter?: (n: number) => string;
};

@@ -33,0 +34,0 @@ declare function summarizeUnboundedObjects(unboundedObjects: UnboundedObjectInfo[], options?: SummarizeOptions): string;

@@ -556,3 +556,3 @@ "use strict";

function summarizeUnboundedObjects(unboundedObjects, options = {}) {
const sizeSep = options.color ? chalk_1.default.grey(' > ') : ' > ';
const historySeparator = options.color ? chalk_1.default.grey(' > ') : ' > ';
const prefix = options.color ? chalk_1.default.grey('· ') : '· ';

@@ -562,6 +562,8 @@ const opt = Object.assign({ compact: true }, options);

.map(item => {
var _a;
const id = options.color ? chalk_1.default.grey(`@${item.id}`) : `@${item.id}`;
const name = summarizeNodeShape(item.node, opt);
const formatter = (_a = item.historyNumberFormatter) !== null && _a !== void 0 ? _a : Utils_1.default.getReadableBytes.bind(Utils_1.default);
return (`${prefix}${name} [${item.type}](${id}): ` +
item.history.map(v => Utils_1.default.getReadableBytes(v)).join(sizeSep));
item.history.map(v => formatter(v)).join(historySeparator));
})

@@ -568,0 +570,0 @@ .join('\n');

@@ -364,3 +364,3 @@ /**

* The test scenario instance can also be passed to the
* [`run` API](../modules/api_src#run) exported by `@memlab/api`.
* {@link run} API exported by `@memlab/api`.
* ```typescript

@@ -928,3 +928,3 @@ * const {run} = require('@memlab/api');

* a specified constructor name.
* @param className The contructor name of the object instance
* @param className The constructor name of the object instance
* @returns `true` if there is at least one such object in the heap

@@ -968,3 +968,3 @@ *

* a specified constructor name (if there is any).
* @param className The contructor name of the object instance
* @param className The constructor name of the object instance
* @returns a handle pointing to any one of the object instances, returns

@@ -971,0 +971,0 @@ * `null` if no such object exists in the heap.

{
"name": "@memlab/core",
"version": "1.1.11",
"version": "1.1.12",
"license": "MIT",

@@ -27,3 +27,4 @@ "description": "memlab core libraries",

"dist",
"static"
"static",
"LICENSE"
],

@@ -30,0 +31,0 @@ "engines": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc