Comparing version 1.0.11 to 1.0.12
@@ -38,12 +38,11 @@ "use strict"; | ||
error.data = response.data; | ||
if (response.status !== 200) | ||
return resolve(null, { | ||
result: response.status === 200 | ||
&& !!((_a = response.data) === null || _a === void 0 ? void 0 : _a.result), | ||
settings: override, | ||
data: response.data, | ||
status: response.status, | ||
statusText: response.statusText, | ||
message: (_b = response.data) === null || _b === void 0 ? void 0 : _b.message | ||
}); | ||
return resolve(null, { | ||
result: response.status === 200 | ||
&& !!((_a = response.data) === null || _a === void 0 ? void 0 : _a.result), | ||
settings: override, | ||
data: response.data, | ||
status: response.status, | ||
statusText: response.statusText, | ||
message: (_b = response.data) === null || _b === void 0 ? void 0 : _b.message | ||
}); | ||
}).catch(reason => { | ||
@@ -50,0 +49,0 @@ let error = reason; |
@@ -34,2 +34,3 @@ import {Database, HBA, PgUser} from "kitres/src/core/database/instance"; | ||
} | ||
export function setup( opts:Configs, resolve:( error?:PostgradeError, response?:PostgradeResponse)=>void ){ | ||
@@ -66,3 +67,4 @@ let origin = `http://${ opts?.setup?.host||"admin" }:${ opts?.setup?.port || 80 }`; | ||
error.data = response.data; | ||
if( response.status !== 200 ) return resolve( null, { | ||
return resolve( null, { | ||
result: response.status === 200 | ||
@@ -85,4 +87,5 @@ && !!response.data?.result | ||
} | ||
} | ||
export = postgrade; |
{ | ||
"name": "postgrade", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"main": "libs/postgrade/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
33078
237