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

any-db-fake

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

any-db-fake - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

11

mock-adapter.js

@@ -7,3 +7,3 @@ var EventEmitter = require('events').EventEmitter

query: function (text, params, callback) {
var q = this._adapter.createQuery(text, params, callback)
var q = this.adapter.createQuery(text, params, callback)
process.nextTick(function () {

@@ -18,4 +18,2 @@ if (q.callback) q.callback()

query: {},
createQuery: function (text, params, callback) {

@@ -39,6 +37,7 @@ if (typeof text == 'object') {

var connection = extend(new EventEmitter, this.connection, {
adapter: 'fake',
_adapter: this
adapter: this
})
process.nextTick(cb.bind(null, null, connection))
if (cb) {
process.nextTick(cb.bind(null, null, connection))
}
return connection

@@ -45,0 +44,0 @@ }

{
"name": "any-db-fake",
"version": "0.0.2",
"version": "0.0.3",
"description": "Fake adapter factory for testing any-db related libraries",

@@ -5,0 +5,0 @@ "main": "mock-adapter.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