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

eyes.utils

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eyes.utils - npm Package Compare versions

Comparing version 3.8.0 to 3.8.1

9

package.json
{
"name": "eyes.utils",
"version": "3.8.0",
"version": "3.8.1",
"description": "General purpose Javascript utilities.",

@@ -39,3 +39,2 @@ "keywords": [

"src/",
"test/",
"typings/"

@@ -51,4 +50,4 @@ ],

"@types/node": "*",
"mocha": "^6.1.4",
"typescript": "^3.5.3"
"mocha": "^6.2.2",
"typescript": "^3.6.4"
},

@@ -64,3 +63,3 @@ "scripts": {

},
"gitHead": "9187d7271ee8b54668272841c6e8fdc2dd28bb1f"
"gitHead": "590bf0dbd6be7c4481437874cb3cc674850f20f2"
}

@@ -69,3 +69,3 @@ (function () {

var index, protos = [], proto = from;
while (!!proto) {
while (proto) {
protos.push(Object.getOwnPropertyNames(proto));

@@ -111,3 +111,3 @@ proto = Object.getPrototypeOf(proto);

var copy;
if (null == obj || "object" != typeof obj) {
if (null == obj || "object" !== typeof obj) {
return obj;

@@ -132,3 +132,3 @@ }

copy = obj.constructor();
for (var attr in obj) {
for (var attr of Object.keys(obj)) {
copy[attr] = GeneralUtils.clone(obj[attr]);

@@ -161,13 +161,12 @@ }

var nextSource = arguments[i];
if (nextSource === undefined || nextSource === null) {
continue;
}
nextSource = Object(nextSource);
if (nextSource != null) {
nextSource = Object(nextSource);
var keysArray = Object.keys(Object(nextSource));
for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
var nextKey = keysArray[nextIndex];
var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
if (desc !== undefined && desc.enumerable) {
to[nextKey] = nextSource[nextKey];
var keysArray = Object.keys(nextSource);
for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
var nextKey = keysArray[nextIndex];
var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
if (desc !== undefined && desc.enumerable) {
to[nextKey] = nextSource[nextKey];
}
}

@@ -174,0 +173,0 @@ }

@@ -7,3 +7,3 @@ (function () {

var PREAMBLE = new Buffer("applitools", "utf8");
var PREAMBLE = Buffer.from("applitools", "utf8");
var COMPRESS_BY_RAW_BLOCKS_FORMAT = 3;

@@ -63,3 +63,3 @@ var DEFLATE_BUFFER_RATE = 0.6;

// current channel (might be less than blockSize*blockSize)
var channelBytes = new Buffer(actualBlockHeight * actualBlockWidth);
var channelBytes = Buffer.alloc(actualBlockHeight * actualBlockWidth);
var channelBytesOffset = 0;

@@ -150,3 +150,3 @@

stream.write(PREAMBLE);
stream.write(new Buffer([COMPRESS_BY_RAW_BLOCKS_FORMAT]));
stream.write(Buffer.from([COMPRESS_BY_RAW_BLOCKS_FORMAT]));

@@ -153,0 +153,0 @@ // since we don't have a source ID, we write 0 length (Big endian).

@@ -115,3 +115,3 @@ (function () {

// buf1 has width of dst2 and height of src
var buf1 = new Buffer(wDst2 * hSrc * 4);
var buf1 = Buffer.alloc(wDst2 * hSrc * 4);
for (i = 0; i < hSrc; i++) {

@@ -138,3 +138,3 @@ for (j = 0; j < wDst2; j++) {

// buf2 has width and height of dst2
var buf2 = new Buffer(wDst2 * hDst2 * 4);
var buf2 = Buffer.alloc(wDst2 * hDst2 * 4);
for (i = 0; i < hDst2; i++) {

@@ -235,3 +235,3 @@ for (j = 0; j < wDst2; j++) {

var incrementalImage = {
data: new Buffer(currentWidth * currentHeight * 4),
data: Buffer.alloc(currentWidth * currentHeight * 4),
width: currentWidth,

@@ -257,3 +257,3 @@ height: currentHeight

var dst = {
data: new Buffer(targetWidth * targetHeight * 4),
data: Buffer.alloc(targetWidth * targetHeight * 4),
width: targetWidth,

@@ -312,3 +312,3 @@ height: targetHeight

image.data = new Buffer(croppedArray);
image.data = Buffer.from(croppedArray);
image.width = xEnd - xStart;

@@ -339,3 +339,3 @@ image.height = yEnd - yStart;

while (i > 0) {
var buffer = new Buffer(image.data.length);
var buffer = Buffer.alloc(image.data.length);
var offset = 0;

@@ -342,0 +342,0 @@ for (var x = 0; x < image.width; x++) {

@@ -44,3 +44,3 @@ (function () {

stream.Writable.call(this, options);
this._buffer = new Buffer(0);
this._buffer = Buffer.alloc(0);
};

@@ -60,3 +60,3 @@

// Since chunk could be either a Buffer or a string.
var chunkAsBuffer = Buffer.isBuffer(chunk) ? chunk : new Buffer(chunk, enc);
var chunkAsBuffer = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, enc);
this._buffer = Buffer.concat([this._buffer, chunkAsBuffer]);

@@ -71,3 +71,3 @@ next();

WritableBufferStream.prototype.writeInt = function (value) {
var buf = new Buffer(4);
var buf = Buffer.alloc(4);
buf.writeInt32BE(value, 0);

@@ -82,3 +82,3 @@ return this.write(buf);

WritableBufferStream.prototype.writeShort = function (value) {
var buf = new Buffer(2);
var buf = Buffer.alloc(2);
buf.writeInt16BE(value, 0);

@@ -93,3 +93,3 @@ return this.write(buf);

WritableBufferStream.prototype.writeByte = function (value) {
var buf = new Buffer(1);
var buf = Buffer.alloc(1);
buf.writeInt8(value, 0);

@@ -114,3 +114,3 @@ return this.write(buf);

var buffer = this._buffer;
this._buffer = new Buffer(0);
this._buffer = Buffer.alloc(0);
return buffer;

@@ -117,0 +117,0 @@ };

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