Comparing version 5.6.3 to 5.6.4
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -12,6 +12,6 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InfluxDB = void 0; | ||
exports.InfluxDB = exports.ResultError = exports.toNanoDate = exports.escape = exports.Raw = exports.Precision = exports.FieldType = void 0; | ||
const url = require("url"); | ||
@@ -18,0 +18,0 @@ const b = require("./builder"); |
@@ -244,3 +244,9 @@ "use strict"; | ||
if (res.statusCode >= 500) { | ||
return this._handleRequestError(new ServiceNotAvailableError(res.statusMessage), host, options, callback); | ||
res.on("data", () => { | ||
/* ignore */ | ||
}); | ||
res.on("end", () => { | ||
return this._handleRequestError(new ServiceNotAvailableError(res.statusMessage), host, options, callback); | ||
}); | ||
return; | ||
} | ||
@@ -247,0 +253,0 @@ if (res.statusCode >= 300) { |
{ | ||
"name": "influx", | ||
"version": "5.6.3", | ||
"version": "5.6.4", | ||
"description": "InfluxDB Client", | ||
@@ -18,4 +18,3 @@ "main": "./lib/src/index.js", | ||
"test:lint": "prettier -c .", | ||
"test:sauce": "SAUCE=1 karma start test/karma.conf.js", | ||
"test:travis": "npm-run-all clean test:lint test:sauce test:integrate build:dist && istanbul cover _mocha --report lcovonly -- lib/test/unit/*.test.js", | ||
"test:ci": "npm-run-all clean test:unit test:integrate build:dist && istanbul cover _mocha --report lcovonly -- lib/test/unit/*.test.js", | ||
"test:unit": "mocha --require ts-node/register test/unit/*.test.ts", | ||
@@ -59,15 +58,15 @@ "test:watch": "mocha -R min --watch --require ts-node/register test/unit/*.test.ts", | ||
"json-loader": "0.5.7", | ||
"karma": "^5.1.0", | ||
"karma": "^6.0.0", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-mocha": "^2.0.1", | ||
"karma-mocha-reporter": "2.2.5", | ||
"karma-sauce-launcher": "^4.1.4", | ||
"karma-sourcemap-loader": "0.3.7", | ||
"karma-webpack": "4.0.2", | ||
"lodash": "4.17.19", | ||
"mocha": "^8.0.1", | ||
"node-fetch": "2.6.0", | ||
"karma-sourcemap-loader": "0.3.8", | ||
"karma-webpack": "^5.0.0-alpha.5", | ||
"lodash": "4.17.20", | ||
"mocha": "^8.2.1", | ||
"node-fetch": "2.6.1", | ||
"npm-run-all": "4.1.5", | ||
"open-cli": "^6.0.1", | ||
"prettier": "^2.0.5", | ||
"puppeteer": "^5.5.0", | ||
"semantic-release": "^17.1.1", | ||
@@ -77,4 +76,4 @@ "sinon": "^9.0.2", | ||
"stream-http": "github:node-influx/stream-http", | ||
"ts-node": "^8.10.2", | ||
"typescript": "^3.9.7", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.0.0", | ||
"webpack": "^4.43.0" | ||
@@ -81,0 +80,0 @@ }, |
Sorry, the diff of this file is not supported yet
150412
40
4073