@fluidframework/common-utils
Advanced tools
Comparing version 0.24.0-4481 to 0.24.0-5441
@@ -22,2 +22,3 @@ /*! | ||
export * from "./lazy"; | ||
export * from "./performanceIsomorphic"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -7,3 +7,3 @@ /*! | ||
export * from "./hashFileBrowser"; | ||
export * from "./performanceNowBrowser"; | ||
export * from "./performanceBrowser"; | ||
//# sourceMappingURL=indexBrowser.d.ts.map |
@@ -12,3 +12,3 @@ "use strict"; | ||
__export(require("./hashFileBrowser")); | ||
__export(require("./performanceNowBrowser")); | ||
__export(require("./performanceBrowser")); | ||
//# sourceMappingURL=indexBrowser.js.map |
@@ -7,3 +7,3 @@ /*! | ||
export * from "./hashFileNode"; | ||
export * from "./performanceNowNode"; | ||
export * from "./performanceNode"; | ||
//# sourceMappingURL=indexNode.d.ts.map |
@@ -12,3 +12,3 @@ "use strict"; | ||
__export(require("./hashFileNode")); | ||
__export(require("./performanceNowNode")); | ||
__export(require("./performanceNode")); | ||
//# sourceMappingURL=indexNode.js.map |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/common-utils"; | ||
export declare const pkgVersion = "0.24.0-4481"; | ||
export declare const pkgVersion = "0.24.0-5441"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.pkgName = "@fluidframework/common-utils"; | ||
exports.pkgVersion = "0.24.0-4481"; | ||
exports.pkgVersion = "0.24.0-5441"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -96,3 +96,3 @@ "use strict"; | ||
handler() { | ||
assert_1.strict.ok(this.runningState, "Running timer missing handler"); | ||
assert_1.strict(this.runningState, "Running timer missing handler"); | ||
const restart = this.runningState.restart; | ||
@@ -145,3 +145,3 @@ if (restart !== undefined) { | ||
handler(); | ||
assert_1.strict.ok(this.deferred, "Handler executed without deferred"); | ||
assert_1.strict(this.deferred, "Handler executed without deferred"); | ||
this.deferred.resolve({ timerResult: "timeout" }); | ||
@@ -148,0 +148,0 @@ this.deferred = undefined; |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const performanceNowNode_1 = require("./performanceNowNode"); | ||
const indexNode_1 = require("./indexNode"); | ||
/** | ||
@@ -19,7 +19,7 @@ * Helper class for tracing performance of events | ||
static start() { | ||
const startTick = performanceNowNode_1.performanceNow(); | ||
const startTick = indexNode_1.performance.now(); | ||
return new Trace(startTick); | ||
} | ||
trace() { | ||
const tick = performanceNowNode_1.performanceNow(); | ||
const tick = indexNode_1.performance.now(); | ||
const event = { | ||
@@ -26,0 +26,0 @@ totalTimeElapsed: tick - this.startTick, |
@@ -22,2 +22,3 @@ /*! | ||
export * from "./lazy"; | ||
export * from "./performanceIsomorphic"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -7,3 +7,3 @@ /*! | ||
export * from "./hashFileBrowser"; | ||
export * from "./performanceNowBrowser"; | ||
export * from "./performanceBrowser"; | ||
//# sourceMappingURL=indexBrowser.d.ts.map |
@@ -7,3 +7,3 @@ /*! | ||
export * from "./hashFileBrowser"; | ||
export * from "./performanceNowBrowser"; | ||
export * from "./performanceBrowser"; | ||
//# sourceMappingURL=indexBrowser.js.map |
@@ -7,3 +7,3 @@ /*! | ||
export * from "./hashFileNode"; | ||
export * from "./performanceNowNode"; | ||
export * from "./performanceNode"; | ||
//# sourceMappingURL=indexNode.d.ts.map |
@@ -7,3 +7,3 @@ /*! | ||
export * from "./hashFileNode"; | ||
export * from "./performanceNowNode"; | ||
export * from "./performanceNode"; | ||
//# sourceMappingURL=indexNode.js.map |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/common-utils"; | ||
export declare const pkgVersion = "0.24.0-4481"; | ||
export declare const pkgVersion = "0.24.0-5441"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -8,3 +8,3 @@ /*! | ||
export const pkgName = "@fluidframework/common-utils"; | ||
export const pkgVersion = "0.24.0-4481"; | ||
export const pkgVersion = "0.24.0-5441"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -94,3 +94,3 @@ /*! | ||
handler() { | ||
assert.ok(this.runningState, "Running timer missing handler"); | ||
assert(this.runningState, "Running timer missing handler"); | ||
const restart = this.runningState.restart; | ||
@@ -142,3 +142,3 @@ if (restart !== undefined) { | ||
handler(); | ||
assert.ok(this.deferred, "Handler executed without deferred"); | ||
assert(this.deferred, "Handler executed without deferred"); | ||
this.deferred.resolve({ timerResult: "timeout" }); | ||
@@ -145,0 +145,0 @@ this.deferred = undefined; |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import { performanceNow } from "./performanceNowNode"; | ||
import { performance } from "./indexNode"; | ||
/** | ||
@@ -17,7 +17,7 @@ * Helper class for tracing performance of events | ||
static start() { | ||
const startTick = performanceNow(); | ||
const startTick = performance.now(); | ||
return new Trace(startTick); | ||
} | ||
trace() { | ||
const tick = performanceNow(); | ||
const tick = performance.now(); | ||
const event = { | ||
@@ -24,0 +24,0 @@ totalTimeElapsed: tick - this.startTick, |
{ | ||
"name": "@fluidframework/common-utils", | ||
"version": "0.24.0-4481", | ||
"version": "0.24.0-5441", | ||
"description": "Collection of utility functions for Fluid", | ||
@@ -37,3 +37,2 @@ "homepage": "https://fluidframework.com", | ||
"test": "npm run test:mocha && npm run test:jest", | ||
"test:ci": "npm run test:report", | ||
"test:coverage": "nyc npm run test:report", | ||
@@ -76,3 +75,2 @@ "test:jest": "jest", | ||
"lodash": "^4.17.19", | ||
"performance-now": "^2.1.0", | ||
"sha.js": "^2.4.11" | ||
@@ -89,3 +87,2 @@ }, | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.17.24", | ||
"@types/puppeteer": "1.3.0", | ||
@@ -106,3 +103,3 @@ "@types/sinon": "^7.0.13", | ||
"eslint-plugin-unicorn": "~15.0.1", | ||
"jest": "^24.9.0", | ||
"jest": "^26.4.2", | ||
"jest-junit": "^10.0.0", | ||
@@ -109,0 +106,0 @@ "jest-puppeteer": "^4.4.0", |
@@ -23,1 +23,2 @@ /*! | ||
export * from "./lazy"; | ||
export * from "./performanceIsomorphic"; |
@@ -8,2 +8,2 @@ /*! | ||
export * from "./hashFileBrowser"; | ||
export * from "./performanceNowBrowser"; | ||
export * from "./performanceBrowser"; |
@@ -8,2 +8,2 @@ /*! | ||
export * from "./hashFileNode"; | ||
export * from "./performanceNowNode"; | ||
export * from "./performanceNode"; |
@@ -9,2 +9,2 @@ /*! | ||
export const pkgName = "@fluidframework/common-utils"; | ||
export const pkgVersion = "0.24.0-4481"; | ||
export const pkgVersion = "0.24.0-5441"; |
@@ -151,3 +151,3 @@ /*! | ||
private handler() { | ||
assert.ok(this.runningState, "Running timer missing handler"); | ||
assert(this.runningState, "Running timer missing handler"); | ||
const restart = this.runningState.restart; | ||
@@ -226,3 +226,3 @@ if (restart !== undefined) { | ||
handler(); | ||
assert.ok(this.deferred, "Handler executed without deferred"); | ||
assert(this.deferred, "Handler executed without deferred"); | ||
this.deferred.resolve({ timerResult: "timeout" }); | ||
@@ -229,0 +229,0 @@ this.deferred = undefined; |
@@ -6,3 +6,3 @@ /*! | ||
import { performanceNow } from "./performanceNowNode"; | ||
import { performance } from "./indexNode"; | ||
@@ -15,3 +15,3 @@ /** | ||
public static start(): Trace { | ||
const startTick = performanceNow(); | ||
const startTick = performance.now(); | ||
return new Trace(startTick); | ||
@@ -26,3 +26,3 @@ } | ||
public trace(): ITraceEvent { | ||
const tick = performanceNow(); | ||
const tick = performance.now(); | ||
const event = { | ||
@@ -29,0 +29,0 @@ totalTimeElapsed: tick - this.startTick, |
@@ -7,2 +7,2 @@ { | ||
}, | ||
} | ||
} |
@@ -9,3 +9,7 @@ { | ||
"rootDir": "./src", | ||
"outDir": "./dist" | ||
"outDir": "./dist", | ||
"baseUrl": ".", | ||
"paths": { | ||
"perf_hooks": ["types/perf_hooks.d.ts"] | ||
} | ||
}, | ||
@@ -15,2 +19,2 @@ "include": [ | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
657817
7
36
269
7036
3
- Removedperformance-now@^2.1.0
- Removedperformance-now@2.1.0(transitive)