Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-03-10 00:38:14 +0300
committerKat Marchán <kzm@sykosomatic.org>2017-03-10 03:08:26 +0300
commit3e9ac054d0d42865fef28808c88cffc88cb89b5e (patch)
treeac288d4d49bb378420cd98523f44fda20c564086 /node_modules/fstream
parent0e105d9fb46bb00e2bcc32b13a23f018af5f7af8 (diff)
fstream@1.0.11
Diffstat (limited to 'node_modules/fstream')
-rw-r--r--node_modules/fstream/lib/reader.js8
-rw-r--r--node_modules/fstream/lib/writer.js4
-rw-r--r--node_modules/fstream/package.json51
3 files changed, 31 insertions, 32 deletions
diff --git a/node_modules/fstream/lib/reader.js b/node_modules/fstream/lib/reader.js
index 876021f92..be4f570ee 100644
--- a/node_modules/fstream/lib/reader.js
+++ b/node_modules/fstream/lib/reader.js
@@ -21,10 +21,6 @@ function Reader (props, currentStat) {
props = { path: props }
}
- if (!props.path) {
- self.error('Must provide a path', null, true)
- }
-
// polymorphism.
// call fstream.Reader(dir) to get a DirReader object, etc.
// Note that, unlike in the Writer case, ProxyReader is going
@@ -85,6 +81,10 @@ function Reader (props, currentStat) {
Abstract.call(self)
+ if (!props.path) {
+ self.error('Must provide a path', null, true)
+ }
+
self.readable = true
self.writable = false
diff --git a/node_modules/fstream/lib/writer.js b/node_modules/fstream/lib/writer.js
index ca3396b5d..140e449e0 100644
--- a/node_modules/fstream/lib/writer.js
+++ b/node_modules/fstream/lib/writer.js
@@ -30,8 +30,6 @@ function Writer (props, current) {
props = { path: props }
}
- if (!props.path) self.error('Must provide a path', null, true)
-
// polymorphism.
// call fstream.Writer(dir) to get a DirWriter object, etc.
var type = getType(props)
@@ -61,6 +59,8 @@ function Writer (props, current) {
Abstract.call(self)
+ if (!props.path) self.error('Must provide a path', null, true)
+
// props is what we want to set.
// set some convenience properties as well.
self.type = props.type
diff --git a/node_modules/fstream/package.json b/node_modules/fstream/package.json
index cb1ad42e1..162dbba1e 100644
--- a/node_modules/fstream/package.json
+++ b/node_modules/fstream/package.json
@@ -2,41 +2,40 @@
"_args": [
[
{
- "raw": "fstream@~1.0.10",
+ "raw": "fstream@latest",
"scope": null,
"escapedName": "fstream",
"name": "fstream",
- "rawSpec": "~1.0.10",
- "spec": ">=1.0.10 <1.1.0",
- "type": "range"
+ "rawSpec": "latest",
+ "spec": "latest",
+ "type": "tag"
},
- "/Users/ogd/Documents/projects/npm/npm"
+ "/Users/zkat/Documents/code/npm"
]
],
- "_from": "fstream@>=1.0.10 <1.1.0",
- "_id": "fstream@1.0.10",
+ "_from": "fstream@latest",
+ "_id": "fstream@1.0.11",
"_inCache": true,
- "_installable": true,
"_location": "/fstream",
- "_nodeVersion": "4.4.5",
+ "_nodeVersion": "7.7.1",
"_npmOperationalInternal": {
- "host": "packages-16-east.internal.npmjs.com",
- "tmp": "tmp/fstream-1.0.10.tgz_1466189553883_0.3062701092567295"
+ "host": "packages-18-east.internal.npmjs.com",
+ "tmp": "tmp/fstream-1.0.11.tgz_1488923219641_0.18055859790183604"
},
"_npmUser": {
- "name": "othiym23",
- "email": "ogd@aoaioxxysz.net"
+ "name": "zkat",
+ "email": "kat@sykosomatic.org"
},
- "_npmVersion": "3.10.0",
+ "_npmVersion": "4.1.2",
"_phantomChildren": {},
"_requested": {
- "raw": "fstream@~1.0.10",
+ "raw": "fstream@latest",
"scope": null,
"escapedName": "fstream",
"name": "fstream",
- "rawSpec": "~1.0.10",
- "spec": ">=1.0.10 <1.1.0",
- "type": "range"
+ "rawSpec": "latest",
+ "spec": "latest",
+ "type": "tag"
},
"_requiredBy": [
"#USER",
@@ -45,11 +44,11 @@
"/node-gyp",
"/tar"
],
- "_resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.10.tgz",
- "_shasum": "604e8a92fe26ffd9f6fae30399d4984e1ab22822",
+ "_resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz",
+ "_shasum": "5c1fb1f117477114f0632a0eb4b71b3cb0fd3171",
"_shrinkwrap": null,
- "_spec": "fstream@~1.0.10",
- "_where": "/Users/ogd/Documents/projects/npm/npm",
+ "_spec": "fstream@latest",
+ "_where": "/Users/zkat/Documents/code/npm",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
@@ -71,13 +70,13 @@
},
"directories": {},
"dist": {
- "shasum": "604e8a92fe26ffd9f6fae30399d4984e1ab22822",
- "tarball": "https://registry.npmjs.org/fstream/-/fstream-1.0.10.tgz"
+ "shasum": "5c1fb1f117477114f0632a0eb4b71b3cb0fd3171",
+ "tarball": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz"
},
"engines": {
"node": ">=0.6"
},
- "gitHead": "24fabdec32e334dd3b130d77b38c010e3119b102",
+ "gitHead": "1e4527ffe8688d4f5325283d7cf2cf2d61f14c6b",
"homepage": "https://github.com/npm/fstream#readme",
"license": "ISC",
"main": "fstream.js",
@@ -109,5 +108,5 @@
"scripts": {
"test": "standard && tap examples/*.js"
},
- "version": "1.0.10"
+ "version": "1.0.11"
}