Socket
Socket
Sign inDemoInstall

final-orm

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

final-orm - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

11

dist/models/model.js

@@ -47,8 +47,13 @@ 'use strict';

const protocol = this.options.protocol || `${host === 'localhost' ? 'http' : 'https'}`;
const url = this.options.url || `${protocol}://${username}:${password}@${host}:${port}`;
const rejectUnauthorized = this.options.rejectUnauthorized === false ? false : true;
const db = (0, _arangojs2.default)({
url
const db = new _arangojs.Database({
url: `${protocol}://${host}:${port}`,
agentOptions: {
rejectUnauthorized
}
});
db.useBasicAuth(username, password);
try {

@@ -55,0 +60,0 @@ await db.createDatabase(dbName);

@@ -1,2 +0,2 @@

import arangojs, { aql } from 'arangojs'
import arangojs, { Database, aql } from 'arangojs'
import Schema from '../schemas/schema'

@@ -33,8 +33,13 @@ import { get, keys } from 'lodash'

const protocol = this.options.protocol || `${host === 'localhost' ? 'http' : 'https'}`
const url = this.options.url || `${protocol}://${username}:${password}@${host}:${port}`
const rejectUnauthorized = this.options.rejectUnauthorized === false ? false : true
const db = arangojs({
url
const db = new Database({
url: `${protocol}://${host}:${port}`,
agentOptions: {
rejectUnauthorized
}
})
db.useBasicAuth(username, password)
try {

@@ -41,0 +46,0 @@ await db.createDatabase(dbName)

{
"name": "final-orm",
"version": "1.0.2",
"version": "1.0.3",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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