Socket
Socket
Sign inDemoInstall

metal

Package Overview
Dependencies
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metal - npm Package Compare versions

Comparing version 2.6.0 to 2.6.4

3

lib/array/array.js

@@ -28,2 +28,5 @@ 'use strict';

value: function equal(arr1, arr2) {
if (arr1 === arr2) {
return true;
}
if (arr1.length !== arr2.length) {

@@ -30,0 +33,0 @@ return false;

41

lib/async/async.js

@@ -11,5 +11,2 @@ /*!

});
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var async = {};

@@ -190,25 +187,19 @@

if (typeof Channel !== 'undefined') {
var _ret = function () {
var channel = new Channel();
// Use a fifo linked list to call callbacks in the right order.
var head = {};
var tail = head;
channel.port1.onmessage = function () {
head = head.next;
var cb = head.cb;
head.cb = null;
cb();
var channel = new Channel();
// Use a fifo linked list to call callbacks in the right order.
var head = {};
var tail = head;
channel.port1.onmessage = function () {
head = head.next;
var cb = head.cb;
head.cb = null;
cb();
};
return function (cb) {
tail.next = {
cb: cb
};
return {
v: function v(cb) {
tail.next = {
cb: cb
};
tail = tail.next;
channel.port2.postMessage(0);
}
};
}();
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
tail = tail.next;
channel.port2.postMessage(0);
};
}

@@ -215,0 +206,0 @@ // Implementation for IE6-8: Script elements fire an asynchronous

@@ -26,2 +26,3 @@ 'use strict';

exports.isDocument = isDocument;
exports.isDocumentFragment = isDocumentFragment;
exports.isElement = isElement;

@@ -231,2 +232,11 @@ exports.isFunction = isFunction;

/**
* Returns true if value is a document-fragment.
* @param {*} val
* @return {boolean}
*/
function isDocumentFragment(val) {
return val && (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && val.nodeType === 11;
}
/**
* Returns true if value is a dom element.

@@ -233,0 +243,0 @@ * @param {*} val

{
"name": "metal",
"version": "2.6.0",
"version": "2.6.4",
"description": "Core functions from Metal.js, with utilities for dealing with arrays, objects and others.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

@@ -13,2 +13,5 @@ 'use strict';

static equal(arr1, arr2) {
if (arr1 === arr2) {
return true;
}
if (arr1.length !== arr2.length) {

@@ -15,0 +18,0 @@ return false;

@@ -204,2 +204,11 @@ 'use strict';

/**
* Returns true if value is a document-fragment.
* @param {*} val
* @return {boolean}
*/
export function isDocumentFragment(val) {
return val && typeof val === 'object' && val.nodeType === 11;
}
/**
* Returns true if value is a dom element.

@@ -206,0 +215,0 @@ * @param {*} val

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