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

@modern-js/types

Package Overview
Dependencies
Maintainers
0
Versions
3348
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 0.0.0-nightly-20240818170637 to 0.0.0-nightly-20240819170736

6

package.json

@@ -18,3 +18,3 @@ {

],
"version": "0.0.0-nightly-20240818170637",
"version": "0.0.0-nightly-20240819170736",
"types": "./index.d.ts",

@@ -49,4 +49,4 @@ "exports": {

"type-fest": "2.15.0",
"@scripts/build": "0.0.0-nightly-20240818170637",
"@scripts/jest-config": "0.0.0-nightly-20240818170637"
"@scripts/build": "0.0.0-nightly-20240819170736",
"@scripts/jest-config": "0.0.0-nightly-20240819170736"
},

@@ -53,0 +53,0 @@ "sideEffects": false,

@@ -1,2 +0,2 @@

import {
import type {
IncomingMessage,

@@ -7,5 +7,5 @@ ServerResponse,

} from 'http';
import qs from 'querystring';
import type qs from 'querystring';
import type { SSRMode } from 'common';
import { Metrics, Logger, Reporter, ServerTiming } from './utils';
import type { Metrics, Logger, Reporter, ServerTiming } from './utils';

@@ -12,0 +12,0 @@ export interface RequestPayload {

@@ -1,4 +0,8 @@

import { IncomingMessage, ServerResponse, IncomingHttpHeaders } from 'http';
import { Reporter } from './utils';
import { ServerRoute } from './route';
import type {
IncomingMessage,
ServerResponse,
IncomingHttpHeaders,
} from 'http';
import type { Reporter } from './utils';
import type { ServerRoute } from './route';

@@ -5,0 +9,0 @@ export type CookieAPI = {

@@ -1,10 +0,11 @@

import { RequestPayload } from './context';
import type { RequestPayload } from './context';
interface Set<V extends Record<string>> {
<Key extends keyof V>(key: Key, value: V[Key]): void;
}
type Set<V extends Record<string>> = <Key extends keyof V>(
key: Key,
value: V[Key],
) => void;
interface Get<V extends Record<string, unknown>> {
<Key extends keyof V>(key: Key): V[Key];
}
type Get<V extends Record<string, unknown>> = <Key extends keyof V>(
key: Key,
) => V[Key];

@@ -11,0 +12,0 @@ type Body = ReadableStream | ArrayBuffer | string | null;

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