Comparing version 0.9.4 to 0.9.5
@@ -751,3 +751,3 @@ 'use strict'; | ||
if (options.bodies !== undefined) { | ||
const bodies = options.bodies, prefix = (options.markSeen ? '' : '.PEEK'); | ||
let bodies = options.bodies, prefix = (options.markSeen ? '' : '.PEEK'); | ||
if (!Array.isArray(bodies)) | ||
@@ -754,0 +754,0 @@ bodies = [bodies]; |
{ | ||
"name": "node-imap", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"author": "Brian White <mscdex@mscdex.net>", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -46,3 +46,3 @@ var assert = require('assert'), | ||
var srv = net.createServer(function(sock) { | ||
const srv = net.createServer(function(sock) { | ||
sock.write('* OK asdf\r\n'); | ||
@@ -49,0 +49,0 @@ var buf = '', lines; |
@@ -1,8 +0,8 @@ | ||
var Parser = require('../lib/Parser').Parser; | ||
const Parser = require('../lib/Parser').Parser; | ||
var assert = require('assert'), | ||
const assert = require('assert'), | ||
crypto = require('crypto'), | ||
inspect = require('util').inspect; | ||
var CR = '\r', LF = '\n', CRLF = CR + LF; | ||
const CR = '\r', LF = '\n', CRLF = CR + LF; | ||
@@ -506,3 +506,4 @@ [ | ||
].forEach(function(v) { | ||
var ss = new require('stream').Readable(), p, result = []; | ||
const ss = new require('stream').Readable(), result = []; | ||
let p; | ||
ss._read = function(){}; | ||
@@ -526,3 +527,3 @@ | ||
if (Array.isArray(v.bodySHA1s)) { | ||
var hash = crypto.createHash('sha1'); | ||
const hash = crypto.createHash('sha1'); | ||
stream.on('data', function(d) { | ||
@@ -532,3 +533,3 @@ hash.update(d); | ||
stream.on('end', function() { | ||
var calculated = hash.digest('hex'), | ||
const calculated = hash.digest('hex'), | ||
expected = v.bodySHA1s.shift(); | ||
@@ -535,0 +536,0 @@ assert.equal(calculated, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
817865
8871