@microsoft/metrics-ts
Advanced tools
Comparing version 0.0.1 to 0.0.2-alpha.219325888.0
{ | ||
"name": "@microsoft/metrics-ts", | ||
"version": "0.0.1", | ||
"version": "0.0.2-alpha.219325888.0", | ||
"description": "Add metrics without intruding source code", | ||
@@ -62,3 +62,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "e30209b171c59985670db2c18425689c7c21b58a" | ||
"gitHead": "db708bccd80e9d63262f0769aa565fbfd3459f93" | ||
} |
import * as path123 from "path"; | ||
import { timer } from "@microsoft/metrics-ts"; | ||
import { MSTimer } from "@microsoft/metrics-ts"; | ||
@@ -9,3 +9,3 @@ function delay(ms: number) { | ||
class Foo { | ||
@timer() | ||
@MSTimer(__filename) | ||
bar() { | ||
@@ -17,3 +17,3 @@ const r = this.baz(); | ||
@timer() | ||
@MSTimer(__filename) | ||
baz(): number[] { | ||
@@ -24,3 +24,3 @@ path123.join("a", "b"); | ||
@timer() | ||
@MSTimer(__filename) | ||
async buz(arg: string, arg2: any) { | ||
@@ -27,0 +27,0 @@ await delay(1000); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32463