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

@glimmer/util

Package Overview
Dependencies
Maintainers
12
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/util - npm Package Compare versions

Comparing version 0.79.2 to 0.79.3

32

dist/commonjs/es2017/index.js

@@ -13,9 +13,5 @@ "use strict";

dict: true,
DictSet: true,
isDict: true,
isObject: true,
Stack: true,
NonemptyStack: true,
ensureGuid: true,
initializeGuid: true,
isSerializationFirstNode: true,

@@ -57,8 +53,2 @@ SERIALIZATION_FIRST_NODE_STRING: true,

});
Object.defineProperty(exports, "DictSet", {
enumerable: true,
get: function () {
return _collections.DictSet;
}
});
Object.defineProperty(exports, "isDict", {

@@ -82,20 +72,2 @@ enumerable: true,

});
Object.defineProperty(exports, "NonemptyStack", {
enumerable: true,
get: function () {
return _collections.NonemptyStackImpl;
}
});
Object.defineProperty(exports, "ensureGuid", {
enumerable: true,
get: function () {
return _guid.ensureGuid;
}
});
Object.defineProperty(exports, "initializeGuid", {
enumerable: true,
get: function () {
return _guid.initializeGuid;
}
});
Object.defineProperty(exports, "isSerializationFirstNode", {

@@ -229,4 +201,2 @@ enumerable: true,

var _guid = require("./lib/guid");
var _isSerializationFirstNode = require("./lib/is-serialization-first-node");

@@ -344,2 +314,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3V0aWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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VyZW50aWF0ZSBub3JtYWwgbG9ncyBmcm9tXG4gKiBlcnJhbnQgY29uc29sZS5sb2dzLiBMT0dHRVIgY2FuIGJlIHVzZWQgb3V0c2lkZSBvZiBMT0NBTF9TSE9VTERfTE9HIGNoZWNrcyxcbiAqIGFuZCBpcyBtZWFudCB0byBiZSB1c2VkIGluIHRoZSByYXJlIHNpdHVhdGlvbiB3aGVyZSBhIGNvbnNvbGUuKiBjYWxsIGlzXG4gKiBhY3R1YWxseSBhcHByb3ByaWF0ZS5cbiAqL1xuZXhwb3J0IGNvbnN0IExPR0dFUiA9IGNvbnNvbGU7XG5cbmV4cG9ydCBmdW5jdGlvbiBhc3NlcnROZXZlcih2YWx1ZTogbmV2ZXIsIGRlc2MgPSAndW5leHBlY3RlZCB1bnJlYWNoYWJsZSBicmFuY2gnKTogbmV2ZXIge1xuICBMT0dHRVIubG9nKCd1bnJlYWNoYWJsZScsIHZhbHVlKTtcbiAgTE9HR0VSLmxvZyhgJHtkZXNjfSA6OiAke0pTT04uc3RyaW5naWZ5KHZhbHVlKX0gKCR7dmFsdWV9KWApO1xuXG4gIHRocm93IG5ldyBFcnJvcihgY29kZSByZWFjaGVkIHVucmVhY2hhYmxlYCk7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9

@@ -9,6 +9,4 @@ "use strict";

exports.isObject = isObject;
exports.NonemptyStackImpl = exports.StackImpl = exports.DictSet = void 0;
exports.StackImpl = void 0;
var _guid = require("./guid");
function dict() {

@@ -26,20 +24,2 @@ return Object.create(null);

class DictSet {
constructor() {
this.dict = dict();
}
add(obj) {
if (typeof obj === 'string') this.dict[obj] = obj;else this.dict[(0, _guid.ensureGuid)(obj)] = obj;
return this;
}
delete(obj) {
if (typeof obj === 'string') delete this.dict[obj];else if (obj._guid) delete this.dict[obj._guid];
}
}
exports.DictSet = DictSet;
class StackImpl {

@@ -83,46 +63,2 @@ constructor(values = []) {

exports.StackImpl = StackImpl;
class NonemptyStackImpl {
constructor(values) {
this.stack = values;
this.current = values[values.length - 1];
}
get size() {
return this.stack.length;
}
push(item) {
this.current = item;
this.stack.push(item);
}
pop() {
if (this.stack.length === 1) {
throw new Error(`cannot pop the last element of a NonemptyStack`);
}
let item = this.stack.pop();
let len = this.stack.length;
this.current = this.stack[len - 1];
return item;
}
nth(from) {
let len = this.stack.length;
return from >= len ? null : this.stack[from];
}
nthBack(from) {
let len = this.stack.length;
return len < from ? null : this.stack[len - from];
}
toArray() {
return this.stack;
}
}
exports.NonemptyStackImpl = NonemptyStackImpl;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3V0aWwvbGliL2NvbGxlY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFDQTs7QUFPTSxTQUFBLElBQUEsR0FBYztBQUNsQixTQUFPLE1BQU0sQ0FBTixNQUFBLENBQVAsSUFBTyxDQUFQO0FBQ0Q7O0FBRUssU0FBQSxNQUFBLENBQUEsQ0FBQSxFQUF3QjtBQUM1QixTQUFPLENBQUMsS0FBRCxJQUFBLElBQWMsQ0FBQyxLQUF0QixTQUFBO0FBQ0Q7O0FBRUssU0FBQSxRQUFBLENBQUEsQ0FBQSxFQUEwQjtBQUM5QixTQUFPLE9BQUEsQ0FBQSxLQUFBLFVBQUEsSUFBNEIsT0FBQSxDQUFBLEtBQUEsUUFBQSxJQUF5QixDQUFDLEtBQTdELElBQUE7QUFDRDs7QUFJSyxNQUFBLE9BQUEsQ0FBYztBQUdsQixFQUFBLFdBQUEsR0FBQTtBQUNFLFNBQUEsSUFBQSxHQUFZLElBQVosRUFBQTtBQUNEOztBQUVELEVBQUEsR0FBRyxDQUFBLEdBQUEsRUFBTztBQUNSLFFBQUksT0FBQSxHQUFBLEtBQUosUUFBQSxFQUE2QixLQUFBLElBQUEsQ0FBQSxHQUFBLElBQTdCLEd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RoaXMuc3RhY2subGVuZ3RoID09PSAwO1xuICB9XG5cbiAgdG9BcnJheSgpOiBUW10ge1xuICAgIHJldHVybiB0aGlzLnN0YWNrO1xuICB9XG59XG4iXSwic291cmNlUm9vdCI6IiJ9

@@ -13,9 +13,5 @@ "use strict";

dict: true,
DictSet: true,
isDict: true,
isObject: true,
Stack: true,
NonemptyStack: true,
ensureGuid: true,
initializeGuid: true,
isSerializationFirstNode: true,

@@ -57,8 +53,2 @@ SERIALIZATION_FIRST_NODE_STRING: true,

});
Object.defineProperty(exports, "DictSet", {
enumerable: true,
get: function () {
return _collections.DictSet;
}
});
Object.defineProperty(exports, "isDict", {

@@ -82,20 +72,2 @@ enumerable: true,

});
Object.defineProperty(exports, "NonemptyStack", {
enumerable: true,
get: function () {
return _collections.NonemptyStackImpl;
}
});
Object.defineProperty(exports, "ensureGuid", {
enumerable: true,
get: function () {
return _guid.ensureGuid;
}
});
Object.defineProperty(exports, "initializeGuid", {
enumerable: true,
get: function () {
return _guid.initializeGuid;
}
});
Object.defineProperty(exports, "isSerializationFirstNode", {

@@ -229,4 +201,2 @@ enumerable: true,

var _guid = require("./lib/guid");
var _isSerializationFirstNode = require("./lib/is-serialization-first-node");

@@ -348,2 +318,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3V0aWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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ICogZm9yIHN0cmlwcGluZy5cbiAqL1xuZXhwb3J0IGNvbnN0IExPQ0FMX0xPR0dFUiA9IGNvbnNvbGU7XG5cbi8qKlxuICogVGhpcyBjb25zdGFudCBleGlzdHMgdG8gbWFrZSBpdCBlYXNpZXIgdG8gZGlmZmVyZW50aWF0ZSBub3JtYWwgbG9ncyBmcm9tXG4gKiBlcnJhbnQgY29uc29sZS5sb2dzLiBMT0dHRVIgY2FuIGJlIHVzZWQgb3V0c2lkZSBvZiBMT0NBTF9TSE9VTERfTE9HIGNoZWNrcyxcbiAqIGFuZCBpcyBtZWFudCB0byBiZSB1c2VkIGluIHRoZSByYXJlIHNpdHVhdGlvbiB3aGVyZSBhIGNvbnNvbGUuKiBjYWxsIGlzXG4gKiBhY3R1YWxseSBhcHByb3ByaWF0ZS5cbiAqL1xuZXhwb3J0IGNvbnN0IExPR0dFUiA9IGNvbnNvbGU7XG5cbmV4cG9ydCBmdW5jdGlvbiBhc3NlcnROZXZlcih2YWx1ZTogbmV2ZXIsIGRlc2MgPSAndW5leHBlY3RlZCB1bnJlYWNoYWJsZSBicmFuY2gnKTogbmV2ZXIge1xuICBMT0dHRVIubG9nKCd1bnJlYWNoYWJsZScsIHZhbHVlKTtcbiAgTE9HR0VSLmxvZyhgJHtkZXNjfSA6OiAke0pTT04uc3RyaW5naWZ5KHZhbHVlKX0gKCR7dmFsdWV9KWApO1xuXG4gIHRocm93IG5ldyBFcnJvcihgY29kZSByZWFjaGVkIHVucmVhY2hhYmxlYCk7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9

@@ -9,6 +9,4 @@ "use strict";

exports.isObject = isObject;
exports.NonemptyStackImpl = exports.StackImpl = exports.DictSet = void 0;
exports.StackImpl = void 0;
var _guid = require("./guid");
function _defineProperties(target, props) {

@@ -42,23 +40,2 @@ for (var i = 0; i < props.length; i++) {

var DictSet = /*#__PURE__*/function () {
function DictSet() {
this.dict = dict();
}
var _proto = DictSet.prototype;
_proto.add = function add(obj) {
if (typeof obj === 'string') this.dict[obj] = obj;else this.dict[(0, _guid.ensureGuid)(obj)] = obj;
return this;
};
_proto["delete"] = function _delete(obj) {
if (typeof obj === 'string') delete this.dict[obj];else if (obj._guid) delete this.dict[obj._guid];
};
return DictSet;
}();
exports.DictSet = DictSet;
var StackImpl = /*#__PURE__*/function () {

@@ -74,5 +51,5 @@ function StackImpl(values) {

var _proto2 = StackImpl.prototype;
var _proto = StackImpl.prototype;
_proto2.push = function push(item) {
_proto.push = function push(item) {
this.current = item;

@@ -82,3 +59,3 @@ this.stack.push(item);

_proto2.pop = function pop() {
_proto.pop = function pop() {
var item = this.stack.pop();

@@ -90,3 +67,3 @@ var len = this.stack.length;

_proto2.nth = function nth(from) {
_proto.nth = function nth(from) {
var len = this.stack.length;

@@ -96,7 +73,7 @@ return len < from ? null : this.stack[len - from];

_proto2.isEmpty = function isEmpty() {
_proto.isEmpty = function isEmpty() {
return this.stack.length === 0;
};
_proto2.toArray = function toArray() {
_proto.toArray = function toArray() {
return this.stack;

@@ -116,52 +93,2 @@ };

exports.StackImpl = StackImpl;
var NonemptyStackImpl = /*#__PURE__*/function () {
function NonemptyStackImpl(values) {
this.stack = values;
this.current = values[values.length - 1];
}
var _proto3 = NonemptyStackImpl.prototype;
_proto3.push = function push(item) {
this.current = item;
this.stack.push(item);
};
_proto3.pop = function pop() {
if (this.stack.length === 1) {
throw new Error("cannot pop the last element of a NonemptyStack");
}
var item = this.stack.pop();
var len = this.stack.length;
this.current = this.stack[len - 1];
return item;
};
_proto3.nth = function nth(from) {
var len = this.stack.length;
return from >= len ? null : this.stack[from];
};
_proto3.nthBack = function nthBack(from) {
var len = this.stack.length;
return len < from ? null : this.stack[len - from];
};
_proto3.toArray = function toArray() {
return this.stack;
};
_createClass(NonemptyStackImpl, [{
key: "size",
get: function get() {
return this.stack.length;
}
}]);
return NonemptyStackImpl;
}();
exports.NonemptyStackImpl = NonemptyStackImpl;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJ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NrLmxlbmd0aDtcbiAgfVxuXG4gIHB1c2goaXRlbTogVCkge1xuICAgIHRoaXMuY3VycmVudCA9IGl0ZW07XG4gICAgdGhpcy5zdGFjay5wdXNoKGl0ZW0pO1xuICB9XG5cbiAgcG9wKCk6IFQge1xuICAgIGlmICh0aGlzLnN0YWNrLmxlbmd0aCA9PT0gMSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBjYW5ub3QgcG9wIHRoZSBsYXN0IGVsZW1lbnQgb2YgYSBOb25lbXB0eVN0YWNrYCk7XG4gICAgfVxuXG4gICAgbGV0IGl0ZW0gPSB0aGlzLnN0YWNrLnBvcCgpITtcbiAgICBsZXQgbGVuID0gdGhpcy5zdGFjay5sZW5ndGg7XG4gICAgdGhpcy5jdXJyZW50ID0gdGhpcy5zdGFja1tsZW4gLSAxXTtcblxuICAgIHJldHVybiBpdGVtO1xuICB9XG5cbiAgbnRoKGZyb206IDApOiBUO1xuICBudGgoZnJvbTogbnVtYmVyKTogT3B0aW9uPFQ+O1xuICBudGgoZnJvbTogbnVtYmVyKTogT3B0aW9uPFQ+IHtcbiAgICBsZXQgbGVuID0gdGhpcy5zdGFjay5sZW5ndGg7XG4gICAgcmV0dXJuIGZyb20gPj0gbGVuID8gbnVsbCA6IHRoaXMuc3RhY2tbZnJvbV07XG4gIH1cblxuICBudGhCYWNrKGZyb206IG51bWJlcik6IE9wdGlvbjxUPiB7XG4gICAgbGV0IGxlbiA9IHRoaXMuc3RhY2subGVuZ3RoO1xuICAgIHJldHVybiBsZW4gPCBmcm9tID8gbnVsbCA6IHRoaXMuc3RhY2tbbGVuIC0gZnJvbV07XG4gIH1cblxuICB0b0FycmF5KCk6IFtULCAuLi5UW11dIHtcbiAgICByZXR1cm4gdGhpcy5zdGFjaztcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy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ycmVudCA9IGxlbiA9PT0gMCA/IG51bGwgOiB0aGlzLnN0YWNrW2xlbiAtIDFdO1xuXG4gICAgcmV0dXJuIGl0ZW0gPT09IHVuZGVmaW5lZCA/IG51bGwgOiBpdGVtO1xuICB9XG5cbiAgbnRoKGZyb206IG51bWJlcik6IE9wdGlvbjxUPiB7XG4gICAgbGV0IGxlbiA9IHRoaXMuc3RhY2subGVuZ3RoO1xuICAgIHJldHVybiBsZW4gPCBmcm9tID8gbnVsbCA6IHRoaXMuc3RhY2tbbGVuIC0gZnJvbV07XG4gIH1cblxuICBpc0VtcHR5KCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiB0aGlzLnN0YWNrLmxlbmd0aCA9PT0gMDtcbiAgfVxuXG4gIHRvQXJyYXkoKTogVFtdIHtcbiAgICByZXR1cm4gdGhpcy5zdGFjaztcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIifQ==

5

dist/modules/es2017/index.js
export * from './lib/array-utils';
export { default as assert, deprecate } from './lib/assert';
export { dict, DictSet, isDict, isObject, StackImpl as Stack, NonemptyStackImpl as NonemptyStack } from './lib/collections';
export { dict, isDict, isObject, StackImpl as Stack } from './lib/collections';
export * from './lib/dom';
export { ensureGuid, initializeGuid } from './lib/guid';
export { isSerializationFirstNode, SERIALIZATION_FIRST_NODE_STRING } from './lib/is-serialization-first-node';

@@ -42,2 +41,2 @@ export { assign, fillNulls, values } from './lib/object-utils';

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3V0aWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBZDtBQUNBLFNBQVMsT0FBTyxJQUFJLE1BQXBCLEVBQTRCLFNBQTVCLFFBQTZDLGNBQTdDO0FBQ0EsU0FDRSxJQURGLEVBRUUsT0FGRixFQUdFLE1BSEYsRUFJ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GJlIHVzZWQgaW4gdGhlIHJhcmUgc2l0dWF0aW9uIHdoZXJlIGEgY29uc29sZS4qIGNhbGwgaXNcbiAqIGFjdHVhbGx5IGFwcHJvcHJpYXRlLlxuICovXG5leHBvcnQgY29uc3QgTE9HR0VSID0gY29uc29sZTtcblxuZXhwb3J0IGZ1bmN0aW9uIGFzc2VydE5ldmVyKHZhbHVlOiBuZXZlciwgZGVzYyA9ICd1bmV4cGVjdGVkIHVucmVhY2hhYmxlIGJyYW5jaCcpOiBuZXZlciB7XG4gIExPR0dFUi5sb2coJ3VucmVhY2hhYmxlJywgdmFsdWUpO1xuICBMT0dHRVIubG9nKGAke2Rlc2N9IDo6ICR7SlNPTi5zdHJpbmdpZnkodmFsdWUpfSAoJHt2YWx1ZX0pYCk7XG5cbiAgdGhyb3cgbmV3IEVycm9yKGBjb2RlIHJlYWNoZWQgdW5yZWFjaGFibGVgKTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=

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

import { ensureGuid } from './guid';
export function dict() {

@@ -11,17 +10,2 @@ return Object.create(null);

}
export class DictSet {
constructor() {
this.dict = dict();
}
add(obj) {
if (typeof obj === 'string') this.dict[obj] = obj;else this.dict[ensureGuid(obj)] = obj;
return this;
}
delete(obj) {
if (typeof obj === 'string') delete this.dict[obj];else if (obj._guid) delete this.dict[obj._guid];
}
}
export class StackImpl {

@@ -63,43 +47,2 @@ constructor(values = []) {

}
export class NonemptyStackImpl {
constructor(values) {
this.stack = values;
this.current = values[values.length - 1];
}
get size() {
return this.stack.length;
}
push(item) {
this.current = item;
this.stack.push(item);
}
pop() {
if (this.stack.length === 1) {
throw new Error(`cannot pop the last element of a NonemptyStack`);
}
let item = this.stack.pop();
let len = this.stack.length;
this.current = this.stack[len - 1];
return item;
}
nth(from) {
let len = this.stack.length;
return from >= len ? null : this.stack[from];
}
nthBack(from) {
let len = this.stack.length;
return len < from ? null : this.stack[len - from];
}
toArray() {
return this.stack;
}
}
//# sourceMappingURL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WVudHMgU3RhY2s8VD4ge1xuICBwcml2YXRlIHN0YWNrOiBUW107XG4gIHB1YmxpYyBjdXJyZW50OiBPcHRpb248VD4gPSBudWxsO1xuXG4gIGNvbnN0cnVjdG9yKHZhbHVlczogVFtdID0gW10pIHtcbiAgICB0aGlzLnN0YWNrID0gdmFsdWVzO1xuICB9XG5cbiAgcHVibGljIGdldCBzaXplKCkge1xuICAgIHJldHVybiB0aGlzLnN0YWNrLmxlbmd0aDtcbiAgfVxuXG4gIHB1c2goaXRlbTogVCkge1xuICAgIHRoaXMuY3VycmVudCA9IGl0ZW07XG4gICAgdGhpcy5zdGFjay5wdXNoKGl0ZW0pO1xuICB9XG5cbiAgcG9wKCk6IE9wdGlvbjxUPiB7XG4gICAgbGV0IGl0ZW0gPSB0aGlzLnN0YWNrLnBvcCgpO1xuICAgIGxldCBsZW4gPSB0aGlzLnN0YWNrLmxlbmd0aDtcbiAgICB0aGlzLmN1cnJlbnQgPSBsZW4gPT09IDAgPyBudWxsIDogdGhpcy5zdGFja1tsZW4gLSAxXTtcblxuICAgIHJldHVybiBpdGVtID09PSB1bmRlZmluZWQgPyBudWxsIDogaXRlbTtcbiAgfVxuXG4gIG50aChmcm9tOiBudW1iZXIpOiBPcHRpb248VD4ge1xuICAgIGxldCBsZW4gPSB0aGlzLnN0YWNrLmxlbmd0aDtcbiAgICByZXR1cm4gbGVuIDwgZnJvbSA/IG51bGwgOiB0aGlzLnN0YWNrW2xlbiAtIGZyb21dO1xuICB9XG5cbiAgaXNFbXB0eSgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gdGhpcy5zdGFjay5sZW5ndGggPT09IDA7XG4gIH1cblxuICB0b0FycmF5KCk6IFRbXSB7XG4gICAgcmV0dXJuIHRoaXMuc3RhY2s7XG4gIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=
export * from './lib/array-utils';
export { default as assert, deprecate } from './lib/assert';
export { dict, DictSet, isDict, isObject, StackImpl as Stack, NonemptyStackImpl as NonemptyStack } from './lib/collections';
export { dict, isDict, isObject, StackImpl as Stack } from './lib/collections';
export * from './lib/dom';
export { ensureGuid, initializeGuid } from './lib/guid';
export { isSerializationFirstNode, SERIALIZATION_FIRST_NODE_STRING } from './lib/is-serialization-first-node';

@@ -46,2 +45,2 @@ export { assign, fillNulls, values } from './lib/object-utils';

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3V0aWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBQSxtQkFBQTtBQUNBLFNBQVMsT0FBTyxJQUFoQixNQUFBLEVBQUEsU0FBQSxRQUFBLGNBQUE7QUFDQSxTQUFBLElBQUEsRUFBQSxPQUFBLEVBQUEsTUFBQSxFQUFBLFFBQUEsRUFNRSxTQUFTLElBTlgsS0FBQSxFQU9FLGlCQUFpQixJQVBuQixhQUFBLFFBQUEsbUJBQUE7QUFTQSxjQUFBLFdBQUE7QUFDQSxTQUFBLFVBQUEsRUFBQSxjQUFBLFFBQUEsWUFBQTtBQUNBLFNBQUEsd0JBQUEsRUFBQSwrQkFBQSxRQUFBLG1DQUFBO0FBSUEsU0FBQSxNQUFBLEVBQUEsU0FBQSxFQUFBLE1BQUEsUUFBQSxvQkFBQTtBQUNBLGNBQUEsc0JBQUE7QUFDQSxjQUFBLGNBQUE7QUFDQSxjQUFBLGlCQUFBO0FBQ0EsY0FBQSxnQkFBQTtBQUNBLFNBQVMsT0FBTyxJQUFoQixRQUFBLFFBQUEsZ0JBQUE7QUFDQSxTQUFBLFlBQUEsRUFBQSxhQUFBLEVBQUEsU0FBQSxRQUFBLG1CQUFBO0FBQ0EsY0FBQSxlQUFBO0FBQ0EsU0FBUyxPQUFPLElBQWhCLE1BQUEsUUFBQSxjQUFBO0FBRUEsU0FBUyxPQUFPLElBQWhCLG9CQUFBLFFBQUEsd0JBQUE7Q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fTE9HIGNoZWNrLlxuICpcbiAqIEl0IGRvZXMgbm90IGFsbGV2aWF0ZSB0aGUgbmVlZCB0byBjaGVjayBMT0NBTF9TSE9VTERfTE9HLCB3aGljaCBpcyB1c2VkXG4gKiBmb3Igc3RyaXBwaW5nLlxuICovXG5leHBvcnQgY29uc3QgTE9DQUxfTE9HR0VSID0gY29uc29sZTtcblxuLyoqXG4gKiBUaGlzIGNvbnN0YW50IGV4aXN0cyB0byBtYWtlIGl0IGVhc2llciB0byBkaWZmZXJlbnRpYXRlIG5vcm1hbCBsb2dzIGZyb21cbiAqIGVycmFudCBjb25zb2xlLmxvZ3MuIExPR0dFUiBjYW4gYmUgdXNlZCBvdXRzaWRlIG9mIExPQ0FMX1NIT1VMRF9MT0cgY2hlY2tzLFxuICogYW5kIGlzIG1lYW50IHRvIGJlIHVzZWQgaW4gdGhlIHJhcmUgc2l0dWF0aW9uIHdoZXJlIGEgY29uc29sZS4qIGNhbGwgaXNcbiAqIGFjdHVhbGx5IGFwcHJvcHJpYXRlLlxuICovXG5leHBvcnQgY29uc3QgTE9HR0VSID0gY29uc29sZTtcblxuZXhwb3J0IGZ1bmN0aW9uIGFzc2VydE5ldmVyKHZhbHVlOiBuZXZlciwgZGVzYyA9ICd1bmV4cGVjdGVkIHVucmVhY2hhYmxlIGJyYW5jaCcpOiBuZXZlciB7XG4gIExPR0dFUi5sb2coJ3VucmVhY2hhYmxlJywgdmFsdWUpO1xuICBMT0dHRVIubG9nKGAke2Rlc2N9IDo6ICR7SlNPTi5zdHJpbmdpZnkodmFsdWUpfSAoJHt2YWx1ZX0pYCk7XG5cbiAgdGhyb3cgbmV3IEVycm9yKGBjb2RlIHJlYWNoZWQgdW5yZWFjaGFibGVgKTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0=

@@ -5,3 +5,2 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

import { ensureGuid } from './guid';
export function dict() {

@@ -16,20 +15,2 @@ return Object.create(null);

}
export var DictSet = /*#__PURE__*/function () {
function DictSet() {
this.dict = dict();
}
var _proto = DictSet.prototype;
_proto.add = function add(obj) {
if (typeof obj === 'string') this.dict[obj] = obj;else this.dict[ensureGuid(obj)] = obj;
return this;
};
_proto["delete"] = function _delete(obj) {
if (typeof obj === 'string') delete this.dict[obj];else if (obj._guid) delete this.dict[obj._guid];
};
return DictSet;
}();
export var StackImpl = /*#__PURE__*/function () {

@@ -45,5 +26,5 @@ function StackImpl(values) {

var _proto2 = StackImpl.prototype;
var _proto = StackImpl.prototype;
_proto2.push = function push(item) {
_proto.push = function push(item) {
this.current = item;

@@ -53,3 +34,3 @@ this.stack.push(item);

_proto2.pop = function pop() {
_proto.pop = function pop() {
var item = this.stack.pop();

@@ -61,3 +42,3 @@ var len = this.stack.length;

_proto2.nth = function nth(from) {
_proto.nth = function nth(from) {
var len = this.stack.length;

@@ -67,7 +48,7 @@ return len < from ? null : this.stack[len - from];

_proto2.isEmpty = function isEmpty() {
_proto.isEmpty = function isEmpty() {
return this.stack.length === 0;
};
_proto2.toArray = function toArray() {
_proto.toArray = function toArray() {
return this.stack;

@@ -85,49 +66,2 @@ };

}();
export var NonemptyStackImpl = /*#__PURE__*/function () {
function NonemptyStackImpl(values) {
this.stack = values;
this.current = values[values.length - 1];
}
var _proto3 = NonemptyStackImpl.prototype;
_proto3.push = function push(item) {
this.current = item;
this.stack.push(item);
};
_proto3.pop = function pop() {
if (this.stack.length === 1) {
throw new Error("cannot pop the last element of a NonemptyStack");
}
var item = this.stack.pop();
var len = this.stack.length;
this.current = this.stack[len - 1];
return item;
};
_proto3.nth = function nth(from) {
var len = this.stack.length;
return from >= len ? null : this.stack[from];
};
_proto3.nthBack = function nthBack(from) {
var len = this.stack.length;
return len < from ? null : this.stack[len - from];
};
_proto3.toArray = function toArray() {
return this.stack;
};
_createClass(NonemptyStackImpl, [{
key: "size",
get: function get() {
return this.stack.length;
}
}]);
return NonemptyStackImpl;
}();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3V0aWwvbGliL2NvbGxlY3Rpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFBLFVBQUEsUUFBQSxRQUFBO0FBT0EsT0FBTSxTQUFBLElBQUEsR0FBYztBQUNsQixTQUFPLE1BQU0sQ0FBTixNQUFBLENBQVAsSUFBTyxDQUFQO0FBQ0Q7QUFFRCxPQUFNLFNBQUEsTUFBQSxDQUFBLENBQUEsRUFBd0I7QUFDNUIsU0FBTyxDQUFDLEtBQUQsSUFBQSxJQUFjLENBQUMsS0FBdEIsU0FBQTtBQUNEO0FBRUQsT0FBTSxTQUFBLFFBQUEsQ0FBQSxDQUFBLEVBQTBCO0FBQzlCLFNBQU8sT0FBQSxDQUFBLEtBQUEsVUFBQSxJQUE0QixPQUFBLENBQUEsS0FBQSxRQUFBLElBQXlCLENBQUMsS0FBN0QsSUFBQTtBQUNEO0FBSUQsV0FBTSxPQUFOO0FBR0UscUJBQUE7QUFDRSxTQUFBLElBQUEsR0FBWSxJQUFaLEVBQUE7QUFDRDs7QUFMSDs7QUFBQSxTQU9FLEdBUEYsR0FPRSxhQUFHLEdBQUgsRUFBVTtBQUNSLFFBQUksT0FBQSxHQUFBLEtBQUosUUFBQSxFQUE2QixLQUFBLElBQUEsQ0FBQSxHQUFBLElBQTdCLEdBQTZCLENBQTdCLEtBQ0ssS0FBQSxJQUFBLENBQVUsVUFBVSxDQUFwQixHQUFvQixDQUFwQixJQUFBLEdBQUE7QUFDTCxXQUFBLElBQUE7QUFDRCxHQVhIOztBQUFBLHFCQWFFLGlCQUFNLEdBQU4sRUFBYTtBQUNYLFFBQUksT0FBQSxHQUFBLE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ICBudGgoZnJvbTogbnVtYmVyKTogT3B0aW9uPFQ+IHtcbiAgICBsZXQgbGVuID0gdGhpcy5zdGFjay5sZW5ndGg7XG4gICAgcmV0dXJuIGxlbiA8IGZyb20gPyBudWxsIDogdGhpcy5zdGFja1tsZW4gLSBmcm9tXTtcbiAgfVxuXG4gIGlzRW1wdHkoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuc3RhY2subGVuZ3RoID09PSAwO1xuICB9XG5cbiAgdG9BcnJheSgpOiBUW10ge1xuICAgIHJldHVybiB0aGlzLnN0YWNrO1xuICB9XG59XG4iXSwic291cmNlUm9vdCI6IiJ9
export * from './lib/array-utils';
export { default as assert, deprecate } from './lib/assert';
export { dict, DictSet, isDict, isObject, Set, StackImpl as Stack, NonemptyStackImpl as NonemptyStack, } from './lib/collections';
export { dict, isDict, isObject, StackImpl as Stack } from './lib/collections';
export * from './lib/dom';
export { ensureGuid, HasGuid, initializeGuid } from './lib/guid';
export { isSerializationFirstNode, SERIALIZATION_FIRST_NODE_STRING, } from './lib/is-serialization-first-node';

@@ -7,0 +6,0 @@ export { assign, fillNulls, values } from './lib/object-utils';

@@ -1,17 +0,5 @@

import { Dict, NonemptyStack, Option, Stack } from '@glimmer/interfaces';
import { HasGuid } from './guid';
export interface Set<T> {
add(value: T): Set<T>;
delete(value: T): void;
}
import { Dict, Option, Stack } from '@glimmer/interfaces';
export declare function dict<T = unknown>(): Dict<T>;
export declare function isDict<T>(u: T): u is Dict & T;
export declare function isObject<T>(u: T): u is object & T;
export declare type SetMember = HasGuid | string;
export declare class DictSet<T extends SetMember> implements Set<T> {
private dict;
constructor();
add(obj: T): Set<T>;
delete(obj: T): void;
}
export declare class StackImpl<T> implements Stack<T> {

@@ -28,14 +16,2 @@ private stack;

}
export declare class NonemptyStackImpl<T> implements NonemptyStack<T> {
private stack;
current: T;
constructor(values: [T, ...T[]]);
get size(): number;
push(item: T): void;
pop(): T;
nth(from: 0): T;
nth(from: number): Option<T>;
nthBack(from: number): Option<T>;
toArray(): [T, ...T[]];
}
//# sourceMappingURL=collections.d.ts.map
{
"name": "@glimmer/util",
"version": "0.79.2",
"version": "0.79.3",
"description": "Common utilities used in Glimmer",

@@ -9,7 +9,7 @@ "repository": "https://github.com/tildeio/glimmer/tree/master/packages/@glimmer/util",

"@glimmer/env": "0.1.7",
"@glimmer/interfaces": "0.79.2",
"@glimmer/interfaces": "0.79.3",
"@simple-dom/interface": "^1.4.0"
},
"devDependencies": {
"@glimmer/local-debug-flags": "0.79.2",
"@glimmer/local-debug-flags": "0.79.3",
"@types/qunit": "^2.9.0",

@@ -16,0 +16,0 @@ "@simple-dom/interface": "^1.4.0"

Sorry, the diff of this file is too big to display

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