Sign In

cspell-dictionary

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell-dictionary - npm Package Compare versions

Comparing version
9.6.0
to
9.6.1
+1
-8
dist/util/performance.d.ts

@@ -1,9 +0,2 @@

export declare function measurePerfStart(name: string): void;
export declare function measurePerfEnd(name: string): void;
/**
* Creates performance marks and measures the time taken between them.
* @param name - name of the performance entry
* @returns a function to stop the timer.
*/
export declare function measurePerf(name: string): () => void;
export { measurePerf } from '@cspell/cspell-performance-monitor';
//# sourceMappingURL=performance.d.ts.map

@@ -1,19 +0,2 @@

export function measurePerfStart(name) {
performance.mark(name + '-start');
}
export function measurePerfEnd(name) {
performance.mark(name + '-end');
performance.measure(name, name + '-start', name + '-end');
}
/**
* Creates performance marks and measures the time taken between them.
* @param name - name of the performance entry
* @returns a function to stop the timer.
*/
export function measurePerf(name) {
measurePerfStart(name);
return () => {
measurePerfEnd(name);
};
}
export { measurePerf } from '@cspell/cspell-performance-monitor';
//# sourceMappingURL=performance.js.map
+6
-5

@@ -7,3 +7,3 @@ {

},
"version": "9.6.0",
"version": "9.6.1",
"description": "A spelling dictionary library useful for checking words and getting suggestions.",

@@ -58,5 +58,6 @@ "type": "module",

"dependencies": {
"@cspell/cspell-pipe": "9.6.0",
"@cspell/cspell-types": "9.6.0",
"cspell-trie-lib": "9.6.0",
"@cspell/cspell-performance-monitor": "9.6.1",
"@cspell/cspell-pipe": "9.6.1",
"@cspell/cspell-types": "9.6.1",
"cspell-trie-lib": "9.6.1",
"fast-equals": "^6.0.0"

@@ -69,3 +70,3 @@ },

},
"gitHead": "163793ddf2a0ad90bc7c90351698a106003297af"
"gitHead": "666fb79096d25c53af9519cad07030e7aca597e1"
}