fsevents 1.0.8 → 1.0.9
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.
Potentially problematic release.
This version of fsevents might be problematic. Click here for more details.
- package/node_modules/ansi-styles/index.js +72 -6
- package/node_modules/ansi-styles/package.json +19 -12
- package/node_modules/ansi-styles/readme.md +36 -8
- package/node_modules/are-we-there-yet/CHANGES.md +19 -0
- package/node_modules/are-we-there-yet/README.md +12 -2
- package/node_modules/are-we-there-yet/index.js +4 -132
- package/node_modules/are-we-there-yet/package.json +18 -13
- package/node_modules/are-we-there-yet/test/lib/test-event.js +29 -0
- package/node_modules/are-we-there-yet/test/tracker.js +44 -43
- package/node_modules/are-we-there-yet/test/trackergroup.js +73 -64
- package/node_modules/are-we-there-yet/test/trackerstream.js +26 -40
- package/node_modules/are-we-there-yet/tracker-base.js +11 -0
- package/node_modules/are-we-there-yet/tracker-group.js +107 -0
- package/node_modules/are-we-there-yet/tracker-stream.js +35 -0
- package/node_modules/are-we-there-yet/tracker.js +30 -0
- package/node_modules/asn1/package.json +1 -2
- package/node_modules/assert-plus/package.json +1 -3
- package/node_modules/async/package.json +1 -1
- package/node_modules/aws4/.npmignore +2 -1
- package/node_modules/aws4/README.md +4 -0
- package/node_modules/aws4/aws4.js +8 -3
- package/node_modules/aws4/node_modules/lru-cache/.npmignore +3 -0
- package/node_modules/aws4/node_modules/lru-cache/.travis.yml +3 -4
- package/node_modules/aws4/node_modules/lru-cache/README.md +29 -24
- package/node_modules/aws4/node_modules/lru-cache/benchmarks/insertion-time.js +32 -0
- package/node_modules/aws4/node_modules/lru-cache/lib/lru-cache.js +333 -199
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/LICENSE +15 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/README.md +60 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/map.js +9 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/package.json +59 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/pseudomap.js +113 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/pseudomap/test/basic.js +86 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.npmignore +4 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/.travis.yml +7 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/CONTRIBUTING.md +4 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/LICENSE +15 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/README.md +204 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/package.json +59 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/test/basic.js +188 -0
- package/node_modules/aws4/node_modules/lru-cache/node_modules/yallist/yallist.js +360 -0
- package/node_modules/aws4/node_modules/lru-cache/package.json +16 -12
- package/node_modules/aws4/node_modules/lru-cache/test/basic.js +270 -146
- package/node_modules/aws4/node_modules/lru-cache/test/foreach.js +39 -25
- package/node_modules/aws4/node_modules/lru-cache/test/inspect.js +54 -0
- package/node_modules/aws4/node_modules/lru-cache/test/no-symbol.js +3 -0
- package/node_modules/aws4/node_modules/lru-cache/test/serialize.js +115 -104
- package/node_modules/aws4/package.json +17 -14
- package/node_modules/bl/bl.js +9 -3
- package/node_modules/bl/package.json +12 -12
- package/node_modules/bl/test/test.js +14 -0
- package/node_modules/color-convert/README.md +62 -0
- package/node_modules/color-convert/conversions.js +594 -0
- package/node_modules/color-convert/css-keywords.js +151 -0
- package/node_modules/color-convert/index.js +75 -0
- package/node_modules/color-convert/package.json +92 -0
- package/node_modules/color-convert/route.js +98 -0
- package/node_modules/dashdash/lib/dashdash.js +1 -1
- package/node_modules/dashdash/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/dashdash/node_modules/assert-plus/CHANGES.md +14 -0
- package/node_modules/dashdash/node_modules/assert-plus/README.md +162 -0
- package/node_modules/dashdash/node_modules/assert-plus/assert.js +211 -0
- package/node_modules/dashdash/node_modules/assert-plus/package.json +89 -0
- package/node_modules/dashdash/package.json +19 -12
- package/node_modules/ecc-jsbn/package.json +1 -2
- package/node_modules/escape-string-regexp/package.json +15 -11
- package/node_modules/extsprintf/package.json +2 -3
- package/node_modules/form-data/.dockerignore +7 -0
- package/node_modules/form-data/.editorconfig +10 -0
- package/node_modules/form-data/.eslintignore +1 -0
- package/node_modules/form-data/.eslintrc +64 -0
- package/node_modules/form-data/{Readme.md → README.md} +9 -1
- package/node_modules/form-data/lib/browser.js +2 -1
- package/node_modules/form-data/lib/form_data.js +172 -135
- package/node_modules/form-data/lib/populate.js +9 -0
- package/node_modules/form-data/package.json +35 -16
- package/node_modules/form-data/wercker.yml +36 -0
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/index.js +1 -1
- package/node_modules/fstream-ignore/node_modules/minimatch/node_modules/brace-expansion/package.json +14 -10
- package/node_modules/gauge/README.md +1 -1
- package/node_modules/gauge/package.json +18 -14
- package/node_modules/gauge/progress-bar.js +2 -2
- package/node_modules/http-signature/package.json +1 -2
- package/node_modules/is-my-json-valid/README.md +2 -2
- package/node_modules/is-my-json-valid/index.js +15 -6
- package/node_modules/is-my-json-valid/package.json +11 -7
- package/node_modules/is-my-json-valid/test/json-schema-draft4/multipleOf.json +36 -0
- package/node_modules/is-my-json-valid/test/misc.js +18 -0
- package/node_modules/is-typedarray/package.json +1 -2
- package/node_modules/isarray/.npmignore +1 -0
- package/node_modules/isarray/.travis.yml +4 -0
- package/node_modules/isarray/Makefile +6 -0
- package/node_modules/isarray/README.md +6 -0
- package/node_modules/isarray/index.js +3 -1
- package/node_modules/isarray/package.json +28 -10
- package/node_modules/isarray/test.js +20 -0
- package/node_modules/jodid25519/package.json +1 -2
- package/node_modules/jsbn/package.json +1 -2
- package/node_modules/json-schema/package.json +1 -1
- package/node_modules/jsprim/package.json +1 -2
- package/node_modules/lodash.pad/LICENSE +17 -16
- package/node_modules/lodash.pad/README.md +2 -2
- package/node_modules/lodash.pad/index.js +3 -94
- package/node_modules/lodash.pad/package.json +12 -12
- package/node_modules/lodash.padend/LICENSE +23 -0
- package/node_modules/lodash.padend/README.md +18 -0
- package/node_modules/lodash.padend/index.js +285 -0
- package/node_modules/lodash.padend/package.json +91 -0
- package/node_modules/lodash.padstart/LICENSE +23 -0
- package/node_modules/lodash.padstart/README.md +18 -0
- package/node_modules/lodash.padstart/index.js +285 -0
- package/node_modules/lodash.padstart/package.json +91 -0
- package/node_modules/lodash.repeat/LICENSE +17 -16
- package/node_modules/lodash.repeat/README.md +2 -2
- package/node_modules/lodash.repeat/index.js +3 -94
- package/node_modules/lodash.repeat/package.json +14 -13
- package/node_modules/lodash.tostring/LICENSE +23 -0
- package/node_modules/lodash.tostring/README.md +18 -0
- package/node_modules/lodash.tostring/index.js +164 -0
- package/node_modules/lodash.tostring/package.json +91 -0
- package/node_modules/mime-db/HISTORY.md +14 -0
- package/node_modules/mime-db/db.json +26 -3
- package/node_modules/mime-db/package.json +23 -18
- package/node_modules/mime-types/HISTORY.md +8 -0
- package/node_modules/mime-types/README.md +1 -1
- package/node_modules/mime-types/package.json +21 -16
- package/node_modules/node-pre-gyp/CHANGELOG.md +11 -0
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +44 -4
- package/node_modules/node-pre-gyp/package.json +16 -16
- package/node_modules/npmlog/.nyc_output/64996.json +1 -0
- package/node_modules/npmlog/.nyc_output/64998.json +1 -0
- package/node_modules/npmlog/.nyc_output/65000.json +1 -0
- package/node_modules/npmlog/log.js +3 -2
- package/node_modules/npmlog/package.json +15 -11
- package/node_modules/npmlog/test/progress.js +25 -8
- package/node_modules/once/package.json +1 -1
- package/node_modules/qs/package.json +1 -2
- package/node_modules/readable-stream/.travis.yml +18 -16
- package/node_modules/readable-stream/README.md +1 -1
- package/node_modules/readable-stream/doc/stream.markdown +435 -405
- package/node_modules/readable-stream/lib/_stream_duplex.js +13 -20
- package/node_modules/readable-stream/lib/_stream_passthrough.js +3 -4
- package/node_modules/readable-stream/lib/_stream_readable.js +110 -205
- package/node_modules/readable-stream/lib/_stream_transform.js +21 -38
- package/node_modules/readable-stream/lib/_stream_writable.js +108 -121
- package/node_modules/readable-stream/package.json +19 -15
- package/node_modules/request/package.json +1 -2
- package/node_modules/rimraf/node_modules/glob/README.md +6 -0
- package/node_modules/rimraf/node_modules/glob/common.js +12 -3
- package/node_modules/rimraf/node_modules/glob/glob.js +20 -3
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +1 -1
- package/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +14 -10
- package/node_modules/rimraf/node_modules/glob/package.json +15 -11
- package/node_modules/rimraf/node_modules/glob/sync.js +8 -1
- package/node_modules/rimraf/package.json +14 -10
- package/node_modules/semver/package.json +1 -2
- package/node_modules/sshpk/lib/formats/rfc4253.js +2 -1
- package/node_modules/sshpk/package.json +13 -10
- package/node_modules/strip-ansi/package.json +21 -16
- package/node_modules/strip-ansi/readme.md +5 -5
- package/node_modules/tough-cookie/lib/cookie.js +2 -2
- package/node_modules/tough-cookie/package.json +13 -9
- package/node_modules/tweetnacl/CHANGELOG.md +53 -0
- package/node_modules/tweetnacl/COPYING.txt +9 -0
- package/node_modules/tweetnacl/README.md +14 -40
- package/node_modules/tweetnacl/nacl-fast.js +21 -51
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -2
- package/node_modules/tweetnacl/nacl.js +21 -51
- package/node_modules/tweetnacl/nacl.min.js +1 -1
- package/node_modules/tweetnacl/package.json +28 -38
- package/node_modules/verror/package.json +2 -3
- package/package.json +2 -2
- package/node_modules/aws4/example.js +0 -372
- package/node_modules/aws4/node_modules/lru-cache/test/memory-leak.js +0 -51
- package/node_modules/isarray/build/build.js +0 -209
- package/node_modules/lodash._basetostring/LICENSE +0 -22
- package/node_modules/lodash._basetostring/README.md +0 -20
- package/node_modules/lodash._basetostring/index.js +0 -22
- package/node_modules/lodash._basetostring/package.json +0 -99
- package/node_modules/lodash._createpadding/LICENSE +0 -22
- package/node_modules/lodash._createpadding/README.md +0 -20
- package/node_modules/lodash._createpadding/index.js +0 -37
- package/node_modules/lodash._createpadding/package.json +0 -101
- package/node_modules/lodash._root/LICENSE +0 -22
- package/node_modules/lodash._root/README.md +0 -18
- package/node_modules/lodash._root/index.js +0 -53
- package/node_modules/lodash._root/package.json +0 -77
- package/node_modules/lodash.padleft/LICENSE.txt +0 -22
- package/node_modules/lodash.padleft/README.md +0 -20
- package/node_modules/lodash.padleft/index.js +0 -50
- package/node_modules/lodash.padleft/package.json +0 -107
- package/node_modules/lodash.padright/LICENSE.txt +0 -22
- package/node_modules/lodash.padright/README.md +0 -20
- package/node_modules/lodash.padright/index.js +0 -50
- package/node_modules/lodash.padright/package.json +0 -107
@@ -0,0 +1,285 @@
|
|
1
|
+
/**
|
2
|
+
* lodash 4.2.0 (Custom Build) <https://lodash.com/>
|
3
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
4
|
+
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
5
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
6
|
+
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
7
|
+
* Available under MIT license <https://lodash.com/license>
|
8
|
+
*/
|
9
|
+
var repeat = require('lodash.repeat'),
|
10
|
+
toString = require('lodash.tostring');
|
11
|
+
|
12
|
+
/** Used as references for various `Number` constants. */
|
13
|
+
var INFINITY = 1 / 0,
|
14
|
+
MAX_INTEGER = 1.7976931348623157e+308,
|
15
|
+
NAN = 0 / 0;
|
16
|
+
|
17
|
+
/** `Object#toString` result references. */
|
18
|
+
var funcTag = '[object Function]',
|
19
|
+
genTag = '[object GeneratorFunction]';
|
20
|
+
|
21
|
+
/** Used to match leading and trailing whitespace. */
|
22
|
+
var reTrim = /^\s+|\s+$/g;
|
23
|
+
|
24
|
+
/** Used to detect bad signed hexadecimal string values. */
|
25
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
26
|
+
|
27
|
+
/** Used to detect binary string values. */
|
28
|
+
var reIsBinary = /^0b[01]+$/i;
|
29
|
+
|
30
|
+
/** Used to detect octal string values. */
|
31
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
32
|
+
|
33
|
+
/** Used to compose unicode character classes. */
|
34
|
+
var rsAstralRange = '\\ud800-\\udfff',
|
35
|
+
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
|
36
|
+
rsComboSymbolsRange = '\\u20d0-\\u20f0',
|
37
|
+
rsVarRange = '\\ufe0e\\ufe0f';
|
38
|
+
|
39
|
+
/** Used to compose unicode capture groups. */
|
40
|
+
var rsAstral = '[' + rsAstralRange + ']',
|
41
|
+
rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
|
42
|
+
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
43
|
+
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
44
|
+
rsNonAstral = '[^' + rsAstralRange + ']',
|
45
|
+
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
46
|
+
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
47
|
+
rsZWJ = '\\u200d';
|
48
|
+
|
49
|
+
/** Used to compose unicode regexes. */
|
50
|
+
var reOptMod = rsModifier + '?',
|
51
|
+
rsOptVar = '[' + rsVarRange + ']?',
|
52
|
+
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
53
|
+
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
54
|
+
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
55
|
+
|
56
|
+
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
|
57
|
+
var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
58
|
+
|
59
|
+
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
|
60
|
+
var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
|
61
|
+
|
62
|
+
/** Built-in method references without a dependency on `root`. */
|
63
|
+
var freeParseInt = parseInt;
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Gets the number of symbols in `string`.
|
67
|
+
*
|
68
|
+
* @private
|
69
|
+
* @param {string} string The string to inspect.
|
70
|
+
* @returns {number} Returns the string size.
|
71
|
+
*/
|
72
|
+
function stringSize(string) {
|
73
|
+
if (!(string && reHasComplexSymbol.test(string))) {
|
74
|
+
return string.length;
|
75
|
+
}
|
76
|
+
var result = reComplexSymbol.lastIndex = 0;
|
77
|
+
while (reComplexSymbol.test(string)) {
|
78
|
+
result++;
|
79
|
+
}
|
80
|
+
return result;
|
81
|
+
}
|
82
|
+
|
83
|
+
/**
|
84
|
+
* Converts `string` to an array.
|
85
|
+
*
|
86
|
+
* @private
|
87
|
+
* @param {string} string The string to convert.
|
88
|
+
* @returns {Array} Returns the converted array.
|
89
|
+
*/
|
90
|
+
function stringToArray(string) {
|
91
|
+
return string.match(reComplexSymbol);
|
92
|
+
}
|
93
|
+
|
94
|
+
/** Used for built-in method references. */
|
95
|
+
var objectProto = Object.prototype;
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
99
|
+
* of values.
|
100
|
+
*/
|
101
|
+
var objectToString = objectProto.toString;
|
102
|
+
|
103
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
104
|
+
var nativeCeil = Math.ceil;
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Creates the padding for `string` based on `length`. The `chars` string
|
108
|
+
* is truncated if the number of characters exceeds `length`.
|
109
|
+
*
|
110
|
+
* @private
|
111
|
+
* @param {string} string The string to create padding for.
|
112
|
+
* @param {number} [length=0] The padding length.
|
113
|
+
* @param {string} [chars=' '] The string used as padding.
|
114
|
+
* @returns {string} Returns the padding for `string`.
|
115
|
+
*/
|
116
|
+
function createPadding(string, length, chars) {
|
117
|
+
length = toInteger(length);
|
118
|
+
|
119
|
+
var strLength = stringSize(string);
|
120
|
+
if (!length || strLength >= length) {
|
121
|
+
return '';
|
122
|
+
}
|
123
|
+
var padLength = length - strLength;
|
124
|
+
chars = chars === undefined ? ' ' : (chars + '');
|
125
|
+
|
126
|
+
var result = repeat(chars, nativeCeil(padLength / stringSize(chars)));
|
127
|
+
return reHasComplexSymbol.test(chars)
|
128
|
+
? stringToArray(result).slice(0, padLength).join('')
|
129
|
+
: result.slice(0, padLength);
|
130
|
+
}
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Checks if `value` is classified as a `Function` object.
|
134
|
+
*
|
135
|
+
* @static
|
136
|
+
* @memberOf _
|
137
|
+
* @category Lang
|
138
|
+
* @param {*} value The value to check.
|
139
|
+
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
140
|
+
* @example
|
141
|
+
*
|
142
|
+
* _.isFunction(_);
|
143
|
+
* // => true
|
144
|
+
*
|
145
|
+
* _.isFunction(/abc/);
|
146
|
+
* // => false
|
147
|
+
*/
|
148
|
+
function isFunction(value) {
|
149
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
150
|
+
// in Safari 8 which returns 'object' for typed array constructors, and
|
151
|
+
// PhantomJS 1.9 which returns 'function' for `NodeList` instances.
|
152
|
+
var tag = isObject(value) ? objectToString.call(value) : '';
|
153
|
+
return tag == funcTag || tag == genTag;
|
154
|
+
}
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
158
|
+
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
159
|
+
*
|
160
|
+
* @static
|
161
|
+
* @memberOf _
|
162
|
+
* @category Lang
|
163
|
+
* @param {*} value The value to check.
|
164
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
165
|
+
* @example
|
166
|
+
*
|
167
|
+
* _.isObject({});
|
168
|
+
* // => true
|
169
|
+
*
|
170
|
+
* _.isObject([1, 2, 3]);
|
171
|
+
* // => true
|
172
|
+
*
|
173
|
+
* _.isObject(_.noop);
|
174
|
+
* // => true
|
175
|
+
*
|
176
|
+
* _.isObject(null);
|
177
|
+
* // => false
|
178
|
+
*/
|
179
|
+
function isObject(value) {
|
180
|
+
var type = typeof value;
|
181
|
+
return !!value && (type == 'object' || type == 'function');
|
182
|
+
}
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Converts `value` to an integer.
|
186
|
+
*
|
187
|
+
* **Note:** This function is loosely based on [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
|
188
|
+
*
|
189
|
+
* @static
|
190
|
+
* @memberOf _
|
191
|
+
* @category Lang
|
192
|
+
* @param {*} value The value to convert.
|
193
|
+
* @returns {number} Returns the converted integer.
|
194
|
+
* @example
|
195
|
+
*
|
196
|
+
* _.toInteger(3);
|
197
|
+
* // => 3
|
198
|
+
*
|
199
|
+
* _.toInteger(Number.MIN_VALUE);
|
200
|
+
* // => 0
|
201
|
+
*
|
202
|
+
* _.toInteger(Infinity);
|
203
|
+
* // => 1.7976931348623157e+308
|
204
|
+
*
|
205
|
+
* _.toInteger('3');
|
206
|
+
* // => 3
|
207
|
+
*/
|
208
|
+
function toInteger(value) {
|
209
|
+
if (!value) {
|
210
|
+
return value === 0 ? value : 0;
|
211
|
+
}
|
212
|
+
value = toNumber(value);
|
213
|
+
if (value === INFINITY || value === -INFINITY) {
|
214
|
+
var sign = (value < 0 ? -1 : 1);
|
215
|
+
return sign * MAX_INTEGER;
|
216
|
+
}
|
217
|
+
var remainder = value % 1;
|
218
|
+
return value === value ? (remainder ? value - remainder : value) : 0;
|
219
|
+
}
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Converts `value` to a number.
|
223
|
+
*
|
224
|
+
* @static
|
225
|
+
* @memberOf _
|
226
|
+
* @category Lang
|
227
|
+
* @param {*} value The value to process.
|
228
|
+
* @returns {number} Returns the number.
|
229
|
+
* @example
|
230
|
+
*
|
231
|
+
* _.toNumber(3);
|
232
|
+
* // => 3
|
233
|
+
*
|
234
|
+
* _.toNumber(Number.MIN_VALUE);
|
235
|
+
* // => 5e-324
|
236
|
+
*
|
237
|
+
* _.toNumber(Infinity);
|
238
|
+
* // => Infinity
|
239
|
+
*
|
240
|
+
* _.toNumber('3');
|
241
|
+
* // => 3
|
242
|
+
*/
|
243
|
+
function toNumber(value) {
|
244
|
+
if (isObject(value)) {
|
245
|
+
var other = isFunction(value.valueOf) ? value.valueOf() : value;
|
246
|
+
value = isObject(other) ? (other + '') : other;
|
247
|
+
}
|
248
|
+
if (typeof value != 'string') {
|
249
|
+
return value === 0 ? value : +value;
|
250
|
+
}
|
251
|
+
value = value.replace(reTrim, '');
|
252
|
+
var isBinary = reIsBinary.test(value);
|
253
|
+
return (isBinary || reIsOctal.test(value))
|
254
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
255
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
256
|
+
}
|
257
|
+
|
258
|
+
/**
|
259
|
+
* Pads `string` on the left side if it's shorter than `length`. Padding
|
260
|
+
* characters are truncated if they exceed `length`.
|
261
|
+
*
|
262
|
+
* @static
|
263
|
+
* @memberOf _
|
264
|
+
* @category String
|
265
|
+
* @param {string} [string=''] The string to pad.
|
266
|
+
* @param {number} [length=0] The padding length.
|
267
|
+
* @param {string} [chars=' '] The string used as padding.
|
268
|
+
* @returns {string} Returns the padded string.
|
269
|
+
* @example
|
270
|
+
*
|
271
|
+
* _.padStart('abc', 6);
|
272
|
+
* // => ' abc'
|
273
|
+
*
|
274
|
+
* _.padStart('abc', 6, '_-');
|
275
|
+
* // => '_-_abc'
|
276
|
+
*
|
277
|
+
* _.padStart('abc', 3);
|
278
|
+
* // => 'abc'
|
279
|
+
*/
|
280
|
+
function padStart(string, length, chars) {
|
281
|
+
string = toString(string);
|
282
|
+
return createPadding(string, length, chars) + string;
|
283
|
+
}
|
284
|
+
|
285
|
+
module.exports = padStart;
|
@@ -0,0 +1,91 @@
|
|
1
|
+
{
|
2
|
+
"_from": "lodash.padstart@^4.1.0",
|
3
|
+
"_id": "lodash.padstart@4.2.0",
|
4
|
+
"_location": "/lodash.padstart",
|
5
|
+
"_nodeVersion": "5.5.0",
|
6
|
+
"_npmOperationalInternal": {
|
7
|
+
"host": "packages-6-west.internal.npmjs.com",
|
8
|
+
"tmp": "tmp/lodash.padstart-4.2.0.tgz_1455615522339_0.6710881665349007"
|
9
|
+
},
|
10
|
+
"_npmUser": {
|
11
|
+
"email": "john.david.dalton@gmail.com",
|
12
|
+
"name": "jdalton"
|
13
|
+
},
|
14
|
+
"_npmVersion": "2.14.18",
|
15
|
+
"_phantomChildren": {},
|
16
|
+
"_requiredBy": [
|
17
|
+
"/gauge"
|
18
|
+
],
|
19
|
+
"_resolved": "https://registry.npmjs.org/lodash.padstart/-/lodash.padstart-4.2.0.tgz",
|
20
|
+
"_shasum": "e36f89fd6c3b5072219087695b765de83ec96985",
|
21
|
+
"_shrinkwrap": null,
|
22
|
+
"author": {
|
23
|
+
"email": "john.david.dalton@gmail.com",
|
24
|
+
"name": "John-David Dalton",
|
25
|
+
"url": "http://allyoucanleet.com/"
|
26
|
+
},
|
27
|
+
"bugs": {
|
28
|
+
"url": "https://github.com/lodash/lodash/issues"
|
29
|
+
},
|
30
|
+
"contributors": [
|
31
|
+
{
|
32
|
+
"name": "John-David Dalton",
|
33
|
+
"email": "john.david.dalton@gmail.com",
|
34
|
+
"url": "http://allyoucanleet.com/"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"name": "Blaine Bublitz",
|
38
|
+
"email": "blaine@iceddev.com",
|
39
|
+
"url": "https://github.com/phated"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"name": "Mathias Bynens",
|
43
|
+
"email": "mathias@qiwi.be",
|
44
|
+
"url": "https://mathiasbynens.be/"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
"dependencies": {
|
48
|
+
"lodash.repeat": "^4.0.0",
|
49
|
+
"lodash.tostring": "^4.0.0"
|
50
|
+
},
|
51
|
+
"description": "The lodash method `_.padStart` exported as a module.",
|
52
|
+
"devDependencies": {},
|
53
|
+
"directories": {},
|
54
|
+
"dist": {
|
55
|
+
"shasum": "e36f89fd6c3b5072219087695b765de83ec96985",
|
56
|
+
"tarball": "http://registry.npmjs.org/lodash.padstart/-/lodash.padstart-4.2.0.tgz"
|
57
|
+
},
|
58
|
+
"homepage": "https://lodash.com/",
|
59
|
+
"icon": "https://lodash.com/icon.svg",
|
60
|
+
"keywords": [
|
61
|
+
"lodash-modularized",
|
62
|
+
"padstart"
|
63
|
+
],
|
64
|
+
"license": "MIT",
|
65
|
+
"maintainers": [
|
66
|
+
{
|
67
|
+
"name": "jdalton",
|
68
|
+
"email": "john.david.dalton@gmail.com"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"name": "mathias",
|
72
|
+
"email": "mathias@qiwi.be"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"name": "phated",
|
76
|
+
"email": "blaine.bublitz@gmail.com"
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"name": "lodash.padstart",
|
80
|
+
"optionalDependencies": {},
|
81
|
+
"readme": "# lodash.padstart v4.2.0\n\nThe [lodash](https://lodash.com/) method `_.padStart` exported as a [Node.js](https://nodejs.org/) module.\n\n## Installation\n\nUsing npm:\n```bash\n$ {sudo -H} npm i -g npm\n$ npm i --save lodash.padstart\n```\n\nIn Node.js:\n```js\nvar padStart = require('lodash.padstart');\n```\n\nSee the [documentation](https://lodash.com/docs#padStart) or [package source](https://github.com/lodash/lodash/blob/4.2.0-npm-packages/lodash.padstart) for more details.\n",
|
82
|
+
"readmeFilename": "README.md",
|
83
|
+
"repository": {
|
84
|
+
"type": "git",
|
85
|
+
"url": "git+https://github.com/lodash/lodash.git"
|
86
|
+
},
|
87
|
+
"scripts": {
|
88
|
+
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
89
|
+
},
|
90
|
+
"version": "4.2.0"
|
91
|
+
}
|
@@ -1,22 +1,23 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
1
3
|
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
2
4
|
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
3
5
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
4
6
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
the following conditions:
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
12
|
+
furnished to do so, subject to the following conditions:
|
12
13
|
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
15
|
+
copies or substantial portions of the Software.
|
15
16
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
OF
|
22
|
-
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
SOFTWARE.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# lodash.repeat
|
1
|
+
# lodash.repeat v4.0.0
|
2
2
|
|
3
3
|
The [lodash](https://lodash.com/) method `_.repeat` exported as a [Node.js](https://nodejs.org/) module.
|
4
4
|
|
@@ -15,4 +15,4 @@ In Node.js:
|
|
15
15
|
var repeat = require('lodash.repeat');
|
16
16
|
```
|
17
17
|
|
18
|
-
See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/
|
18
|
+
See the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/4.0.0-npm-packages/lodash.repeat) for more details.
|
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* lodash
|
2
|
+
* lodash 4.0.0 (Custom Build) <https://lodash.com/>
|
3
3
|
* Build: `lodash modularize exports="npm" -o ./`
|
4
4
|
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
5
5
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
6
6
|
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
7
7
|
* Available under MIT license <https://lodash.com/license>
|
8
8
|
*/
|
9
|
-
var
|
9
|
+
var toString = require('lodash.tostring');
|
10
10
|
|
11
11
|
/** Used as references for various `Number` constants. */
|
12
12
|
var INFINITY = 1 / 0,
|
@@ -16,8 +16,7 @@ var INFINITY = 1 / 0,
|
|
16
16
|
|
17
17
|
/** `Object#toString` result references. */
|
18
18
|
var funcTag = '[object Function]',
|
19
|
-
genTag = '[object GeneratorFunction]'
|
20
|
-
symbolTag = '[object Symbol]';
|
19
|
+
genTag = '[object GeneratorFunction]';
|
21
20
|
|
22
21
|
/** Used to match leading and trailing whitespace. */
|
23
22
|
var reTrim = /^\s+|\s+$/g;
|
@@ -43,16 +42,9 @@ var objectProto = Object.prototype;
|
|
43
42
|
*/
|
44
43
|
var objectToString = objectProto.toString;
|
45
44
|
|
46
|
-
/** Built-in value references. */
|
47
|
-
var Symbol = root.Symbol;
|
48
|
-
|
49
45
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
50
46
|
var nativeFloor = Math.floor;
|
51
47
|
|
52
|
-
/** Used to convert symbols to primitives and strings. */
|
53
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
54
|
-
symbolToString = Symbol ? symbolProto.toString : undefined;
|
55
|
-
|
56
48
|
/**
|
57
49
|
* Checks if `value` is classified as a `Function` object.
|
58
50
|
*
|
@@ -105,54 +97,6 @@ function isObject(value) {
|
|
105
97
|
return !!value && (type == 'object' || type == 'function');
|
106
98
|
}
|
107
99
|
|
108
|
-
/**
|
109
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
110
|
-
* and has a `typeof` result of "object".
|
111
|
-
*
|
112
|
-
* @static
|
113
|
-
* @memberOf _
|
114
|
-
* @category Lang
|
115
|
-
* @param {*} value The value to check.
|
116
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
117
|
-
* @example
|
118
|
-
*
|
119
|
-
* _.isObjectLike({});
|
120
|
-
* // => true
|
121
|
-
*
|
122
|
-
* _.isObjectLike([1, 2, 3]);
|
123
|
-
* // => true
|
124
|
-
*
|
125
|
-
* _.isObjectLike(_.noop);
|
126
|
-
* // => false
|
127
|
-
*
|
128
|
-
* _.isObjectLike(null);
|
129
|
-
* // => false
|
130
|
-
*/
|
131
|
-
function isObjectLike(value) {
|
132
|
-
return !!value && typeof value == 'object';
|
133
|
-
}
|
134
|
-
|
135
|
-
/**
|
136
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
137
|
-
*
|
138
|
-
* @static
|
139
|
-
* @memberOf _
|
140
|
-
* @category Lang
|
141
|
-
* @param {*} value The value to check.
|
142
|
-
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
143
|
-
* @example
|
144
|
-
*
|
145
|
-
* _.isSymbol(Symbol.iterator);
|
146
|
-
* // => true
|
147
|
-
*
|
148
|
-
* _.isSymbol('abc');
|
149
|
-
* // => false
|
150
|
-
*/
|
151
|
-
function isSymbol(value) {
|
152
|
-
return typeof value == 'symbol' ||
|
153
|
-
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
154
|
-
}
|
155
|
-
|
156
100
|
/**
|
157
101
|
* Converts `value` to an integer.
|
158
102
|
*
|
@@ -227,41 +171,6 @@ function toNumber(value) {
|
|
227
171
|
: (reIsBadHex.test(value) ? NAN : +value);
|
228
172
|
}
|
229
173
|
|
230
|
-
/**
|
231
|
-
* Converts `value` to a string if it's not one. An empty string is returned
|
232
|
-
* for `null` and `undefined` values. The sign of `-0` is preserved.
|
233
|
-
*
|
234
|
-
* @static
|
235
|
-
* @memberOf _
|
236
|
-
* @category Lang
|
237
|
-
* @param {*} value The value to process.
|
238
|
-
* @returns {string} Returns the string.
|
239
|
-
* @example
|
240
|
-
*
|
241
|
-
* _.toString(null);
|
242
|
-
* // => ''
|
243
|
-
*
|
244
|
-
* _.toString(-0);
|
245
|
-
* // => '-0'
|
246
|
-
*
|
247
|
-
* _.toString([1, 2, 3]);
|
248
|
-
* // => '1,2,3'
|
249
|
-
*/
|
250
|
-
function toString(value) {
|
251
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
252
|
-
if (typeof value == 'string') {
|
253
|
-
return value;
|
254
|
-
}
|
255
|
-
if (value == null) {
|
256
|
-
return '';
|
257
|
-
}
|
258
|
-
if (isSymbol(value)) {
|
259
|
-
return Symbol ? symbolToString.call(value) : '';
|
260
|
-
}
|
261
|
-
var result = (value + '');
|
262
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
263
|
-
}
|
264
|
-
|
265
174
|
/**
|
266
175
|
* Repeats the given string `n` times.
|
267
176
|
*
|
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
|
-
"_from": "lodash.repeat@^
|
3
|
-
"_id": "lodash.repeat@
|
2
|
+
"_from": "lodash.repeat@^4.0.0",
|
3
|
+
"_id": "lodash.repeat@4.0.0",
|
4
4
|
"_location": "/lodash.repeat",
|
5
5
|
"_nodeVersion": "5.5.0",
|
6
6
|
"_npmOperationalInternal": {
|
7
|
-
"host": "packages-
|
8
|
-
"tmp": "tmp/lodash.repeat-
|
7
|
+
"host": "packages-9-west.internal.npmjs.com",
|
8
|
+
"tmp": "tmp/lodash.repeat-4.0.0.tgz_1455602646227_0.7481637196615338"
|
9
9
|
},
|
10
10
|
"_npmUser": {
|
11
11
|
"email": "john.david.dalton@gmail.com",
|
@@ -14,11 +14,12 @@
|
|
14
14
|
"_npmVersion": "2.14.18",
|
15
15
|
"_phantomChildren": {},
|
16
16
|
"_requiredBy": [
|
17
|
-
"/lodash.
|
18
|
-
"/lodash.
|
17
|
+
"/lodash.pad",
|
18
|
+
"/lodash.padend",
|
19
|
+
"/lodash.padstart"
|
19
20
|
],
|
20
|
-
"_resolved": "https://registry.npmjs.org/lodash.repeat/-/lodash.repeat-
|
21
|
-
"_shasum": "
|
21
|
+
"_resolved": "https://registry.npmjs.org/lodash.repeat/-/lodash.repeat-4.0.0.tgz",
|
22
|
+
"_shasum": "aaf570b2ab0bfb0dda6d6e93291d54b30b1f7d22",
|
22
23
|
"_shrinkwrap": null,
|
23
24
|
"author": {
|
24
25
|
"email": "john.david.dalton@gmail.com",
|
@@ -46,14 +47,14 @@
|
|
46
47
|
}
|
47
48
|
],
|
48
49
|
"dependencies": {
|
49
|
-
"lodash.
|
50
|
+
"lodash.tostring": "^4.0.0"
|
50
51
|
},
|
51
52
|
"description": "The lodash method `_.repeat` exported as a module.",
|
52
53
|
"devDependencies": {},
|
53
54
|
"directories": {},
|
54
55
|
"dist": {
|
55
|
-
"shasum": "
|
56
|
-
"tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-
|
56
|
+
"shasum": "aaf570b2ab0bfb0dda6d6e93291d54b30b1f7d22",
|
57
|
+
"tarball": "http://registry.npmjs.org/lodash.repeat/-/lodash.repeat-4.0.0.tgz"
|
57
58
|
},
|
58
59
|
"homepage": "https://lodash.com/",
|
59
60
|
"icon": "https://lodash.com/icon.svg",
|
@@ -78,7 +79,7 @@
|
|
78
79
|
],
|
79
80
|
"name": "lodash.repeat",
|
80
81
|
"optionalDependencies": {},
|
81
|
-
"readme": "# lodash.repeat
|
82
|
+
"readme": "# lodash.repeat v4.0.0\n\nThe [lodash](https://lodash.com/) method `_.repeat` exported as a [Node.js](https://nodejs.org/) module.\n\n## Installation\n\nUsing npm:\n```bash\n$ {sudo -H} npm i -g npm\n$ npm i --save lodash.repeat\n```\n\nIn Node.js:\n```js\nvar repeat = require('lodash.repeat');\n```\n\nSee the [documentation](https://lodash.com/docs#repeat) or [package source](https://github.com/lodash/lodash/blob/4.0.0-npm-packages/lodash.repeat) for more details.\n",
|
82
83
|
"readmeFilename": "README.md",
|
83
84
|
"repository": {
|
84
85
|
"type": "git",
|
@@ -87,5 +88,5 @@
|
|
87
88
|
"scripts": {
|
88
89
|
"test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\""
|
89
90
|
},
|
90
|
-
"version": "
|
91
|
+
"version": "4.0.0"
|
91
92
|
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
4
|
+
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
5
|
+
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
12
|
+
furnished to do so, subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
15
|
+
copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
SOFTWARE.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# lodash.tostring v4.1.2
|
2
|
+
|
3
|
+
The [lodash](https://lodash.com/) method `_.toString` exported as a [Node.js](https://nodejs.org/) module.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Using npm:
|
8
|
+
```bash
|
9
|
+
$ {sudo -H} npm i -g npm
|
10
|
+
$ npm i --save lodash.tostring
|
11
|
+
```
|
12
|
+
|
13
|
+
In Node.js:
|
14
|
+
```js
|
15
|
+
var toString = require('lodash.tostring');
|
16
|
+
```
|
17
|
+
|
18
|
+
See the [documentation](https://lodash.com/docs#toString) or [package source](https://github.com/lodash/lodash/blob/4.1.2-npm-packages/lodash.tostring) for more details.
|