New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

circular-linked-list

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circular-linked-list - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

.babelrc

2

dist/circular-linked-list.js

@@ -1,2 +0,2 @@

var t=require("./List"),e=require("./Node"),r=function(t){function r(){t.apply(this,arguments)}t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r;var n={_last:{configurable:!0},head:{configurable:!0},last:{configurable:!0},length:{configurable:!0}};return n._last.get=function(){return this._traverse(this._head,this.length-1)},n.head.get=function(){return this.isEmpty()?void 0:this._head.value},n.last.get=function(){return this.isEmpty()?void 0:this._last.value},n.length.get=function(){return this._length},r.prototype._arrayify=function(t){return Array.isArray(t)?t:[t]},r.prototype._isValid=function(t){return t>=0&&t<this.length},r.prototype._traverse=function(t,e){return t.next!==this._head&&e>0?this._traverse(t.next,e-1):t},r.prototype._getNode=function(t){return this._traverse(this._head,t)},r.prototype._addHead=function(t){var r=this._head,n=new e({value:t});return this._head=n,this._head.next=0===this.length?n:r,this._length+=1,this._last.next=this._head,this},r.prototype._addNode=function(t,r){void 0===r&&(r=this.length);var n=new e({value:t}),i=this._getNode(r-1);return n.next=i.next,this._length+=1,i.next=n,this},r.prototype._removeHead=function(){var t=this._head;return this._last.next=t.next,this._head=this._last.next,t.next=null,this._length-=1,this},r.prototype._removeNode=function(t){var e=this._getNode(t);return this._getNode(t-1).next=e.next,e.next=null,this._length-=1,this},r.prototype._swap=function(t,e,r){var n,i=this._getNode(e-1);return t.value=(n=[i.value,t.value])[0],i.value=n[1],r>0?this._swap(t.next,e-1,r-1):this},r.prototype._map=function(t,e){return void 0===e&&(e=this._head),e.value=t(e.value),e.next===this._head?this:this._map(t,e.next)},r.prototype._forEach=function(t,e){return void 0===e&&(e=this._head),e.next!==this._head?(t(e.value),this._forEach(t,e.next)):t(e.value)},r.prototype.isEmpty=function(){return!this._head&&!this._length},r.prototype.prepend=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return e.forEach(function(e){return t._addHead(e)}),this},r.prototype.insert=function(t){var e=this,r=t.index;return void 0===r&&(r=this.length),this._arrayify(t.value).forEach(function(t){return r<=0?e._addHead(t):e._addNode(t,r)}),this},r.prototype.append=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return e.forEach(function(e){return t.isEmpty()?t._addHead(e):t._addNode(e)}),this},r.prototype.node=function(t){if(this._isValid(t))return this._getNode(t)},r.prototype.set=function(t){var e=t.value,r=t.index;if(!this._isValid(r))throw new Error("List index out of bounds");return this._getNode(r).value=e,this},r.prototype.get=function(t){if(this._isValid(t))return this._getNode(t).value},r.prototype.remove=function(t){if(void 0===t&&(t=this.length-1),this._isValid(t))return 0===t?1===this.length?this.clear():this._removeHead():this._removeNode(t)},r.prototype.forEach=function(t){if(0!==this.length)return this._forEach(t)},r.prototype.toArray=function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},r.prototype.map=function(t){var e=new r;return 0===this.length?e:(e.append.apply(e,this.toArray()),e._map(t))},r.prototype.join=function(t){return this.toArray().join(t)},r.prototype.reverse=function(){if(this.isEmpty())return this;var t=Math.floor(this.length/2)-1;return this._swap(this._head,this.length,t)},r.prototype.clear=function(){return this._head=null,this._length=0,this},Object.defineProperties(r.prototype,n),r}(t);module.exports=r;
var t=function(t){void 0===t&&(t={}),this._value=t.value,this._next=null},e={next:{configurable:!0},value:{configurable:!0}};e.next.get=function(){return this._next},e.next.set=function(t){this._next=t},e.value.get=function(){return this._value},e.value.set=function(t){this._value=t},Object.defineProperties(t.prototype,e);var n=function(e){function n(){e.apply(this,arguments)}e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n;var i={_last:{configurable:!0},head:{configurable:!0},last:{configurable:!0},length:{configurable:!0}};return i._last.get=function(){return this._traverse(this._head,this.length-1)},i.head.get=function(){return this.isEmpty()?void 0:this._head.value},i.last.get=function(){return this.isEmpty()?void 0:this._last.value},i.length.get=function(){return this._length},n.prototype._arrayify=function(t){return Array.isArray(t)?t:[t]},n.prototype._isValid=function(t){return t>=0&&t<this.length},n.prototype._traverse=function(t,e){return t.next!==this._head&&e>0?this._traverse(t.next,e-1):t},n.prototype._getNode=function(t){return this._traverse(this._head,t)},n.prototype._addHead=function(e){var n=this._head,i=new t({value:e});return this._head=i,this._head.next=0===this.length?i:n,this._length+=1,this._last.next=this._head,this},n.prototype._addNode=function(e,n){void 0===n&&(n=this.length);var i=new t({value:e}),r=this._getNode(n-1);return i.next=r.next,this._length+=1,r.next=i,this},n.prototype._removeHead=function(){var t=this._head;return this._last.next=t.next,this._head=this._last.next,t.next=null,this._length-=1,this},n.prototype._removeNode=function(t){var e=this._getNode(t);return this._getNode(t-1).next=e.next,e.next=null,this._length-=1,this},n.prototype._swap=function(t,e,n){var i,r=this._getNode(e-1);return t.value=(i=[r.value,t.value])[0],r.value=i[1],n>0?this._swap(t.next,e-1,n-1):this},n.prototype._map=function(t,e){return void 0===e&&(e=this._head),e.value=t(e.value),e.next===this._head?this:this._map(t,e.next)},n.prototype._forEach=function(t,e){return void 0===e&&(e=this._head),e.next!==this._head?(t(e.value),this._forEach(t,e.next)):t(e.value)},n.prototype.isEmpty=function(){return!this._head&&!this._length},n.prototype.prepend=function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){return t._addHead(e)}),this},n.prototype.insert=function(t){var e=this,n=t.index;return void 0===n&&(n=this.length),this._arrayify(t.value).forEach(function(t){return n<=0?e._addHead(t):e._addNode(t,n)}),this},n.prototype.append=function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){return t.isEmpty()?t._addHead(e):t._addNode(e)}),this},n.prototype.node=function(t){if(this._isValid(t))return this._getNode(t)},n.prototype.set=function(t){var e=t.value,n=t.index;if(!this._isValid(n))throw new Error("List index out of bounds");return this._getNode(n).value=e,this},n.prototype.get=function(t){if(this._isValid(t))return this._getNode(t).value},n.prototype.remove=function(t){if(void 0===t&&(t=this.length-1),this._isValid(t))return 0===t?1===this.length?this.clear():this._removeHead():this._removeNode(t)},n.prototype.forEach=function(t){if(0!==this.length)return this._forEach(t)},n.prototype.toArray=function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},n.prototype.map=function(t){var e=new n;return 0===this.length?e:(e.append.apply(e,this.toArray()),e._map(t))},n.prototype.join=function(t){return this.toArray().join(t)},n.prototype.reverse=function(){if(this.isEmpty())return this;var t=Math.floor(this.length/2)-1;return this._swap(this._head,this.length,t)},n.prototype.clear=function(){return this._head=null,this._length=0,this},Object.defineProperties(n.prototype,i),n}(function(){this._head=null,this._length=0});module.exports=n;
//# sourceMappingURL=circular-linked-list.js.map

@@ -1,2 +0,2 @@

var t=require("./List"),e=require("./Node"),r=function(t){function r(){t.apply(this,arguments)}t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r;var n={_last:{configurable:!0},head:{configurable:!0},last:{configurable:!0},length:{configurable:!0}};return n._last.get=function(){return this._traverse(this._head,this.length-1)},n.head.get=function(){return this.isEmpty()?void 0:this._head.value},n.last.get=function(){return this.isEmpty()?void 0:this._last.value},n.length.get=function(){return this._length},r.prototype._arrayify=function(t){return Array.isArray(t)?t:[t]},r.prototype._isValid=function(t){return t>=0&&t<this.length},r.prototype._traverse=function(t,e){return t.next!==this._head&&e>0?this._traverse(t.next,e-1):t},r.prototype._getNode=function(t){return this._traverse(this._head,t)},r.prototype._addHead=function(t){var r=this._head,n=new e({value:t});return this._head=n,this._head.next=0===this.length?n:r,this._length+=1,this._last.next=this._head,this},r.prototype._addNode=function(t,r){void 0===r&&(r=this.length);var n=new e({value:t}),i=this._getNode(r-1);return n.next=i.next,this._length+=1,i.next=n,this},r.prototype._removeHead=function(){var t=this._head;return this._last.next=t.next,this._head=this._last.next,t.next=null,this._length-=1,this},r.prototype._removeNode=function(t){var e=this._getNode(t);return this._getNode(t-1).next=e.next,e.next=null,this._length-=1,this},r.prototype._swap=function(t,e,r){var n,i=this._getNode(e-1);return t.value=(n=[i.value,t.value])[0],i.value=n[1],r>0?this._swap(t.next,e-1,r-1):this},r.prototype._map=function(t,e){return void 0===e&&(e=this._head),e.value=t(e.value),e.next===this._head?this:this._map(t,e.next)},r.prototype._forEach=function(t,e){return void 0===e&&(e=this._head),e.next!==this._head?(t(e.value),this._forEach(t,e.next)):t(e.value)},r.prototype.isEmpty=function(){return!this._head&&!this._length},r.prototype.prepend=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return e.forEach(function(e){return t._addHead(e)}),this},r.prototype.insert=function(t){var e=this,r=t.index;return void 0===r&&(r=this.length),this._arrayify(t.value).forEach(function(t){return r<=0?e._addHead(t):e._addNode(t,r)}),this},r.prototype.append=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return e.forEach(function(e){return t.isEmpty()?t._addHead(e):t._addNode(e)}),this},r.prototype.node=function(t){if(this._isValid(t))return this._getNode(t)},r.prototype.set=function(t){var e=t.value,r=t.index;if(!this._isValid(r))throw new Error("List index out of bounds");return this._getNode(r).value=e,this},r.prototype.get=function(t){if(this._isValid(t))return this._getNode(t).value},r.prototype.remove=function(t){if(void 0===t&&(t=this.length-1),this._isValid(t))return 0===t?1===this.length?this.clear():this._removeHead():this._removeNode(t)},r.prototype.forEach=function(t){if(0!==this.length)return this._forEach(t)},r.prototype.toArray=function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},r.prototype.map=function(t){var e=new r;return 0===this.length?e:(e.append.apply(e,this.toArray()),e._map(t))},r.prototype.join=function(t){return this.toArray().join(t)},r.prototype.reverse=function(){if(this.isEmpty())return this;var t=Math.floor(this.length/2)-1;return this._swap(this._head,this.length,t)},r.prototype.clear=function(){return this._head=null,this._length=0,this},Object.defineProperties(r.prototype,n),r}(t);module.exports=r;
var t=function(t){void 0===t&&(t={}),this._value=t.value,this._next=null},e={next:{configurable:!0},value:{configurable:!0}};e.next.get=function(){return this._next},e.next.set=function(t){this._next=t},e.value.get=function(){return this._value},e.value.set=function(t){this._value=t},Object.defineProperties(t.prototype,e);export default function(e){function n(){e.apply(this,arguments)}e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n;var i={_last:{configurable:!0},head:{configurable:!0},last:{configurable:!0},length:{configurable:!0}};return i._last.get=function(){return this._traverse(this._head,this.length-1)},i.head.get=function(){return this.isEmpty()?void 0:this._head.value},i.last.get=function(){return this.isEmpty()?void 0:this._last.value},i.length.get=function(){return this._length},n.prototype._arrayify=function(t){return Array.isArray(t)?t:[t]},n.prototype._isValid=function(t){return t>=0&&t<this.length},n.prototype._traverse=function(t,e){return t.next!==this._head&&e>0?this._traverse(t.next,e-1):t},n.prototype._getNode=function(t){return this._traverse(this._head,t)},n.prototype._addHead=function(e){var n=this._head,i=new t({value:e});return this._head=i,this._head.next=0===this.length?i:n,this._length+=1,this._last.next=this._head,this},n.prototype._addNode=function(e,n){void 0===n&&(n=this.length);var i=new t({value:e}),r=this._getNode(n-1);return i.next=r.next,this._length+=1,r.next=i,this},n.prototype._removeHead=function(){var t=this._head;return this._last.next=t.next,this._head=this._last.next,t.next=null,this._length-=1,this},n.prototype._removeNode=function(t){var e=this._getNode(t);return this._getNode(t-1).next=e.next,e.next=null,this._length-=1,this},n.prototype._swap=function(t,e,n){var i,r=this._getNode(e-1);return t.value=(i=[r.value,t.value])[0],r.value=i[1],n>0?this._swap(t.next,e-1,n-1):this},n.prototype._map=function(t,e){return void 0===e&&(e=this._head),e.value=t(e.value),e.next===this._head?this:this._map(t,e.next)},n.prototype._forEach=function(t,e){return void 0===e&&(e=this._head),e.next!==this._head?(t(e.value),this._forEach(t,e.next)):t(e.value)},n.prototype.isEmpty=function(){return!this._head&&!this._length},n.prototype.prepend=function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){return t._addHead(e)}),this},n.prototype.insert=function(t){var e=this,n=t.index;return void 0===n&&(n=this.length),this._arrayify(t.value).forEach(function(t){return n<=0?e._addHead(t):e._addNode(t,n)}),this},n.prototype.append=function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){return t.isEmpty()?t._addHead(e):t._addNode(e)}),this},n.prototype.node=function(t){if(this._isValid(t))return this._getNode(t)},n.prototype.set=function(t){var e=t.value,n=t.index;if(!this._isValid(n))throw new Error("List index out of bounds");return this._getNode(n).value=e,this},n.prototype.get=function(t){if(this._isValid(t))return this._getNode(t).value},n.prototype.remove=function(t){if(void 0===t&&(t=this.length-1),this._isValid(t))return 0===t?1===this.length?this.clear():this._removeHead():this._removeNode(t)},n.prototype.forEach=function(t){if(0!==this.length)return this._forEach(t)},n.prototype.toArray=function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},n.prototype.map=function(t){var e=new n;return 0===this.length?e:(e.append.apply(e,this.toArray()),e._map(t))},n.prototype.join=function(t){return this.toArray().join(t)},n.prototype.reverse=function(){if(this.isEmpty())return this;var t=Math.floor(this.length/2)-1;return this._swap(this._head,this.length,t)},n.prototype.clear=function(){return this._head=null,this._length=0,this},Object.defineProperties(n.prototype,i),n}(function(){this._head=null,this._length=0});
//# sourceMappingURL=circular-linked-list.m.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e():"function"==typeof define&&define.amd?define(e):e()}(0,function(){var t=require("./List"),e=require("./Node"),n=function(t){function n(){t.apply(this,arguments)}t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n;var r={_last:{configurable:!0},head:{configurable:!0},last:{configurable:!0},length:{configurable:!0}};return r._last.get=function(){return this._traverse(this._head,this.length-1)},r.head.get=function(){return this.isEmpty()?void 0:this._head.value},r.last.get=function(){return this.isEmpty()?void 0:this._last.value},r.length.get=function(){return this._length},n.prototype._arrayify=function(t){return Array.isArray(t)?t:[t]},n.prototype._isValid=function(t){return t>=0&&t<this.length},n.prototype._traverse=function(t,e){return t.next!==this._head&&e>0?this._traverse(t.next,e-1):t},n.prototype._getNode=function(t){return this._traverse(this._head,t)},n.prototype._addHead=function(t){var n=this._head,r=new e({value:t});return this._head=r,this._head.next=0===this.length?r:n,this._length+=1,this._last.next=this._head,this},n.prototype._addNode=function(t,n){void 0===n&&(n=this.length);var r=new e({value:t}),i=this._getNode(n-1);return r.next=i.next,this._length+=1,i.next=r,this},n.prototype._removeHead=function(){var t=this._head;return this._last.next=t.next,this._head=this._last.next,t.next=null,this._length-=1,this},n.prototype._removeNode=function(t){var e=this._getNode(t);return this._getNode(t-1).next=e.next,e.next=null,this._length-=1,this},n.prototype._swap=function(t,e,n){var r,i=this._getNode(e-1);return t.value=(r=[i.value,t.value])[0],i.value=r[1],n>0?this._swap(t.next,e-1,n-1):this},n.prototype._map=function(t,e){return void 0===e&&(e=this._head),e.value=t(e.value),e.next===this._head?this:this._map(t,e.next)},n.prototype._forEach=function(t,e){return void 0===e&&(e=this._head),e.next!==this._head?(t(e.value),this._forEach(t,e.next)):t(e.value)},n.prototype.isEmpty=function(){return!this._head&&!this._length},n.prototype.prepend=function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){return t._addHead(e)}),this},n.prototype.insert=function(t){var e=this,n=t.index;return void 0===n&&(n=this.length),this._arrayify(t.value).forEach(function(t){return n<=0?e._addHead(t):e._addNode(t,n)}),this},n.prototype.append=function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){return t.isEmpty()?t._addHead(e):t._addNode(e)}),this},n.prototype.node=function(t){if(this._isValid(t))return this._getNode(t)},n.prototype.set=function(t){var e=t.value,n=t.index;if(!this._isValid(n))throw new Error("List index out of bounds");return this._getNode(n).value=e,this},n.prototype.get=function(t){if(this._isValid(t))return this._getNode(t).value},n.prototype.remove=function(t){if(void 0===t&&(t=this.length-1),this._isValid(t))return 0===t?1===this.length?this.clear():this._removeHead():this._removeNode(t)},n.prototype.forEach=function(t){if(0!==this.length)return this._forEach(t)},n.prototype.toArray=function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},n.prototype.map=function(t){var e=new n;return 0===this.length?e:(e.append.apply(e,this.toArray()),e._map(t))},n.prototype.join=function(t){return this.toArray().join(t)},n.prototype.reverse=function(){if(this.isEmpty())return this;var t=Math.floor(this.length/2)-1;return this._swap(this._head,this.length,t)},n.prototype.clear=function(){return this._head=null,this._length=0,this},Object.defineProperties(n.prototype,r),n}(t);module.exports=n});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.circularLinkedList=e()}(this,function(){var t=function(t){void 0===t&&(t={}),this._value=t.value,this._next=null},e={next:{configurable:!0},value:{configurable:!0}};return e.next.get=function(){return this._next},e.next.set=function(t){this._next=t},e.value.get=function(){return this._value},e.value.set=function(t){this._value=t},Object.defineProperties(t.prototype,e),function(e){function n(){e.apply(this,arguments)}e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n;var i={_last:{configurable:!0},head:{configurable:!0},last:{configurable:!0},length:{configurable:!0}};return i._last.get=function(){return this._traverse(this._head,this.length-1)},i.head.get=function(){return this.isEmpty()?void 0:this._head.value},i.last.get=function(){return this.isEmpty()?void 0:this._last.value},i.length.get=function(){return this._length},n.prototype._arrayify=function(t){return Array.isArray(t)?t:[t]},n.prototype._isValid=function(t){return t>=0&&t<this.length},n.prototype._traverse=function(t,e){return t.next!==this._head&&e>0?this._traverse(t.next,e-1):t},n.prototype._getNode=function(t){return this._traverse(this._head,t)},n.prototype._addHead=function(e){var n=this._head,i=new t({value:e});return this._head=i,this._head.next=0===this.length?i:n,this._length+=1,this._last.next=this._head,this},n.prototype._addNode=function(e,n){void 0===n&&(n=this.length);var i=new t({value:e}),r=this._getNode(n-1);return i.next=r.next,this._length+=1,r.next=i,this},n.prototype._removeHead=function(){var t=this._head;return this._last.next=t.next,this._head=this._last.next,t.next=null,this._length-=1,this},n.prototype._removeNode=function(t){var e=this._getNode(t);return this._getNode(t-1).next=e.next,e.next=null,this._length-=1,this},n.prototype._swap=function(t,e,n){var i,r=this._getNode(e-1);return t.value=(i=[r.value,t.value])[0],r.value=i[1],n>0?this._swap(t.next,e-1,n-1):this},n.prototype._map=function(t,e){return void 0===e&&(e=this._head),e.value=t(e.value),e.next===this._head?this:this._map(t,e.next)},n.prototype._forEach=function(t,e){return void 0===e&&(e=this._head),e.next!==this._head?(t(e.value),this._forEach(t,e.next)):t(e.value)},n.prototype.isEmpty=function(){return!this._head&&!this._length},n.prototype.prepend=function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){return t._addHead(e)}),this},n.prototype.insert=function(t){var e=this,n=t.index;return void 0===n&&(n=this.length),this._arrayify(t.value).forEach(function(t){return n<=0?e._addHead(t):e._addNode(t,n)}),this},n.prototype.append=function(){for(var t=this,e=[],n=arguments.length;n--;)e[n]=arguments[n];return e.forEach(function(e){return t.isEmpty()?t._addHead(e):t._addNode(e)}),this},n.prototype.node=function(t){if(this._isValid(t))return this._getNode(t)},n.prototype.set=function(t){var e=t.value,n=t.index;if(!this._isValid(n))throw new Error("List index out of bounds");return this._getNode(n).value=e,this},n.prototype.get=function(t){if(this._isValid(t))return this._getNode(t).value},n.prototype.remove=function(t){if(void 0===t&&(t=this.length-1),this._isValid(t))return 0===t?1===this.length?this.clear():this._removeHead():this._removeNode(t)},n.prototype.forEach=function(t){if(0!==this.length)return this._forEach(t)},n.prototype.toArray=function(){var t=[];return this.forEach(function(e){return t.push(e)}),t},n.prototype.map=function(t){var e=new n;return 0===this.length?e:(e.append.apply(e,this.toArray()),e._map(t))},n.prototype.join=function(t){return this.toArray().join(t)},n.prototype.reverse=function(){if(this.isEmpty())return this;var t=Math.floor(this.length/2)-1;return this._swap(this._head,this.length,t)},n.prototype.clear=function(){return this._head=null,this._length=0,this},Object.defineProperties(n.prototype,i),n}(function(){this._head=null,this._length=0})});
//# sourceMappingURL=circular-linked-list.umd.js.map
{
"testMatch": ["**/test/**/*.js"]
"testMatch": ["**/test/**/*.js"],
"transform": {
"^.+\\.jsx?$": "babel-jest"
}
}
{
"name": "circular-linked-list",
"version": "0.0.4",
"version": "0.0.5",
"description": "Circular singly linked list, heavily based on Singlie by Klaus Sinani.",

@@ -25,2 +25,5 @@ "main": "dist/circular-linked-list.js",

"devDependencies": {
"babel-core": "^6.26.3",
"babel-jest": "^23.4.0",
"babel-preset-env": "^1.7.0",
"eslint": "^5.1.0",

@@ -27,0 +30,0 @@ "eslint-config-airbnb-base": "^13.0.0",

@@ -25,4 +25,4 @@ // MIT License

// Modules
const List = require('./List');
const Node = require('./Node');
import List from './List';
import Node from './Node';

@@ -238,2 +238,2 @@ class CircularLinkedList extends List {

module.exports = CircularLinkedList;
export default CircularLinkedList;

@@ -31,2 +31,2 @@ // MIT License

module.exports = List;
export default List;

@@ -47,2 +47,2 @@ // MIT License

module.exports = Node;
export default Node;

@@ -25,3 +25,3 @@ // MIT License

// Modules
const CircularLinkedList = require('../src/');
import CircularLinkedList from '../src';

@@ -28,0 +28,0 @@ const list = new CircularLinkedList();

@@ -25,4 +25,4 @@ // MIT License

// Modules
const CircularLinkedList = require('../src/');
const Node = require('../src/Node');
import CircularLinkedList from '../src';
import Node from '../src/Node';

@@ -29,0 +29,0 @@ const list = new CircularLinkedList();

@@ -25,4 +25,4 @@ // MIT License

// Vendor
const CircularLinkedList = require('../src/');
const Node = require('../src/Node');
import CircularLinkedList from '../src';
import Node from '../src/Node';

@@ -29,0 +29,0 @@ const list = new CircularLinkedList();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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