Socket
Socket
Sign inDemoInstall

stack-ds

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

5

index.js
/**
* New node file
* stack-ds
* A simple stack library
* Copyright (c) 2016 Skevos Papamichail
*/

@@ -110,2 +112,3 @@

this.copy = function(other){
if(!Stack.isStack(other)) return null;
_max_size = other.getMaxSize();

@@ -112,0 +115,0 @@ _data = [];

2

package.json
{
"name": "stack-ds",
"version": "1.0.0",
"version": "1.0.1",
"description": "A simple stack data structure.",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -43,2 +43,4 @@

* **.toArray()** - Exports an array with stacks's data. `mystack.toArray();`
## TEST

@@ -45,0 +47,0 @@

@@ -106,2 +106,6 @@ var Stack = require('../');

});
it('The Stack should be full', function(){
assert.equal(true,s.isFull());
});
it('The size of stack should be 4', function(){

@@ -108,0 +112,0 @@ assert.equal(4,s.size());

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