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

chai-exclude

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-exclude - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

19

lib/chai-exclude.d.ts
/// <reference types="chai" />
declare global {
namespace Chai {
interface Assertion {
excluding(props: string|string[]): Assertion;
excludingEvery(props: string|string[]): Assertion;
}
}
declare module "chai-exclude" {
function chaiExclude(chai: any, utils: any): void;
export = chaiExclude;
}
declare function chaiExclude(chai: any, utils: any): void;
export = chaiExclude;
declare namespace Chai {
interface Assertion {
excluding(props: string | string[]): Assertion;
excludingEvery(props: string | string[]): Assertion;
}
}
{
"name": "chai-exclude",
"version": "1.0.1",
"version": "1.0.2",
"description": "Exclude keys before a deep equal operation with expect",

@@ -5,0 +5,0 @@ "main": "lib/chai-exclude.js",

@@ -28,2 +28,4 @@ # chai-exclude

#### Require
```js

@@ -36,2 +38,22 @@ const chai = require('chai');

#### ES6 Import
```js
import { use } from 'chai';
import chaiExclude from 'chai-exclude';
use(chaiExclude);
```
#### TypeScript
```js
import { use } from 'chai';
import chaiExclude = require('chai-exclude');
use(chaiExclude);
// The typings for chai-exclude are included with the package itself.
```
## Example

@@ -38,0 +60,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