Socket
Socket
Sign inDemoInstall

@blackglory/structures

Package Overview
Dependencies
1
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.9 to 0.1.10

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

### [0.1.10](https://github.com/BlackGlory/structures/compare/v0.1.9...v0.1.10) (2021-02-03)
### [0.1.9](https://github.com/BlackGlory/structures/compare/v0.1.8...v0.1.9) (2021-01-20)

@@ -7,0 +9,0 @@

@@ -29,2 +29,4 @@ (function (global, factory) {

var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function createCommonjsModule(fn) {

@@ -35,3 +37,3 @@ var module = { exports: {} };

var es2018 = createCommonjsModule(function (module, exports) {
var customError = createCommonjsModule(function (module, exports) {
exports.CustomError = void 0;

@@ -47,2 +49,31 @@ class CustomError extends Error {

var normalize_1 = createCommonjsModule(function (module, exports) {
exports.normalize = void 0;
function normalize(err) {
var _a;
return {
name: err.name,
message: err.message,
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
};
}
exports.normalize = normalize;
});
var es2018 = createCommonjsModule(function (module, exports) {
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};__exportStar(customError, exports);
__exportStar(normalize_1, exports);
});
var _items;

@@ -49,0 +80,0 @@ class Queue {

2

dist/es2015/index.umd.min.js

@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Structures={})}(this,(function(e){"use strict";

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function t(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}var s,r,i,n=function(e){var t={exports:{}};return e(t,t.exports),t.exports}((function(e,t){t.CustomError=void 0;class s extends Error{get name(){return this.constructor.name}}t.CustomError=s}));s=new WeakMap;class o extends n.CustomError{constructor(){super("Queue is empty.")}}class h{constructor(e){this.hash=e,r.set(this,new Map)}add(e){return t(this,r).set(this.hash(e),e),this}delete(e){return t(this,r).delete(this.hash(e))}has(e){return t(this,r).has(this.hash(e))}clear(){t(this,r).clear()}values(){return t(this,r).values()}get size(){return t(this,r).size}get[(r=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}[Symbol.iterator](){return t(this,r).values()}}i=new WeakMap,e.Emitter=class{constructor(){i.set(this,new Map)}on(e,s){t(this,i).has(e)||t(this,i).set(e,new Set);t(this,i).get(e).add(s)}off(e,s){if(t(this,i).has(e)){const r=t(this,i).get(e);r.delete(s),0===r.size&&t(this,i).delete(e)}}emit(e,s){if(t(this,i).has(e)){t(this,i).get(e).forEach((e=>e(s)))}}},e.EmptyQueueError=o,e.HashSet=h,e.Queue=class{constructor(){s.set(this,[])}empty(){t(this,s).length=0}enqueue(...e){t(this,s).push(...e)}dequeue(){if(0===this.size)throw new o;return t(this,s).shift()}get size(){return t(this,s).length}},Object.defineProperty(e,"__esModule",{value:!0})}));
***************************************************************************** */function t(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var r,i,o,a=n((function(e,t){t.CustomError=void 0;class s extends Error{get name(){return this.constructor.name}}t.CustomError=s})),u=n((function(e,t){t.normalize=void 0,t.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}}})),h=n((function(e,t){var n=s&&s.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=s&&s.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};r(a,t),r(u,t)}));r=new WeakMap;class c extends h.CustomError{constructor(){super("Queue is empty.")}}class l{constructor(e){this.hash=e,i.set(this,new Map)}add(e){return t(this,i).set(this.hash(e),e),this}delete(e){return t(this,i).delete(this.hash(e))}has(e){return t(this,i).has(this.hash(e))}clear(){t(this,i).clear()}values(){return t(this,i).values()}get size(){return t(this,i).size}get[(i=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}[Symbol.iterator](){return t(this,i).values()}}o=new WeakMap,e.Emitter=class{constructor(){o.set(this,new Map)}on(e,s){t(this,o).has(e)||t(this,o).set(e,new Set);t(this,o).get(e).add(s)}off(e,s){if(t(this,o).has(e)){const n=t(this,o).get(e);n.delete(s),0===n.size&&t(this,o).delete(e)}}emit(e,s){if(t(this,o).has(e)){t(this,o).get(e).forEach((e=>e(s)))}}},e.EmptyQueueError=c,e.HashSet=l,e.Queue=class{constructor(){r.set(this,[])}empty(){t(this,r).length=0}enqueue(...e){t(this,r).push(...e)}dequeue(){if(0===this.size)throw new c;return t(this,r).shift()}get size(){return t(this,r).length}},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map

@@ -29,2 +29,4 @@ (function (global, factory) {

var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function createCommonjsModule(fn) {

@@ -35,3 +37,3 @@ var module = { exports: {} };

var es2018 = createCommonjsModule(function (module, exports) {
var customError = createCommonjsModule(function (module, exports) {
exports.CustomError = void 0;

@@ -47,2 +49,31 @@ class CustomError extends Error {

var normalize_1 = createCommonjsModule(function (module, exports) {
exports.normalize = void 0;
function normalize(err) {
var _a;
return {
name: err.name,
message: err.message,
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
};
}
exports.normalize = normalize;
});
var es2018 = createCommonjsModule(function (module, exports) {
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};__exportStar(customError, exports);
__exportStar(normalize_1, exports);
});
var _items;

@@ -49,0 +80,0 @@ class Queue {

@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Structures={})}(this,(function(e){"use strict";

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function t(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}var s,r,i,n=function(e){var t={exports:{}};return e(t,t.exports),t.exports}((function(e,t){t.CustomError=void 0;class s extends Error{get name(){return this.constructor.name}}t.CustomError=s}));s=new WeakMap;class o extends n.CustomError{constructor(){super("Queue is empty.")}}class h{constructor(e){this.hash=e,r.set(this,new Map)}add(e){return t(this,r).set(this.hash(e),e),this}delete(e){return t(this,r).delete(this.hash(e))}has(e){return t(this,r).has(this.hash(e))}clear(){t(this,r).clear()}values(){return t(this,r).values()}get size(){return t(this,r).size}get[(r=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}[Symbol.iterator](){return t(this,r).values()}}i=new WeakMap,e.Emitter=class{constructor(){i.set(this,new Map)}on(e,s){t(this,i).has(e)||t(this,i).set(e,new Set);t(this,i).get(e).add(s)}off(e,s){if(t(this,i).has(e)){const r=t(this,i).get(e);r.delete(s),0===r.size&&t(this,i).delete(e)}}emit(e,s){if(t(this,i).has(e)){t(this,i).get(e).forEach((e=>e(s)))}}},e.EmptyQueueError=o,e.HashSet=h,e.Queue=class{constructor(){s.set(this,[])}empty(){t(this,s).length=0}enqueue(...e){t(this,s).push(...e)}dequeue(){if(0===this.size)throw new o;return t(this,s).shift()}get size(){return t(this,s).length}},Object.defineProperty(e,"__esModule",{value:!0})}));
***************************************************************************** */function t(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var r,i,o,a=n((function(e,t){t.CustomError=void 0;class s extends Error{get name(){return this.constructor.name}}t.CustomError=s})),u=n((function(e,t){t.normalize=void 0,t.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}}})),h=n((function(e,t){var n=s&&s.__createBinding||(Object.create?function(e,t,s,n){void 0===n&&(n=s),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,n){void 0===n&&(n=s),e[n]=t[s]}),r=s&&s.__exportStar||function(e,t){for(var s in e)"default"===s||Object.prototype.hasOwnProperty.call(t,s)||n(t,e,s)};r(a,t),r(u,t)}));r=new WeakMap;class c extends h.CustomError{constructor(){super("Queue is empty.")}}class l{constructor(e){this.hash=e,i.set(this,new Map)}add(e){return t(this,i).set(this.hash(e),e),this}delete(e){return t(this,i).delete(this.hash(e))}has(e){return t(this,i).has(this.hash(e))}clear(){t(this,i).clear()}values(){return t(this,i).values()}get size(){return t(this,i).size}get[(i=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}[Symbol.iterator](){return t(this,i).values()}}o=new WeakMap,e.Emitter=class{constructor(){o.set(this,new Map)}on(e,s){t(this,o).has(e)||t(this,o).set(e,new Set);t(this,o).get(e).add(s)}off(e,s){if(t(this,o).has(e)){const n=t(this,o).get(e);n.delete(s),0===n.size&&t(this,o).delete(e)}}emit(e,s){if(t(this,o).has(e)){t(this,o).get(e).forEach((e=>e(s)))}}},e.EmptyQueueError=c,e.HashSet=l,e.Queue=class{constructor(){r.set(this,[])}empty(){t(this,r).length=0}enqueue(...e){t(this,r).push(...e)}dequeue(){if(0===this.size)throw new c;return t(this,r).shift()}get size(){return t(this,r).length}},Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map
{
"name": "@blackglory/structures",
"version": "0.1.9",
"version": "0.1.10",
"description": "",

@@ -5,0 +5,0 @@ "files": [

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

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc