heap-snapshot-toolkit
Advanced tools
Comparing version
{ | ||
"name": "heap-snapshot-toolkit", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"main": "index.js", | ||
@@ -9,3 +9,5 @@ "type": "module", | ||
"lint": "standard", | ||
"test": "node --test ./test/*.test.js", | ||
"test": "node --run test:types && node --run test:unit", | ||
"test:types": "attw --ignore-rules cjs-resolves-to-esm --pack .", | ||
"test:unit": "node --test ./test/*.test.js", | ||
"build": "bash ./scripts/build-devtools-frontend.sh" | ||
@@ -39,3 +41,4 @@ }, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.52.5", | ||
"@arethetypeswrong/cli": "^0.18.2", | ||
"@microsoft/api-extractor": "^7.52.8", | ||
"@rollup/plugin-inject": "^5.0.5", | ||
@@ -46,8 +49,16 @@ "@rollup/plugin-replace": "^6.0.2", | ||
"@rollup/plugin-virtual": "^3.0.2", | ||
"@types/node": "^22.14.1", | ||
"@types/node": "^22.15.18", | ||
"chai": "^5.2.0", | ||
"node-readable-to-web-readable-stream": "^0.4.2", | ||
"rollup": "^4.40.0", | ||
"rollup": "^4.40.2", | ||
"standard": "^17.1.2" | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"typescript": "^5.8.3" | ||
}, | ||
"patchedDependencies": { | ||
"@rollup/plugin-typescript@12.1.2": "patches/@rollup__plugin-typescript@12.1.2.patch" | ||
} | ||
}, | ||
"standard": { | ||
@@ -58,3 +69,3 @@ "ignore": [ | ||
}, | ||
"packageManager": "pnpm@10.8.1+sha512.c50088ba998c67b8ca8c99df8a5e02fd2ae2e2b29aaf238feaa9e124248d3f48f9fb6db2424949ff901cffbb5e0f0cc1ad6aedb602cd29450751d11c35023677" | ||
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977" | ||
} |
@@ -10,3 +10,2 @@ declare type AbstractConstructor<T, Args extends any[] = any[]> = (abstract new (...args: Args) => T); | ||
idxs: number[]; | ||
constructor(); | ||
} | ||
@@ -37,2 +36,11 @@ | ||
/** | ||
* Appends the list of `styles` as individual `<style>` elements to the | ||
* given `node`. | ||
* | ||
* @param node the `Node` to append the `<style>` elements to. | ||
* @param styles an optional list of styles to append to the `node`. | ||
*/ | ||
declare function appendStyle(node: Node, ...styles: CSSInJS[]): void; | ||
declare interface ArgumentsToBuildDominatedNodes extends ArgumentsToComputeDominatorsAndRetainedSizes, DominatorsAndRetainedSizes { | ||
@@ -203,2 +211,4 @@ } | ||
declare type CSSInJS = string&{_tag: 'CSS-in-JS'} | ||
declare namespace DateUtilities { | ||
@@ -255,3 +265,2 @@ export { | ||
sizeDelta: number; | ||
constructor(); | ||
} | ||
@@ -282,3 +291,5 @@ | ||
getEnclosingShadowRootForNode, | ||
rangeOfWord | ||
rangeOfWord, | ||
appendStyle, | ||
CSSInJS | ||
} | ||
@@ -419,17 +430,11 @@ } | ||
search(searchConfig: HeapSnapshotModel_2.HeapSnapshotModel.SearchConfig, nodeFilter: HeapSnapshotModel_2.HeapSnapshotModel.NodeFilter): number[]; | ||
aggregatesWithFilter(nodeFilter: HeapSnapshotModel_2.HeapSnapshotModel.NodeFilter): { | ||
[x: string]: HeapSnapshotModel_2.HeapSnapshotModel.Aggregate; | ||
}; | ||
aggregatesWithFilter(nodeFilter: HeapSnapshotModel_2.HeapSnapshotModel.NodeFilter): Record<string, HeapSnapshotModel_2.HeapSnapshotModel.Aggregate>; | ||
private createNodeIdFilter; | ||
private createAllocationStackFilter; | ||
private createNamedFilter; | ||
getAggregatesByClassKey(sortedIndexes: boolean, key?: string, filter?: ((arg0: HeapSnapshotNode) => boolean)): { | ||
[x: string]: HeapSnapshotModel_2.HeapSnapshotModel.Aggregate; | ||
}; | ||
getAggregatesByClassKey(sortedIndexes: boolean, key?: string, filter?: ((arg0: HeapSnapshotNode) => boolean)): Record<string, HeapSnapshotModel_2.HeapSnapshotModel.Aggregate>; | ||
allocationTracesTops(): HeapSnapshotModel_2.HeapSnapshotModel.SerializedAllocationNode[]; | ||
allocationNodeCallers(nodeId: number): HeapSnapshotModel_2.HeapSnapshotModel.AllocationNodeCallers; | ||
allocationStack(nodeIndex: number): HeapSnapshotModel_2.HeapSnapshotModel.AllocationStackFrame[] | null; | ||
aggregatesForDiff(interfaceDefinitions: string): { | ||
[x: string]: HeapSnapshotModel_2.HeapSnapshotModel.AggregateForDiff; | ||
}; | ||
aggregatesForDiff(interfaceDefinitions: string): Record<string, HeapSnapshotModel_2.HeapSnapshotModel.AggregateForDiff>; | ||
isUserRoot(_node: HeapSnapshotNode): boolean; | ||
@@ -488,7 +493,3 @@ calculateShallowSizes(): void; | ||
} | null; | ||
calculateSnapshotDiff(baseSnapshotId: string, baseSnapshotAggregates: { | ||
[x: string]: HeapSnapshotModel_2.HeapSnapshotModel.AggregateForDiff; | ||
}): { | ||
[x: string]: HeapSnapshotModel_2.HeapSnapshotModel.Diff; | ||
}; | ||
calculateSnapshotDiff(baseSnapshotId: string, baseSnapshotAggregates: Record<string, HeapSnapshotModel_2.HeapSnapshotModel.AggregateForDiff>): Record<string, HeapSnapshotModel_2.HeapSnapshotModel.Diff>; | ||
private calculateDiffForClass; | ||
@@ -612,5 +613,3 @@ private nodeForSnapshotObjectId; | ||
sample_fields: string[]; | ||
type_strings: { | ||
[key: string]: string; | ||
}; | ||
type_strings: Record<string, string>; | ||
} | ||
@@ -802,4 +801,5 @@ | ||
* @returns true iff `mimeType` has textual content. Concretely we return true if: | ||
* - `mimeType` starts with "text/" | ||
* - `mimeType` ends with "+json" or "+xml" | ||
* - `mimeType` starts with "text/" or "multipart/" | ||
* - `mimeType` ends with "+xml" | ||
* - `mimeType` contains "json" | ||
* - if `mimeType` is one of a predefined list textual mime types. | ||
@@ -855,3 +855,2 @@ */ | ||
declare class JSHeapSnapshotEdge extends HeapSnapshotEdge { | ||
constructor(snapshot: JSHeapSnapshot, edgeIndex?: number); | ||
clone(): JSHeapSnapshotEdge; | ||
@@ -876,3 +875,2 @@ hasStringName(): boolean; | ||
#private; | ||
constructor(snapshot: JSHeapSnapshot, nodeIndex?: number); | ||
canBeQueried(): boolean; | ||
@@ -893,3 +891,2 @@ name(): string; | ||
declare class JSHeapSnapshotRetainerEdge extends HeapSnapshotRetainerEdge { | ||
constructor(snapshot: JSHeapSnapshot, retainerIndex: number); | ||
clone(): JSHeapSnapshotRetainerEdge; | ||
@@ -1351,7 +1348,3 @@ isHidden(): boolean; | ||
declare function toKebabCaseKeys(settingValue: { | ||
[x: string]: any; | ||
}): { | ||
[x: string]: any; | ||
}; | ||
declare function toKebabCaseKeys(settingValue: Record<string, any>): Record<string, any>; | ||
@@ -1475,5 +1468,4 @@ declare const toLowerCaseString: (input: string) => LowerCaseString; | ||
source: string; | ||
constructor(); | ||
} | ||
export { } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%707784
-0.13%12
9.09%6258
-0.4%