redis 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/.deepsource.toml +0 -9
- package/heroku/index.js +0 -14
- package/heroku/node_modules/.package-lock.json +0 -57
- package/heroku/node_modules/denque/CHANGELOG.md +0 -4
- package/heroku/node_modules/denque/LICENSE +0 -13
- package/heroku/node_modules/denque/README.md +0 -362
- package/heroku/node_modules/denque/index.d.ts +0 -31
- package/heroku/node_modules/denque/index.js +0 -443
- package/heroku/node_modules/denque/package.json +0 -55
- package/heroku/node_modules/redis/.deepsource.toml +0 -9
- package/heroku/node_modules/redis/CHANGELOG.md +0 -880
- package/heroku/node_modules/redis/LICENSE +0 -24
- package/heroku/node_modules/redis/README.md +0 -1009
- package/heroku/node_modules/redis/a.js +0 -12
- package/heroku/node_modules/redis/index.js +0 -1039
- package/heroku/node_modules/redis/lib/command.js +0 -16
- package/heroku/node_modules/redis/lib/commands.js +0 -105
- package/heroku/node_modules/redis/lib/createClient.js +0 -88
- package/heroku/node_modules/redis/lib/customErrors.js +0 -58
- package/heroku/node_modules/redis/lib/debug.js +0 -13
- package/heroku/node_modules/redis/lib/extendedApi.js +0 -113
- package/heroku/node_modules/redis/lib/individualCommands.js +0 -629
- package/heroku/node_modules/redis/lib/multi.js +0 -187
- package/heroku/node_modules/redis/lib/utils.js +0 -134
- package/heroku/node_modules/redis/npm +0 -0
- package/heroku/node_modules/redis/package.json +0 -77
- package/heroku/node_modules/redis-commands/LICENSE +0 -22
- package/heroku/node_modules/redis-commands/README.md +0 -51
- package/heroku/node_modules/redis-commands/changelog.md +0 -83
- package/heroku/node_modules/redis-commands/commands.json +0 -2334
- package/heroku/node_modules/redis-commands/index.js +0 -168
- package/heroku/node_modules/redis-commands/package.json +0 -41
- package/heroku/node_modules/redis-commands/tools/build.js +0 -62
- package/heroku/node_modules/redis-errors/LICENSE +0 -22
- package/heroku/node_modules/redis-errors/README.md +0 -116
- package/heroku/node_modules/redis-errors/index.js +0 -7
- package/heroku/node_modules/redis-errors/lib/modern.js +0 -59
- package/heroku/node_modules/redis-errors/lib/old.js +0 -119
- package/heroku/node_modules/redis-errors/package.json +0 -41
- package/heroku/node_modules/redis-parser/LICENSE +0 -22
- package/heroku/node_modules/redis-parser/README.md +0 -166
- package/heroku/node_modules/redis-parser/changelog.md +0 -156
- package/heroku/node_modules/redis-parser/index.js +0 -3
- package/heroku/node_modules/redis-parser/lib/parser.js +0 -552
- package/heroku/node_modules/redis-parser/package.json +0 -53
- package/heroku/package.json +0 -9
|
@@ -1,443 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Custom implementation of a double ended queue.
|
|
5
|
-
*/
|
|
6
|
-
function Denque(array, options) {
|
|
7
|
-
var options = options || {};
|
|
8
|
-
|
|
9
|
-
this._head = 0;
|
|
10
|
-
this._tail = 0;
|
|
11
|
-
this._capacity = options.capacity;
|
|
12
|
-
this._capacityMask = 0x3;
|
|
13
|
-
this._list = new Array(4);
|
|
14
|
-
if (Array.isArray(array)) {
|
|
15
|
-
this._fromArray(array);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* -------------
|
|
21
|
-
* PUBLIC API
|
|
22
|
-
* -------------
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Returns the item at the specified index from the list.
|
|
27
|
-
* 0 is the first element, 1 is the second, and so on...
|
|
28
|
-
* Elements at negative values are that many from the end: -1 is one before the end
|
|
29
|
-
* (the last element), -2 is two before the end (one before last), etc.
|
|
30
|
-
* @param index
|
|
31
|
-
* @returns {*}
|
|
32
|
-
*/
|
|
33
|
-
Denque.prototype.peekAt = function peekAt(index) {
|
|
34
|
-
var i = index;
|
|
35
|
-
// expect a number or return undefined
|
|
36
|
-
if ((i !== (i | 0))) {
|
|
37
|
-
return void 0;
|
|
38
|
-
}
|
|
39
|
-
var len = this.size();
|
|
40
|
-
if (i >= len || i < -len) return undefined;
|
|
41
|
-
if (i < 0) i += len;
|
|
42
|
-
i = (this._head + i) & this._capacityMask;
|
|
43
|
-
return this._list[i];
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Alias for peekAt()
|
|
48
|
-
* @param i
|
|
49
|
-
* @returns {*}
|
|
50
|
-
*/
|
|
51
|
-
Denque.prototype.get = function get(i) {
|
|
52
|
-
return this.peekAt(i);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Returns the first item in the list without removing it.
|
|
57
|
-
* @returns {*}
|
|
58
|
-
*/
|
|
59
|
-
Denque.prototype.peek = function peek() {
|
|
60
|
-
if (this._head === this._tail) return undefined;
|
|
61
|
-
return this._list[this._head];
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Alias for peek()
|
|
66
|
-
* @returns {*}
|
|
67
|
-
*/
|
|
68
|
-
Denque.prototype.peekFront = function peekFront() {
|
|
69
|
-
return this.peek();
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Returns the item that is at the back of the queue without removing it.
|
|
74
|
-
* Uses peekAt(-1)
|
|
75
|
-
*/
|
|
76
|
-
Denque.prototype.peekBack = function peekBack() {
|
|
77
|
-
return this.peekAt(-1);
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Returns the current length of the queue
|
|
82
|
-
* @return {Number}
|
|
83
|
-
*/
|
|
84
|
-
Object.defineProperty(Denque.prototype, 'length', {
|
|
85
|
-
get: function length() {
|
|
86
|
-
return this.size();
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Return the number of items on the list, or 0 if empty.
|
|
92
|
-
* @returns {number}
|
|
93
|
-
*/
|
|
94
|
-
Denque.prototype.size = function size() {
|
|
95
|
-
if (this._head === this._tail) return 0;
|
|
96
|
-
if (this._head < this._tail) return this._tail - this._head;
|
|
97
|
-
else return this._capacityMask + 1 - (this._head - this._tail);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Add an item at the beginning of the list.
|
|
102
|
-
* @param item
|
|
103
|
-
*/
|
|
104
|
-
Denque.prototype.unshift = function unshift(item) {
|
|
105
|
-
if (item === undefined) return this.size();
|
|
106
|
-
var len = this._list.length;
|
|
107
|
-
this._head = (this._head - 1 + len) & this._capacityMask;
|
|
108
|
-
this._list[this._head] = item;
|
|
109
|
-
if (this._tail === this._head) this._growArray();
|
|
110
|
-
if (this._capacity && this.size() > this._capacity) this.pop();
|
|
111
|
-
if (this._head < this._tail) return this._tail - this._head;
|
|
112
|
-
else return this._capacityMask + 1 - (this._head - this._tail);
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Remove and return the first item on the list,
|
|
117
|
-
* Returns undefined if the list is empty.
|
|
118
|
-
* @returns {*}
|
|
119
|
-
*/
|
|
120
|
-
Denque.prototype.shift = function shift() {
|
|
121
|
-
var head = this._head;
|
|
122
|
-
if (head === this._tail) return undefined;
|
|
123
|
-
var item = this._list[head];
|
|
124
|
-
this._list[head] = undefined;
|
|
125
|
-
this._head = (head + 1) & this._capacityMask;
|
|
126
|
-
if (head < 2 && this._tail > 10000 && this._tail <= this._list.length >>> 2) this._shrinkArray();
|
|
127
|
-
return item;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Add an item to the bottom of the list.
|
|
132
|
-
* @param item
|
|
133
|
-
*/
|
|
134
|
-
Denque.prototype.push = function push(item) {
|
|
135
|
-
if (item === undefined) return this.size();
|
|
136
|
-
var tail = this._tail;
|
|
137
|
-
this._list[tail] = item;
|
|
138
|
-
this._tail = (tail + 1) & this._capacityMask;
|
|
139
|
-
if (this._tail === this._head) {
|
|
140
|
-
this._growArray();
|
|
141
|
-
}
|
|
142
|
-
if (this._capacity && this.size() > this._capacity) {
|
|
143
|
-
this.shift();
|
|
144
|
-
}
|
|
145
|
-
if (this._head < this._tail) return this._tail - this._head;
|
|
146
|
-
else return this._capacityMask + 1 - (this._head - this._tail);
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Remove and return the last item on the list.
|
|
151
|
-
* Returns undefined if the list is empty.
|
|
152
|
-
* @returns {*}
|
|
153
|
-
*/
|
|
154
|
-
Denque.prototype.pop = function pop() {
|
|
155
|
-
var tail = this._tail;
|
|
156
|
-
if (tail === this._head) return undefined;
|
|
157
|
-
var len = this._list.length;
|
|
158
|
-
this._tail = (tail - 1 + len) & this._capacityMask;
|
|
159
|
-
var item = this._list[this._tail];
|
|
160
|
-
this._list[this._tail] = undefined;
|
|
161
|
-
if (this._head < 2 && tail > 10000 && tail <= len >>> 2) this._shrinkArray();
|
|
162
|
-
return item;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Remove and return the item at the specified index from the list.
|
|
167
|
-
* Returns undefined if the list is empty.
|
|
168
|
-
* @param index
|
|
169
|
-
* @returns {*}
|
|
170
|
-
*/
|
|
171
|
-
Denque.prototype.removeOne = function removeOne(index) {
|
|
172
|
-
var i = index;
|
|
173
|
-
// expect a number or return undefined
|
|
174
|
-
if ((i !== (i | 0))) {
|
|
175
|
-
return void 0;
|
|
176
|
-
}
|
|
177
|
-
if (this._head === this._tail) return void 0;
|
|
178
|
-
var size = this.size();
|
|
179
|
-
var len = this._list.length;
|
|
180
|
-
if (i >= size || i < -size) return void 0;
|
|
181
|
-
if (i < 0) i += size;
|
|
182
|
-
i = (this._head + i) & this._capacityMask;
|
|
183
|
-
var item = this._list[i];
|
|
184
|
-
var k;
|
|
185
|
-
if (index < size / 2) {
|
|
186
|
-
for (k = index; k > 0; k--) {
|
|
187
|
-
this._list[i] = this._list[i = (i - 1 + len) & this._capacityMask];
|
|
188
|
-
}
|
|
189
|
-
this._list[i] = void 0;
|
|
190
|
-
this._head = (this._head + 1 + len) & this._capacityMask;
|
|
191
|
-
} else {
|
|
192
|
-
for (k = size - 1 - index; k > 0; k--) {
|
|
193
|
-
this._list[i] = this._list[i = ( i + 1 + len) & this._capacityMask];
|
|
194
|
-
}
|
|
195
|
-
this._list[i] = void 0;
|
|
196
|
-
this._tail = (this._tail - 1 + len) & this._capacityMask;
|
|
197
|
-
}
|
|
198
|
-
return item;
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Remove number of items from the specified index from the list.
|
|
203
|
-
* Returns array of removed items.
|
|
204
|
-
* Returns undefined if the list is empty.
|
|
205
|
-
* @param index
|
|
206
|
-
* @param count
|
|
207
|
-
* @returns {array}
|
|
208
|
-
*/
|
|
209
|
-
Denque.prototype.remove = function remove(index, count) {
|
|
210
|
-
var i = index;
|
|
211
|
-
var removed;
|
|
212
|
-
var del_count = count;
|
|
213
|
-
// expect a number or return undefined
|
|
214
|
-
if ((i !== (i | 0))) {
|
|
215
|
-
return void 0;
|
|
216
|
-
}
|
|
217
|
-
if (this._head === this._tail) return void 0;
|
|
218
|
-
var size = this.size();
|
|
219
|
-
var len = this._list.length;
|
|
220
|
-
if (i >= size || i < -size || count < 1) return void 0;
|
|
221
|
-
if (i < 0) i += size;
|
|
222
|
-
if (count === 1 || !count) {
|
|
223
|
-
removed = new Array(1);
|
|
224
|
-
removed[0] = this.removeOne(i);
|
|
225
|
-
return removed;
|
|
226
|
-
}
|
|
227
|
-
if (i === 0 && i + count >= size) {
|
|
228
|
-
removed = this.toArray();
|
|
229
|
-
this.clear();
|
|
230
|
-
return removed;
|
|
231
|
-
}
|
|
232
|
-
if (i + count > size) count = size - i;
|
|
233
|
-
var k;
|
|
234
|
-
removed = new Array(count);
|
|
235
|
-
for (k = 0; k < count; k++) {
|
|
236
|
-
removed[k] = this._list[(this._head + i + k) & this._capacityMask];
|
|
237
|
-
}
|
|
238
|
-
i = (this._head + i) & this._capacityMask;
|
|
239
|
-
if (index + count === size) {
|
|
240
|
-
this._tail = (this._tail - count + len) & this._capacityMask;
|
|
241
|
-
for (k = count; k > 0; k--) {
|
|
242
|
-
this._list[i = (i + 1 + len) & this._capacityMask] = void 0;
|
|
243
|
-
}
|
|
244
|
-
return removed;
|
|
245
|
-
}
|
|
246
|
-
if (index === 0) {
|
|
247
|
-
this._head = (this._head + count + len) & this._capacityMask;
|
|
248
|
-
for (k = count - 1; k > 0; k--) {
|
|
249
|
-
this._list[i = (i + 1 + len) & this._capacityMask] = void 0;
|
|
250
|
-
}
|
|
251
|
-
return removed;
|
|
252
|
-
}
|
|
253
|
-
if (i < size / 2) {
|
|
254
|
-
this._head = (this._head + index + count + len) & this._capacityMask;
|
|
255
|
-
for (k = index; k > 0; k--) {
|
|
256
|
-
this.unshift(this._list[i = (i - 1 + len) & this._capacityMask]);
|
|
257
|
-
}
|
|
258
|
-
i = (this._head - 1 + len) & this._capacityMask;
|
|
259
|
-
while (del_count > 0) {
|
|
260
|
-
this._list[i = (i - 1 + len) & this._capacityMask] = void 0;
|
|
261
|
-
del_count--;
|
|
262
|
-
}
|
|
263
|
-
if (index < 0) this._tail = i;
|
|
264
|
-
} else {
|
|
265
|
-
this._tail = i;
|
|
266
|
-
i = (i + count + len) & this._capacityMask;
|
|
267
|
-
for (k = size - (count + index); k > 0; k--) {
|
|
268
|
-
this.push(this._list[i++]);
|
|
269
|
-
}
|
|
270
|
-
i = this._tail;
|
|
271
|
-
while (del_count > 0) {
|
|
272
|
-
this._list[i = (i + 1 + len) & this._capacityMask] = void 0;
|
|
273
|
-
del_count--;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
if (this._head < 2 && this._tail > 10000 && this._tail <= len >>> 2) this._shrinkArray();
|
|
277
|
-
return removed;
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Native splice implementation.
|
|
282
|
-
* Remove number of items from the specified index from the list and/or add new elements.
|
|
283
|
-
* Returns array of removed items or empty array if count == 0.
|
|
284
|
-
* Returns undefined if the list is empty.
|
|
285
|
-
*
|
|
286
|
-
* @param index
|
|
287
|
-
* @param count
|
|
288
|
-
* @param {...*} [elements]
|
|
289
|
-
* @returns {array}
|
|
290
|
-
*/
|
|
291
|
-
Denque.prototype.splice = function splice(index, count) {
|
|
292
|
-
var i = index;
|
|
293
|
-
// expect a number or return undefined
|
|
294
|
-
if ((i !== (i | 0))) {
|
|
295
|
-
return void 0;
|
|
296
|
-
}
|
|
297
|
-
var size = this.size();
|
|
298
|
-
if (i < 0) i += size;
|
|
299
|
-
if (i > size) return void 0;
|
|
300
|
-
if (arguments.length > 2) {
|
|
301
|
-
var k;
|
|
302
|
-
var temp;
|
|
303
|
-
var removed;
|
|
304
|
-
var arg_len = arguments.length;
|
|
305
|
-
var len = this._list.length;
|
|
306
|
-
var arguments_index = 2;
|
|
307
|
-
if (!size || i < size / 2) {
|
|
308
|
-
temp = new Array(i);
|
|
309
|
-
for (k = 0; k < i; k++) {
|
|
310
|
-
temp[k] = this._list[(this._head + k) & this._capacityMask];
|
|
311
|
-
}
|
|
312
|
-
if (count === 0) {
|
|
313
|
-
removed = [];
|
|
314
|
-
if (i > 0) {
|
|
315
|
-
this._head = (this._head + i + len) & this._capacityMask;
|
|
316
|
-
}
|
|
317
|
-
} else {
|
|
318
|
-
removed = this.remove(i, count);
|
|
319
|
-
this._head = (this._head + i + len) & this._capacityMask;
|
|
320
|
-
}
|
|
321
|
-
while (arg_len > arguments_index) {
|
|
322
|
-
this.unshift(arguments[--arg_len]);
|
|
323
|
-
}
|
|
324
|
-
for (k = i; k > 0; k--) {
|
|
325
|
-
this.unshift(temp[k - 1]);
|
|
326
|
-
}
|
|
327
|
-
} else {
|
|
328
|
-
temp = new Array(size - (i + count));
|
|
329
|
-
var leng = temp.length;
|
|
330
|
-
for (k = 0; k < leng; k++) {
|
|
331
|
-
temp[k] = this._list[(this._head + i + count + k) & this._capacityMask];
|
|
332
|
-
}
|
|
333
|
-
if (count === 0) {
|
|
334
|
-
removed = [];
|
|
335
|
-
if (i != size) {
|
|
336
|
-
this._tail = (this._head + i + len) & this._capacityMask;
|
|
337
|
-
}
|
|
338
|
-
} else {
|
|
339
|
-
removed = this.remove(i, count);
|
|
340
|
-
this._tail = (this._tail - leng + len) & this._capacityMask;
|
|
341
|
-
}
|
|
342
|
-
while (arguments_index < arg_len) {
|
|
343
|
-
this.push(arguments[arguments_index++]);
|
|
344
|
-
}
|
|
345
|
-
for (k = 0; k < leng; k++) {
|
|
346
|
-
this.push(temp[k]);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
return removed;
|
|
350
|
-
} else {
|
|
351
|
-
return this.remove(i, count);
|
|
352
|
-
}
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* Soft clear - does not reset capacity.
|
|
357
|
-
*/
|
|
358
|
-
Denque.prototype.clear = function clear() {
|
|
359
|
-
this._head = 0;
|
|
360
|
-
this._tail = 0;
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Returns true or false whether the list is empty.
|
|
365
|
-
* @returns {boolean}
|
|
366
|
-
*/
|
|
367
|
-
Denque.prototype.isEmpty = function isEmpty() {
|
|
368
|
-
return this._head === this._tail;
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Returns an array of all queue items.
|
|
373
|
-
* @returns {Array}
|
|
374
|
-
*/
|
|
375
|
-
Denque.prototype.toArray = function toArray() {
|
|
376
|
-
return this._copyArray(false);
|
|
377
|
-
};
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* -------------
|
|
381
|
-
* INTERNALS
|
|
382
|
-
* -------------
|
|
383
|
-
*/
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Fills the queue with items from an array
|
|
387
|
-
* For use in the constructor
|
|
388
|
-
* @param array
|
|
389
|
-
* @private
|
|
390
|
-
*/
|
|
391
|
-
Denque.prototype._fromArray = function _fromArray(array) {
|
|
392
|
-
for (var i = 0; i < array.length; i++) this.push(array[i]);
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
*
|
|
397
|
-
* @param fullCopy
|
|
398
|
-
* @returns {Array}
|
|
399
|
-
* @private
|
|
400
|
-
*/
|
|
401
|
-
Denque.prototype._copyArray = function _copyArray(fullCopy) {
|
|
402
|
-
var newArray = [];
|
|
403
|
-
var list = this._list;
|
|
404
|
-
var len = list.length;
|
|
405
|
-
var i;
|
|
406
|
-
if (fullCopy || this._head > this._tail) {
|
|
407
|
-
for (i = this._head; i < len; i++) newArray.push(list[i]);
|
|
408
|
-
for (i = 0; i < this._tail; i++) newArray.push(list[i]);
|
|
409
|
-
} else {
|
|
410
|
-
for (i = this._head; i < this._tail; i++) newArray.push(list[i]);
|
|
411
|
-
}
|
|
412
|
-
return newArray;
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* Grows the internal list array.
|
|
417
|
-
* @private
|
|
418
|
-
*/
|
|
419
|
-
Denque.prototype._growArray = function _growArray() {
|
|
420
|
-
if (this._head) {
|
|
421
|
-
// copy existing data, head to end, then beginning to tail.
|
|
422
|
-
this._list = this._copyArray(true);
|
|
423
|
-
this._head = 0;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
// head is at 0 and array is now full, safe to extend
|
|
427
|
-
this._tail = this._list.length;
|
|
428
|
-
|
|
429
|
-
this._list.length *= 2;
|
|
430
|
-
this._capacityMask = (this._capacityMask << 1) | 1;
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* Shrinks the internal list array.
|
|
435
|
-
* @private
|
|
436
|
-
*/
|
|
437
|
-
Denque.prototype._shrinkArray = function _shrinkArray() {
|
|
438
|
-
this._list.length >>>= 1;
|
|
439
|
-
this._capacityMask >>>= 1;
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
module.exports = Denque;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "denque",
|
|
3
|
-
"version": "1.5.0",
|
|
4
|
-
"description": "The fastest javascript implementation of a double-ended queue. Maintains compatability with deque.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"engines": {
|
|
7
|
-
"node": ">=0.10"
|
|
8
|
-
},
|
|
9
|
-
"keywords": [
|
|
10
|
-
"data-structure",
|
|
11
|
-
"data-structures",
|
|
12
|
-
"queue",
|
|
13
|
-
"double",
|
|
14
|
-
"end",
|
|
15
|
-
"ended",
|
|
16
|
-
"deque",
|
|
17
|
-
"denque",
|
|
18
|
-
"double-ended-queue"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"test": "istanbul cover --report lcov _mocha && npm run typescript",
|
|
22
|
-
"coveralls": "cat ./coverage/lcov.info | coveralls",
|
|
23
|
-
"typescript": "tsc --project ./test/type/tsconfig.json",
|
|
24
|
-
"benchmark_thousand": "node benchmark/thousand",
|
|
25
|
-
"benchmark_2mil": "node benchmark/two_million",
|
|
26
|
-
"benchmark_splice": "node benchmark/splice",
|
|
27
|
-
"benchmark_remove": "node benchmark/remove",
|
|
28
|
-
"benchmark_removeOne": "node benchmark/removeOne"
|
|
29
|
-
},
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/invertase/denque.git"
|
|
33
|
-
},
|
|
34
|
-
"license": "Apache-2.0",
|
|
35
|
-
"author": {
|
|
36
|
-
"name": "Invertase",
|
|
37
|
-
"email": "oss@invertase.io",
|
|
38
|
-
"url": "http://github.com/invertase/"
|
|
39
|
-
},
|
|
40
|
-
"contributors": [
|
|
41
|
-
"Mike Diarmid (Salakar) <mike@invertase.io>"
|
|
42
|
-
],
|
|
43
|
-
"bugs": {
|
|
44
|
-
"url": "https://github.com/invertase/denque/issues"
|
|
45
|
-
},
|
|
46
|
-
"homepage": "https://github.com/invertase/denque#readme",
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"benchmark": "^2.1.4",
|
|
49
|
-
"coveralls": "^2.13.3",
|
|
50
|
-
"double-ended-queue": "^2.1.0-0",
|
|
51
|
-
"istanbul": "^0.4.5",
|
|
52
|
-
"mocha": "^3.5.3",
|
|
53
|
-
"typescript": "^3.4.1"
|
|
54
|
-
}
|
|
55
|
-
}
|