gitfix(tracker-profile): remove build code from index

This commit is contained in:
ShiKhu 2022-03-18 20:17:24 +01:00
parent 732d31684b
commit f88b95b59b
3 changed files with 1 additions and 19 deletions

View file

@ -1,4 +1,5 @@
node_modules
npm-debug.log
lib
cjs
.cache

View file

@ -1,18 +0,0 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tracker_1 = require("@openreplay/tracker/cjs");
function default_1() {
return (app) => {
if (app === null) {
return (name) => (fn, thisArg) => thisArg === undefined ? fn : fn.bind(thisArg);
}
return (name) => (fn, thisArg) => (...args) => {
const startTime = performance.now();
const result = thisArg === undefined ? fn.apply(this, args) : fn.apply(thisArg, args);
const duration = performance.now() - startTime;
app.send(tracker_1.Messages.Profiler(name, duration, args.map(String).join(', '), String(result)));
return result;
};
};
}
exports.default = default_1;

View file

@ -1 +0,0 @@
{ "type": "commonjs" }