New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/node

Package Overview
Dependencies
Maintainers
1
Versions
2021
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/node - npm Package Compare versions

Comparing version 18.16.9 to 18.16.14

1

node v18.16/globals.d.ts

@@ -67,2 +67,3 @@ // Declare "static" methods in Error

onabort: null | ((this: AbortSignal, event: Event) => any);
throwIfAborted(): void;
}

@@ -69,0 +70,0 @@

4

node v18.16/package.json
{
"name": "@types/node",
"version": "18.16.9",
"version": "18.16.14",
"description": "TypeScript definitions for Node.js",

@@ -235,4 +235,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",

"dependencies": {},
"typesPublisherContentHash": "29fe5d40e23dc41e805a3341ce551db6978006f4595a628937779cb9bfb917e2",
"typesPublisherContentHash": "1ddc18d0b32383ce71e84dee2d8cf940cfad390444fd7248f2435c57f7d2c2b4",
"typeScriptVersion": "4.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sat, 13 May 2023 14:32:54 GMT
* Last updated: Sun, 21 May 2023 21:02:54 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`

@@ -13,3 +13,2 @@ /**

function run(options?: RunOptions): TestsStream;
/**

@@ -53,3 +52,15 @@ * The `test()` function is the value imported from the test module. Each invocation of this

function test(fn?: TestFn): Promise<void>;
namespace test {
export {
after,
afterEach,
before,
beforeEach,
describe,
it,
run,
mock,
test
};
}
/**

@@ -78,2 +89,11 @@ * @since v18.6.0

function todo(fn?: SuiteFn): void;
/**
* Shorthand for marking a suite as `only`, same as `describe([name], { only: true }[, fn])`.
* @since v18.15.0
*/
function only(name?: string, options?: TestOptions, fn?: SuiteFn): void;
function only(name?: string, fn?: SuiteFn): void;
function only(options?: TestOptions, fn?: SuiteFn): void;
function only(fn?: SuiteFn): void;
}

@@ -89,18 +109,27 @@

*/
function it(name?: string, options?: TestOptions, fn?: ItFn): void;
function it(name?: string, fn?: ItFn): void;
function it(options?: TestOptions, fn?: ItFn): void;
function it(fn?: ItFn): void;
function it(name?: string, options?: TestOptions, fn?: TestFn): void;
function it(name?: string, fn?: TestFn): void;
function it(options?: TestOptions, fn?: TestFn): void;
function it(fn?: TestFn): void;
namespace it {
// Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
function skip(name?: string, options?: TestOptions, fn?: ItFn): void;
function skip(name?: string, fn?: ItFn): void;
function skip(options?: TestOptions, fn?: ItFn): void;
function skip(fn?: ItFn): void;
function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
function skip(name?: string, fn?: TestFn): void;
function skip(options?: TestOptions, fn?: TestFn): void;
function skip(fn?: TestFn): void;
// Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
function todo(name?: string, options?: TestOptions, fn?: ItFn): void;
function todo(name?: string, fn?: ItFn): void;
function todo(options?: TestOptions, fn?: ItFn): void;
function todo(fn?: ItFn): void;
function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
function todo(name?: string, fn?: TestFn): void;
function todo(options?: TestOptions, fn?: TestFn): void;
function todo(fn?: TestFn): void;
/**
* Shorthand for marking a test as `only`, same as `it([name], { only: true }[, fn])`.
* @since v18.15.0
*/
function only(name?: string, options?: TestOptions, fn?: TestFn): void;
function only(name?: string, fn?: TestFn): void;
function only(options?: TestOptions, fn?: TestFn): void;
function only(fn?: TestFn): void;
}

@@ -121,8 +150,2 @@

/**
* The type of a function under test.
* If the test uses callbacks, the callback function is passed as an argument
*/
type ItFn = (done: (result?: any) => void) => any;
interface RunOptions {

@@ -129,0 +152,0 @@ /**

@@ -67,2 +67,3 @@ // Declare "static" methods in Error

onabort: null | ((this: AbortSignal, event: Event) => any);
throwIfAborted(): void;
}

@@ -69,0 +70,0 @@

@@ -52,3 +52,15 @@ /**

function test(fn?: TestFn): Promise<void>;
namespace test {
export {
after,
afterEach,
before,
beforeEach,
describe,
it,
run,
mock,
test
};
}
/**

@@ -77,2 +89,11 @@ * @since v18.6.0

function todo(fn?: SuiteFn): void;
/**
* Shorthand for marking a suite as `only`, same as `describe([name], { only: true }[, fn])`.
* @since v18.15.0
*/
function only(name?: string, options?: TestOptions, fn?: SuiteFn): void;
function only(name?: string, fn?: SuiteFn): void;
function only(options?: TestOptions, fn?: SuiteFn): void;
function only(fn?: SuiteFn): void;
}

@@ -88,18 +109,27 @@

*/
function it(name?: string, options?: TestOptions, fn?: ItFn): void;
function it(name?: string, fn?: ItFn): void;
function it(options?: TestOptions, fn?: ItFn): void;
function it(fn?: ItFn): void;
function it(name?: string, options?: TestOptions, fn?: TestFn): void;
function it(name?: string, fn?: TestFn): void;
function it(options?: TestOptions, fn?: TestFn): void;
function it(fn?: TestFn): void;
namespace it {
// Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
function skip(name?: string, options?: TestOptions, fn?: ItFn): void;
function skip(name?: string, fn?: ItFn): void;
function skip(options?: TestOptions, fn?: ItFn): void;
function skip(fn?: ItFn): void;
function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
function skip(name?: string, fn?: TestFn): void;
function skip(options?: TestOptions, fn?: TestFn): void;
function skip(fn?: TestFn): void;
// Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
function todo(name?: string, options?: TestOptions, fn?: ItFn): void;
function todo(name?: string, fn?: ItFn): void;
function todo(options?: TestOptions, fn?: ItFn): void;
function todo(fn?: ItFn): void;
function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
function todo(name?: string, fn?: TestFn): void;
function todo(options?: TestOptions, fn?: TestFn): void;
function todo(fn?: TestFn): void;
/**
* Shorthand for marking a test as `only`, same as `it([name], { only: true }[, fn])`.
* @since v18.15.0
*/
function only(name?: string, options?: TestOptions, fn?: TestFn): void;
function only(name?: string, fn?: TestFn): void;
function only(options?: TestOptions, fn?: TestFn): void;
function only(fn?: TestFn): void;
}

@@ -120,8 +150,2 @@

/**
* The type of a function under test.
* If the test uses callbacks, the callback function is passed as an argument
*/
type ItFn = (done: (result?: any) => void) => any;
interface RunOptions {

@@ -128,0 +152,0 @@ /**

@@ -138,3 +138,3 @@ /**

* @since v0.1.25
* @deprecated Legacy: Use the WHATWG URL API instead.
* @legacy Use the WHATWG URL API instead.
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.

@@ -203,3 +203,3 @@ */

* @since v0.1.25
* @deprecated Legacy: Use the WHATWG URL API instead.
* @legacy Use the WHATWG URL API instead.
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.

@@ -237,3 +237,3 @@ */

* @since v0.1.25
* @deprecated Legacy: Use the WHATWG URL API instead.
* @legacy Use the WHATWG URL API instead.
* @param from The base URL to use if `to` is a relative URL.

@@ -240,0 +240,0 @@ * @param to The target URL to resolve.

@@ -138,3 +138,3 @@ /**

* @since v0.1.25
* @deprecated Legacy: Use the WHATWG URL API instead.
* @legacy Use the WHATWG URL API instead.
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.

@@ -203,3 +203,3 @@ */

* @since v0.1.25
* @deprecated Legacy: Use the WHATWG URL API instead.
* @legacy Use the WHATWG URL API instead.
* @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`.

@@ -237,3 +237,3 @@ */

* @since v0.1.25
* @deprecated Legacy: Use the WHATWG URL API instead.
* @legacy Use the WHATWG URL API instead.
* @param from The base URL to use if `to` is a relative URL.

@@ -240,0 +240,0 @@ * @param to The target URL to resolve.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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