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

postgrade

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postgrade - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

19

libs/postgrade/index.js

@@ -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

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