fsevents 1.0.1 → 1.0.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.

Potentially problematic release.


This version of fsevents might be problematic. Click here for more details.

Files changed (87) hide show
  1. package/node_modules/node-pre-gyp/CHANGELOG.md +4 -0
  2. package/node_modules/node-pre-gyp/README.md +1 -1
  3. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +4 -0
  4. package/node_modules/node-pre-gyp/lib/util/versioning.js +16 -0
  5. package/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/core-util-is/package.json +1 -1
  6. package/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/node_modules/inherits/package.json +1 -1
  7. package/node_modules/node-pre-gyp/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/readable-stream/package.json +1 -1
  8. package/node_modules/node-pre-gyp/node_modules/rc/lib/utils.js +5 -3
  9. package/node_modules/node-pre-gyp/node_modules/rc/package.json +7 -8
  10. package/node_modules/node-pre-gyp/node_modules/rc/test/nested-env-vars.js +1 -0
  11. package/node_modules/node-pre-gyp/node_modules/request/.npmignore +3 -0
  12. package/node_modules/node-pre-gyp/node_modules/request/CHANGELOG.md +6 -0
  13. package/node_modules/node-pre-gyp/node_modules/request/README.md +2 -2
  14. package/node_modules/node-pre-gyp/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/core-util-is/package.json +1 -1
  15. package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/README.md +1 -1
  16. package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/browser/bluebird.js +10 -4
  17. package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/browser/bluebird.min.js +3 -3
  18. package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/js/main/timers.js +9 -3
  19. package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/bluebird/package.json +7 -7
  20. package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/chalk/node_modules/escape-string-regexp/package.json +1 -1
  21. package/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/jsonpointer/package.json +1 -2
  22. package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/boom/package.json +2 -1
  23. package/node_modules/node-pre-gyp/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +2 -1
  24. package/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/asn1/package.json +2 -7
  25. package/node_modules/node-pre-gyp/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json +1 -6
  26. package/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/node_modules/mime-db/package.json +2 -1
  27. package/node_modules/node-pre-gyp/node_modules/request/node_modules/mime-types/package.json +2 -1
  28. package/node_modules/node-pre-gyp/node_modules/request/node_modules/qs/package.json +2 -1
  29. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/README.md +12 -6
  30. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/lib/cookie.js +32 -12
  31. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js +2 -2
  32. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/package.json +35 -12
  33. package/node_modules/node-pre-gyp/node_modules/request/package.json +7 -7
  34. package/node_modules/node-pre-gyp/node_modules/request/request.js +6 -3
  35. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json +1 -1
  36. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +3 -2
  37. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +1 -0
  38. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +9 -9
  39. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json +12 -16
  40. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/package.json +10 -11
  41. package/node_modules/node-pre-gyp/node_modules/semver/package.json +2 -1
  42. package/node_modules/node-pre-gyp/node_modules/tar/node_modules/inherits/package.json +1 -1
  43. package/node_modules/node-pre-gyp/node_modules/tar/package.json +2 -1
  44. package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/fstream-ignore/node_modules/inherits/package.json +1 -1
  45. package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/node_modules/core-util-is/package.json +1 -1
  46. package/node_modules/node-pre-gyp/node_modules/tar-pack/node_modules/readable-stream/package.json +1 -1
  47. package/node_modules/node-pre-gyp/package.json +8 -9
  48. package/package.json +2 -2
  49. package/node_modules/node-pre-gyp/node_modules/request/disabled.appveyor.yml +0 -36
  50. package/node_modules/node-pre-gyp/node_modules/request/examples/README.md +0 -115
  51. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/.editorconfig +0 -12
  52. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/.jshintrc +0 -70
  53. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/.npmignore +0 -4
  54. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/.travis.yml +0 -9
  55. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/LICENSE +0 -74
  56. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/generate-pubsuffix.js +0 -293
  57. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/public-suffix.txt +0 -10309
  58. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/api_test.js +0 -372
  59. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/cookie_jar_test.js +0 -468
  60. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/cookie_sorting_test.js +0 -156
  61. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/cookie_to_json_test.js +0 -164
  62. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/cookie_to_string_test.js +0 -162
  63. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/date_test.js +0 -79
  64. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/domain_and_path_test.js +0 -201
  65. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/ietf_data/dates/bsd-examples.json +0 -168
  66. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/ietf_data/dates/examples.json +0 -48
  67. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/ietf_data/parser.json +0 -1959
  68. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/ietf_test.js +0 -105
  69. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/jar_serialization_test.js +0 -348
  70. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/lifetime_test.js +0 -97
  71. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/parsing_test.js +0 -294
  72. package/node_modules/node-pre-gyp/node_modules/request/node_modules/tough-cookie/test/regression_test.js +0 -143
  73. package/node_modules/node-pre-gyp/node_modules/request/release.sh +0 -45
  74. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/browser.js +0 -1159
  75. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml +0 -3
  76. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js +0 -32
  77. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt +0 -1075
  78. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt +0 -182
  79. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js +0 -9
  80. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js +0 -10
  81. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh +0 -24
  82. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js +0 -15
  83. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js +0 -16
  84. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js +0 -10
  85. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js +0 -13
  86. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js +0 -7
  87. package/node_modules/node-pre-gyp/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js +0 -50
@@ -59,6 +59,5 @@
59
59
  "tarball": "http://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz"
60
60
  },
61
61
  "directories": {},
62
- "_resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz",
63
- "readme": "ERROR: No README data found!"
62
+ "_resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz"
64
63
  }
@@ -59,5 +59,6 @@
59
59
  "tarball": "http://registry.npmjs.org/boom/-/boom-2.9.0.tgz"
60
60
  },
61
61
  "directories": {},
62
- "_resolved": "https://registry.npmjs.org/boom/-/boom-2.9.0.tgz"
62
+ "_resolved": "https://registry.npmjs.org/boom/-/boom-2.9.0.tgz",
63
+ "readme": "ERROR: No README data found!"
63
64
  }
@@ -56,5 +56,6 @@
56
56
  }
57
57
  ],
58
58
  "directories": {},
59
- "_resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz"
59
+ "_resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz",
60
+ "readme": "ERROR: No README data found!"
60
61
  }
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "scripts": {
32
32
  "pretest": "which gjslint; if [[ \"$?\" = 0 ]] ; then gjslint --nojsdoc -r lib -r tst; else echo \"Missing gjslint. Skipping lint\"; fi",
33
- "test": "tap ./tst"
33
+ "test": "./node_modules/.bin/tap ./tst"
34
34
  },
35
35
  "_npmUser": {
36
36
  "name": "mcavage",
@@ -54,10 +54,5 @@
54
54
  "directories": {},
55
55
  "_shasum": "559be18376d08a4ec4dbe80877d27818639b2df7",
56
56
  "_from": "asn1@0.1.11",
57
- "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz",
58
- "bugs": {
59
- "url": "https://github.com/mcavage/node-asn1/issues"
60
- },
61
- "readme": "ERROR: No README data found!",
62
- "homepage": "https://github.com/mcavage/node-asn1"
57
+ "_resolved": "https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz"
63
58
  }
@@ -34,10 +34,5 @@
34
34
  "directories": {},
35
35
  "_shasum": "82c18c2461f74114ef16c135224ad0b9144ca12f",
36
36
  "_from": "ctype@0.5.3",
37
- "_resolved": "https://registry.npmjs.org/ctype/-/ctype-0.5.3.tgz",
38
- "bugs": {
39
- "url": "https://github.com/rmustacc/node-ctype/issues"
40
- },
41
- "readme": "ERROR: No README data found!",
42
- "scripts": {}
37
+ "_resolved": "https://registry.npmjs.org/ctype/-/ctype-0.5.3.tgz"
43
38
  }
@@ -89,5 +89,6 @@
89
89
  "tarball": "http://registry.npmjs.org/mime-db/-/mime-db-1.19.0.tgz"
90
90
  },
91
91
  "directories": {},
92
- "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.19.0.tgz"
92
+ "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.19.0.tgz",
93
+ "readme": "ERROR: No README data found!"
93
94
  }
@@ -79,5 +79,6 @@
79
79
  "tarball": "http://registry.npmjs.org/mime-types/-/mime-types-2.1.7.tgz"
80
80
  },
81
81
  "directories": {},
82
- "_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.7.tgz"
82
+ "_resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.7.tgz",
83
+ "readme": "ERROR: No README data found!"
83
84
  }
@@ -54,5 +54,6 @@
54
54
  }
55
55
  ],
56
56
  "directories": {},
57
- "_resolved": "https://registry.npmjs.org/qs/-/qs-5.1.0.tgz"
57
+ "_resolved": "https://registry.npmjs.org/qs/-/qs-5.1.0.tgz",
58
+ "readme": "ERROR: No README data found!"
58
59
  }
@@ -68,9 +68,9 @@ Answers "does the request-path path-match a given cookie-path?" as per RFC6265 S
68
68
 
69
69
  This is essentially a prefix-match where `cookiePath` is a prefix of `reqPath`.
70
70
 
71
- ### `parse(header)`
71
+ ### `parse(cookieString[, options])`
72
72
 
73
- alias for `Cookie.parse(header)`
73
+ alias for `Cookie.parse(cookieString[, options])`
74
74
 
75
75
  ### `fromJSON(string)`
76
76
 
@@ -112,15 +112,21 @@ Generates a list of all possible paths that `pathMatch()` the parameter. May be
112
112
 
113
113
  Exported via `tough.Cookie`.
114
114
 
115
- ### `Cookie.parse(header)`
115
+ ### `Cookie.parse(cookieString[, options])`
116
116
 
117
117
  Parses a single Cookie or Set-Cookie HTTP header into a `Cookie` object. Returns `undefined` if the string can't be parsed.
118
118
 
119
+ The options parameter is not required and currently has only one property:
120
+
121
+ * _loose_ - boolean - if `true` enable parsing of key-less cookies like `=abc` and `=`, which are not RFC-compliant.
122
+
123
+ If options is not an object, it is ignored, which means you can use `Array#map` with it.
124
+
119
125
  Here's how to process the Set-Cookie header(s) on a node HTTP/HTTPS response:
120
126
 
121
127
  ``` javascript
122
128
  if (res.headers['set-cookie'] instanceof Array)
123
- cookies = res.headers['set-cookie'].map(function (c) { return (Cookie.parse(c)); });
129
+ cookies = res.headers['set-cookie'].map(Cookie.parse);
124
130
  else
125
131
  cookies = [Cookie.parse(res.headers['set-cookie'])];
126
132
  ```
@@ -450,7 +456,7 @@ A just-in-memory CookieJar synchronous store implementation, used by default. De
450
456
 
451
457
  # Copyright and License
452
458
 
453
- (tl;dr: BSD-3-Clause with some MPL/1.1)
459
+ (tl;dr: BSD-3-Clause with some MPL/2.0)
454
460
 
455
461
  ```text
456
462
  Copyright (c) 2015, Salesforce.com, Inc.
@@ -483,4 +489,4 @@ A just-in-memory CookieJar synchronous store implementation, used by default. De
483
489
  POSSIBILITY OF SUCH DAMAGE.
484
490
  ```
485
491
 
486
- Portions may be licensed under different licenses (in particular public-suffix.txt is MPL/1.1); please read the LICENSE file for full details.
492
+ Portions may be licensed under different licenses (in particular `public_suffix_list.dat` is MPL/2.0); please read that file and the LICENSE file for full details.
@@ -49,14 +49,20 @@ var DATE_DELIM = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/;
49
49
  // From RFC6265 S4.1.1
50
50
  // note that it excludes \x3B ";"
51
51
  var COOKIE_OCTET = /[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]/;
52
- var COOKIE_OCTETS = new RegExp('^'+COOKIE_OCTET.source+'$');
52
+ var COOKIE_OCTETS = new RegExp('^'+COOKIE_OCTET.source+'+$');
53
+
54
+ var CONTROL_CHARS = /[\x00-\x1F]/;
53
55
 
54
56
  // Double quotes are part of the value (see: S4.1.1).
55
57
  // '\r', '\n' and '\0' should be treated as a terminator in the "relaxed" mode
56
58
  // (see: https://github.com/ChromiumWebApps/chromium/blob/b3d3b4da8bb94c1b2e061600df106d590fda3620/net/cookies/parsed_cookie.cc#L60)
57
59
  // '=' and ';' are attribute/values separators
58
60
  // (see: https://github.com/ChromiumWebApps/chromium/blob/b3d3b4da8bb94c1b2e061600df106d590fda3620/net/cookies/parsed_cookie.cc#L64)
59
- var COOKIE_PAIR = /^([^=;]+)\s*=\s*(("?)[^\n\r\0]*\3)/;
61
+ var COOKIE_PAIR = /^(([^=;]+))\s*=\s*(("?)[^\n\r\0]*\3)/
62
+
63
+ // Used to parse non-RFC-compliant cookies like '=abc' when given the `loose`
64
+ // option in Cookie.parse:
65
+ var LOOSE_COOKIE_PAIR = /^((?:=)?([^=;]*)\s*=\s*)?(("?)[^\n\r\0]*\3)/;
60
66
 
61
67
  // RFC6265 S4.1.1 defines path value as 'any CHAR except CTLs or ";"'
62
68
  // Note ';' is \x3B
@@ -315,7 +321,10 @@ function defaultPath(path) {
315
321
  }
316
322
 
317
323
 
318
- function parse(str) {
324
+ function parse(str, options) {
325
+ if (!options || typeof options !== 'object') {
326
+ options = {};
327
+ }
319
328
  str = str.trim();
320
329
 
321
330
  // S4.1.1 Trailing semi-colons are not part of the specification.
@@ -326,7 +335,8 @@ function parse(str) {
326
335
 
327
336
  // We use a regex to parse the "name-value-pair" part of S5.2
328
337
  var firstSemi = str.indexOf(';'); // S5.2 step 1
329
- var result = COOKIE_PAIR.exec(firstSemi === -1 ? str : str.substr(0,firstSemi));
338
+ var pairRe = options.loose ? LOOSE_COOKIE_PAIR : COOKIE_PAIR;
339
+ var result = pairRe.exec(firstSemi === -1 ? str : str.substr(0,firstSemi));
330
340
 
331
341
  // Rx satisfies the "the name string is empty" and "lacks a %x3D ("=")"
332
342
  // constraints as well as trimming any whitespace.
@@ -335,8 +345,15 @@ function parse(str) {
335
345
  }
336
346
 
337
347
  var c = new Cookie();
338
- c.key = result[1].trim();
339
- c.value = result[2].trim();
348
+ if (result[1]) {
349
+ c.key = result[2].trim();
350
+ } else {
351
+ c.key = '';
352
+ }
353
+ c.value = result[3].trim();
354
+ if (CONTROL_CHARS.test(c.key) || CONTROL_CHARS.test(c.value)) {
355
+ return;
356
+ }
340
357
 
341
358
  if (firstSemi === -1) {
342
359
  return c;
@@ -586,15 +603,15 @@ function getCookieContext(url) {
586
603
  return urlParse(url);
587
604
  }
588
605
 
589
- function Cookie(opts) {
590
- opts = opts || {};
606
+ function Cookie(options) {
607
+ options = options || {};
591
608
 
592
- Object.keys(opts).forEach(function(prop) {
609
+ Object.keys(options).forEach(function(prop) {
593
610
  if (Cookie.prototype.hasOwnProperty(prop) &&
594
- Cookie.prototype[prop] !== opts[prop] &&
611
+ Cookie.prototype[prop] !== options[prop] &&
595
612
  prop.substr(0,1) !== '_')
596
613
  {
597
- this[prop] = opts[prop];
614
+ this[prop] = options[prop];
598
615
  }
599
616
  }, this);
600
617
 
@@ -745,6 +762,9 @@ Cookie.prototype.cookieString = function cookieString() {
745
762
  if (val == null) {
746
763
  val = '';
747
764
  }
765
+ if (this.key === '') {
766
+ return val;
767
+ }
748
768
  return this.key+'='+val;
749
769
  };
750
770
 
@@ -885,7 +905,7 @@ CookieJar.prototype.setCookie = function(cookie, url, options, cb) {
885
905
 
886
906
  // S5.3 step 1
887
907
  if (!(cookie instanceof Cookie)) {
888
- cookie = Cookie.parse(cookie);
908
+ cookie = Cookie.parse(cookie, { loose: options.loose });
889
909
  }
890
910
  if (!cookie) {
891
911
  err = new Error("Cookie failed to parse");