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
package/.travis.yml
CHANGED
@@ -5,14 +5,13 @@ env:
|
|
5
5
|
- secure: "gve1nkeKkwFEG1VAT3i+JwYyAdF0gKXwKx0uxbkBTsmm2M+0MDusohQdFLoEIkSIFktXBIDefoa7iGpLKRfG2VsZLpwJgnvnD0HqbnuR+k+W+bu7BHt4CAaR6GTllsDCjyq9zNyhUThzSnf2WNIpOEF5kHspZlbGfawURuUJH/U="
|
6
6
|
- secure: "jqVpmWxxBVXu2X8+XJMpKH0cooc2EKz9xKL2znBfYdNafJORSXcFAVbjCX5mZmVDcgIMwDtm2+gIG4P73hzJ2e3S+y2Z9ROJGyXHa3AxUTvXHQsxqzH8coHHqB8vTvfr0t2O5aKfpvpICpSea39r0hzNoMv6Ie5SwBdqj1YY9K0="
|
7
7
|
matrix:
|
8
|
+
- NODE_VERSION="v12"
|
9
|
+
- NODE_VERSION="v11"
|
8
10
|
- NODE_VERSION="v10"
|
9
11
|
- NODE_VERSION="v9"
|
10
12
|
- NODE_VERSION="v8"
|
11
13
|
- NODE_VERSION="v7"
|
12
14
|
- NODE_VERSION="v6"
|
13
|
-
- NODE_VERSION="v5"
|
14
|
-
- NODE_VERSION="v4"
|
15
|
-
- NODE_VERSION="v0.10"
|
16
15
|
|
17
16
|
before_install:
|
18
17
|
|
package/fsevents.cc
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
#include "nan.h"
|
7
7
|
#include "uv.h"
|
8
8
|
#include "v8.h"
|
9
|
-
#include "pthread.h"
|
10
9
|
#include "CoreFoundation/CoreFoundation.h"
|
11
10
|
#include "CoreServices/CoreServices.h"
|
12
11
|
#include <iostream>
|
@@ -19,13 +18,7 @@ namespace fse {
|
|
19
18
|
explicit FSEvents(const char *path);
|
20
19
|
~FSEvents();
|
21
20
|
|
22
|
-
|
23
|
-
bool lockStarted;
|
24
|
-
pthread_mutex_t lockmutex;
|
25
|
-
void lockingStart();
|
26
|
-
void lock();
|
27
|
-
void unlock();
|
28
|
-
void lockingStop();
|
21
|
+
uv_mutex_t mutex;
|
29
22
|
|
30
23
|
// async.cc
|
31
24
|
uv_async_t async;
|
@@ -34,10 +27,10 @@ namespace fse {
|
|
34
27
|
void asyncStop();
|
35
28
|
|
36
29
|
// thread.cc
|
37
|
-
|
30
|
+
uv_thread_t thread;
|
38
31
|
CFRunLoopRef threadloop;
|
39
32
|
void threadStart();
|
40
|
-
static void
|
33
|
+
static void threadRun(void *ctx);
|
41
34
|
void threadStop();
|
42
35
|
|
43
36
|
// methods.cc - internal
|
@@ -47,7 +40,7 @@ namespace fse {
|
|
47
40
|
// Common
|
48
41
|
CFArrayRef paths;
|
49
42
|
std::vector<fse_event*> events;
|
50
|
-
static void Initialize(v8::
|
43
|
+
static void Initialize(v8::Local<v8::Object> exports);
|
51
44
|
|
52
45
|
// methods.cc - exposed
|
53
46
|
static NAN_METHOD(New);
|
@@ -60,41 +53,36 @@ namespace fse {
|
|
60
53
|
using namespace fse;
|
61
54
|
|
62
55
|
FSEvents::FSEvents(const char *path)
|
63
|
-
: async_resource("fsevents:FSEvents")
|
56
|
+
: async_resource("fsevents:FSEvents") {
|
64
57
|
CFStringRef dirs[] = { CFStringCreateWithCString(NULL, path, kCFStringEncodingUTF8) };
|
65
58
|
paths = CFArrayCreate(NULL, (const void **)&dirs, 1, NULL);
|
66
59
|
threadloop = NULL;
|
67
|
-
|
60
|
+
if (uv_mutex_init(&mutex)) abort();
|
68
61
|
}
|
69
62
|
FSEvents::~FSEvents() {
|
70
|
-
lockingStop();
|
71
|
-
|
72
63
|
CFRelease(paths);
|
64
|
+
uv_mutex_destroy(&mutex);
|
73
65
|
}
|
74
66
|
|
75
67
|
#ifndef kFSEventStreamEventFlagItemCreated
|
76
68
|
#define kFSEventStreamEventFlagItemCreated 0x00000010
|
77
69
|
#endif
|
78
70
|
|
79
|
-
#include "src/locking.cc"
|
80
71
|
#include "src/async.cc"
|
81
72
|
#include "src/thread.cc"
|
82
73
|
#include "src/constants.cc"
|
83
74
|
#include "src/methods.cc"
|
84
75
|
|
85
|
-
void FSEvents::Initialize(v8::
|
76
|
+
void FSEvents::Initialize(v8::Local<v8::Object> exports) {
|
77
|
+
v8::Isolate* isolate = exports->GetIsolate();
|
78
|
+
v8::Local<v8::Context> context = isolate->GetCurrentContext();
|
86
79
|
v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(FSEvents::New);
|
87
80
|
tpl->SetClassName(Nan::New<v8::String>("FSEvents").ToLocalChecked());
|
88
81
|
tpl->InstanceTemplate()->SetInternalFieldCount(1);
|
89
|
-
tpl
|
90
|
-
|
91
|
-
|
92
|
-
tpl->
|
93
|
-
Nan::New<v8::String>("stop").ToLocalChecked(),
|
94
|
-
Nan::New<v8::FunctionTemplate>(FSEvents::Stop));
|
95
|
-
exports->Set(Nan::New<v8::String>("Constants").ToLocalChecked(), Constants());
|
96
|
-
exports->Set(Nan::New<v8::String>("FSEvents").ToLocalChecked(),
|
97
|
-
tpl->GetFunction());
|
82
|
+
Nan::SetPrototypeTemplate(tpl, "start", Nan::New<v8::FunctionTemplate>(FSEvents::Start));
|
83
|
+
Nan::SetPrototypeTemplate(tpl, "stop", Nan::New<v8::FunctionTemplate>(FSEvents::Stop));
|
84
|
+
Nan::Set(exports, Nan::New<v8::String>("Constants").ToLocalChecked(), Constants());
|
85
|
+
Nan::Set(exports, Nan::New<v8::String>("FSEvents").ToLocalChecked(), tpl->GetFunction(context).ToLocalChecked());
|
98
86
|
}
|
99
87
|
|
100
88
|
NODE_MODULE(fse, FSEvents::Initialize)
|
@@ -1,30 +1,27 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"abbrev@1.1.1",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "abbrev@1.1.1",
|
2
|
+
"_from": "abbrev@1",
|
9
3
|
"_id": "abbrev@1.1.1",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
|
12
6
|
"_location": "/abbrev",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "abbrev@1
|
11
|
+
"raw": "abbrev@1",
|
18
12
|
"name": "abbrev",
|
19
13
|
"escapedName": "abbrev",
|
20
|
-
"rawSpec": "1
|
14
|
+
"rawSpec": "1",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "1
|
16
|
+
"fetchSpec": "1"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/nopt"
|
20
|
+
],
|
25
21
|
"_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
26
|
-
"
|
27
|
-
"
|
22
|
+
"_shasum": "f8f2c887ad10bf67f634f005b6987fed3179aac8",
|
23
|
+
"_spec": "abbrev@1",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/nopt",
|
28
25
|
"author": {
|
29
26
|
"name": "Isaac Z. Schlueter",
|
30
27
|
"email": "i@izs.me"
|
@@ -32,6 +29,8 @@
|
|
32
29
|
"bugs": {
|
33
30
|
"url": "https://github.com/isaacs/abbrev-js/issues"
|
34
31
|
},
|
32
|
+
"bundleDependencies": false,
|
33
|
+
"deprecated": false,
|
35
34
|
"description": "Like ruby's abbrev module, but in js",
|
36
35
|
"devDependencies": {
|
37
36
|
"tap": "^10.1"
|
@@ -1,30 +1,27 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"ansi-regex@2.1.1",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "ansi-regex@2.1.1",
|
2
|
+
"_from": "ansi-regex@^2.0.0",
|
9
3
|
"_id": "ansi-regex@2.1.1",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
|
12
6
|
"_location": "/ansi-regex",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "ansi-regex
|
11
|
+
"raw": "ansi-regex@^2.0.0",
|
18
12
|
"name": "ansi-regex",
|
19
13
|
"escapedName": "ansi-regex",
|
20
|
-
"rawSpec": "2.
|
14
|
+
"rawSpec": "^2.0.0",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "2.
|
16
|
+
"fetchSpec": "^2.0.0"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/strip-ansi"
|
20
|
+
],
|
25
21
|
"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
|
26
|
-
"
|
27
|
-
"
|
22
|
+
"_shasum": "c3b33ab5ee360d86e0e628f0468ae7ef27d654df",
|
23
|
+
"_spec": "ansi-regex@^2.0.0",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/strip-ansi",
|
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/chalk/ansi-regex/issues"
|
35
32
|
},
|
33
|
+
"bundleDependencies": false,
|
34
|
+
"deprecated": false,
|
36
35
|
"description": "Regular expression for matching ANSI escape codes",
|
37
36
|
"devDependencies": {
|
38
37
|
"ava": "0.17.0",
|
@@ -1,30 +1,27 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"aproba@1.2.0",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "aproba@1.2.0",
|
2
|
+
"_from": "aproba@^1.0.3",
|
9
3
|
"_id": "aproba@1.2.0",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
|
12
6
|
"_location": "/aproba",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "aproba
|
11
|
+
"raw": "aproba@^1.0.3",
|
18
12
|
"name": "aproba",
|
19
13
|
"escapedName": "aproba",
|
20
|
-
"rawSpec": "1.
|
14
|
+
"rawSpec": "^1.0.3",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "1.
|
16
|
+
"fetchSpec": "^1.0.3"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/gauge"
|
20
|
+
],
|
25
21
|
"_resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
|
26
|
-
"
|
27
|
-
"
|
22
|
+
"_shasum": "6802e6264efd18c790a1b0d517f0f2627bf2c94a",
|
23
|
+
"_spec": "aproba@^1.0.3",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/gauge",
|
28
25
|
"author": {
|
29
26
|
"name": "Rebecca Turner",
|
30
27
|
"email": "me@re-becca.org"
|
@@ -32,7 +29,9 @@
|
|
32
29
|
"bugs": {
|
33
30
|
"url": "https://github.com/iarna/aproba/issues"
|
34
31
|
},
|
32
|
+
"bundleDependencies": false,
|
35
33
|
"dependencies": {},
|
34
|
+
"deprecated": false,
|
36
35
|
"description": "A ridiculously light-weight argument validator (now browser friendly)",
|
37
36
|
"devDependencies": {
|
38
37
|
"standard": "^10.0.3",
|
@@ -1,5 +1,11 @@
|
|
1
1
|
Hi, figured we could actually use a changelog now:
|
2
2
|
|
3
|
+
## 1.1.5 2018-05-24
|
4
|
+
|
5
|
+
* [#92](https://github.com/iarna/are-we-there-yet/pull/92) Fix bug where
|
6
|
+
`finish` would throw errors when including `TrackerStream` objects in
|
7
|
+
`TrackerGroup` collections. (@brianloveswords)
|
8
|
+
|
3
9
|
## 1.1.4 2017-04-21
|
4
10
|
|
5
11
|
* Fix typo in package.json
|
@@ -1,30 +1,27 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
|
4
|
-
"are-we-there-yet@1.1.4",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "are-we-there-yet@1.1.4",
|
9
|
-
"_id": "are-we-there-yet@1.1.4",
|
2
|
+
"_from": "are-we-there-yet@~1.1.2",
|
3
|
+
"_id": "are-we-there-yet@1.1.5",
|
10
4
|
"_inBundle": false,
|
11
|
-
"_integrity": "
|
5
|
+
"_integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==",
|
12
6
|
"_location": "/are-we-there-yet",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "are-we-there-yet
|
11
|
+
"raw": "are-we-there-yet@~1.1.2",
|
18
12
|
"name": "are-we-there-yet",
|
19
13
|
"escapedName": "are-we-there-yet",
|
20
|
-
"rawSpec": "1.1.
|
14
|
+
"rawSpec": "~1.1.2",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "1.1.
|
16
|
+
"fetchSpec": "~1.1.2"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
25
|
-
|
26
|
-
|
27
|
-
"
|
18
|
+
"_requiredBy": [
|
19
|
+
"/npmlog"
|
20
|
+
],
|
21
|
+
"_resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz",
|
22
|
+
"_shasum": "4b35c2944f062a8bfcda66410760350fe9ddfc21",
|
23
|
+
"_spec": "are-we-there-yet@~1.1.2",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/npmlog",
|
28
25
|
"author": {
|
29
26
|
"name": "Rebecca Turner",
|
30
27
|
"url": "http://re-becca.org"
|
@@ -32,14 +29,16 @@
|
|
32
29
|
"bugs": {
|
33
30
|
"url": "https://github.com/iarna/are-we-there-yet/issues"
|
34
31
|
},
|
32
|
+
"bundleDependencies": false,
|
35
33
|
"dependencies": {
|
36
34
|
"delegates": "^1.0.0",
|
37
35
|
"readable-stream": "^2.0.6"
|
38
36
|
},
|
37
|
+
"deprecated": false,
|
39
38
|
"description": "Keep track of the overall completion of many disparate processes",
|
40
39
|
"devDependencies": {
|
41
|
-
"standard": "^
|
42
|
-
"tap": "^
|
40
|
+
"standard": "^11.0.1",
|
41
|
+
"tap": "^12.0.1"
|
43
42
|
},
|
44
43
|
"files": [
|
45
44
|
"index.js",
|
@@ -60,5 +59,5 @@
|
|
60
59
|
"scripts": {
|
61
60
|
"test": "standard && tap test/*.js"
|
62
61
|
},
|
63
|
-
"version": "1.1.
|
62
|
+
"version": "1.1.5"
|
64
63
|
}
|
@@ -1,30 +1,27 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"balanced-match@1.0.0",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "balanced-match@1.0.0",
|
2
|
+
"_from": "balanced-match@^1.0.0",
|
9
3
|
"_id": "balanced-match@1.0.0",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
|
12
6
|
"_location": "/balanced-match",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "balanced-match
|
11
|
+
"raw": "balanced-match@^1.0.0",
|
18
12
|
"name": "balanced-match",
|
19
13
|
"escapedName": "balanced-match",
|
20
|
-
"rawSpec": "1.0.0",
|
14
|
+
"rawSpec": "^1.0.0",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "1.0.0"
|
16
|
+
"fetchSpec": "^1.0.0"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/brace-expansion"
|
20
|
+
],
|
25
21
|
"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
|
26
|
-
"
|
27
|
-
"
|
22
|
+
"_shasum": "89b4d199ab2bee49de164ea02b89ce462d71b767",
|
23
|
+
"_spec": "balanced-match@^1.0.0",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/brace-expansion",
|
28
25
|
"author": {
|
29
26
|
"name": "Julian Gruber",
|
30
27
|
"email": "mail@juliangruber.com",
|
@@ -33,7 +30,9 @@
|
|
33
30
|
"bugs": {
|
34
31
|
"url": "https://github.com/juliangruber/balanced-match/issues"
|
35
32
|
},
|
33
|
+
"bundleDependencies": false,
|
36
34
|
"dependencies": {},
|
35
|
+
"deprecated": false,
|
37
36
|
"description": "Match balanced character pairs, like \"{\" and \"}\"",
|
38
37
|
"devDependencies": {
|
39
38
|
"matcha": "^0.7.0",
|
@@ -1,30 +1,27 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
[
|
4
|
-
"brace-expansion@1.1.11",
|
5
|
-
"/Users/eshanker/Code/fsevents"
|
6
|
-
]
|
7
|
-
],
|
8
|
-
"_from": "brace-expansion@1.1.11",
|
2
|
+
"_from": "brace-expansion@^1.1.7",
|
9
3
|
"_id": "brace-expansion@1.1.11",
|
10
4
|
"_inBundle": false,
|
11
5
|
"_integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
12
6
|
"_location": "/brace-expansion",
|
13
7
|
"_phantomChildren": {},
|
14
8
|
"_requested": {
|
15
|
-
"type": "
|
9
|
+
"type": "range",
|
16
10
|
"registry": true,
|
17
|
-
"raw": "brace-expansion
|
11
|
+
"raw": "brace-expansion@^1.1.7",
|
18
12
|
"name": "brace-expansion",
|
19
13
|
"escapedName": "brace-expansion",
|
20
|
-
"rawSpec": "1.1.
|
14
|
+
"rawSpec": "^1.1.7",
|
21
15
|
"saveSpec": null,
|
22
|
-
"fetchSpec": "1.1.
|
16
|
+
"fetchSpec": "^1.1.7"
|
23
17
|
},
|
24
|
-
"_requiredBy": [
|
18
|
+
"_requiredBy": [
|
19
|
+
"/minimatch"
|
20
|
+
],
|
25
21
|
"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
26
|
-
"
|
27
|
-
"
|
22
|
+
"_shasum": "3c7fcbf529d87226f3d2f52b966ff5271eb441dd",
|
23
|
+
"_spec": "brace-expansion@^1.1.7",
|
24
|
+
"_where": "/Users/pipobscure/fsevents/node_modules/minimatch",
|
28
25
|
"author": {
|
29
26
|
"name": "Julian Gruber",
|
30
27
|
"email": "mail@juliangruber.com",
|
@@ -33,10 +30,12 @@
|
|
33
30
|
"bugs": {
|
34
31
|
"url": "https://github.com/juliangruber/brace-expansion/issues"
|
35
32
|
},
|
33
|
+
"bundleDependencies": false,
|
36
34
|
"dependencies": {
|
37
35
|
"balanced-match": "^1.0.0",
|
38
36
|
"concat-map": "0.0.1"
|
39
37
|
},
|
38
|
+
"deprecated": false,
|
40
39
|
"description": "Brace expansion as known from sh/bash",
|
41
40
|
"devDependencies": {
|
42
41
|
"matcha": "^0.7.0",
|
@@ -1,52 +1,125 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
'use strict'
|
2
|
+
const fs = require('fs')
|
3
|
+
const path = require('path')
|
4
|
+
|
5
|
+
/* istanbul ignore next */
|
6
|
+
const LCHOWN = fs.lchown ? 'lchown' : 'chown'
|
7
|
+
/* istanbul ignore next */
|
8
|
+
const LCHOWNSYNC = fs.lchownSync ? 'lchownSync' : 'chownSync'
|
9
|
+
|
10
|
+
const needEISDIRHandled = fs.lchown &&
|
11
|
+
!process.version.match(/v1[1-9]+\./) &&
|
12
|
+
!process.version.match(/v10\.[6-9]/)
|
13
|
+
|
14
|
+
/* istanbul ignore next */
|
15
|
+
const handleEISDIR =
|
16
|
+
needEISDIRHandled ? (path, uid, gid, cb) => er => {
|
17
|
+
// Node prior to v10 had a very questionable implementation of
|
18
|
+
// fs.lchown, which would always try to call fs.open on a directory
|
19
|
+
// Fall back to fs.chown in those cases.
|
20
|
+
if (!er || er.code !== 'EISDIR')
|
21
|
+
cb(er)
|
22
|
+
else
|
23
|
+
fs.chown(path, uid, gid, cb)
|
24
|
+
}
|
25
|
+
: (_, __, ___, cb) => cb
|
26
|
+
|
27
|
+
/* istanbul ignore next */
|
28
|
+
const handleEISDirSync =
|
29
|
+
needEISDIRHandled ? (path, uid, gid) => {
|
30
|
+
try {
|
31
|
+
return fs[LCHOWNSYNC](path, uid, gid)
|
32
|
+
} catch (er) {
|
33
|
+
if (er.code !== 'EISDIR')
|
34
|
+
throw er
|
35
|
+
fs.chownSync(path, uid, gid)
|
36
|
+
}
|
37
|
+
}
|
38
|
+
: (path, uid, gid) => fs[LCHOWNSYNC](path, uid, gid)
|
3
39
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
if (er)
|
20
|
-
return cb(er)
|
21
|
-
if (!stats.isSymbolicLink())
|
22
|
-
chownr(pathChild, uid, gid, then)
|
23
|
-
else
|
24
|
-
then()
|
25
|
-
})
|
40
|
+
// fs.readdir could only accept an options object as of node v6
|
41
|
+
const nodeVersion = process.version
|
42
|
+
let readdir = (path, options, cb) => fs.readdir(path, options, cb)
|
43
|
+
let readdirSync = (path, options) => fs.readdirSync(path, options)
|
44
|
+
/* istanbul ignore next */
|
45
|
+
if (/^v4\./.test(nodeVersion))
|
46
|
+
readdir = (path, options, cb) => fs.readdir(path, cb)
|
47
|
+
|
48
|
+
const chownrKid = (p, child, uid, gid, cb) => {
|
49
|
+
if (typeof child === 'string')
|
50
|
+
return fs.lstat(path.resolve(p, child), (er, stats) => {
|
51
|
+
if (er)
|
52
|
+
return cb(er)
|
53
|
+
stats.name = child
|
54
|
+
chownrKid(p, stats, uid, gid, cb)
|
26
55
|
})
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
if (
|
56
|
+
|
57
|
+
if (child.isDirectory()) {
|
58
|
+
chownr(path.resolve(p, child.name), uid, gid, er => {
|
59
|
+
if (er)
|
60
|
+
return cb(er)
|
61
|
+
const cpath = path.resolve(p, child.name)
|
62
|
+
fs[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, cb))
|
63
|
+
})
|
64
|
+
} else {
|
65
|
+
const cpath = path.resolve(p, child.name)
|
66
|
+
fs[LCHOWN](cpath, uid, gid, handleEISDIR(cpath, uid, gid, cb))
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
|
71
|
+
const chownr = (p, uid, gid, cb) => {
|
72
|
+
readdir(p, { withFileTypes: true }, (er, children) => {
|
73
|
+
// any error other than ENOTDIR or ENOTSUP means it's not readable,
|
74
|
+
// or doesn't exist. give up.
|
75
|
+
if (er && er.code !== 'ENOTDIR' && er.code !== 'ENOTSUP')
|
76
|
+
return cb(er)
|
77
|
+
if (er || !children.length)
|
78
|
+
return fs[LCHOWN](p, uid, gid, handleEISDIR(p, uid, gid, cb))
|
79
|
+
|
80
|
+
let len = children.length
|
81
|
+
let errState = null
|
82
|
+
const then = er => {
|
83
|
+
if (errState)
|
84
|
+
return
|
85
|
+
if (er)
|
86
|
+
return cb(errState = er)
|
87
|
+
if (-- len === 0)
|
88
|
+
return fs[LCHOWN](p, uid, gid, handleEISDIR(p, uid, gid, cb))
|
31
89
|
}
|
90
|
+
|
91
|
+
children.forEach(child => chownrKid(p, child, uid, gid, then))
|
32
92
|
})
|
33
93
|
}
|
34
94
|
|
35
|
-
|
36
|
-
|
95
|
+
const chownrKidSync = (p, child, uid, gid) => {
|
96
|
+
if (typeof child === 'string') {
|
97
|
+
const stats = fs.lstatSync(path.resolve(p, child))
|
98
|
+
stats.name = child
|
99
|
+
child = stats
|
100
|
+
}
|
101
|
+
|
102
|
+
if (child.isDirectory())
|
103
|
+
chownrSync(path.resolve(p, child.name), uid, gid)
|
104
|
+
|
105
|
+
handleEISDirSync(path.resolve(p, child.name), uid, gid)
|
106
|
+
}
|
107
|
+
|
108
|
+
const chownrSync = (p, uid, gid) => {
|
109
|
+
let children
|
37
110
|
try {
|
38
|
-
children =
|
111
|
+
children = readdirSync(p, { withFileTypes: true })
|
39
112
|
} catch (er) {
|
40
|
-
if (er && er.code ===
|
113
|
+
if (er && er.code === 'ENOTDIR' && er.code !== 'ENOTSUP')
|
114
|
+
return handleEISDirSync(p, uid, gid)
|
41
115
|
throw er
|
42
116
|
}
|
43
|
-
if (!children.length) return fs.chownSync(p, uid, gid)
|
44
117
|
|
45
|
-
children.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
chownrSync(pathChild, uid, gid)
|
50
|
-
})
|
51
|
-
return fs.chownSync(p, uid, gid)
|
118
|
+
if (children.length)
|
119
|
+
children.forEach(child => chownrKidSync(p, child, uid, gid))
|
120
|
+
|
121
|
+
return handleEISDirSync(p, uid, gid)
|
52
122
|
}
|
123
|
+
|
124
|
+
module.exports = chownr
|
125
|
+
chownr.sync = chownrSync
|