Socket
Socket
Sign inDemoInstall

alamid-list

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alamid-list - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

plugins/watch.js

8

lib/List.js

@@ -269,3 +269,3 @@ "use strict";

/**
* @type {string}
* @type {String}
*/

@@ -281,3 +281,2 @@ AddEvent.prototype.name = "add";

/**
* The previous value
* @type {*}

@@ -288,3 +287,2 @@ */

/**
* The previous value
* @type {Number}

@@ -301,3 +299,3 @@ */

/**
* @type {string}
* @type {String}
*/

@@ -313,3 +311,2 @@ RemoveEvent.prototype.name = "remove";

/**
* The previous value
* @type {*}

@@ -320,3 +317,2 @@ */

/**
* The previous value
* @type {Number}

@@ -323,0 +319,0 @@ */

{
"name": "alamid-list",
"version": "0.1.2",
"version": "0.1.3",
"description": "Simple observable arrays",

@@ -5,0 +5,0 @@ "main": "./lib/List.js",

@@ -15,3 +15,4 @@ "use strict";

function emit() {}
function removeAllListeners() {}
function on() {}
function removeListener() {}

@@ -22,3 +23,4 @@ it("should set the given config", function () {

emit: emit,
removeAllListeners: removeAllListeners
on: on,
removeListener: removeListener
}

@@ -28,3 +30,4 @@ });

expect(List.prototype.config.events.emit).to.equal(emit);
expect(List.prototype.config.events.removeAllListeners).to.equal(removeAllListeners);
expect(List.prototype.config.events.on).to.equal(on);
expect(List.prototype.config.events.removeListener).to.equal(removeListener);
});

@@ -116,3 +119,6 @@

it("should return the internal array", function () {
expect(list.toArray()).to.be.an.instanceof(Array);
arr = list.toArray();
expect(arr).to.be.an.instanceof(Array);
list.push(1);
expect(arr).to.eql([1]);
});

@@ -119,0 +125,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