node-webhdfs
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "node-webhdfs", | ||
"main": "src/webhdfs.js", | ||
"description": "A WebHDFS module for Node.js.", | ||
"version": "0.0.3", | ||
"keywords": ["hdfs", "webhdfs", "http"], | ||
"maintainers": ["Ryan Cole <ryan@rycole.com> (http://rycole.com)"], | ||
"contributors": ["Ryan Cole <ryan@rycole.com> (http://rycole.com)"], | ||
"bugs": { | ||
"url": "mailto:ryan@rycole.com" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
], | ||
"dependencies": { | ||
"underscore": ">=1.3.3", | ||
"request": ">=2.9.201" | ||
}, | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"author": "Ryan Cole <ryan@rycole.com> (http://rycole.com)", | ||
"homepage": "https://github.com/ryancole/node-webhdfs", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:ryancole/node-webhdfs.git" | ||
}, | ||
"scripts": { | ||
"test": "mocha --reporter spec --timeout 10000 test/webhdfs.js" | ||
"name": "node-webhdfs", | ||
"version": "0.0.4", | ||
"description": "A WebHDFS module for Node.js.", | ||
"author": "Ryan Cole <ryan@rycole.com> (http://rycole.com)", | ||
"homepage": "https://github.com/ryancole/node-webhdfs", | ||
"main": "src/webhdfs.js", | ||
"keywords": [ | ||
"hdfs", | ||
"webhdfs", | ||
"http" | ||
], | ||
"bugs": { | ||
"url": "mailto:ryan@rycole.com" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "http://www.opensource.org/licenses/MIT" | ||
} | ||
} | ||
], | ||
"dependencies": { | ||
"request": "^2.45.0", | ||
"underscore": "^1.7.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "^1.21.4", | ||
"should": "^4.0.4" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:ryancole/node-webhdfs.git" | ||
}, | ||
"scripts": { | ||
"test": "mocha --reporter spec --timeout 10000 test/webhdfs.js" | ||
} | ||
} |
var querystring = require('querystring'), | ||
request = require('request'), | ||
_ = require('underscore'); | ||
_ = require('underscore'), | ||
RemoteException = exports.RemoteException = require('./remoteexception.js'); | ||
@@ -60,4 +61,5 @@ | ||
// exception handling | ||
if ('RemoteException' in body) | ||
return callback(new Error(body.RemoteException.message)); | ||
if ('RemoteException' in body){ | ||
return callback(new RemoteException(body)); | ||
} | ||
@@ -105,2 +107,7 @@ // execute callback | ||
// exception handling | ||
if ('RemoteException' in body){ | ||
return callback(new RemoteException(body)); | ||
} | ||
// execute callback | ||
@@ -149,4 +156,5 @@ return callback(null, body.FileStatuses.FileStatus) | ||
// exception handling | ||
if ('RemoteException' in body) | ||
return callback(new Error(body.RemoteException.message)); | ||
if ('RemoteException' in body){ | ||
return callback(new RemoteException(body)); | ||
} | ||
@@ -195,4 +203,5 @@ // execute callback | ||
// exception handling | ||
if ('RemoteException' in body) | ||
return callback(new Error(body.RemoteException.message)); | ||
if ('RemoteException' in body){ | ||
return callback(new RemoteException(body)); | ||
} | ||
@@ -242,4 +251,5 @@ // execute callback | ||
// exception handling | ||
if ('RemoteException' in body) | ||
return callback(new Error(body.RemoteException.message)); | ||
if ('RemoteException' in body){ | ||
return callback(new RemoteException(body)); | ||
} | ||
@@ -374,4 +384,5 @@ // execute callback | ||
// exception handling | ||
if ('RemoteException' in body) | ||
return callback(new Error(body.RemoteException.message)); | ||
if ('RemoteException' in body){ | ||
return callback(new RemoteException(body)); | ||
} | ||
@@ -422,4 +433,5 @@ // execute callback | ||
// exception handling | ||
if ('RemoteException' in body) | ||
return callback(new Error(body.RemoteException.message)); | ||
if ('RemoteException' in body){ | ||
return callback(new RemoteException(body)); | ||
} | ||
@@ -426,0 +438,0 @@ // execute callback |
@@ -110,5 +110,5 @@ | ||
should.exist(checksum); | ||
checksum.should.have.property('algorithm', 'MD5-of-0MD5-of-512CRC32C'); | ||
checksum.should.have.property('algorithm', 'MD5-of-0MD5-of-512CRC32'); | ||
return done(); | ||
@@ -115,0 +115,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22535
6
495
2
Updatedrequest@^2.45.0
Updatedunderscore@^1.7.0