Socket
Socket
Sign inDemoInstall

jasminewd2

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasminewd2 - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

17

CHANGELOG.md
# Changelog for jasminewd2
# 2.1.0
## Features
- ([41577a5](https://github.com/angular/jasminewd/commit/41577a5e10420d255fb2ec12aa0ea3a8e72f14ca))
support native async functions (node 7.6+) (#87)
## Bug Fixes
- ([0137d3f](https://github.com/angular/jasminewd/commit/0137d3f2ae96ef6d51d00055d64b5a8103ae83d0))
minor fix to keep stack from original error (#86)
- ([374f494](https://github.com/angular/jasminewd/commit/374f4946972673f86e06a011e20fc039bb73e234))
Allow to specify a function as a custom matcher's message. (#29)
# 2.0.0

@@ -4,0 +21,0 @@

10

index.js

@@ -18,3 +18,3 @@ /**

function validateFunction(functionToValidate) {
if (functionToValidate && Object.prototype.toString.call(functionToValidate) === '[object Function]') {
if (functionToValidate && typeof functionToValidate === 'function') {
return functionToValidate;

@@ -98,4 +98,6 @@ } else {

function wrappedReject(err) {
var wrappedErr = new Error(err);
reject(wrappedErr);
if(err instanceof Error)
reject(err);
else
reject(new Error(err));
}

@@ -299,3 +301,3 @@ if (async) {

if (Object.prototype.toString.apply(result.message) === '[object Function]') {
message = result.message();
message = result.message(expectation.isNot);
} else {

@@ -302,0 +304,0 @@ message = result.message;

2

package.json

@@ -43,3 +43,3 @@ {

},
"version": "2.0.0"
"version": "2.1.0"
}

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

jasminewd [![Build Status](https://travis-ci.org/angular/jasminewd.svg?branch=master)](https://travis-ci.org/angular/jasminewd)
jasminewd2 [![Build Status](https://travis-ci.org/angular/jasminewd.svg?branch=jasminewd2)](https://travis-ci.org/angular/jasminewd)
=========

@@ -8,3 +8,3 @@

- [master](https://github.com/angular/jasminewd/tree/master) is an adapter for Jasmine 1.3, and uses the package minijasminenode. It is published to npm as `jasminewd`.
- [jasminewd1](https://github.com/angular/jasminewd/tree/jasminewd1) is an adapter for Jasmine 1.3, and uses the package minijasminenode. It is published to npm as `jasminewd`.
- [jasminewd2](https://github.com/angular/jasminewd/tree/jasminewd2) is an adapter for Jasmine 2.x, and uses the package jasmine. It is published to npm as `jasminewd2`.

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