New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

waii-sdk-js

Package Overview
Dependencies
Maintainers
2
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waii-sdk-js - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

dist/src/waii-sdk.d.ts

@@ -26,4 +26,4 @@ export declare let WAII: {

};
initialize: (url?: string, apiKey?: string) => void;
initialize: (url?: string, apiKey?: string) => Promise<void>;
};
export default WAII;
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -18,7 +27,14 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

Database: Database_1.default,
initialize: (url = 'http://localhost:9859/api/', apiKey = '') => {
initialize: (url = 'http://localhost:9859/api/', apiKey = '') => __awaiter(this, void 0, void 0, function* () {
WaiiHttpClient_1.default.getInstance(url, apiKey);
},
let result = yield exports.WAII.Database.getConnections({});
if (result.default_db_connection_key) {
yield exports.WAII.Database.activateConnection(result.default_db_connection_key);
}
else if (result.connectors && result.connectors.length > 0) {
yield exports.WAII.Database.activateConnection(result.connectors[0].key);
}
}),
};
})();
exports.default = exports.WAII;

@@ -25,6 +25,2 @@ "use strict";

waii_sdk_1.default.initialize(url, apiKey);
//
// // default conn
// let dbConnection = WAII.Database.getDefaultConnection();
// console.log('-----Default Connection-----', dbConnection);
// Do a list of all the databases

@@ -31,0 +27,0 @@ let databases = yield waii_sdk_1.default.Database.getConnections();

{
"name": "waii-sdk-js",
"version": "1.0.4",
"version": "1.0.5",
"description": "Typescript / Javascript SDK for the waii api. SQL generation and much more.",

@@ -5,0 +5,0 @@ "main": "dist/src/waii-sdk.js",

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