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

utf7

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utf7 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

package.json
{
"name": "utf7",
"version": "1.0.1",
"version": "1.0.2",
"description": "Converts text to and from UTF-7 (RFC 2152 and IMAP)",

@@ -10,4 +10,8 @@ "author": "Konstantin Käfer <kkaefer@gmail.com>",

"dependencies": {
"semver": "~5.3.0"
},
"devDependencies": {
"tape" : "~4.6.0"
"tape": "~4.6.0"
},

@@ -14,0 +18,0 @@

var Buffer = require('buffer').Buffer;
var semver = require('semver');
if (process.version >= 'v6.0.0') {
if (semver.gte(process.version, '6.0.0')) {
function allocateAsciiBuffer(length) {
return Buffer.alloc(length, encoding='ascii');
return Buffer.alloc(length, 'ascii');
}

@@ -29,5 +30,5 @@ } else {

if (process.version >= 'v6.0.0') {
if (semver.gte(process.version, '6.0.0')) {
function allocateBase64Buffer(str) {
return Buffer.from(str, encoding='base64');
return Buffer.from(str, 'base64');
}

@@ -34,0 +35,0 @@ } else {

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