Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "utf7",
"version": "1.0.2",
"description": "Converts text to and from UTF-7 (RFC 2152 and IMAP)",
"author": "Konstantin Käfer <[email protected]>",
"licenses": [ { "type": "BSD" } ],

"main": "./utf7",

"dependencies": {
"semver": "~5.3.0"
},

"devDependencies": {
"tape": "~4.6.0"
},

"scripts": {
"test": "tape test/*.js"
"name": "utf7",
"version": "1.0.4",
"description": "Converts text to and from UTF-7 (RFC 2152 and IMAP)",
"author": "Konstantin Käfer <[email protected]>",
"licenses": [
{
"type": "BSD"
}
],
"main": "./utf7",
"dependencies": {
"semver": "~5.3.0"
},
"devDependencies": {
"tape": "~4.6.0"
},
"scripts": {
"test": "tape test/*.js"
}
}
4 changes: 2 additions & 2 deletions utf7.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var Buffer = require('buffer').Buffer;
var semver = require('semver');

if (semver.gte(process.version, '6.0.0')) {
if (semver.gte(process.version || '6.0.0', '6.0.0')) {
function allocateAsciiBuffer(length) {
return Buffer.alloc(length, 'ascii');
}
Expand All @@ -27,7 +27,7 @@ function encode(str) {
return b.toString('base64').replace(/=+$/, '');
}

if (semver.gte(process.version, '6.0.0')) {
if (semver.gte(process.version || '6.0.0', '6.0.0')) {
function allocateBase64Buffer(str) {
return Buffer.from(str, 'base64');
}
Expand Down