summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules')
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/package.json56
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json54
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/package.json56
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/package.json56
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/LICENSE5
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/README.md44
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/index.js129
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/package.json67
8 files changed, 292 insertions, 175 deletions
diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/package.json
index 4bee1cda73..3946ff2a89 100644
--- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/package.json
+++ b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/node_modules/is-obj/package.json
@@ -1,41 +1,18 @@
{
- "_args": [
- [
- {
- "raw": "is-obj@^1.0.0",
- "scope": null,
- "escapedName": "is-obj",
- "name": "is-obj",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop"
- ]
- ],
- "_from": "is-obj@>=1.0.0 <2.0.0",
+ "_from": "is-obj@^1.0.0",
"_id": "is-obj@1.0.1",
- "_inCache": true,
+ "_integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=",
"_location": "/update-notifier/configstore/dot-prop/is-obj",
- "_nodeVersion": "4.3.0",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/is-obj-1.0.1.tgz_1458641652447_0.6715397178195417"
- },
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "2.14.12",
"_phantomChildren": {},
"_requested": {
+ "type": "range",
+ "registry": true,
"raw": "is-obj@^1.0.0",
- "scope": null,
- "escapedName": "is-obj",
"name": "is-obj",
+ "escapedName": "is-obj",
"rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
+ "saveSpec": null,
+ "fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/update-notifier/configstore/dot-prop"
@@ -44,33 +21,30 @@
"_shasum": "3e4729ac1f5fde025cd7d83a896dab9f4f67db0f",
"_shrinkwrap": null,
"_spec": "is-obj@^1.0.0",
- "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
+ "bin": null,
"bugs": {
"url": "https://github.com/sindresorhus/is-obj/issues"
},
+ "bundleDependencies": false,
"dependencies": {},
+ "deprecated": false,
"description": "Check if a value is an object",
"devDependencies": {
"ava": "*",
"xo": "*"
},
- "directories": {},
- "dist": {
- "shasum": "3e4729ac1f5fde025cd7d83a896dab9f4f67db0f",
- "tarball": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz"
- },
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
- "gitHead": "7438be7393348bf65cbc2330446666bb7fc2c2da",
"homepage": "https://github.com/sindresorhus/is-obj#readme",
"keywords": [
"obj",
@@ -81,15 +55,9 @@
"type"
],
"license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
"name": "is-obj",
"optionalDependencies": {},
- "readme": "ERROR: No README data found!",
+ "peerDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/is-obj.git"
diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json
index f4204a1ad4..ae0d9f8b45 100644
--- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json
+++ b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/dot-prop/package.json
@@ -1,41 +1,18 @@
{
- "_args": [
- [
- {
- "raw": "dot-prop@^4.1.0",
- "scope": null,
- "escapedName": "dot-prop",
- "name": "dot-prop",
- "rawSpec": "^4.1.0",
- "spec": ">=4.1.0 <5.0.0",
- "type": "range"
- },
- "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore"
- ]
- ],
- "_from": "dot-prop@>=4.1.0 <5.0.0",
+ "_from": "dot-prop@^4.1.0",
"_id": "dot-prop@4.1.1",
- "_inCache": true,
+ "_integrity": "sha1-qEk/C3te7sglJbXHWH+n3nyoWcE=",
"_location": "/update-notifier/configstore/dot-prop",
- "_nodeVersion": "4.6.2",
- "_npmOperationalInternal": {
- "host": "packages-12-west.internal.npmjs.com",
- "tmp": "tmp/dot-prop-4.1.1.tgz_1487442351691_0.9279007718432695"
- },
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "2.15.11",
"_phantomChildren": {},
"_requested": {
+ "type": "range",
+ "registry": true,
"raw": "dot-prop@^4.1.0",
- "scope": null,
- "escapedName": "dot-prop",
"name": "dot-prop",
+ "escapedName": "dot-prop",
"rawSpec": "^4.1.0",
- "spec": ">=4.1.0 <5.0.0",
- "type": "range"
+ "saveSpec": null,
+ "fetchSpec": "^4.1.0"
},
"_requiredBy": [
"/update-notifier/configstore"
@@ -50,30 +27,27 @@
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
+ "bin": null,
"bugs": {
"url": "https://github.com/sindresorhus/dot-prop/issues"
},
+ "bundleDependencies": false,
"dependencies": {
"is-obj": "^1.0.0"
},
+ "deprecated": false,
"description": "Get, set, or delete a property from a nested object using a dot path",
"devDependencies": {
"ava": "*",
"matcha": "^0.7.0",
"xo": "*"
},
- "directories": {},
- "dist": {
- "shasum": "a8493f0b7b5eeec82525b5c7587fa7de7ca859c1",
- "tarball": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.1.1.tgz"
- },
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
- "gitHead": "49f0809db1201f2cf13735de4f3631191a692658",
"homepage": "https://github.com/sindresorhus/dot-prop#readme",
"keywords": [
"obj",
@@ -91,15 +65,9 @@
"dotty"
],
"license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
"name": "dot-prop",
"optionalDependencies": {},
- "readme": "ERROR: No README data found!",
+ "peerDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/dot-prop.git"
diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/package.json
index 7c707f898a..d3bf40f81c 100644
--- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/package.json
+++ b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/node_modules/crypto-random-string/package.json
@@ -1,41 +1,18 @@
{
- "_args": [
- [
- {
- "raw": "crypto-random-string@^1.0.0",
- "scope": null,
- "escapedName": "crypto-random-string",
- "name": "crypto-random-string",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string"
- ]
- ],
- "_from": "crypto-random-string@>=1.0.0 <2.0.0",
+ "_from": "crypto-random-string@^1.0.0",
"_id": "crypto-random-string@1.0.0",
- "_inCache": true,
+ "_integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=",
"_location": "/update-notifier/configstore/unique-string/crypto-random-string",
- "_nodeVersion": "4.6.1",
- "_npmOperationalInternal": {
- "host": "packages-18-east.internal.npmjs.com",
- "tmp": "tmp/crypto-random-string-1.0.0.tgz_1479096882597_0.12821740517392755"
- },
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "2.15.9",
"_phantomChildren": {},
"_requested": {
+ "type": "range",
+ "registry": true,
"raw": "crypto-random-string@^1.0.0",
- "scope": null,
- "escapedName": "crypto-random-string",
"name": "crypto-random-string",
+ "escapedName": "crypto-random-string",
"rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
+ "saveSpec": null,
+ "fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/update-notifier/configstore/unique-string"
@@ -44,33 +21,30 @@
"_shasum": "a230f64f568310e1498009940790ec99545bca7e",
"_shrinkwrap": null,
"_spec": "crypto-random-string@^1.0.0",
- "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
+ "bin": null,
"bugs": {
"url": "https://github.com/sindresorhus/crypto-random-string/issues"
},
+ "bundleDependencies": false,
"dependencies": {},
+ "deprecated": false,
"description": "Generate a cryptographically strong random string",
"devDependencies": {
"ava": "*",
"xo": "*"
},
- "directories": {},
- "dist": {
- "shasum": "a230f64f568310e1498009940790ec99545bca7e",
- "tarball": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz"
- },
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
- "gitHead": "21960c996c3f77cf5f7bf6765e837e7c8a07e200",
"homepage": "https://github.com/sindresorhus/crypto-random-string#readme",
"keywords": [
"random",
@@ -88,15 +62,9 @@
"hex"
],
"license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
"name": "crypto-random-string",
"optionalDependencies": {},
- "readme": "ERROR: No README data found!",
+ "peerDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/crypto-random-string.git"
diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/package.json
index 0c4223e004..62130d8bfc 100644
--- a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/package.json
+++ b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/unique-string/package.json
@@ -1,41 +1,18 @@
{
- "_args": [
- [
- {
- "raw": "unique-string@^1.0.0",
- "scope": null,
- "escapedName": "unique-string",
- "name": "unique-string",
- "rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
- },
- "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/configstore"
- ]
- ],
- "_from": "unique-string@>=1.0.0 <2.0.0",
+ "_from": "unique-string@^1.0.0",
"_id": "unique-string@1.0.0",
- "_inCache": true,
+ "_integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=",
"_location": "/update-notifier/configstore/unique-string",
- "_nodeVersion": "4.6.1",
- "_npmOperationalInternal": {
- "host": "packages-18-east.internal.npmjs.com",
- "tmp": "tmp/unique-string-1.0.0.tgz_1479097654250_0.7648377516306937"
- },
- "_npmUser": {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- },
- "_npmVersion": "2.15.9",
"_phantomChildren": {},
"_requested": {
+ "type": "range",
+ "registry": true,
"raw": "unique-string@^1.0.0",
- "scope": null,
- "escapedName": "unique-string",
"name": "unique-string",
+ "escapedName": "unique-string",
"rawSpec": "^1.0.0",
- "spec": ">=1.0.0 <2.0.0",
- "type": "range"
+ "saveSpec": null,
+ "fetchSpec": "^1.0.0"
},
"_requiredBy": [
"/update-notifier/configstore"
@@ -44,35 +21,32 @@
"_shasum": "9e1057cca851abb93398f8b33ae187b99caec11a",
"_shrinkwrap": null,
"_spec": "unique-string@^1.0.0",
- "_where": "/Users/ceej/code/Tools/npm/node_modules/update-notifier/node_modules/configstore",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
+ "bin": null,
"bugs": {
"url": "https://github.com/sindresorhus/unique-string/issues"
},
+ "bundleDependencies": false,
"dependencies": {
"crypto-random-string": "^1.0.0"
},
+ "deprecated": false,
"description": "Generate a unique random string",
"devDependencies": {
"ava": "*",
"xo": "*"
},
- "directories": {},
- "dist": {
- "shasum": "9e1057cca851abb93398f8b33ae187b99caec11a",
- "tarball": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz"
- },
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
- "gitHead": "157a6b74fb44cf5d4ee2aa579502b967edbf4203",
"homepage": "https://github.com/sindresorhus/unique-string#readme",
"keywords": [
"unique",
@@ -88,15 +62,9 @@
"hex"
],
"license": "MIT",
- "maintainers": [
- {
- "name": "sindresorhus",
- "email": "sindresorhus@gmail.com"
- }
- ],
"name": "unique-string",
"optionalDependencies": {},
- "readme": "ERROR: No README data found!",
+ "peerDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/unique-string.git"
diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/LICENSE b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/LICENSE
new file mode 100644
index 0000000000..af4588069d
--- /dev/null
+++ b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/LICENSE
@@ -0,0 +1,5 @@
+Copyright (c) 2015, Rebecca Turner
+
+Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/README.md b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/README.md
new file mode 100644
index 0000000000..a9d3461db1
--- /dev/null
+++ b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/README.md
@@ -0,0 +1,44 @@
+write-file-atomic
+-----------------
+
+This is an extension for node's `fs.writeFile` that makes its operation
+atomic and allows you set ownership (uid/gid of the file).
+
+### var writeFileAtomic = require('write-file-atomic')<br>writeFileAtomic(filename, data, [options], callback)
+
+* filename **String**
+* data **String** | **Buffer**
+* options **Object**
+ * chown **Object**
+ * uid **Number**
+ * gid **Number**
+ * encoding **String** | **Null** default = 'utf8'
+ * mode **Number** default = 438 (aka 0666 in Octal)
+callback **Function**
+
+Atomically and asynchronously writes data to a file, replacing the file if it already
+exists. data can be a string or a buffer.
+
+The file is initially named `filename + "." + murmurhex(__filename, process.pid, ++invocations)`.
+If writeFile completes successfully then, if passed the **chown** option it will change
+the ownership of the file. Finally it renames the file back to the filename you specified. If
+it encounters errors at any of these steps it will attempt to unlink the temporary file and then
+pass the error back to the caller.
+
+If provided, the **chown** option requires both **uid** and **gid** properties or else
+you'll get an error.
+
+The **encoding** option is ignored if **data** is a buffer. It defaults to 'utf8'.
+
+Example:
+
+```javascript
+writeFileAtomic('message.txt', 'Hello Node', {chown:{uid:100,gid:50}}, function (err) {
+ if (err) throw err;
+ console.log('It\'s saved!');
+});
+```
+
+### var writeFileAtomicSync = require('write-file-atomic').sync<br>writeFileAtomicSync(filename, data, [options])
+
+The synchronous version of **writeFileAtomic**.
diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/index.js b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/index.js
new file mode 100644
index 0000000000..7bacf32ad0
--- /dev/null
+++ b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/index.js
@@ -0,0 +1,129 @@
+'use strict'
+module.exports = writeFile
+module.exports.sync = writeFileSync
+module.exports._getTmpname = getTmpname // for testing
+
+var fs = require('graceful-fs')
+var chain = require('slide').chain
+var MurmurHash3 = require('imurmurhash')
+var extend = Object.assign || require('util')._extend
+
+var invocations = 0
+function getTmpname (filename) {
+ return filename + '.' +
+ MurmurHash3(__filename)
+ .hash(String(process.pid))
+ .hash(String(++invocations))
+ .result()
+}
+
+function writeFile (filename, data, options, callback) {
+ if (options instanceof Function) {
+ callback = options
+ options = null
+ }
+ if (!options) options = {}
+ fs.realpath(filename, function (_, realname) {
+ _writeFile(realname || filename, data, options, callback)
+ })
+}
+function _writeFile (filename, data, options, callback) {
+ var tmpfile = getTmpname(filename)
+
+ if (options.mode && options.chown) {
+ return thenWriteFile()
+ } else {
+ // Either mode or chown is not explicitly set
+ // Default behavior is to copy it from original file
+ return fs.stat(filename, function (err, stats) {
+ if (err || !stats) return thenWriteFile()
+
+ options = extend({}, options)
+ if (!options.mode) {
+ options.mode = stats.mode
+ }
+ if (!options.chown && process.getuid) {
+ options.chown = { uid: stats.uid, gid: stats.gid }
+ }
+ return thenWriteFile()
+ })
+ }
+
+ function thenWriteFile () {
+ chain([
+ [writeFileAsync, tmpfile, data, options.mode, options.encoding || 'utf8'],
+ options.chown && [fs, fs.chown, tmpfile, options.chown.uid, options.chown.gid],
+ options.mode && [fs, fs.chmod, tmpfile, options.mode],
+ [fs, fs.rename, tmpfile, filename]
+ ], function (err) {
+ err ? fs.unlink(tmpfile, function () { callback(err) })
+ : callback()
+ })
+ }
+
+ // doing this instead of `fs.writeFile` in order to get the ability to
+ // call `fsync`.
+ function writeFileAsync (file, data, mode, encoding, cb) {
+ fs.open(file, 'w', options.mode, function (err, fd) {
+ if (err) return cb(err)
+ if (Buffer.isBuffer(data)) {
+ return fs.write(fd, data, 0, data.length, 0, syncAndClose)
+ } else if (data != null) {
+ return fs.write(fd, String(data), 0, String(encoding), syncAndClose)
+ } else {
+ return syncAndClose()
+ }
+ function syncAndClose (err) {
+ if (err) return cb(err)
+ fs.fsync(fd, function (err) {
+ if (err) return cb(err)
+ fs.close(fd, cb)
+ })
+ }
+ })
+ }
+}
+
+function writeFileSync (filename, data, options) {
+ if (!options) options = {}
+ try {
+ filename = fs.realpathSync(filename)
+ } catch (ex) {
+ // it's ok, it'll happen on a not yet existing file
+ }
+ var tmpfile = getTmpname(filename)
+
+ try {
+ if (!options.mode || !options.chown) {
+ // Either mode or chown is not explicitly set
+ // Default behavior is to copy it from original file
+ try {
+ var stats = fs.statSync(filename)
+ options = extend({}, options)
+ if (!options.mode) {
+ options.mode = stats.mode
+ }
+ if (!options.chown && process.getuid) {
+ options.chown = { uid: stats.uid, gid: stats.gid }
+ }
+ } catch (ex) {
+ // ignore stat errors
+ }
+ }
+
+ var fd = fs.openSync(tmpfile, 'w', options.mode)
+ if (Buffer.isBuffer(data)) {
+ fs.writeSync(fd, data, 0, data.length, 0)
+ } else if (data != null) {
+ fs.writeSync(fd, String(data), 0, String(options.encoding || 'utf8'))
+ }
+ fs.fsyncSync(fd)
+ fs.closeSync(fd)
+ if (options.chown) fs.chownSync(tmpfile, options.chown.uid, options.chown.gid)
+ if (options.mode) fs.chmodSync(tmpfile, options.mode)
+ fs.renameSync(tmpfile, filename)
+ } catch (err) {
+ try { fs.unlinkSync(tmpfile) } catch (e) {}
+ throw err
+ }
+}
diff --git a/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/package.json b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/package.json
new file mode 100644
index 0000000000..8444520100
--- /dev/null
+++ b/deps/npm/node_modules/update-notifier/node_modules/configstore/node_modules/write-file-atomic/package.json
@@ -0,0 +1,67 @@
+{
+ "_from": "write-file-atomic@^1.1.2",
+ "_id": "write-file-atomic@1.3.4",
+ "_inBundle": false,
+ "_integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=",
+ "_location": "/update-notifier/configstore/write-file-atomic",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "write-file-atomic@^1.1.2",
+ "name": "write-file-atomic",
+ "escapedName": "write-file-atomic",
+ "rawSpec": "^1.1.2",
+ "saveSpec": null,
+ "fetchSpec": "^1.1.2"
+ },
+ "_requiredBy": [
+ "/update-notifier/configstore"
+ ],
+ "_resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz",
+ "_shasum": "f807a4f0b1d9e913ae7a48112e6cc3af1991b45f",
+ "_spec": "write-file-atomic@^1.1.2",
+ "_where": "/Users/zkat/Documents/code/npm/node_modules/update-notifier/node_modules/configstore",
+ "author": {
+ "name": "Rebecca Turner",
+ "email": "me@re-becca.org",
+ "url": "http://re-becca.org"
+ },
+ "bugs": {
+ "url": "https://github.com/iarna/write-file-atomic/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "graceful-fs": "^4.1.11",
+ "imurmurhash": "^0.1.4",
+ "slide": "^1.1.5"
+ },
+ "deprecated": false,
+ "description": "Write files in an atomic fashion w/configurable ownership",
+ "devDependencies": {
+ "mkdirp": "^0.5.1",
+ "require-inject": "^1.4.0",
+ "rimraf": "^2.5.4",
+ "standard": "^9.0.2",
+ "tap": "^10.3.2"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/iarna/write-file-atomic",
+ "keywords": [
+ "writeFile",
+ "atomic"
+ ],
+ "license": "ISC",
+ "main": "index.js",
+ "name": "write-file-atomic",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/iarna/write-file-atomic.git"
+ },
+ "scripts": {
+ "test": "standard && tap --coverage test/*.js"
+ },
+ "version": "1.3.4"
+}