Socket
Socket
Sign inDemoInstall

cpim

Package Overview
Dependencies
4
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

32

dist/cpim.js
/*
* cpim v3.0.1
* cpim v3.0.2
* JavaScript implementation of CPIM "Common Presence and Instant Messaging" (RFC 3862)

@@ -1270,3 +1270,3 @@ * Copyright 2015 Iñaki Baz Castillo at eFace2Face, inc. (https://eface2face.com)

Entity.prototype.toString = function () {
Entity.prototype.toString = function (options) {
var

@@ -1279,9 +1279,18 @@ raw = '',

// MIME headers.
for (name in this._headers) {
if (this._headers.hasOwnProperty(name)) {
header = this._headers[name];
options = options || {
noHeaders: false
};
raw += name + ': ' + header.value + '\r\n';
if (!options.noHeaders) {
// MIME headers.
for (name in this._headers) {
if (this._headers.hasOwnProperty(name)) {
header = this._headers[name];
raw += name + ': ' + header.value + '\r\n';
}
}
// Separator line.
raw += '\r\n';
}

@@ -1294,9 +1303,10 @@

for (i = 0, len = this._body.length; i < len; i++) {
raw += '\r\n--' + boundary + '\r\n' + this._body[i].toString();
if (i > 0) {
raw += '\r\n';
}
raw += '--' + boundary + '\r\n' + this._body[i].toString();
}
raw += '\r\n--' + boundary + '--';
} else if (this._body) {
raw += '\r\n' + this._body.toString();
} else {
raw += '\r\n';
raw += this._body.toString();
}

@@ -1303,0 +1313,0 @@

{
"name": "cpim",
"version": "3.0.1",
"version": "3.0.2",
"description": "JavaScript implementation of CPIM \"Common Presence and Instant Messaging\" (RFC 3862)",

@@ -23,6 +23,6 @@ "author": "Iñaki Baz Castillo at eFace2Face, inc. (https://eface2face.com)",

"debug": "^2.2.0",
"mimemessage": "^1.0.0"
"mimemessage": "^1.0.2"
},
"devDependencies": {
"browserify": "^11.0.1",
"browserify": "^11.2.0",
"eventcollector": "^0.1.5",

@@ -32,5 +32,5 @@ "expect.js": "^0.3.1",

"gulp-filelog": "^0.4.1",
"gulp-header": "^1.2.2",
"gulp-jscs": "^2.0.0",
"gulp-jscs-stylish": "^1.1.1",
"gulp-header": "^1.7.1",
"gulp-jscs": "^3.0.1",
"gulp-jscs-stylish": "^1.2.1",
"gulp-jshint": "^1.11.2",

@@ -37,0 +37,0 @@ "gulp-mocha": "^2.1.3",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc