Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-webhdfs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-webhdfs - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

src/remoteexception.js

67

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc