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

assume

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assume - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

4

index.js

@@ -341,3 +341,3 @@ 'use strict';

for (var i = 0, length = this.value.length; i < length; i++) {
if (val === this.value[i]) {
if (this._deep ? deep(this.value[i], val) : this.value[i] === val) {
includes = true;

@@ -822,3 +822,3 @@ break;

* @param {String} msg Custom message provided by users.
* @param {String} expectation What the assertion expected.
* @param {Function} expectation Compiled expectation template
* @param {Number} slice The amount of stack traces we need to remove.

@@ -825,0 +825,0 @@ * @returns {Assert}

{
"name": "assume",
"version": "1.3.1",
"version": "1.4.0",
"description": "Expect-like assertions that works seamlessly in node and browsers",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -765,3 +765,3 @@ # assume

- `msg`, a string which is the reason or message provided by the users.
- `expectation`, a string which explains what the assertion expected.
- `expectation`, a compiled template which explains what the assertion expected.
- `slice`, a number which slices of stacks from the stack trace. This is keeps

@@ -777,3 +777,4 @@ the stack trace clear of all references to our own assertion library and only

assume.add('true', function (msg) {
return this.test(this.value === true, msg, 'value to @ be true');
var expectation = format('value to @ be true');
return this.test(this.value === true, msg, expectation);
});

@@ -780,0 +781,0 @@ ```

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