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

simple-mock

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-mock - npm Package Compare versions

Comparing version 0.7.3 to 0.8.0

6

index.js

@@ -167,8 +167,8 @@ /* global define */

newFn.resolveWith = function (value) {
if (simple.Promise.when) return newFn.returnWith(simple.Promise.when(value))
return newFn.returnWith(simple.Promise.resolve(value))
if (simple.Promise.when) return newFn.callFn(function createResolvedPromise () { return simple.Promise.when(value) })
return newFn.callFn(function createResolvedPromise () { return simple.Promise.resolve(value) })
}
newFn.rejectWith = function (value) {
return newFn.returnWith(simple.Promise.reject(value))
return newFn.callFn(function createRejectedPromise () { return simple.Promise.reject(value) })
}

@@ -175,0 +175,0 @@

{
"name": "simple-mock",
"version": "0.7.3",
"version": "0.8.0",
"description": "Super simple stubs and spies with 1-step sandbox restore",

@@ -5,0 +5,0 @@ "license": "MIT",

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