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

unexpected

Package Overview
Dependencies
Maintainers
4
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected - npm Package Compare versions

Comparing version 10.40.1 to 10.40.2

22

build/lib/types.js

@@ -841,12 +841,16 @@ var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');

var matchInitialNewline = openingBrace.match(/^\n( +)/);
if (matchInitialNewline && /\n/.test(body)) {
// An arrow function whose body starts with a newline, as prettier likes to output, eg.:
// () =>
// foo(
// 1
// );
// Shuffle/hack things around so it will be formatted correctly:
if (matchInitialNewline) {
openingBrace = '\n';
bodyIndent = matchInitialNewline[1];
reindentBodyLevel = 1;
if (/\n/.test(body)) {
// An arrow function whose body starts with a newline, as prettier likes to output, eg.:
// () =>
// foo(
// 1
// );
// Shuffle/hack things around so it will be formatted correctly:
bodyIndent = matchInitialNewline[1];
reindentBodyLevel = 1;
} else {
body = body.replace(/^\s*/, ' ');
}
} else {

@@ -853,0 +857,0 @@ bodyIndent = matchBodyAndIndent[3] || '';

@@ -0,1 +1,5 @@

### v10.40.2 (2019-01-02)
- [#554](https://github.com/unexpectedjs/unexpected/pull/554) mocha: Use --require unexpected-markdown instead of --compilers ... ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
### v10.40.1 (2018-12-31)

@@ -203,2 +207,5 @@

- [#355](https://github.com/unexpectedjs/unexpected/pull/355) Inspect async functions ([Andreas Lind](mailto:andreas@one.com))
### v10.20.0 (2016-11-27)
- [#340](https://github.com/unexpectedjs/unexpected/pull/340) Add 'to be fulfilled with a value satisfying' and 'to be rejected with error satisfying' ([Joel Mukuthu](mailto:jmu@one.com))

@@ -205,0 +212,0 @@ - [#348](https://github.com/unexpectedjs/unexpected/pull/348) to have (items|values|keys) satisfying: Only allow one <any> as the value, not <any+> ([Andreas Lind](mailto:andreas@one.com))

@@ -992,12 +992,16 @@ const utils = require('./utils');

const matchInitialNewline = openingBrace.match(/^\n( +)/);
if (matchInitialNewline && /\n/.test(body)) {
// An arrow function whose body starts with a newline, as prettier likes to output, eg.:
// () =>
// foo(
// 1
// );
// Shuffle/hack things around so it will be formatted correctly:
if (matchInitialNewline) {
openingBrace = '\n';
bodyIndent = matchInitialNewline[1];
reindentBodyLevel = 1;
if (/\n/.test(body)) {
// An arrow function whose body starts with a newline, as prettier likes to output, eg.:
// () =>
// foo(
// 1
// );
// Shuffle/hack things around so it will be formatted correctly:
bodyIndent = matchInitialNewline[1];
reindentBodyLevel = 1;
} else {
body = body.replace(/^\s*/, ' ');
}
} else {

@@ -1004,0 +1008,0 @@ bodyIndent = matchBodyAndIndent[3] || '';

{
"name": "unexpected",
"version": "10.40.1",
"version": "10.40.2",
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>",

@@ -72,3 +72,3 @@ "keywords": [

"unexpected-magicpen": "^1.0.0",
"unexpected-markdown": "^1.7.4"
"unexpected-markdown": "^2.0.0"
},

@@ -75,0 +75,0 @@ "files": [

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

Sorry, the diff of this file is not supported yet

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