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

blessed

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blessed - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

8

lib/widgets/image.js

@@ -28,7 +28,7 @@ /**

options = options || {};
options.itype = options.itype || 'ansi';
options.type = options.itype || options.type || 'ansi';
Box.call(this, options);
if (options.itype === 'ansi' && this.type !== 'ansiimage') {
if (options.type === 'ansi' && this.type !== 'ansiimage') {
var ANSIImage = require('./ansiimage');

@@ -44,3 +44,3 @@ Object.getOwnPropertyNames(ANSIImage.prototype).forEach(function(key) {

if (options.itype === 'overlay' && this.type !== 'overlayimage') {
if (options.type === 'overlay' && this.type !== 'overlayimage') {
var OverlayImage = require('./overlayimage');

@@ -56,3 +56,3 @@ Object.getOwnPropertyNames(OverlayImage.prototype).forEach(function(key) {

throw new Error('`itype` must either be `ansi` or `overlay`.');
throw new Error('`type` must either be `ansi` or `overlay`.');
}

@@ -59,0 +59,0 @@

@@ -160,3 +160,3 @@ /**

, prev = this.items[this.items.length - 1]
, drawn = prev ? prev.aleft + prev.width : 0
, drawn
, cmd

@@ -166,4 +166,9 @@ , title

if (!this.screen.autoPadding) {
drawn += this.ileft;
if (!this.parent) {
drawn = 0;
} else {
drawn = prev ? prev.aleft + prev.width : 0
if (!this.screen.autoPadding) {
drawn += this.ileft;
}
}

@@ -170,0 +175,0 @@

@@ -5,3 +5,3 @@ {

"author": "Christopher Jeffrey",
"version": "0.1.11",
"version": "0.1.12",
"main": "./lib/blessed.js",

@@ -8,0 +8,0 @@ "bin": "./bin/tput.js",

@@ -935,10 +935,14 @@ /**

this._lastBmp = [];
for (y = 0; y < frame.fctl.height; y++) {
line = [];
for (x = 0; x < frame.fctl.width; x++) {
p = this._curBmp[yo + y][xo + x];
line.push({ r: p.r, g: p.g, b: p.b, a: p.a });
if (frame.fctl.disposeOp === 2) {
this._lastBmp = [];
for (y = 0; y < frame.fctl.height; y++) {
line = [];
for (x = 0; x < frame.fctl.width; x++) {
p = this._curBmp[yo + y][xo + x];
line.push({ r: p.r, g: p.g, b: p.b, a: p.a });
}
this._lastBmp.push(line);
}
this._lastBmp.push(line);
} else {
this._lastBmp = null;
}

@@ -1058,2 +1062,3 @@

, i
, control
, disposeOp;

@@ -1079,3 +1084,4 @@

// http://www.w3.org/Graphics/GIF/spec-gif89a.txt
disposeOp = Math.max(0, (gif.disposeMethod || 0) - 1);
control = img.control || gif;
disposeOp = Math.max(0, (control.disposeMethod || 0) - 1);
if (disposeOp > 2) disposeOp = 0;

@@ -1089,3 +1095,3 @@ this.frames.push({

yOffset: img.top,
delayNum: gif.delay,
delayNum: control.delay,
delayDen: 100,

@@ -1092,0 +1098,0 @@ disposeOp: disposeOp,

Sorry, the diff of this file is too big to display

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