@withgraphite/graphite-cli 1.6.1 → 1.6.3

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.
@@ -0,0 +1,604 @@
1
+ /*
2
+ * @version 1.4.0
3
+ * @date 2015-10-26
4
+ * @stability 3 - Stable
5
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
6
+ * @license MIT License
7
+ */
8
+
9
+ /*!
10
+ * ### ._obj
11
+ *
12
+ * Quick reference to stored `actual` value for plugin developers.
13
+ *
14
+ * @api private
15
+ */
16
+
17
+ /*!
18
+ * ### .ifError(object)
19
+ *
20
+ * Asserts if value is not a false value, and throws if it is a true value.
21
+ * This is added to allow for chai to be a drop-in replacement for Node's
22
+ * assert class.
23
+ *
24
+ * var err = new Error('I am a custom error');
25
+ * assert.ifError(err); // Rethrows err!
26
+ *
27
+ * @name ifError
28
+ * @param {Object} object
29
+ * @namespace Assert
30
+ * @api public
31
+ */
32
+
33
+ /*!
34
+ * Aliases.
35
+ */
36
+
37
+ /*!
38
+ * Assertion Constructor
39
+ *
40
+ * Creates object for chaining.
41
+ *
42
+ * `Assertion` objects contain metadata in the form of flags. Three flags can
43
+ * be assigned during instantiation by passing arguments to this constructor:
44
+ *
45
+ * - `object`: This flag contains the target of the assertion. For example, in
46
+ * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
47
+ * contain `numKittens` so that the `equal` assertion can reference it when
48
+ * needed.
49
+ *
50
+ * - `message`: This flag contains an optional custom error message to be
51
+ * prepended to the error message that's generated by the assertion when it
52
+ * fails.
53
+ *
54
+ * - `ssfi`: This flag stands for "start stack function indicator". It
55
+ * contains a function reference that serves as the starting point for
56
+ * removing frames from the stack trace of the error that's created by the
57
+ * assertion when it fails. The goal is to provide a cleaner stack trace to
58
+ * end users by removing Chai's internal functions. Note that it only works
59
+ * in environments that support `Error.captureStackTrace`, and only when
60
+ * `Chai.config.includeStack` hasn't been set to `false`.
61
+ *
62
+ * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
63
+ * should retain its current value, even as assertions are chained off of
64
+ * this object. This is usually set to `true` when creating a new assertion
65
+ * from within another assertion. It's also temporarily set to `true` before
66
+ * an overwritten assertion gets called by the overwriting assertion.
67
+ *
68
+ * @param {Mixed} obj target of the assertion
69
+ * @param {String} msg (optional) custom error message
70
+ * @param {Function} ssfi (optional) starting point for removing stack frames
71
+ * @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked
72
+ * @api private
73
+ */
74
+
75
+ /*!
76
+ * Chai dependencies.
77
+ */
78
+
79
+ /*!
80
+ * Module dependencies.
81
+ */
82
+
83
+ /*!
84
+ * Module export.
85
+ */
86
+
87
+ /*!
88
+ * Add a chainable method
89
+ */
90
+
91
+ /*!
92
+ * Assert interface
93
+ */
94
+
95
+ /*!
96
+ * Assertion Error
97
+ */
98
+
99
+ /*!
100
+ * Chai - addChainingMethod utility
101
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
102
+ * MIT Licensed
103
+ */
104
+
105
+ /*!
106
+ * Chai - addLengthGuard utility
107
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
108
+ * MIT Licensed
109
+ */
110
+
111
+ /*!
112
+ * Chai - addMethod utility
113
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
114
+ * MIT Licensed
115
+ */
116
+
117
+ /*!
118
+ * Chai - addProperty utility
119
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
120
+ * MIT Licensed
121
+ */
122
+
123
+ /*!
124
+ * Chai - compareByInspect utility
125
+ * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
126
+ * MIT Licensed
127
+ */
128
+
129
+ /*!
130
+ * Chai - expectTypes utility
131
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
132
+ * MIT Licensed
133
+ */
134
+
135
+ /*!
136
+ * Chai - flag utility
137
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
138
+ * MIT Licensed
139
+ */
140
+
141
+ /*!
142
+ * Chai - getActual utility
143
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
144
+ * MIT Licensed
145
+ */
146
+
147
+ /*!
148
+ * Chai - getOwnEnumerableProperties utility
149
+ * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
150
+ * MIT Licensed
151
+ */
152
+
153
+ /*!
154
+ * Chai - getOwnEnumerablePropertySymbols utility
155
+ * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
156
+ * MIT Licensed
157
+ */
158
+
159
+ /*!
160
+ * Chai - getProperties utility
161
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
162
+ * MIT Licensed
163
+ */
164
+
165
+ /*!
166
+ * Chai - isNaN utility
167
+ * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
168
+ * MIT Licensed
169
+ */
170
+
171
+ /*!
172
+ * Chai - isProxyEnabled helper
173
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
174
+ * MIT Licensed
175
+ */
176
+
177
+ /*!
178
+ * Chai - message composition utility
179
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
180
+ * MIT Licensed
181
+ */
182
+
183
+ /*!
184
+ * Chai - overwriteChainableMethod utility
185
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
186
+ * MIT Licensed
187
+ */
188
+
189
+ /*!
190
+ * Chai - overwriteMethod utility
191
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
192
+ * MIT Licensed
193
+ */
194
+
195
+ /*!
196
+ * Chai - overwriteProperty utility
197
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
198
+ * MIT Licensed
199
+ */
200
+
201
+ /*!
202
+ * Chai - test utility
203
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
204
+ * MIT Licensed
205
+ */
206
+
207
+ /*!
208
+ * Chai - transferFlags utility
209
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
210
+ * MIT Licensed
211
+ */
212
+
213
+ /*!
214
+ * Chai version
215
+ */
216
+
217
+ /*!
218
+ * Check if a property exists
219
+ */
220
+
221
+ /*!
222
+ * Check to see if the MemoizeMap has recorded a result of the two operands
223
+ *
224
+ * @param {Mixed} leftHandOperand
225
+ * @param {Mixed} rightHandOperand
226
+ * @param {MemoizeMap} memoizeMap
227
+ * @returns {Boolean|null} result
228
+ */
229
+
230
+ /*!
231
+ * Checks error against a given set of criteria
232
+ */
233
+
234
+ /*!
235
+ * Compare by inspect method
236
+ */
237
+
238
+ /*!
239
+ * Compare two Regular Expressions for equality.
240
+ *
241
+ * @param {RegExp} leftHandOperand
242
+ * @param {RegExp} rightHandOperand
243
+ * @return {Boolean} result
244
+ */
245
+
246
+ /*!
247
+ * Compare two Sets/Maps for equality. Faster than other equality functions.
248
+ *
249
+ * @param {Set} leftHandOperand
250
+ * @param {Set} rightHandOperand
251
+ * @param {Object} [options] (Optional)
252
+ * @return {Boolean} result
253
+ */
254
+
255
+ /*!
256
+ * Configuration
257
+ */
258
+
259
+ /*!
260
+ * Core Assertions
261
+ */
262
+
263
+ /*!
264
+ * Deep equal utility
265
+ */
266
+
267
+ /*!
268
+ * Deep path info
269
+ */
270
+
271
+ /*!
272
+ * Dependencies that are used for multiple exports are required here only once
273
+ */
274
+
275
+ /*!
276
+ * Determine if the given object has an @@iterator function.
277
+ *
278
+ * @param {Object} target
279
+ * @return {Boolean} `true` if the object has an @@iterator function.
280
+ */
281
+
282
+ /*!
283
+ * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
284
+ * each key. If any value of the given key is not equal, the function will return false (early).
285
+ *
286
+ * @param {Mixed} leftHandOperand
287
+ * @param {Mixed} rightHandOperand
288
+ * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
289
+ * @param {Object} [options] (Optional)
290
+ * @return {Boolean} result
291
+ */
292
+
293
+ /*!
294
+ * Ensure correct constructor
295
+ */
296
+
297
+ /*!
298
+ * Expect interface
299
+ */
300
+
301
+ /*!
302
+ * Flag transferring utility
303
+ */
304
+
305
+ /*!
306
+ * Flag utility
307
+ */
308
+
309
+ /*!
310
+ * Function name
311
+ */
312
+
313
+ /*!
314
+ * Get own enumerable properties method
315
+ */
316
+
317
+ /*!
318
+ * Get own enumerable property symbols method
319
+ */
320
+
321
+ /*!
322
+ * Gets all entries from a Generator. This will consume the generator - which could have side effects.
323
+ *
324
+ * @param {Generator} target
325
+ * @returns {Array} an array of entries from the Generator.
326
+ */
327
+
328
+ /*!
329
+ * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
330
+ * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
331
+ *
332
+ * @param {Object} target
333
+ * @returns {Array} an array of entries from the @@iterator function
334
+ */
335
+
336
+ /*!
337
+ * Gets all own and inherited enumerable keys from a target.
338
+ *
339
+ * @param {Object} target
340
+ * @returns {Array} an array of own and inherited enumerable keys from the target.
341
+ */
342
+
343
+ /*!
344
+ * Inherit from Error.prototype
345
+ */
346
+
347
+ /*!
348
+ * Inspect util
349
+ */
350
+
351
+ /*!
352
+ * Module dependencies
353
+ */
354
+
355
+ /*!
356
+ * Object Display util
357
+ */
358
+
359
+ /*!
360
+ * Overwrite chainable method
361
+ */
362
+
363
+ /*!
364
+ * Primary Export
365
+ */
366
+
367
+ /*!
368
+ * Primary Exports
369
+ */
370
+
371
+ /*!
372
+ * Primary `Assertion` prototype
373
+ */
374
+
375
+ /*!
376
+ * Proxify util
377
+ */
378
+
379
+ /*!
380
+ * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
381
+ * for each enumerable key in the object.
382
+ *
383
+ * @param {Mixed} leftHandOperand
384
+ * @param {Mixed} rightHandOperand
385
+ * @param {Object} [options] (Optional)
386
+ * @return {Boolean} result
387
+ */
388
+
389
+ /*!
390
+ * Return a function that will copy properties from
391
+ * one object to another excluding any originally
392
+ * listed. Returned function will create a new `{}`.
393
+ *
394
+ * @param {String} excluded properties ...
395
+ * @return {Function}
396
+ */
397
+
398
+ /*!
399
+ * Returns true if the argument is a primitive.
400
+ *
401
+ * This intentionally returns true for all objects that can be compared by reference,
402
+ * including functions and symbols.
403
+ *
404
+ * @param {Mixed} value
405
+ * @return {Boolean} result
406
+ */
407
+
408
+ /*!
409
+ * Set the result of the equality into the MemoizeMap
410
+ *
411
+ * @param {Mixed} leftHandOperand
412
+ * @param {Mixed} rightHandOperand
413
+ * @param {MemoizeMap} memoizeMap
414
+ * @param {Boolean} result
415
+ */
416
+
417
+ /*!
418
+ * Should interface
419
+ */
420
+
421
+ /*!
422
+ * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
423
+ *
424
+ * @param {Iterable} leftHandOperand
425
+ * @param {Iterable} rightHandOperand
426
+ * @param {Object} [options] (Optional)
427
+ * @return {Boolean} result
428
+ */
429
+
430
+ /*!
431
+ * Simple equality for generator objects such as those returned by generator functions.
432
+ *
433
+ * @param {Iterable} leftHandOperand
434
+ * @param {Iterable} rightHandOperand
435
+ * @param {Object} [options] (Optional)
436
+ * @return {Boolean} result
437
+ */
438
+
439
+ /*!
440
+ * Statically set name
441
+ */
442
+
443
+ /*!
444
+ * The main logic of the `deepEqual` function.
445
+ *
446
+ * @param {Mixed} leftHandOperand
447
+ * @param {Mixed} rightHandOperand
448
+ * @param {Object} [options] (optional) Additional options
449
+ * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
450
+ * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
451
+ complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
452
+ references to blow the stack.
453
+ * @return {Boolean} equal match
454
+ */
455
+
456
+ /*!
457
+ * Tmp
458
+ *
459
+ * Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
460
+ *
461
+ * MIT Licensed
462
+ */
463
+
464
+ /*!
465
+ * Utility Functions
466
+ */
467
+
468
+ /*!
469
+ * Utils for plugins (not exported)
470
+ */
471
+
472
+ /*!
473
+ * actual utility
474
+ */
475
+
476
+ /*!
477
+ * add Method
478
+ */
479
+
480
+ /*!
481
+ * add Property
482
+ */
483
+
484
+ /*!
485
+ * addLengthGuard util
486
+ */
487
+
488
+ /*!
489
+ * assertion-error
490
+ * Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
491
+ * MIT Licensed
492
+ */
493
+
494
+ /*!
495
+ * chai
496
+ * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
497
+ * MIT Licensed
498
+ */
499
+
500
+ /*!
501
+ * chai
502
+ * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
503
+ * MIT Licensed
504
+ */
505
+
506
+ /*!
507
+ * chai
508
+ * http://chaijs.com
509
+ * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
510
+ * MIT Licensed
511
+ */
512
+
513
+ /*!
514
+ * deep-eql
515
+ * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
516
+ * MIT Licensed
517
+ */
518
+
519
+ /*!
520
+ * expectTypes utility
521
+ */
522
+
523
+ /*!
524
+ * fill-range <https://github.com/jonschlinkert/fill-range>
525
+ *
526
+ * Copyright (c) 2014-present, Jon Schlinkert.
527
+ * Licensed under the MIT License.
528
+ */
529
+
530
+ /*!
531
+ * getOperator method
532
+ */
533
+
534
+ /*!
535
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
536
+ *
537
+ * Copyright (c) 2014-2016, Jon Schlinkert.
538
+ * Licensed under the MIT License.
539
+ */
540
+
541
+ /*!
542
+ * is-glob <https://github.com/jonschlinkert/is-glob>
543
+ *
544
+ * Copyright (c) 2014-2017, Jon Schlinkert.
545
+ * Released under the MIT License.
546
+ */
547
+
548
+ /*!
549
+ * is-number <https://github.com/jonschlinkert/is-number>
550
+ *
551
+ * Copyright (c) 2014-present, Jon Schlinkert.
552
+ * Released under the MIT License.
553
+ */
554
+
555
+ /*!
556
+ * isNaN method
557
+ */
558
+
559
+ /*!
560
+ * isProxyEnabled helper
561
+ */
562
+
563
+ /*!
564
+ * message utility
565
+ */
566
+
567
+ /*!
568
+ * normalize-path <https://github.com/jonschlinkert/normalize-path>
569
+ *
570
+ * Copyright (c) 2014-2018, Jon Schlinkert.
571
+ * Released under the MIT License.
572
+ */
573
+
574
+ /*!
575
+ * overwrite Method
576
+ */
577
+
578
+ /*!
579
+ * overwrite Property
580
+ */
581
+
582
+ /*!
583
+ * test utility
584
+ */
585
+
586
+ /*!
587
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
588
+ *
589
+ * Copyright (c) 2015-present, Jon Schlinkert.
590
+ * Released under the MIT License.
591
+ */
592
+
593
+ /*!
594
+ * type utility
595
+ */
596
+
597
+ /**
598
+ * @license
599
+ * Lodash <https://lodash.com/>
600
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
601
+ * Released under MIT license <https://lodash.com/license>
602
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
603
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
604
+ */