@microsoft/metrics-ts 0.0.10 → 0.0.11-alpha.0a63a75aae.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/capability/index.d.ts.map +1 -1
- package/build/capability/index.js +2 -0
- package/build/capability/index.js.map +1 -1
- package/build/capability/timer.d.ts.map +1 -1
- package/build/capability/timer.js +2 -4
- package/build/capability/timer.js.map +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/rawData.d.ts.map +1 -1
- package/build/rawData.js +1 -1
- package/build/rawData.js.map +1 -1
- package/build/reporter/index.d.ts +1 -0
- package/build/reporter/index.d.ts.map +1 -1
- package/build/reporter/index.js +1 -0
- package/build/reporter/json.d.ts +1 -0
- package/build/reporter/json.d.ts.map +1 -1
- package/build/reporter/json.js +1 -0
- package/build/tracing.d.ts.map +1 -1
- package/build/tracing.js +3 -2
- package/build/tracing.js.map +1 -1
- package/build/writer.d.ts.map +1 -1
- package/build/writer.js +4 -3
- package/build/writer.js.map +1 -1
- package/eslint.config.mjs +14 -0
- package/package.json +17 -17
- package/src/capability/index.ts +2 -0
- package/src/capability/timer.ts +3 -4
- package/src/index.ts +2 -0
- package/src/rawData.ts +2 -0
- package/src/reporter/index.ts +3 -0
- package/src/reporter/json.ts +3 -0
- package/src/tracing.ts +2 -0
- package/src/writer.ts +2 -0
- package/tsconfig.json +2 -2
- package/.eslintrc.js +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/capability/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/capability/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MSTimer = void 0;
|
|
4
|
+
// Copyright (c) Microsoft Corporation.
|
|
5
|
+
// Licensed under the MIT license.
|
|
4
6
|
var timer_1 = require("./timer");
|
|
5
7
|
Object.defineProperty(exports, "MSTimer", { enumerable: true, get: function () { return timer_1.MSTimer; } });
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/capability/index.ts"],"names":[],"mappings":";;;AAAA,iCAAkC;AAAzB,gGAAA,OAAO,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/capability/index.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,iCAAkC;AAAzB,gGAAA,OAAO,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../src/capability/timer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../src/capability/timer.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,OAAO,GAAI,IAAI,MAAM,MAGxB,QAAQ,GAAG,EAAE,aAAa,MAAM,EAAE,YAAY,kBAAkB,uBAiEzE,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MSTimer = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
4
|
+
// Copyright (c) Microsoft Corporation.
|
|
5
|
+
// Licensed under the MIT license.
|
|
7
6
|
const perf_hooks_1 = require("perf_hooks");
|
|
8
7
|
const rawData_1 = require("../rawData");
|
|
9
8
|
const tracing_1 = require("../tracing");
|
|
@@ -16,7 +15,6 @@ const fast = 1;
|
|
|
16
15
|
const normal = 20;
|
|
17
16
|
const MSTimer = (fn) => {
|
|
18
17
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
19
|
-
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
20
18
|
return (target, propertyKey, descriptor) => {
|
|
21
19
|
const originalMethod = descriptor.value;
|
|
22
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../src/capability/timer.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../src/capability/timer.ts"],"names":[],"mappings":"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"}
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
// Copyright (c) Microsoft Corporation.
|
|
5
|
+
// Licensed under the MIT license.
|
|
4
6
|
tslib_1.__exportStar(require("./capability"), exports);
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,uDAA6B"}
|
package/build/rawData.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rawData.d.ts","sourceRoot":"","sources":["../src/rawData.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rawData.d.ts","sourceRoot":"","sources":["../src/rawData.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAGhB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IAEf,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,aAAa,CAAC;CACzB"}
|
package/build/rawData.js
CHANGED
|
@@ -6,5 +6,5 @@ var TimerSeverity;
|
|
|
6
6
|
TimerSeverity["Fast"] = "fast";
|
|
7
7
|
TimerSeverity["Normal"] = "normal";
|
|
8
8
|
TimerSeverity["Slow"] = "slow";
|
|
9
|
-
})(TimerSeverity
|
|
9
|
+
})(TimerSeverity || (exports.TimerSeverity = TimerSeverity = {}));
|
|
10
10
|
//# sourceMappingURL=rawData.js.map
|
package/build/rawData.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rawData.js","sourceRoot":"","sources":["../src/rawData.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"rawData.js","sourceRoot":"","sources":["../src/rawData.ts"],"names":[],"mappings":";;;AAeA,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,8BAAa,CAAA;AACf,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reporter/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/reporter/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC"}
|
package/build/reporter/index.js
CHANGED
package/build/reporter/json.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/reporter/json.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../src/reporter/json.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC"}
|
package/build/reporter/json.js
CHANGED
package/build/tracing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../src/tracing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../src/tracing.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,OAAO,IAAI,MAAM,CAQhC"}
|
package/build/tracing.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.traceId =
|
|
3
|
+
exports.traceId = traceId;
|
|
4
|
+
// Copyright (c) Microsoft Corporation.
|
|
5
|
+
// Licensed under the MIT license.
|
|
4
6
|
const process_1 = require("process");
|
|
5
7
|
const uuid_1 = require("uuid");
|
|
6
8
|
/**
|
|
@@ -16,5 +18,4 @@ function traceId() {
|
|
|
16
18
|
return traceId;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
|
-
exports.traceId = traceId;
|
|
20
21
|
//# sourceMappingURL=tracing.js.map
|
package/build/tracing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../src/tracing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../src/tracing.ts"],"names":[],"mappings":";;AAQA,0BAQC;AAhBD,uCAAuC;AACvC,kCAAkC;AAClC,qCAA8B;AAC9B,+BAAoC;AAEpC;;GAEG;AACH,SAAgB,OAAO;IACrB,IAAI,aAAG,CAAC,eAAe,EAAE,CAAC;QACxB,OAAO,aAAG,CAAC,eAAe,CAAC;IAC7B,CAAC;SAAM,CAAC;QACN,MAAM,OAAO,GAAG,IAAA,SAAM,GAAE,CAAC;QACzB,aAAG,CAAC,eAAe,GAAG,OAAO,CAAC;QAC9B,OAAO,OAAO,CAAC;IACjB,CAAC;AACH,CAAC"}
|
package/build/writer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../src/writer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../src/writer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAQvC,wBAAsB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAKlE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAKvD"}
|
package/build/writer.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.appendOutput = appendOutput;
|
|
4
|
+
exports.appendOutputSync = appendOutputSync;
|
|
5
|
+
// Copyright (c) Microsoft Corporation.
|
|
6
|
+
// Licensed under the MIT license.
|
|
4
7
|
const path_1 = require("path");
|
|
5
8
|
const fs_extra_1 = require("fs-extra");
|
|
6
9
|
const os_1 = require("os");
|
|
@@ -13,12 +16,10 @@ async function appendOutput(data) {
|
|
|
13
16
|
await (0, fs_extra_1.appendFile)(metricsFile, JSON.stringify(data) + os_1.EOL);
|
|
14
17
|
return;
|
|
15
18
|
}
|
|
16
|
-
exports.appendOutput = appendOutput;
|
|
17
19
|
function appendOutputSync(data) {
|
|
18
20
|
(0, fs_extra_1.ensureDirSync)(metricsFolder);
|
|
19
21
|
(0, fs_extra_1.ensureFileSync)(metricsFile);
|
|
20
22
|
(0, fs_1.appendFileSync)(metricsFile, JSON.stringify(data) + os_1.EOL);
|
|
21
23
|
return;
|
|
22
24
|
}
|
|
23
|
-
exports.appendOutputSync = appendOutputSync;
|
|
24
25
|
//# sourceMappingURL=writer.js.map
|
package/build/writer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.js","sourceRoot":"","sources":["../src/writer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"writer.js","sourceRoot":"","sources":["../src/writer.ts"],"names":[],"mappings":";;AAWA,oCAKC;AAED,4CAKC;AAvBD,uCAAuC;AACvC,kCAAkC;AAClC,+BAA4B;AAE5B,uCAA4F;AAC5F,2BAAiC;AACjC,2BAAoC;AAEpC,MAAM,aAAa,GAAG,IAAA,WAAI,EAAC,IAAA,WAAM,GAAE,EAAE,UAAU,CAAC,CAAC;AACjD,MAAM,WAAW,GAAG,IAAA,WAAI,EAAC,aAAa,EAAE,YAAY,CAAC,CAAC;AAE/C,KAAK,UAAU,YAAY,CAAC,IAAgB;IACjD,MAAM,IAAA,oBAAS,EAAC,aAAa,CAAC,CAAC;IAC/B,MAAM,IAAA,qBAAU,EAAC,WAAW,CAAC,CAAC;IAC9B,MAAM,IAAA,qBAAU,EAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,QAAG,CAAC,CAAC;IAC1D,OAAO;AACT,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAgB;IAC/C,IAAA,wBAAa,EAAC,aAAa,CAAC,CAAC;IAC7B,IAAA,yBAAc,EAAC,WAAW,CAAC,CAAC;IAC5B,IAAA,mBAAc,EAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,QAAG,CAAC,CAAC;IACxD,OAAO;AACT,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import shared from "../eslint-plugin-teamsfx/config/shared.mjs";
|
|
2
|
+
import header from "../eslint-plugin-teamsfx/config/header.mjs";
|
|
3
|
+
|
|
4
|
+
export default [
|
|
5
|
+
...shared,
|
|
6
|
+
{
|
|
7
|
+
languageOptions: {
|
|
8
|
+
parserOptions: {
|
|
9
|
+
tsconfigRootDir: import.meta.dirname,
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
{ files: ["src/**/*.ts"], ...header },
|
|
14
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/metrics-ts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11-alpha.0a63a75aae.0",
|
|
4
4
|
"description": "Add metrics without intruding source code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Metrics"
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "rimraf build && npx tsc -p ./",
|
|
19
19
|
"format-check": "echo test",
|
|
20
|
-
"
|
|
21
|
-
"precommit": "npm run check-sensitive && lint-staged",
|
|
20
|
+
"precommit": "lint-staged",
|
|
22
21
|
"lint": "eslint \"**/*.ts\"",
|
|
23
22
|
"lint:staged": "lint-staged"
|
|
24
23
|
},
|
|
@@ -28,27 +27,28 @@
|
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
|
30
29
|
"@types/chai": "^4.2.21",
|
|
31
|
-
"@types/mocha": "^
|
|
32
|
-
"@types/node": "^
|
|
30
|
+
"@types/mocha": "^10.0.10",
|
|
31
|
+
"@types/node": "^22.15.0",
|
|
33
32
|
"@types/uuid": "^8.3.4",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^4.19.0",
|
|
35
|
-
"@typescript-eslint/parser": "^4.19.0",
|
|
36
33
|
"chai": "^4.3.4",
|
|
37
|
-
"eslint": "^
|
|
38
|
-
"eslint-
|
|
39
|
-
"eslint-plugin-
|
|
40
|
-
"eslint-plugin-
|
|
41
|
-
"eslint-plugin-
|
|
34
|
+
"eslint": "^9.0.0",
|
|
35
|
+
"eslint-config-prettier": "^10.1.0",
|
|
36
|
+
"eslint-plugin-headers": "^1.3.4",
|
|
37
|
+
"eslint-plugin-import-x": "^4.16.0",
|
|
38
|
+
"eslint-plugin-no-secrets": "^1.1.2",
|
|
39
|
+
"eslint-plugin-prettier": "^5.5.0",
|
|
40
|
+
"globals": "^16.2.0",
|
|
42
41
|
"lint-staged": "^10.5.4",
|
|
43
|
-
"mocha": "^
|
|
44
|
-
"nyc": "^
|
|
42
|
+
"mocha": "^11.0.0",
|
|
43
|
+
"nyc": "^17.1.0",
|
|
45
44
|
"prettier": "^2.4.1",
|
|
46
45
|
"rimraf": "^5.0.1",
|
|
47
|
-
"ts-node": "^10.
|
|
46
|
+
"ts-node": "^10.9.2",
|
|
48
47
|
"tslint": "^6.1.3",
|
|
49
48
|
"tslint-config-prettier": "^1.18.0",
|
|
50
49
|
"ttypescript": "^1.5.13",
|
|
51
|
-
"typescript": "
|
|
50
|
+
"typescript": "~5.9.0",
|
|
51
|
+
"typescript-eslint": "^8.56.0"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"tslib": "^2.3.1",
|
|
65
65
|
"uuid": "^8.3.2"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "78deca78391cb155707e09b51e9c20483bcbba57"
|
|
68
68
|
}
|
package/src/capability/index.ts
CHANGED
package/src/capability/timer.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
4
3
|
import { performance } from "perf_hooks";
|
|
5
4
|
import { timerData, TimerSeverity, tracePoint } from "../rawData";
|
|
6
5
|
import { traceId } from "../tracing";
|
|
@@ -15,7 +14,7 @@ const normal = 20;
|
|
|
15
14
|
|
|
16
15
|
export const MSTimer = (fn: string) => {
|
|
17
16
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
18
|
-
|
|
17
|
+
|
|
19
18
|
return (target: any, propertyKey: string, descriptor: PropertyDescriptor) => {
|
|
20
19
|
const originalMethod = descriptor.value;
|
|
21
20
|
|
package/src/index.ts
CHANGED
package/src/rawData.ts
CHANGED
package/src/reporter/index.ts
CHANGED
package/src/reporter/json.ts
CHANGED
package/src/tracing.ts
CHANGED
package/src/writer.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"experimentalDecorators": true,
|
|
4
4
|
"emitDecoratorMetadata": true,
|
|
5
5
|
"module": "CommonJS",
|
|
6
|
-
"target": "
|
|
6
|
+
"target": "ES2022",
|
|
7
7
|
"outDir": "build",
|
|
8
|
-
"lib": ["
|
|
8
|
+
"lib": ["ES2022"],
|
|
9
9
|
"allowJs": true,
|
|
10
10
|
"importHelpers": true,
|
|
11
11
|
"skipLibCheck": true,
|
package/.eslintrc.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: "@typescript-eslint/parser",
|
|
3
|
-
parserOptions: {
|
|
4
|
-
tsconfigRootDir: __dirname,
|
|
5
|
-
},
|
|
6
|
-
extends: ["../eslint-plugin-teamsfx/config/shared.js"],
|
|
7
|
-
overrides: [
|
|
8
|
-
{
|
|
9
|
-
files: ["src/**/*.ts"],
|
|
10
|
-
extends: ["../eslint-plugin-teamsfx/config/header.js"],
|
|
11
|
-
},
|
|
12
|
-
],
|
|
13
|
-
};
|