Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/metrics-ts

Package Overview
Dependencies
Maintainers
4
Versions
760
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/metrics-ts - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2-alpha.219325888.0

4

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc