Skip to content

Commit 855125f

Browse files
committed
change travis target and fix extra space
1 parent 1156576 commit 855125f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ node_js:
33
- "0.11"
44
- "0.10"
55
- "0.12"
6-
- "iojs"
6+
- "4"
7+
- "6"
8+
- "10"

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ var des = require('des.js')
33
var inherits = require('inherits')
44
var Buffer = require('safe-buffer').Buffer
55

6-
76
var modes = {
87
'des-ede3-cbc': des.CBC.instantiate(des.EDE),
98
'des-ede3': des.EDE,
@@ -44,8 +43,8 @@ function DES (opts) {
4443
})
4544
}
4645
DES.prototype._update = function (data) {
47-
return new Buffer(this._des.update(data))
46+
return Buffer.from(this._des.update(data))
4847
}
4948
DES.prototype._final = function () {
50-
return new Buffer(this._des.final())
49+
return Buffer.from(this._des.final())
5150
}

0 commit comments

Comments
 (0)