Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blackglory/structures

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackglory/structures - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

2

CHANGELOG.md

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

### [0.1.12](https://github.com/BlackGlory/structures/compare/v0.1.11...v0.1.12) (2021-02-04)
### [0.1.11](https://github.com/BlackGlory/structures/compare/v0.1.10...v0.1.11) (2021-02-03)

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

@@ -47,2 +47,20 @@ (function (global, factory) {

var expectedError = createCommonjsModule(function (module, exports) {
exports.ExpectedError = void 0;
class ExpectedError extends customError.CustomError {
}
exports.ExpectedError = ExpectedError;
});
var assertionError = createCommonjsModule(function (module, exports) {
exports.AssertionError = void 0;
class AssertionError extends customError.CustomError {
}
exports.AssertionError = AssertionError;
});
var normalize_1 = createCommonjsModule(function (module, exports) {

@@ -62,2 +80,24 @@ exports.normalize = void 0;

var refute_1 = createCommonjsModule(function (module, exports) {
exports.refute = void 0;
function refute(condition, message) {
if (condition)
throw new expectedError.ExpectedError(message);
}
exports.refute = refute;
});
var assert_1 = createCommonjsModule(function (module, exports) {
exports.assert = void 0;
function assert(condition, message) {
if (!condition)
throw new assertionError.AssertionError(message);
}
exports.assert = assert;
});
var es2018 = createCommonjsModule(function (module, exports) {

@@ -74,3 +114,7 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {

};__exportStar(customError, exports);
__exportStar(expectedError, exports);
__exportStar(assertionError, exports);
__exportStar(normalize_1, exports);
__exportStar(refute_1, exports);
__exportStar(assert_1, exports);

@@ -77,0 +121,0 @@ });

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

@@ -47,2 +47,20 @@ (function (global, factory) {

var expectedError = createCommonjsModule(function (module, exports) {
exports.ExpectedError = void 0;
class ExpectedError extends customError.CustomError {
}
exports.ExpectedError = ExpectedError;
});
var assertionError = createCommonjsModule(function (module, exports) {
exports.AssertionError = void 0;
class AssertionError extends customError.CustomError {
}
exports.AssertionError = AssertionError;
});
var normalize_1 = createCommonjsModule(function (module, exports) {

@@ -62,2 +80,24 @@ exports.normalize = void 0;

var refute_1 = createCommonjsModule(function (module, exports) {
exports.refute = void 0;
function refute(condition, message) {
if (condition)
throw new expectedError.ExpectedError(message);
}
exports.refute = refute;
});
var assert_1 = createCommonjsModule(function (module, exports) {
exports.assert = void 0;
function assert(condition, message) {
if (!condition)
throw new assertionError.AssertionError(message);
}
exports.assert = assert;
});
var es2018 = createCommonjsModule(function (module, exports) {

@@ -74,3 +114,7 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {

};__exportStar(customError, exports);
__exportStar(expectedError, exports);
__exportStar(assertionError, exports);
__exportStar(normalize_1, exports);
__exportStar(refute_1, exports);
__exportStar(assert_1, exports);

@@ -77,0 +121,0 @@ });

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

@@ -69,4 +69,4 @@ "files": [

"dependencies": {
"@blackglory/errors": "^0.1.4"
"@blackglory/errors": "^1.1.2"
}
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc