fsevents 1.2.2 → 1.2.7

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 (149) hide show
  1. package/.travis.yml +2 -1
  2. package/fsevents.cc +9 -22
  3. package/node_modules/abbrev/package.json +1 -1
  4. package/node_modules/ansi-regex/package.json +1 -1
  5. package/node_modules/aproba/package.json +1 -1
  6. package/node_modules/are-we-there-yet/CHANGES.md +6 -0
  7. package/node_modules/are-we-there-yet/package.json +8 -8
  8. package/node_modules/are-we-there-yet/tracker-stream.js +1 -0
  9. package/node_modules/balanced-match/package.json +1 -1
  10. package/node_modules/brace-expansion/package.json +1 -1
  11. package/node_modules/chownr/chownr.js +74 -38
  12. package/node_modules/chownr/package.json +16 -13
  13. package/node_modules/code-point-at/package.json +1 -1
  14. package/node_modules/concat-map/package.json +1 -1
  15. package/node_modules/console-control-strings/package.json +1 -1
  16. package/node_modules/core-util-is/package.json +1 -1
  17. package/node_modules/debug/package.json +1 -1
  18. package/node_modules/deep-extend/CHANGELOG.md +28 -3
  19. package/node_modules/deep-extend/LICENSE +1 -1
  20. package/node_modules/deep-extend/README.md +2 -1
  21. package/node_modules/deep-extend/lib/deep-extend.js +11 -5
  22. package/node_modules/deep-extend/package.json +20 -21
  23. package/node_modules/delegates/package.json +1 -1
  24. package/node_modules/detect-libc/package.json +1 -1
  25. package/node_modules/fs-minipass/package.json +1 -1
  26. package/node_modules/fs.realpath/package.json +1 -1
  27. package/node_modules/gauge/package.json +1 -1
  28. package/node_modules/glob/package.json +12 -12
  29. package/node_modules/has-unicode/package.json +1 -1
  30. package/node_modules/iconv-lite/Changelog.md +16 -0
  31. package/node_modules/iconv-lite/encodings/sbcs-codec.js +2 -2
  32. package/node_modules/iconv-lite/encodings/sbcs-data.js +5 -0
  33. package/node_modules/iconv-lite/lib/extend-node.js +1 -1
  34. package/node_modules/iconv-lite/lib/index.d.ts +2 -2
  35. package/node_modules/iconv-lite/package.json +8 -8
  36. package/node_modules/ignore-walk/package.json +1 -1
  37. package/node_modules/inflight/package.json +1 -1
  38. package/node_modules/inherits/package.json +1 -1
  39. package/node_modules/ini/package.json +1 -1
  40. package/node_modules/is-fullwidth-code-point/package.json +1 -1
  41. package/node_modules/isarray/package.json +1 -1
  42. package/node_modules/minimatch/package.json +1 -1
  43. package/node_modules/minimist/package.json +1 -1
  44. package/node_modules/minipass/LICENSE +15 -0
  45. package/node_modules/minipass/README.md +81 -3
  46. package/node_modules/minipass/index.js +77 -6
  47. package/node_modules/minipass/package.json +13 -13
  48. package/node_modules/minizlib/index.js +66 -95
  49. package/node_modules/minizlib/package.json +12 -12
  50. package/node_modules/mkdirp/package.json +1 -1
  51. package/node_modules/ms/package.json +1 -1
  52. package/node_modules/needle/README.md +2 -1
  53. package/node_modules/needle/lib/cookies.js +12 -10
  54. package/node_modules/needle/lib/needle.js +16 -4
  55. package/node_modules/needle/note.xml +7 -0
  56. package/node_modules/needle/note.xml.1 +7 -0
  57. package/node_modules/needle/package.json +13 -13
  58. package/node_modules/needle/test/errors_spec.js +4 -4
  59. package/node_modules/needle/test/long_string_spec.js +1 -1
  60. package/node_modules/needle/test/url_spec.js +11 -3
  61. package/node_modules/node-pre-gyp/CHANGELOG.md +24 -3
  62. package/node_modules/node-pre-gyp/README.md +15 -18
  63. package/node_modules/node-pre-gyp/appveyor.yml +2 -9
  64. package/node_modules/node-pre-gyp/contributing.md +2 -2
  65. package/node_modules/node-pre-gyp/lib/install.js +29 -7
  66. package/node_modules/node-pre-gyp/lib/package.js +5 -2
  67. package/node_modules/node-pre-gyp/lib/reinstall.js +1 -1
  68. package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +100 -0
  69. package/node_modules/node-pre-gyp/package.json +13 -14
  70. package/node_modules/nopt/package.json +1 -1
  71. package/node_modules/npm-bundled/LICENSE +15 -0
  72. package/node_modules/npm-bundled/README.md +2 -0
  73. package/node_modules/npm-bundled/index.js +3 -1
  74. package/node_modules/npm-bundled/package.json +7 -7
  75. package/node_modules/npm-packlist/index.js +16 -7
  76. package/node_modules/npm-packlist/package.json +7 -7
  77. package/node_modules/npmlog/package.json +1 -1
  78. package/node_modules/number-is-nan/package.json +1 -1
  79. package/node_modules/object-assign/package.json +1 -1
  80. package/node_modules/once/package.json +1 -1
  81. package/node_modules/os-homedir/package.json +1 -1
  82. package/node_modules/os-tmpdir/package.json +1 -1
  83. package/node_modules/osenv/package.json +1 -1
  84. package/node_modules/path-is-absolute/package.json +1 -1
  85. package/node_modules/process-nextick-args/package.json +1 -1
  86. package/node_modules/rc/node_modules/minimist/package.json +1 -1
  87. package/node_modules/rc/package.json +12 -12
  88. package/node_modules/readable-stream/package.json +1 -1
  89. package/node_modules/rimraf/package.json +11 -8
  90. package/node_modules/safe-buffer/index.d.ts +187 -0
  91. package/node_modules/safe-buffer/package.json +9 -9
  92. package/node_modules/safer-buffer/package.json +6 -6
  93. package/node_modules/sax/package.json +1 -1
  94. package/node_modules/semver/README.md +17 -6
  95. package/node_modules/semver/bin/semver +14 -4
  96. package/node_modules/semver/package.json +7 -7
  97. package/node_modules/semver/semver.js +132 -104
  98. package/node_modules/set-blocking/package.json +1 -1
  99. package/node_modules/signal-exit/package.json +1 -1
  100. package/node_modules/string-width/package.json +1 -1
  101. package/node_modules/string_decoder/package.json +1 -1
  102. package/node_modules/strip-ansi/package.json +1 -1
  103. package/node_modules/strip-json-comments/package.json +1 -1
  104. package/node_modules/tar/README.md +7 -2
  105. package/node_modules/tar/lib/header.js +20 -4
  106. package/node_modules/tar/lib/mode-fix.js +14 -0
  107. package/node_modules/tar/lib/pack.js +1 -0
  108. package/node_modules/tar/lib/parse.js +2 -1
  109. package/node_modules/tar/lib/unpack.js +67 -6
  110. package/node_modules/tar/lib/write-entry.js +25 -6
  111. package/node_modules/tar/package.json +14 -14
  112. package/node_modules/util-deprecate/package.json +1 -1
  113. package/node_modules/wide-align/package.json +8 -8
  114. package/node_modules/wrappy/package.json +1 -1
  115. package/node_modules/yallist/iterator.js +5 -5
  116. package/node_modules/yallist/package.json +7 -7
  117. package/node_modules/yallist/yallist.js +2 -2
  118. package/package.json +3 -3
  119. package/src/async.cc +2 -2
  120. package/src/methods.cc +9 -7
  121. package/src/thread.cc +5 -6
  122. package/.npmignore +0 -1
  123. package/build/.target.mk +0 -53
  124. package/build/Makefile +0 -352
  125. package/build/Release/.deps/Release/.node.d +0 -1
  126. package/build/Release/.deps/Release/fse.node.d +0 -1
  127. package/build/Release/.deps/Release/obj.target/action_after_build.stamp.d +0 -1
  128. package/build/Release/.deps/Release/obj.target/fse/fsevents.o.d +0 -65
  129. package/build/Release/.deps/Users/eshanker/Code/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node.d +0 -1
  130. package/build/Release/.node +0 -0
  131. package/build/Release/fse.node +0 -0
  132. package/build/Release/obj.target/action_after_build.stamp +0 -0
  133. package/build/Release/obj.target/fse/fsevents.o +0 -0
  134. package/build/action_after_build.target.mk +0 -32
  135. package/build/binding.Makefile +0 -6
  136. package/build/fse.target.mk +0 -179
  137. package/build/gyp-mac-tool +0 -611
  138. package/build/stage/v1.1.2/fse-v1.1.2-node-v48-darwin-x64.tar.gz +0 -0
  139. package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
  140. package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
  141. package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
  142. package/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
  143. package/lib/binding/Release/node-v57-darwin-x64/fse.node +0 -0
  144. package/node_modules/are-we-there-yet/CHANGES.md~ +0 -27
  145. package/node_modules/iconv-lite/.travis.yml +0 -23
  146. package/node_modules/rc/.npmignore +0 -3
  147. package/node_modules/safe-buffer/.travis.yml +0 -7
  148. package/node_modules/safe-buffer/test.js +0 -101
  149. package/src/locking.cc +0 -27
@@ -30,7 +30,7 @@ See the [Frequently Ask Questions](https://github.com/mapbox/node-pre-gyp/wiki/F
30
30
 
31
31
  ## Depends
32
32
 
33
- - Node.js >= node v4.x
33
+ - Node.js >= node v6.x
34
34
 
35
35
  ## Install
36
36
 
@@ -82,7 +82,7 @@ Both `--build-from-source` and `--fallback-to-build` can be passed alone or they
82
82
 
83
83
  For example: `npm install --build-from-source=myapp`. This is useful if:
84
84
 
85
- - `myapp` is referenced in the package.json of a larger app and therefore `myapp` is being installed as a dependent with `npm install`.
85
+ - `myapp` is referenced in the package.json of a larger app and therefore `myapp` is being installed as a dependency with `npm install`.
86
86
  - The larger app also depends on other modules installed with `node-pre-gyp`
87
87
  - You only want to trigger a source compile for `myapp` and the other modules.
88
88
 
@@ -106,7 +106,6 @@ This looks like:
106
106
  "devDependencies": {
107
107
  "aws-sdk": "2.x"
108
108
  }
109
- "bundledDependencies":["node-pre-gyp"],
110
109
  "scripts": {
111
110
  "install": "node-pre-gyp install --fallback-to-build"
112
111
  },
@@ -123,12 +122,10 @@ Let's break this down:
123
122
 
124
123
  - Dependencies need to list `node-pre-gyp`
125
124
  - Your devDependencies should list `aws-sdk` so that you can run `node-pre-gyp publish` locally or a CI system. We recommend using `devDependencies` only since `aws-sdk` is large and not needed for `node-pre-gyp install` since it only uses http to fetch binaries
126
- - You should add `"bundledDependencies":["node-pre-gyp"]`. This ensures that when you publish your module that the correct version of node-pre-gyp will be included in the `node_modules` folder during publishing. Then when uses install your module `node-pre-gyp` will already be present. Without this your module will not be safely installable for downstream applications that have a depedency on node-pre-gyp in the npm tree (without bundling npm deduping might break the install when node-pre-gyp is moved in flight)
127
- - Your `scripts` section should optionally add `"prepublishOnly": "npm ls"` to ensure the right node-pre-gyp version is bundled before publishing your module. If node-pre-gyp is missing or an old version is present then this will catch that error before you publish a broken package.
128
125
  - Your `scripts` section should override the `install` target with `"install": "node-pre-gyp install --fallback-to-build"`. This allows node-pre-gyp to be used instead of the default npm behavior of always source compiling with `node-gyp` directly.
129
126
  - Your package.json should contain a `binary` section describing key properties you provide to allow node-pre-gyp to package optimally. They are detailed below.
130
127
 
131
- Note: in the past we recommended using `"preinstall": "npm install node-pre-gyp"` as an alternative method to avoid needing to bundle. But this does not behave predictably across all npm versions - see https://github.com/mapbox/node-pre-gyp/issues/260 for the details. So we do not recommend using `preinstall` to install `node-pre-gyp`. Instead we recommend bundling. More history on this at https://github.com/strongloop/fsevents/issues/157#issuecomment-265545908.
128
+ NOte: in the past we recommended putting `node-pre-gyp` in the `bundledDependencies`, but we no longer recommend this. In the past there were npm bugs (with node versions 0.10.x) that could lead to node-pre-gyp not being available at the right time during install (unless we bundled). This should no longer be the case. Also, for a time we recommended using `"preinstall": "npm install node-pre-gyp"` as an alternative method to avoid needing to bundle. But this did not behave predictably across all npm versions - see https://github.com/mapbox/node-pre-gyp/issues/260 for the details. So we do not recommend using `preinstall` to install `node-pre-gyp`. More history on this at https://github.com/strongloop/fsevents/issues/157#issuecomment-265545908.
132
129
 
133
130
  ##### The `binary` object has three required properties
134
131
 
@@ -156,7 +153,7 @@ It is highly recommended that you use Amazon S3. The reasons are:
156
153
  - S3 is a very solid hosting platform for distributing large files.
157
154
  - We provide detail documentation for using [S3 hosting](#s3-hosting) with node-pre-gyp.
158
155
 
159
- Why then not require S3? Because while some applications using node-pre-gyp need to distribute binaries as large as 20-30 MB, others might have very small binaries and might wish to store them in a GitHub repo. This is not recommended, but if an author really wants to host in a non-s3 location then it should be possible.
156
+ Why then not require S3? Because while some applications using node-pre-gyp need to distribute binaries as large as 20-30 MB, others might have very small binaries and might wish to store them in a GitHub repo. This is not recommended, but if an author really wants to host in a non-S3 location then it should be possible.
160
157
 
161
158
  It should also be mentioned that there is an optional and entirely separate npm module called [node-pre-gyp-github](https://github.com/bchr02/node-pre-gyp-github) which is intended to complement node-pre-gyp and be installed along with it. It provides the ability to store and publish your binaries within your repositories GitHub Releases if you would rather not use S3 directly. Installation and usage instructions can be found [here](https://github.com/bchr02/node-pre-gyp-github), but the basic premise is that instead of using the ```node-pre-gyp publish``` command you would use ```node-pre-gyp-github publish```.
162
159
 
@@ -287,11 +284,11 @@ If a a binary was not available for a given platform and `--fallback-to-build` w
287
284
 
288
285
  ## N-API Considerations
289
286
 
290
- [N-API](https://nodejs.org/api/n-api.html#n_api_n_api) is an ABI-stable alternative to previous technologies such as [nan](https://github.com/nodejs/nan) which are tied to a specific Node runtime engine. N-API is Node runtime engine agnostic and guarantees modules created today will continue to run, without changes, into the future.
287
+ [N-API](https://nodejs.org/api/n-api.html#n_api_n_api) is an ABI-stable alternative to previous technologies such as [nan](https://github.com/nodejs/nan) which are tied to a specific Node runtime engine. N-API is Node runtime engine agnostic and guarantees modules created today will continue to run, without changes, into the future.
291
288
 
292
- Using `node-pre-gyp` with N-API projects requires a handful of additional configuration values and imposes some additional requirements.
289
+ Using `node-pre-gyp` with N-API projects requires a handful of additional configuration values and imposes some additional requirements.
293
290
 
294
- The most significant difference is that an N-API module can be coded to target multiple N-API versions. Therefore, an N-API module must declare in its `package.json` file which N-API versions the module is designed to run against. In addition, since multiple builds may be required for a single module, path and file names must be specified in way that avoids naming conflicts.
291
+ The most significant difference is that an N-API module can be coded to target multiple N-API versions. Therefore, an N-API module must declare in its `package.json` file which N-API versions the module is designed to run against. In addition, since multiple builds may be required for a single module, path and file names must be specified in way that avoids naming conflicts.
295
292
 
296
293
  ### The `napi_versions` array property
297
294
 
@@ -308,16 +305,16 @@ An N-API modules must declare in its `package.json` file, the N-API versions the
308
305
 
309
306
  If the `napi_versions` array property is *not* present, `node-pre-gyp` operates as it always has. Including the `napi_versions` array property instructs `node-pre-gyp` that this is a N-API module build.
310
307
 
311
- When the `napi_versions` array property is present, `node-pre-gyp` fires off multiple operations, one for each of the N-API versions in the array. In the example above, two operations are initiated, one for N-API version 1 and second for N-API version 3. How this version number is communicated is described next.
308
+ When the `napi_versions` array property is present, `node-pre-gyp` fires off multiple operations, one for each of the N-API versions in the array. In the example above, two operations are initiated, one for N-API version 1 and second for N-API version 3. How this version number is communicated is described next.
312
309
 
313
310
  ### The `napi_build_version` value
314
311
 
315
- For each of the N-API module operations `node-pre-gyp` initiates, it insures that the `napi_build_version` is set appropriately.
312
+ For each of the N-API module operations `node-pre-gyp` initiates, it ensures that the `napi_build_version` is set appropriately.
316
313
 
317
314
  This value is of importance in two areas:
318
315
 
319
316
  1. The C/C++ code which needs to know against which N-API version it should compile.
320
- 2. `node-pre-gyp` itself which must assign appropriate path and file names to avoid collisions.
317
+ 2. `node-pre-gyp` itself which must assign appropriate path and file names to avoid collisions.
321
318
 
322
319
  ### Defining `NAPI_BUILD_VERSION` for the C/C++ code
323
320
 
@@ -329,11 +326,11 @@ The `napi_build_version` value is communicated to the C/C++ code by adding this
329
326
  ]
330
327
  ```
331
328
 
332
- This insures that `NAPI_BUILD_VERSION`, an integer value, is declared appropriately to the C/C++ code for each build.
329
+ This ensures that `NAPI_BUILD_VERSION`, an integer value, is declared appropriately to the C/C++ code for each build.
333
330
 
334
331
  ### Path and file naming requirements in `package.json`
335
332
 
336
- Since `node-pre-gyp` fires off multiple operations for each request, it is essential that path and file names be created in such a way as to avoid collisions. This is accomplished by imposing additional path and file naming requirements.
333
+ Since `node-pre-gyp` fires off multiple operations for each request, it is essential that path and file names be created in such a way as to avoid collisions. This is accomplished by imposing additional path and file naming requirements.
337
334
 
338
335
  Specifically, when performing N-API builds, the `{napi_build_version}` text substitution string *must* be present in the `module_path` property. In addition, the `{napi_build_version}` text substitution string *must* be present in either the `remote_path` or `package_name` property. (No problem if it's in both.)
339
336
 
@@ -352,13 +349,13 @@ Here's an example:
352
349
 
353
350
  ### Two additional configuration values
354
351
 
355
- For those who need them in legacy projects, two additional configuration values are available for all builds.
352
+ For those who need them in legacy projects, two additional configuration values are available for all builds.
356
353
 
357
- 1. `napi_version` If N-API is supported by the currently executing Node instance, this value is the N-API version number supported by Node. If N-API is not supported, this value is an empty string.
354
+ 1. `napi_version` If N-API is supported by the currently executing Node instance, this value is the N-API version number supported by Node. If N-API is not supported, this value is an empty string.
358
355
 
359
356
  2. `node_abi_napi` If the value returned for `napi_version` is non empty, this value is `'napi'`. If the value returned for `napi_version` is empty, this value is the value returned for `node_abi`.
360
357
 
361
- These values are present for use in the `binding.gyp` file and may be used as `{napi_version}` and `{node_abi_napi}` for text substituion in the `binary` properties of the `package.json` file.
358
+ These values are present for use in the `binding.gyp` file and may be used as `{napi_version}` and `{node_abi_napi}` for text substituion in the `binary` properties of the `package.json` file.
362
359
 
363
360
  ## S3 Hosting
364
361
 
@@ -2,10 +2,8 @@ os: Visual Studio 2015
2
2
 
3
3
  environment:
4
4
  matrix:
5
- - nodejs_version: 4
6
5
  - nodejs_version: 6
7
- - nodejs_version: 8
8
- - nodejs_version: 9
6
+ - nodejs_version: 10
9
7
 
10
8
  platform:
11
9
  - x64
@@ -17,9 +15,6 @@ install:
17
15
  - ps: Install-Product node $env:nodejs_version $env:Platform
18
16
  - ps: Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
19
17
  - npm config get
20
- # upgrade node-gyp to dodge https://github.com/mapbox/node-pre-gyp/issues/209#issuecomment-307641388
21
- # and allow make node 4.x x86 builds work
22
- - IF "%nodejs_version:~0,1%" EQU "4" npm install node-gyp@3.x
23
18
  - node --version
24
19
  - npm --version
25
20
  - node -e "console.log(process.arch);"
@@ -28,10 +23,8 @@ install:
28
23
  - IF /I "%PLATFORM%" == "x64" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
29
24
  - IF /I "%PLATFORM%" == "x86" CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
30
25
  - npm install
31
- # workaround https://github.com/mapbox/node-pre-gyp/issues/300#issuecomment-328179994
32
- - IF "%nodejs_version:~0,1%" GEQ "6" npm install npm@2 -g
33
26
  - npm test
34
27
 
35
28
  build: off
36
29
  test: off
37
- deploy: off
30
+ deploy: off
@@ -3,8 +3,8 @@
3
3
 
4
4
  ### Releasing a new version:
5
5
 
6
- - Ensure tests are passing on travis (okay for appveyor node v4 x86 to fail)
6
+ - Ensure tests are passing on travis and appveyor
7
7
  - Run `node scripts/abi_crosswalk.js` and commit any changes
8
8
  - Update the changelog
9
9
  - Tag a new release like: `git tag -a v0.6.34 -m "tagging v0.6.34" && git push --tags`
10
- - Run `npm publish`
10
+ - Run `npm publish`
@@ -19,6 +19,21 @@ try {
19
19
  npgVersion = JSON.parse(ownPackageJSON).version;
20
20
  } catch (e) {}
21
21
 
22
+ var http_get = {
23
+ impl: undefined,
24
+ type: undefined
25
+ };
26
+
27
+ try {
28
+ http_get.impl = require('request');
29
+ http_get.type = 'request';
30
+ log.warn("Using request for node-pre-gyp https download");
31
+ } catch (e) {
32
+ http_get.impl = require('needle');
33
+ http_get.type = 'needle';
34
+ log.warn("Using needle for node-pre-gyp https download");
35
+ }
36
+
22
37
  function download(uri,opts,callback) {
23
38
  log.http('GET', uri);
24
39
 
@@ -59,7 +74,7 @@ function download(uri,opts,callback) {
59
74
  }
60
75
  }
61
76
  try {
62
- req = require('needle').get(requestOpts.uri, requestOpts);
77
+ req = http_get.impl.get(requestOpts.uri, requestOpts);
63
78
  } catch (e) {
64
79
  return callback(e);
65
80
  }
@@ -94,11 +109,18 @@ function place_binary(from,to,opts,callback) {
94
109
  extractCount++;
95
110
  }
96
111
 
112
+ // for request compatibility
97
113
  req.on('error', function(err) {
98
114
  badDownload = true;
99
115
  return callback(err);
100
116
  });
101
117
 
118
+ // for needle compatibility
119
+ req.on('err', function(err) {
120
+ badDownload = true;
121
+ return callback(err);
122
+ });
123
+
102
124
  req.on('close', function () {
103
125
  if (extractCount === 0) {
104
126
  return callback(new Error('Connection closed while downloading tarball file'));
@@ -107,8 +129,8 @@ function place_binary(from,to,opts,callback) {
107
129
 
108
130
  req.on('response', function(res) {
109
131
  // ignore redirects, needle handles these automatically.
110
- if (res.headers.hasOwnProperty('location') && res.headers.location !== '') {
111
- return;
132
+ if (http_get.type === 'needle' && res.headers.hasOwnProperty('location') && res.headers.location !== '') {
133
+ return;
112
134
  }
113
135
  if (res.statusCode !== 200) {
114
136
  badDownload = true;
@@ -142,8 +164,8 @@ function print_fallback_error(err,opts,package_json) {
142
164
  full_message = "Pre-built binaries not found for " + package_json.name + "@" + package_json.version;
143
165
  full_message += " and " + opts.runtime + "@" + (opts.target || process.versions.node) + " (" + opts.node_abi + " ABI, " + opts.libc + ")";
144
166
  full_message += fallback_message;
145
- log.error("Tried to download(" + err.statusCode + "): " + opts.hosted_tarball);
146
- log.error(full_message);
167
+ log.warn("Tried to download(" + err.statusCode + "): " + opts.hosted_tarball);
168
+ log.warn(full_message);
147
169
  log.http(err.message);
148
170
  } else {
149
171
  // If we do not have a statusCode that means an unexpected error
@@ -151,8 +173,8 @@ function print_fallback_error(err,opts,package_json) {
151
173
  full_message = "Pre-built binaries not installable for " + package_json.name + "@" + package_json.version;
152
174
  full_message += " and " + opts.runtime + "@" + (opts.target || process.versions.node) + " (" + opts.node_abi + " ABI, " + opts.libc + ")";
153
175
  full_message += fallback_message;
154
- log.error(full_message);
155
- log.error("Hit error " + err.message);
176
+ log.warn(full_message);
177
+ log.warn("Hit error " + err.message);
156
178
  }
157
179
  }
158
180
 
@@ -33,15 +33,18 @@ function _package(gyp, argv, callback) {
33
33
  return true;
34
34
  };
35
35
  mkdirp(path.dirname(tarball),function(err) {
36
- from = path.dirname(from);
37
36
  if (err) return callback(err);
38
37
  packlist({ path: from }).then(function(files) {
38
+ var base = path.basename(from);
39
+ files = files.map(function(file) {
40
+ return path.join(base, file);
41
+ });
39
42
  tar.create({
40
43
  portable: true,
41
44
  gzip: true,
42
45
  onentry: filter_func,
43
46
  file: tarball,
44
- cwd: from
47
+ cwd: path.dirname(from)
45
48
  }, files, function(err) {
46
49
  if (err) console.error('['+package_json.name+'] ' + err.message);
47
50
  else log.info('package','Binary staged at "' + tarball + '"');
@@ -10,7 +10,7 @@ var napi = require('./util/napi.js');
10
10
  function rebuild (gyp, argv, callback) {
11
11
  var package_json = JSON.parse(fs.readFileSync('./package.json'));
12
12
  var installArgs = [];
13
- var napi_build_version = napi.get_best_napi_version(package_json);
13
+ var napi_build_version = napi.get_best_napi_build_version(package_json);
14
14
  if (napi_build_version != null) installArgs = [ napi.get_command_arg (napi_build_version) ];
15
15
  gyp.todo.unshift(
16
16
  { name: 'clean', args: [] },
@@ -1263,6 +1263,14 @@
1263
1263
  "node_abi": 46,
1264
1264
  "v8": "4.5"
1265
1265
  },
1266
+ "4.9.0": {
1267
+ "node_abi": 46,
1268
+ "v8": "4.5"
1269
+ },
1270
+ "4.9.1": {
1271
+ "node_abi": 46,
1272
+ "v8": "4.5"
1273
+ },
1266
1274
  "5.0.0": {
1267
1275
  "node_abi": 47,
1268
1276
  "v8": "4.6"
@@ -1479,6 +1487,22 @@
1479
1487
  "node_abi": 48,
1480
1488
  "v8": "5.1"
1481
1489
  },
1490
+ "6.14.0": {
1491
+ "node_abi": 48,
1492
+ "v8": "5.1"
1493
+ },
1494
+ "6.14.1": {
1495
+ "node_abi": 48,
1496
+ "v8": "5.1"
1497
+ },
1498
+ "6.14.2": {
1499
+ "node_abi": 48,
1500
+ "v8": "5.1"
1501
+ },
1502
+ "6.14.3": {
1503
+ "node_abi": 48,
1504
+ "v8": "5.1"
1505
+ },
1482
1506
  "7.0.0": {
1483
1507
  "node_abi": 51,
1484
1508
  "v8": "5.4"
@@ -1631,6 +1655,22 @@
1631
1655
  "node_abi": 57,
1632
1656
  "v8": "6.2"
1633
1657
  },
1658
+ "8.11.0": {
1659
+ "node_abi": 57,
1660
+ "v8": "6.2"
1661
+ },
1662
+ "8.11.1": {
1663
+ "node_abi": 57,
1664
+ "v8": "6.2"
1665
+ },
1666
+ "8.11.2": {
1667
+ "node_abi": 57,
1668
+ "v8": "6.2"
1669
+ },
1670
+ "8.11.3": {
1671
+ "node_abi": 57,
1672
+ "v8": "6.2"
1673
+ },
1634
1674
  "9.0.0": {
1635
1675
  "node_abi": 59,
1636
1676
  "v8": "6.2"
@@ -1678,5 +1718,65 @@
1678
1718
  "9.8.0": {
1679
1719
  "node_abi": 59,
1680
1720
  "v8": "6.2"
1721
+ },
1722
+ "9.9.0": {
1723
+ "node_abi": 59,
1724
+ "v8": "6.2"
1725
+ },
1726
+ "9.10.0": {
1727
+ "node_abi": 59,
1728
+ "v8": "6.2"
1729
+ },
1730
+ "9.10.1": {
1731
+ "node_abi": 59,
1732
+ "v8": "6.2"
1733
+ },
1734
+ "9.11.0": {
1735
+ "node_abi": 59,
1736
+ "v8": "6.2"
1737
+ },
1738
+ "9.11.1": {
1739
+ "node_abi": 59,
1740
+ "v8": "6.2"
1741
+ },
1742
+ "9.11.2": {
1743
+ "node_abi": 59,
1744
+ "v8": "6.2"
1745
+ },
1746
+ "10.0.0": {
1747
+ "node_abi": 64,
1748
+ "v8": "6.6"
1749
+ },
1750
+ "10.1.0": {
1751
+ "node_abi": 64,
1752
+ "v8": "6.6"
1753
+ },
1754
+ "10.2.0": {
1755
+ "node_abi": 64,
1756
+ "v8": "6.6"
1757
+ },
1758
+ "10.2.1": {
1759
+ "node_abi": 64,
1760
+ "v8": "6.6"
1761
+ },
1762
+ "10.3.0": {
1763
+ "node_abi": 64,
1764
+ "v8": "6.6"
1765
+ },
1766
+ "10.4.0": {
1767
+ "node_abi": 64,
1768
+ "v8": "6.7"
1769
+ },
1770
+ "10.4.1": {
1771
+ "node_abi": 64,
1772
+ "v8": "6.7"
1773
+ },
1774
+ "10.5.0": {
1775
+ "node_abi": 64,
1776
+ "v8": "6.7"
1777
+ },
1778
+ "10.6.0": {
1779
+ "node_abi": 64,
1780
+ "v8": "6.7"
1681
1781
  }
1682
1782
  }
@@ -1,27 +1,27 @@
1
1
  {
2
- "_from": "node-pre-gyp@^0.9.0",
3
- "_id": "node-pre-gyp@0.9.1",
2
+ "_from": "node-pre-gyp@^0.10.0",
3
+ "_id": "node-pre-gyp@0.10.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha1-8RwHUW3ZL4cZnbx+GDjqt81WyeA=",
5
+ "_integrity": "sha512-d1xFs+C/IPS8Id0qPTZ4bUT8wWryfR/OzzAFxweG+uLN85oPzyo2Iw6bVlLQ/JOdgNonXLCoRyqDzDWq4iw72A==",
6
6
  "_location": "/node-pre-gyp",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
9
9
  "type": "range",
10
10
  "registry": true,
11
- "raw": "node-pre-gyp@^0.9.0",
11
+ "raw": "node-pre-gyp@^0.10.0",
12
12
  "name": "node-pre-gyp",
13
13
  "escapedName": "node-pre-gyp",
14
- "rawSpec": "^0.9.0",
14
+ "rawSpec": "^0.10.0",
15
15
  "saveSpec": null,
16
- "fetchSpec": "^0.9.0"
16
+ "fetchSpec": "^0.10.0"
17
17
  },
18
18
  "_requiredBy": [
19
19
  "/"
20
20
  ],
21
- "_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.9.1.tgz",
22
- "_shasum": "f11c07516dd92f87199dbc7e1838eab7cd56c9e0",
23
- "_spec": "node-pre-gyp@^0.9.0",
24
- "_where": "/Users/eshanker/Code/fsevents",
21
+ "_resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.10.3.tgz",
22
+ "_shasum": "3070040716afdc778747b61b6887bf78880b80fc",
23
+ "_spec": "node-pre-gyp@^0.10.0",
24
+ "_where": "/Users/pdunkel1/Office/fsevents/fsevents",
25
25
  "author": {
26
26
  "name": "Dane Springmeyer",
27
27
  "email": "dane@mapbox.com"
@@ -36,11 +36,11 @@
36
36
  "dependencies": {
37
37
  "detect-libc": "^1.0.2",
38
38
  "mkdirp": "^0.5.1",
39
- "needle": "^2.2.0",
39
+ "needle": "^2.2.1",
40
40
  "nopt": "^4.0.1",
41
41
  "npm-packlist": "^1.1.6",
42
42
  "npmlog": "^4.0.2",
43
- "rc": "^1.1.7",
43
+ "rc": "^1.2.7",
44
44
  "rimraf": "^2.6.1",
45
45
  "semver": "^5.3.0",
46
46
  "tar": "^4"
@@ -51,7 +51,6 @@
51
51
  "aws-sdk": "^2.28.0",
52
52
  "jshint": "^2.9.5",
53
53
  "nock": "^9.2.3",
54
- "retire": "^1.2.12",
55
54
  "tape": "^4.6.3"
56
55
  },
57
56
  "homepage": "https://github.com/mapbox/node-pre-gyp#readme",
@@ -83,5 +82,5 @@
83
82
  "test": "jshint lib lib/util scripts bin/node-pre-gyp && tape test/*test.js",
84
83
  "update-crosswalk": "node scripts/abi_crosswalk.js"
85
84
  },
86
- "version": "0.9.1"
85
+ "version": "0.10.3"
87
86
  }
@@ -21,7 +21,7 @@
21
21
  "_resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz",
22
22
  "_shasum": "d0d4685afd5415193c8c7505602d0d17cd64474d",
23
23
  "_spec": "nopt@^4.0.1",
24
- "_where": "/Users/eshanker/Code/fsevents/node_modules/node-pre-gyp",
24
+ "_where": "/Users/pdunkel1/Office/fsevents/fsevents/node_modules/node-pre-gyp",
25
25
  "author": {
26
26
  "name": "Isaac Z. Schlueter",
27
27
  "email": "i@izs.me",
@@ -0,0 +1,15 @@
1
+ The ISC License
2
+
3
+ Copyright (c) npm, Inc. and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -4,6 +4,8 @@ Run this in a node package, and it'll tell you which things in
4
4
  node_modules are bundledDependencies, or transitive dependencies of
5
5
  bundled dependencies.
6
6
 
7
+ [![Build Status](https://travis-ci.org/npm/npm-bundled.svg?branch=master)](https://travis-ci.org/npm/npm-bundled)
8
+
7
9
  ## USAGE
8
10
 
9
11
  To get the list of deps at the top level that are bundled (or
@@ -35,6 +35,7 @@ class BundleWalker extends EE {
35
35
  this.packageJsonCache = opt.packageJsonCache || new Map()
36
36
  }
37
37
 
38
+ this.seen = new Set()
38
39
  this.didDone = false
39
40
  this.children = 0
40
41
  this.node_modules = []
@@ -114,7 +115,8 @@ class BundleWalker extends EE {
114
115
  }
115
116
 
116
117
  childDep (dep) {
117
- if (this.node_modules.indexOf(dep) !== -1) {
118
+ if (this.node_modules.indexOf(dep) !== -1 && !this.seen.has(dep)) {
119
+ this.seen.add(dep)
118
120
  this.child(dep)
119
121
  } else if (this.parent) {
120
122
  this.parent.childDep(dep)
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "npm-bundled@^1.0.1",
3
- "_id": "npm-bundled@1.0.3",
3
+ "_id": "npm-bundled@1.0.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow==",
5
+ "_integrity": "sha512-m/e6jgWu8/v5niCUKQi9qQl8QdeEduFA96xHDDzFGqly0OOjI7c+60KM/2sppfnUU9JJagf+zs+yGhqSOFj71g==",
6
6
  "_location": "/npm-bundled",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -18,10 +18,10 @@
18
18
  "_requiredBy": [
19
19
  "/npm-packlist"
20
20
  ],
21
- "_resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.3.tgz",
22
- "_shasum": "7e71703d973af3370a9591bafe3a63aca0be2308",
21
+ "_resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.5.tgz",
22
+ "_shasum": "3c1732b7ba936b3a10325aef616467c0ccbcc979",
23
23
  "_spec": "npm-bundled@^1.0.1",
24
- "_where": "/Users/eshanker/Code/fsevents/node_modules/npm-packlist",
24
+ "_where": "/Users/pdunkel1/Office/fsevents/fsevents/node_modules/npm-packlist",
25
25
  "author": {
26
26
  "name": "Isaac Z. Schlueter",
27
27
  "email": "i@izs.me",
@@ -37,7 +37,7 @@
37
37
  "mkdirp": "^0.5.1",
38
38
  "mutate-fs": "^1.1.0",
39
39
  "rimraf": "^2.6.1",
40
- "tap": "^10.3.2"
40
+ "tap": "^12.0.1"
41
41
  },
42
42
  "files": [
43
43
  "index.js"
@@ -56,5 +56,5 @@
56
56
  "preversion": "npm test",
57
57
  "test": "tap test/*.js -J --100"
58
58
  },
59
- "version": "1.0.3"
59
+ "version": "1.0.5"
60
60
  }
@@ -20,10 +20,14 @@ const path = require('path')
20
20
  const defaultRules = [
21
21
  '.npmignore',
22
22
  '.gitignore',
23
- '**/.git/',
24
- '**/.svn/',
25
- '**/.hg/',
26
- '**/CVS/',
23
+ '**/.git',
24
+ '**/.svn',
25
+ '**/.hg',
26
+ '**/CVS',
27
+ '**/.git/**',
28
+ '**/.svn/**',
29
+ '**/.hg/**',
30
+ '**/CVS/**',
27
31
  '/.lock-wscript',
28
32
  '/.wafpickle-*',
29
33
  '/build/config.gypi',
@@ -33,7 +37,8 @@ const defaultRules = [
33
37
  '.DS_Store',
34
38
  '._*',
35
39
  '*.orig',
36
- 'package-lock.json'
40
+ 'package-lock.json',
41
+ 'archived-packages/**',
37
42
  ]
38
43
 
39
44
  // a decorator that applies our custom rules to an ignore walker
@@ -52,7 +57,11 @@ const npmWalker = Class => class Walker extends Class {
52
57
 
53
58
  opt.includeEmpty = false
54
59
  opt.path = opt.path || process.cwd()
55
- opt.follow = path.basename(opt.path) === 'node_modules'
60
+ const dirName = path.basename(opt.path)
61
+ const parentName = path.basename(path.dirname(opt.path))
62
+ opt.follow =
63
+ dirName === 'node_modules' ||
64
+ (parentName === 'node_modules' && /^@/.test(dirName))
56
65
  super(opt)
57
66
 
58
67
  // ignore a bunch of things by default at the root level.
@@ -131,7 +140,7 @@ const npmWalker = Class => class Walker extends Class {
131
140
  const rules = [
132
141
  pkg.browser ? '!' + pkg.browser : '',
133
142
  pkg.main ? '!' + pkg.main : '',
134
- '!@(readme|license|licence|notice|changes|changelog|history){,.*}'
143
+ '!@(readme|copying|license|licence|notice|changes|changelog|history){,.*}'
135
144
  ].filter(f => f).join('\n') + '\n'
136
145
  super.onReadIgnoreFile(packageNecessaryRules, rules, _=>_)
137
146
 
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "npm-packlist@^1.1.6",
3
- "_id": "npm-packlist@1.1.10",
3
+ "_id": "npm-packlist@1.2.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-AQC0Dyhzn4EiYEfIUjCdMl0JJ61I2ER9ukf/sLxJUcZHfo+VyEfz2rMJgLZSS1v30OxPQe1cN0LZA1xbcaVfWA==",
5
+ "_integrity": "sha512-7Mni4Z8Xkx0/oegoqlcao/JpPCPEMtUvsmB0q7mgvlMinykJLSRTYuFqoQLYgGY8biuxIeiHO+QNJKbCfljewQ==",
6
6
  "_location": "/npm-packlist",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -18,10 +18,10 @@
18
18
  "_requiredBy": [
19
19
  "/node-pre-gyp"
20
20
  ],
21
- "_resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.1.10.tgz",
22
- "_shasum": "1039db9e985727e464df066f4cf0ab6ef85c398a",
21
+ "_resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.2.0.tgz",
22
+ "_shasum": "55a60e793e272f00862c7089274439a4cc31fc7f",
23
23
  "_spec": "npm-packlist@^1.1.6",
24
- "_where": "/Users/eshanker/Code/fsevents/node_modules/node-pre-gyp",
24
+ "_where": "/Users/pdunkel1/Office/fsevents/fsevents/node_modules/node-pre-gyp",
25
25
  "author": {
26
26
  "name": "Isaac Z. Schlueter",
27
27
  "email": "i@izs.me",
@@ -40,7 +40,7 @@
40
40
  "devDependencies": {
41
41
  "mkdirp": "^0.5.1",
42
42
  "rimraf": "^2.6.1",
43
- "tap": "^10.7.2"
43
+ "tap": "^12.0.1"
44
44
  },
45
45
  "directories": {
46
46
  "test": "test"
@@ -62,5 +62,5 @@
62
62
  "preversion": "npm test",
63
63
  "test": "tap test/*.js --100 -J"
64
64
  },
65
- "version": "1.1.10"
65
+ "version": "1.2.0"
66
66
  }