fsevents 1.2.3 → 1.2.10
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/.travis.yml +2 -3
- package/fsevents.cc +14 -26
- package/node_modules/abbrev/package.json +13 -14
- package/node_modules/ansi-regex/package.json +13 -14
- package/node_modules/aproba/package.json +13 -14
- package/node_modules/are-we-there-yet/CHANGES.md +6 -0
- package/node_modules/are-we-there-yet/package.json +19 -20
- package/node_modules/are-we-there-yet/tracker-stream.js +1 -0
- package/node_modules/balanced-match/package.json +13 -14
- package/node_modules/brace-expansion/package.json +13 -14
- package/node_modules/chownr/chownr.js +113 -40
- package/node_modules/chownr/package.json +22 -20
- package/node_modules/code-point-at/package.json +13 -14
- package/node_modules/concat-map/package.json +8 -9
- package/node_modules/console-control-strings/package.json +14 -14
- package/node_modules/core-util-is/package.json +13 -14
- package/node_modules/debug/CHANGELOG.md +34 -1
- package/node_modules/debug/README.md +188 -63
- package/node_modules/debug/dist/debug.js +886 -0
- package/node_modules/debug/package.json +34 -33
- package/node_modules/debug/src/browser.js +77 -82
- package/node_modules/debug/src/common.js +249 -0
- package/node_modules/debug/src/index.js +5 -3
- package/node_modules/debug/src/node.js +72 -146
- package/node_modules/deep-extend/CHANGELOG.md +28 -3
- package/node_modules/deep-extend/LICENSE +1 -1
- package/node_modules/deep-extend/README.md +2 -1
- package/node_modules/deep-extend/lib/deep-extend.js +11 -5
- package/node_modules/deep-extend/package.json +26 -28
- package/node_modules/delegates/package.json +13 -14
- package/node_modules/detect-libc/package.json +13 -14
- package/node_modules/fs-minipass/index.js +2 -1
- package/node_modules/fs-minipass/package.json +24 -22
- package/node_modules/fs.realpath/package.json +13 -14
- package/node_modules/gauge/package.json +13 -14
- package/node_modules/glob/LICENSE +6 -0
- package/node_modules/glob/README.md +8 -1
- package/node_modules/glob/package.json +21 -19
- package/node_modules/has-unicode/package.json +13 -14
- package/node_modules/iconv-lite/Changelog.md +16 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +2 -2
- package/node_modules/iconv-lite/encodings/sbcs-data.js +5 -0
- package/node_modules/iconv-lite/lib/extend-node.js +1 -1
- package/node_modules/iconv-lite/lib/index.d.ts +2 -2
- package/node_modules/iconv-lite/package.json +19 -20
- package/node_modules/ignore-walk/README.md +1 -1
- package/node_modules/ignore-walk/index.js +9 -5
- package/node_modules/ignore-walk/package.json +22 -20
- package/node_modules/inflight/package.json +13 -14
- package/node_modules/inherits/inherits.js +2 -0
- package/node_modules/inherits/inherits_browser.js +18 -14
- package/node_modules/inherits/package.json +20 -20
- package/node_modules/ini/package.json +13 -14
- package/node_modules/is-fullwidth-code-point/package.json +13 -14
- package/node_modules/isarray/package.json +13 -14
- package/node_modules/minimatch/package.json +14 -14
- package/node_modules/minimist/package.json +8 -9
- package/node_modules/minipass/LICENSE +15 -0
- package/node_modules/minipass/README.md +567 -7
- package/node_modules/minipass/index.js +255 -22
- package/node_modules/minipass/package.json +26 -22
- package/node_modules/minizlib/README.md +36 -27
- package/node_modules/minizlib/constants.js +73 -4
- package/node_modules/minizlib/index.js +188 -232
- package/node_modules/minizlib/package.json +19 -20
- package/node_modules/mkdirp/package.json +14 -14
- package/node_modules/ms/index.js +29 -19
- package/node_modules/ms/package.json +22 -23
- package/node_modules/ms/readme.md +18 -9
- package/node_modules/needle/README.md +3 -3
- package/node_modules/needle/examples/multipart-stream.js +1 -1
- package/node_modules/needle/lib/auth.js +1 -1
- package/node_modules/needle/lib/cookies.js +12 -10
- package/node_modules/needle/lib/multipart.js +1 -1
- package/node_modules/needle/lib/needle.js +20 -6
- package/node_modules/needle/package.json +26 -27
- package/node_modules/needle/test/basic_auth_spec.js +1 -1
- package/node_modules/needle/test/cookies_spec.js +2 -2
- package/node_modules/needle/test/errors_spec.js +4 -4
- package/node_modules/needle/test/headers_spec.js +1 -1
- package/node_modules/needle/test/long_string_spec.js +1 -1
- package/node_modules/needle/test/output_spec.js +1 -1
- package/node_modules/needle/test/post_data_spec.js +20 -20
- package/node_modules/needle/test/proxy_spec.js +1 -1
- package/node_modules/needle/test/url_spec.js +11 -3
- package/node_modules/needle/test/utils/test.js +1 -1
- package/node_modules/node-pre-gyp/CHANGELOG.md +34 -3
- package/node_modules/node-pre-gyp/README.md +53 -21
- package/node_modules/node-pre-gyp/appveyor.yml +2 -9
- package/node_modules/node-pre-gyp/contributing.md +2 -2
- package/node_modules/node-pre-gyp/lib/build.js +1 -1
- package/node_modules/node-pre-gyp/lib/install.js +46 -12
- package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +1 -1
- package/node_modules/node-pre-gyp/lib/package.js +5 -2
- package/node_modules/node-pre-gyp/lib/pre-binding.js +5 -5
- package/node_modules/node-pre-gyp/lib/rebuild.js +1 -1
- package/node_modules/node-pre-gyp/lib/reinstall.js +1 -1
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +148 -0
- package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +5 -2
- package/node_modules/node-pre-gyp/lib/util/napi.js +70 -22
- package/node_modules/node-pre-gyp/lib/util/versioning.js +7 -6
- package/node_modules/node-pre-gyp/package.json +16 -20
- package/node_modules/nopt/package.json +13 -14
- package/node_modules/npm-bundled/LICENSE +15 -0
- package/node_modules/npm-bundled/README.md +2 -0
- package/node_modules/npm-bundled/index.js +29 -7
- package/node_modules/npm-bundled/package.json +21 -19
- package/node_modules/npm-normalize-package-bin/.github/settings.yml +2 -0
- package/node_modules/npm-normalize-package-bin/.npmignore +24 -0
- package/node_modules/npm-normalize-package-bin/LICENSE +15 -0
- package/node_modules/npm-normalize-package-bin/README.md +14 -0
- package/node_modules/npm-normalize-package-bin/index.js +60 -0
- package/node_modules/npm-normalize-package-bin/package-lock.json +3529 -0
- package/node_modules/npm-normalize-package-bin/package.json +57 -0
- package/node_modules/npm-normalize-package-bin/test/array.js +37 -0
- package/node_modules/npm-normalize-package-bin/test/nobin.js +35 -0
- package/node_modules/npm-normalize-package-bin/test/object.js +141 -0
- package/node_modules/npm-normalize-package-bin/test/string.js +37 -0
- package/node_modules/npm-packlist/index.js +90 -21
- package/node_modules/npm-packlist/package.json +27 -21
- package/node_modules/npmlog/package.json +13 -14
- package/node_modules/number-is-nan/package.json +13 -14
- package/node_modules/object-assign/package.json +13 -14
- package/node_modules/once/package.json +14 -14
- package/node_modules/os-homedir/package.json +13 -14
- package/node_modules/os-tmpdir/package.json +13 -14
- package/node_modules/osenv/package.json +13 -14
- package/node_modules/path-is-absolute/package.json +13 -14
- package/node_modules/process-nextick-args/index.js +2 -1
- package/node_modules/process-nextick-args/package.json +17 -18
- package/node_modules/rc/node_modules/minimist/package.json +13 -14
- package/node_modules/rc/package.json +18 -19
- package/node_modules/readable-stream/package.json +13 -14
- package/node_modules/rimraf/package.json +22 -20
- package/node_modules/rimraf/rimraf.js +9 -1
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/package.json +23 -21
- package/node_modules/safer-buffer/package.json +13 -14
- package/node_modules/sax/package.json +13 -14
- package/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/semver/README.md +43 -19
- package/node_modules/semver/bin/semver +92 -75
- package/node_modules/semver/package.json +25 -20
- package/node_modules/semver/semver.js +922 -763
- package/node_modules/set-blocking/package.json +13 -14
- package/node_modules/signal-exit/package.json +13 -14
- package/node_modules/string-width/package.json +14 -14
- package/node_modules/string_decoder/package.json +13 -14
- package/node_modules/strip-ansi/package.json +14 -14
- package/node_modules/strip-json-comments/package.json +13 -14
- package/node_modules/tar/README.md +7 -2
- package/node_modules/tar/lib/header.js +20 -4
- package/node_modules/tar/lib/large-numbers.js +32 -27
- package/node_modules/tar/lib/mkdir.js +2 -2
- package/node_modules/tar/lib/mode-fix.js +14 -0
- package/node_modules/tar/lib/pack.js +1 -0
- package/node_modules/tar/lib/parse.js +7 -1
- package/node_modules/tar/lib/read-entry.js +4 -0
- package/node_modules/tar/lib/unpack.js +67 -6
- package/node_modules/tar/lib/write-entry.js +25 -6
- package/node_modules/tar/package.json +33 -30
- package/node_modules/util-deprecate/package.json +13 -14
- package/node_modules/wide-align/package.json +19 -20
- package/node_modules/wrappy/package.json +14 -14
- package/node_modules/yallist/iterator.js +5 -5
- package/node_modules/yallist/package.json +19 -19
- package/node_modules/yallist/yallist.js +52 -2
- package/package.json +6 -9
- package/src/async.cc +2 -2
- package/src/constants.cc +20 -20
- package/src/thread.cc +5 -6
- package/.npmignore +0 -1
- package/build/.target.mk +0 -53
- package/build/Makefile +0 -352
- package/build/Release/.deps/Release/.node.d +0 -1
- package/build/Release/.deps/Release/fse.node.d +0 -1
- package/build/Release/.deps/Release/obj.target/action_after_build.stamp.d +0 -1
- package/build/Release/.deps/Release/obj.target/fse/fsevents.o.d +0 -65
- package/build/Release/.deps/Users/eshanker/Code/fsevents/lib/binding/Release/node-v48-darwin-x64/fse.node.d +0 -1
- package/build/Release/.node +0 -0
- package/build/Release/fse.node +0 -0
- package/build/Release/obj.target/action_after_build.stamp +0 -0
- package/build/Release/obj.target/fse/fsevents.o +0 -0
- package/build/action_after_build.target.mk +0 -32
- package/build/binding.Makefile +0 -6
- package/build/fse.target.mk +0 -179
- package/build/gyp-mac-tool +0 -611
- package/build/stage/v1.1.2/fse-v1.1.2-node-v48-darwin-x64.tar.gz +0 -0
- package/lib/binding/Release/node-v11-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v46-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v47-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v48-darwin-x64/fse.node +0 -0
- package/lib/binding/Release/node-v57-darwin-x64/fse.node +0 -0
- package/node_modules/are-we-there-yet/CHANGES.md~ +0 -27
- package/node_modules/debug/.coveralls.yml +0 -1
- package/node_modules/debug/.eslintrc +0 -11
- package/node_modules/debug/.npmignore +0 -9
- package/node_modules/debug/.travis.yml +0 -14
- package/node_modules/debug/Makefile +0 -50
- package/node_modules/debug/component.json +0 -19
- package/node_modules/debug/karma.conf.js +0 -70
- package/node_modules/debug/src/debug.js +0 -202
- package/node_modules/debug/src/inspector-log.js +0 -15
- package/node_modules/iconv-lite/.travis.yml +0 -23
- package/node_modules/rc/.npmignore +0 -3
- package/node_modules/safe-buffer/.travis.yml +0 -7
- package/node_modules/safe-buffer/test.js +0 -101
- package/src/locking.cc +0 -27
@@ -1,30 +1,27 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"set-blocking@2.0.0",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "set-blocking@2.0.0",
|
2
|
+
"_from": "set-blocking@~2.0.0",
|
9
3
|
"_id": "set-blocking@2.0.0",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
|
12
6
|
"_location": "/set-blocking",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "set-blocking
|
11
|
+
"raw": "set-blocking@~2.0.0",
|
18
12
|
"name": "set-blocking",
|
19
13
|
"escapedName": "set-blocking",
|
20
|
-
"rawSpec": "2.0.0",
|
14
|
+
"rawSpec": "~2.0.0",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "2.0.0"
|
16
|
+
"fetchSpec": "~2.0.0"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/npmlog"
|
20
|
+
],
|
25
21
|
"_resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
|
26
|
-
"
|
27
|
-
"
|
22
|
+
"_shasum": "045f9782d011ae9a6803ddd382b24392b3d890f7",
|
23
|
+
"_spec": "set-blocking@~2.0.0",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/npmlog",
|
28
25
|
"author": {
|
29
26
|
"name": "Ben Coe",
|
30
27
|
"email": "ben@npmjs.com"
|
@@ -32,6 +29,8 @@
|
|
32
29
|
"bugs": {
|
33
30
|
"url": "https://github.com/yargs/set-blocking/issues"
|
34
31
|
},
|
32
|
+
"bundleDependencies": false,
|
33
|
+
"deprecated": false,
|
35
34
|
"description": "set blocking stdio and stderr ensuring that terminal output does not truncate",
|
36
35
|
"devDependencies": {
|
37
36
|
"chai": "^3.5.0",
|
@@ -1,30 +1,27 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"signal-exit@3.0.2",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "signal-exit@3.0.2",
|
2
|
+
"_from": "signal-exit@^3.0.0",
|
9
3
|
"_id": "signal-exit@3.0.2",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
|
12
6
|
"_location": "/signal-exit",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "signal-exit
|
11
|
+
"raw": "signal-exit@^3.0.0",
|
18
12
|
"name": "signal-exit",
|
19
13
|
"escapedName": "signal-exit",
|
20
|
-
"rawSpec": "3.0.
|
14
|
+
"rawSpec": "^3.0.0",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "3.0.
|
16
|
+
"fetchSpec": "^3.0.0"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/gauge"
|
20
|
+
],
|
25
21
|
"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
|
26
|
-
"
|
27
|
-
"
|
22
|
+
"_shasum": "b5fdc08f1287ea1178628e415e25132b73646c6d",
|
23
|
+
"_spec": "signal-exit@^3.0.0",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/gauge",
|
28
25
|
"author": {
|
29
26
|
"name": "Ben Coe",
|
30
27
|
"email": "ben@npmjs.com"
|
@@ -32,6 +29,8 @@
|
|
32
29
|
"bugs": {
|
33
30
|
"url": "https://github.com/tapjs/signal-exit/issues"
|
34
31
|
},
|
32
|
+
"bundleDependencies": false,
|
33
|
+
"deprecated": false,
|
35
34
|
"description": "when you want to fire an event no matter how a process exits.",
|
36
35
|
"devDependencies": {
|
37
36
|
"chai": "^3.5.0",
|
@@ -1,30 +1,28 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"string-width@1.0.2",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "string-width@1.0.2",
|
2
|
+
"_from": "string-width@^1.0.1",
|
9
3
|
"_id": "string-width@1.0.2",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
|
12
6
|
"_location": "/string-width",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "string-width
|
11
|
+
"raw": "string-width@^1.0.1",
|
18
12
|
"name": "string-width",
|
19
13
|
"escapedName": "string-width",
|
20
|
-
"rawSpec": "1.0.
|
14
|
+
"rawSpec": "^1.0.1",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "1.0.
|
16
|
+
"fetchSpec": "^1.0.1"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/gauge",
|
20
|
+
"/wide-align"
|
21
|
+
],
|
25
22
|
"_resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
|
26
|
-
"
|
27
|
-
"
|
23
|
+
"_shasum": "118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3",
|
24
|
+
"_spec": "string-width@^1.0.1",
|
25
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/gauge",
|
28
26
|
"author": {
|
29
27
|
"name": "Sindre Sorhus",
|
30
28
|
"email": "sindresorhus@gmail.com",
|
@@ -33,11 +31,13 @@
|
|
33
31
|
"bugs": {
|
34
32
|
"url": "https://github.com/sindresorhus/string-width/issues"
|
35
33
|
},
|
34
|
+
"bundleDependencies": false,
|
36
35
|
"dependencies": {
|
37
36
|
"code-point-at": "^1.0.0",
|
38
37
|
"is-fullwidth-code-point": "^1.0.0",
|
39
38
|
"strip-ansi": "^3.0.0"
|
40
39
|
},
|
40
|
+
"deprecated": false,
|
41
41
|
"description": "Get the visual width of a string - the number of columns required to display it",
|
42
42
|
"devDependencies": {
|
43
43
|
"ava": "*",
|
@@ -1,36 +1,35 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"string_decoder@1.1.1",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "string_decoder@1.1.1",
|
2
|
+
"_from": "string_decoder@~1.1.1",
|
9
3
|
"_id": "string_decoder@1.1.1",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
|
12
6
|
"_location": "/string_decoder",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "string_decoder
|
11
|
+
"raw": "string_decoder@~1.1.1",
|
18
12
|
"name": "string_decoder",
|
19
13
|
"escapedName": "string_decoder",
|
20
|
-
"rawSpec": "1.1.1",
|
14
|
+
"rawSpec": "~1.1.1",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "1.1.1"
|
16
|
+
"fetchSpec": "~1.1.1"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/readable-stream"
|
20
|
+
],
|
25
21
|
"_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
|
26
|
-
"
|
27
|
-
"
|
22
|
+
"_shasum": "9cf1611ba62685d7030ae9e4ba34149c3af03fc8",
|
23
|
+
"_spec": "string_decoder@~1.1.1",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/readable-stream",
|
28
25
|
"bugs": {
|
29
26
|
"url": "https://github.com/nodejs/string_decoder/issues"
|
30
27
|
},
|
28
|
+
"bundleDependencies": false,
|
31
29
|
"dependencies": {
|
32
30
|
"safe-buffer": "~5.1.0"
|
33
31
|
},
|
32
|
+
"deprecated": false,
|
34
33
|
"description": "The string_decoder module from Node core",
|
35
34
|
"devDependencies": {
|
36
35
|
"babel-polyfill": "^6.23.0",
|
@@ -1,30 +1,28 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"strip-ansi@3.0.1",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "strip-ansi@3.0.1",
|
2
|
+
"_from": "strip-ansi@^3.0.1",
|
9
3
|
"_id": "strip-ansi@3.0.1",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
|
12
6
|
"_location": "/strip-ansi",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "strip-ansi
|
11
|
+
"raw": "strip-ansi@^3.0.1",
|
18
12
|
"name": "strip-ansi",
|
19
13
|
"escapedName": "strip-ansi",
|
20
|
-
"rawSpec": "3.0.1",
|
14
|
+
"rawSpec": "^3.0.1",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "3.0.1"
|
16
|
+
"fetchSpec": "^3.0.1"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/gauge",
|
20
|
+
"/string-width"
|
21
|
+
],
|
25
22
|
"_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
|
26
|
-
"
|
27
|
-
"
|
23
|
+
"_shasum": "6a385fb8853d952d5ff05d0e8aaf94278dc63dcf",
|
24
|
+
"_spec": "strip-ansi@^3.0.1",
|
25
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/gauge",
|
28
26
|
"author": {
|
29
27
|
"name": "Sindre Sorhus",
|
30
28
|
"email": "sindresorhus@gmail.com",
|
@@ -33,9 +31,11 @@
|
|
33
31
|
"bugs": {
|
34
32
|
"url": "https://github.com/chalk/strip-ansi/issues"
|
35
33
|
},
|
34
|
+
"bundleDependencies": false,
|
36
35
|
"dependencies": {
|
37
36
|
"ansi-regex": "^2.0.0"
|
38
37
|
},
|
38
|
+
"deprecated": false,
|
39
39
|
"description": "Strip ANSI escape codes",
|
40
40
|
"devDependencies": {
|
41
41
|
"ava": "*",
|
@@ -1,30 +1,27 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"strip-json-comments@2.0.1",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "strip-json-comments@2.0.1",
|
2
|
+
"_from": "strip-json-comments@~2.0.1",
|
9
3
|
"_id": "strip-json-comments@2.0.1",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
|
12
6
|
"_location": "/strip-json-comments",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "strip-json-comments
|
11
|
+
"raw": "strip-json-comments@~2.0.1",
|
18
12
|
"name": "strip-json-comments",
|
19
13
|
"escapedName": "strip-json-comments",
|
20
|
-
"rawSpec": "2.0.1",
|
14
|
+
"rawSpec": "~2.0.1",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "2.0.1"
|
16
|
+
"fetchSpec": "~2.0.1"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/rc"
|
20
|
+
],
|
25
21
|
"_resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
|
26
|
-
"
|
27
|
-
"
|
22
|
+
"_shasum": "3c531942e908c2697c0ec344858c286c7ca0a60a",
|
23
|
+
"_spec": "strip-json-comments@~2.0.1",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/rc",
|
28
25
|
"author": {
|
29
26
|
"name": "Sindre Sorhus",
|
30
27
|
"email": "sindresorhus@gmail.com",
|
@@ -33,6 +30,8 @@
|
|
33
30
|
"bugs": {
|
34
31
|
"url": "https://github.com/sindresorhus/strip-json-comments/issues"
|
35
32
|
},
|
33
|
+
"bundleDependencies": false,
|
34
|
+
"deprecated": false,
|
36
35
|
"description": "Strip comments from JSON. Lets you use comments in your JSON files!",
|
37
36
|
"devDependencies": {
|
38
37
|
"ava": "*",
|
@@ -108,7 +108,7 @@ tar.c( // or tar.create
|
|
108
108
|
gzip: <true|gzip options>
|
109
109
|
},
|
110
110
|
['some', 'files', 'and', 'folders']
|
111
|
-
).pipe(fs.createWriteStream('my-tarball.tgz')
|
111
|
+
).pipe(fs.createWriteStream('my-tarball.tgz'))
|
112
112
|
```
|
113
113
|
|
114
114
|
To replicate `tar xf my-tarball.tgz` you'd do:
|
@@ -230,6 +230,9 @@ The following options are supported:
|
|
230
230
|
Note that this prevents using other mtime-based features like
|
231
231
|
`tar.update` or the `keepNewer` option with the resulting tar archive.
|
232
232
|
[Alias: `m`, `no-mtime`]
|
233
|
+
- `mtime` Set to a `Date` object to force a specific `mtime` for
|
234
|
+
everything added to the archive. Overridden by `noMtime`.
|
235
|
+
|
233
236
|
|
234
237
|
The following options are mostly internal, but can be modified in some
|
235
238
|
advanced use cases, such as re-using caches between runs.
|
@@ -534,7 +537,6 @@ The following options are supported:
|
|
534
537
|
- `mtime` Set to a `Date` object to force a specific `mtime` for
|
535
538
|
everything added to the archive. Overridden by `noMtime`.
|
536
539
|
|
537
|
-
|
538
540
|
#### add(path)
|
539
541
|
|
540
542
|
Adds an entry to the archive. Returns the Pack stream.
|
@@ -784,6 +786,9 @@ The following options are supported:
|
|
784
786
|
- `noMtime` Set to true to omit writing `mtime` values for entries.
|
785
787
|
Note that this prevents using other mtime-based features like
|
786
788
|
`tar.update` or the `keepNewer` option with the resulting tar archive.
|
789
|
+
- `umask` Set to restrict the modes on the entries in the archive,
|
790
|
+
somewhat like how umask works on file creation. Defaults to
|
791
|
+
`process.umask()` on unix systems, or `0o22` on Windows.
|
787
792
|
|
788
793
|
#### warn(message, data)
|
789
794
|
|
@@ -6,13 +6,14 @@
|
|
6
6
|
|
7
7
|
const Buffer = require('./buffer.js')
|
8
8
|
const types = require('./types.js')
|
9
|
-
const pathModule = require('path')
|
9
|
+
const pathModule = require('path').posix
|
10
10
|
const large = require('./large-numbers.js')
|
11
11
|
|
12
|
+
const SLURP = Symbol('slurp')
|
12
13
|
const TYPE = Symbol('type')
|
13
14
|
|
14
15
|
class Header {
|
15
|
-
constructor (data, off) {
|
16
|
+
constructor (data, off, ex, gex) {
|
16
17
|
this.cksumValid = false
|
17
18
|
this.needPax = false
|
18
19
|
this.nullBlock = false
|
@@ -35,12 +36,12 @@ class Header {
|
|
35
36
|
this.ctime = null
|
36
37
|
|
37
38
|
if (Buffer.isBuffer(data))
|
38
|
-
this.decode(data, off || 0)
|
39
|
+
this.decode(data, off || 0, ex, gex)
|
39
40
|
else if (data)
|
40
41
|
this.set(data)
|
41
42
|
}
|
42
43
|
|
43
|
-
decode (buf, off) {
|
44
|
+
decode (buf, off, ex, gex) {
|
44
45
|
if (!off)
|
45
46
|
off = 0
|
46
47
|
|
@@ -55,6 +56,11 @@ class Header {
|
|
55
56
|
this.mtime = decDate(buf, off + 136, 12)
|
56
57
|
this.cksum = decNumber(buf, off + 148, 12)
|
57
58
|
|
59
|
+
// if we have extended or global extended headers, apply them now
|
60
|
+
// See https://github.com/npm/node-tar/pull/187
|
61
|
+
this[SLURP](ex)
|
62
|
+
this[SLURP](gex, true)
|
63
|
+
|
58
64
|
// old tar versions marked dirs as a file with a trailing /
|
59
65
|
this[TYPE] = decString(buf, off + 156, 1)
|
60
66
|
if (this[TYPE] === '')
|
@@ -101,6 +107,16 @@ class Header {
|
|
101
107
|
this.nullBlock = true
|
102
108
|
}
|
103
109
|
|
110
|
+
[SLURP] (ex, global) {
|
111
|
+
for (let k in ex) {
|
112
|
+
// we slurp in everything except for the path attribute in
|
113
|
+
// a global extended header, because that's weird.
|
114
|
+
if (ex[k] !== null && ex[k] !== undefined &&
|
115
|
+
!(global && k === 'path'))
|
116
|
+
this[k] = ex[k]
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
104
120
|
encode (buf, off) {
|
105
121
|
if (!buf) {
|
106
122
|
buf = this.block = Buffer.alloc(512)
|
@@ -1,12 +1,13 @@
|
|
1
1
|
'use strict'
|
2
2
|
// Tar can encode large and negative numbers using a leading byte of
|
3
|
-
// 0xff for negative, and 0x80 for positive.
|
4
|
-
// section will always be 0x20, or in some implementations 0x00.
|
5
|
-
// this module encodes and decodes these things.
|
3
|
+
// 0xff for negative, and 0x80 for positive.
|
6
4
|
|
7
5
|
const encode = exports.encode = (num, buf) => {
|
8
|
-
|
9
|
-
|
6
|
+
if (!Number.isSafeInteger(num))
|
7
|
+
// The number is so large that javascript cannot represent it with integer
|
8
|
+
// precision.
|
9
|
+
throw TypeError('cannot encode number outside of javascript safe integer range')
|
10
|
+
else if (num < 0)
|
10
11
|
encodeNegative(num, buf)
|
11
12
|
else
|
12
13
|
encodePositive(num, buf)
|
@@ -15,13 +16,10 @@ const encode = exports.encode = (num, buf) => {
|
|
15
16
|
|
16
17
|
const encodePositive = (num, buf) => {
|
17
18
|
buf[0] = 0x80
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
buf[i] = num % 0x100
|
23
|
-
num = Math.floor(num / 0x100)
|
24
|
-
}
|
19
|
+
|
20
|
+
for (var i = buf.length; i > 1; i--) {
|
21
|
+
buf[i-1] = num & 0xff
|
22
|
+
num = Math.floor(num / 0x100)
|
25
23
|
}
|
26
24
|
}
|
27
25
|
|
@@ -29,21 +27,16 @@ const encodeNegative = (num, buf) => {
|
|
29
27
|
buf[0] = 0xff
|
30
28
|
var flipped = false
|
31
29
|
num = num * -1
|
32
|
-
for (var i = buf.length
|
33
|
-
var byte
|
34
|
-
|
35
|
-
byte = 0
|
36
|
-
else {
|
37
|
-
byte = num % 0x100
|
38
|
-
num = Math.floor(num / 0x100)
|
39
|
-
}
|
30
|
+
for (var i = buf.length; i > 1; i--) {
|
31
|
+
var byte = num & 0xff
|
32
|
+
num = Math.floor(num / 0x100)
|
40
33
|
if (flipped)
|
41
|
-
buf[i] = onesComp(byte)
|
34
|
+
buf[i-1] = onesComp(byte)
|
42
35
|
else if (byte === 0)
|
43
|
-
buf[i] = 0
|
36
|
+
buf[i-1] = 0
|
44
37
|
else {
|
45
38
|
flipped = true
|
46
|
-
buf[i] = twosComp(byte)
|
39
|
+
buf[i-1] = twosComp(byte)
|
47
40
|
}
|
48
41
|
}
|
49
42
|
}
|
@@ -51,8 +44,20 @@ const encodeNegative = (num, buf) => {
|
|
51
44
|
const parse = exports.parse = (buf) => {
|
52
45
|
var post = buf[buf.length - 1]
|
53
46
|
var pre = buf[0]
|
54
|
-
|
55
|
-
|
47
|
+
var value;
|
48
|
+
if (pre === 0x80)
|
49
|
+
value = pos(buf.slice(1, buf.length))
|
50
|
+
else if (pre === 0xff)
|
51
|
+
value = twos(buf)
|
52
|
+
else
|
53
|
+
throw TypeError('invalid base256 encoding')
|
54
|
+
|
55
|
+
if (!Number.isSafeInteger(value))
|
56
|
+
// The number is so large that javascript cannot represent it with integer
|
57
|
+
// precision.
|
58
|
+
throw TypeError('parsed number outside of javascript safe integer range')
|
59
|
+
|
60
|
+
return value
|
56
61
|
}
|
57
62
|
|
58
63
|
const twos = (buf) => {
|
@@ -71,9 +76,9 @@ const twos = (buf) => {
|
|
71
76
|
f = twosComp(byte)
|
72
77
|
}
|
73
78
|
if (f !== 0)
|
74
|
-
sum
|
79
|
+
sum -= f * Math.pow(256, len - i - 1)
|
75
80
|
}
|
76
|
-
return sum
|
81
|
+
return sum
|
77
82
|
}
|
78
83
|
|
79
84
|
const pos = (buf) => {
|
@@ -69,7 +69,7 @@ const mkdir = module.exports = (dir, opt, cb) => {
|
|
69
69
|
return done()
|
70
70
|
|
71
71
|
if (dir === cwd)
|
72
|
-
return fs.
|
72
|
+
return fs.stat(dir, (er, st) => {
|
73
73
|
if (er || !st.isDirectory())
|
74
74
|
er = new CwdError(dir, er && er.code || 'ENOTDIR')
|
75
75
|
done(er)
|
@@ -154,7 +154,7 @@ const mkdirSync = module.exports.sync = (dir, opt) => {
|
|
154
154
|
let ok = false
|
155
155
|
let code = 'ENOTDIR'
|
156
156
|
try {
|
157
|
-
ok = fs.
|
157
|
+
ok = fs.statSync(dir).isDirectory()
|
158
158
|
} catch (er) {
|
159
159
|
code = er.code
|
160
160
|
} finally {
|
@@ -0,0 +1,14 @@
|
|
1
|
+
'use strict'
|
2
|
+
module.exports = (mode, isDir) => {
|
3
|
+
mode &= 0o7777
|
4
|
+
// if dirs are readable, then they should be listable
|
5
|
+
if (isDir) {
|
6
|
+
if (mode & 0o400)
|
7
|
+
mode |= 0o100
|
8
|
+
if (mode & 0o40)
|
9
|
+
mode |= 0o10
|
10
|
+
if (mode & 0o4)
|
11
|
+
mode |= 0o1
|
12
|
+
}
|
13
|
+
return mode
|
14
|
+
}
|
@@ -71,6 +71,7 @@ const Pack = warner(class Pack extends MiniPass {
|
|
71
71
|
this.linkCache = opt.linkCache || new Map()
|
72
72
|
this.statCache = opt.statCache || new Map()
|
73
73
|
this.readdirCache = opt.readdirCache || new Map()
|
74
|
+
|
74
75
|
this[WRITEENTRYCLASS] = WriteEntry
|
75
76
|
if (typeof opt.onwarn === 'function')
|
76
77
|
this.on('warn', opt.onwarn)
|
@@ -29,6 +29,7 @@ const maxMetaEntrySize = 1024 * 1024
|
|
29
29
|
const Entry = require('./read-entry.js')
|
30
30
|
const Pax = require('./pax.js')
|
31
31
|
const zlib = require('minizlib')
|
32
|
+
const Buffer = require('./buffer.js')
|
32
33
|
|
33
34
|
const gzipHeader = Buffer.from([0x1f, 0x8b])
|
34
35
|
const STATE = Symbol('state')
|
@@ -101,7 +102,12 @@ module.exports = warner(class Parser extends EE {
|
|
101
102
|
}
|
102
103
|
|
103
104
|
[CONSUMEHEADER] (chunk, position) {
|
104
|
-
|
105
|
+
let header
|
106
|
+
try {
|
107
|
+
header = new Header(chunk, position, this[EX], this[GEX])
|
108
|
+
} catch (er) {
|
109
|
+
return this.warn('invalid entry', er)
|
110
|
+
}
|
105
111
|
|
106
112
|
if (header.nullBlock)
|
107
113
|
this[EMIT]('nullBlock')
|
@@ -6,6 +6,10 @@ const SLURP = Symbol('slurp')
|
|
6
6
|
module.exports = class ReadEntry extends MiniPass {
|
7
7
|
constructor (header, ex, gex) {
|
8
8
|
super()
|
9
|
+
// read entries always start life paused. this is to avoid the
|
10
|
+
// situation where Minipass's auto-ending empty streams results
|
11
|
+
// in an entry ending before we're ready for it.
|
12
|
+
this.pause()
|
9
13
|
this.extended = ex
|
10
14
|
this.globalExtended = gex
|
11
15
|
this.header = header
|