Socket
Socket
Sign inDemoInstall

@modern-js/types

Package Overview
Dependencies
Maintainers
12
Versions
3308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@modern-js/types - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

7

CHANGELOG.md
# @modern-js/types
## 1.5.2
### Patch Changes
- a4c5fe78: fix test case
- 6fa74d5f: add internal metrics and logger
## 1.5.1

@@ -4,0 +11,0 @@

2

package.json

@@ -14,3 +14,3 @@ {

],
"version": "1.5.1",
"version": "1.5.2",
"types": "./index.d.ts",

@@ -17,0 +17,0 @@ "dependencies": {

@@ -62,4 +62,19 @@ import { IncomingMessage, ServerResponse, IncomingHttpHeaders } from 'http';

entryName: string;
logger: Logger;
metrics?: Metrics;
logger: {
error: (message: string, e: Error | string) => void;
debug: (message: string, ...args: any[]) => void;
info: (message: string, ...args: any[]) => void;
};
metrics: {
emitTimer: (
name: string,
cost: number,
tags: Record<string, unknown> = {},
) => void;
emitCounter: (
name: string,
counter: number,
tags: Record<string, unknown> = {},
) => void;
};
loadableManifest?: string;

@@ -66,0 +81,0 @@ cacheConfig?: any;

import { IncomingMessage, ServerResponse } from 'http';
export type Metrics = {
counter: () => void;
timer: () => void;
emitCounter: (name: string, value: number, tags: Record<string, any>) => void;
emitTimer: (name: string, value: number, tags: Record<string, any>) => void;
gauges: () => void;

@@ -7,0 +7,0 @@ };

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