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

adonis-mqcontroller

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-mqcontroller - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

7

BaseController.js
'use strict'
const _ = require('lodash')
const _ = use('lodash')
const {ObjectId} = use('mongodb')
class BaseController {

@@ -86,4 +87,4 @@ constructor (Repository) {

else if(typeOfField == "objectid"){
typeAllowed = ObjectID.isValid(data[fieldName])
if(typeAllowed) data[fieldName] = new ObjectID(data[fieldName])
typeAllowed = ObjectId.isValid(data[fieldName])
if(typeAllowed) data[fieldName] = new ObjectId(data[fieldName])
}

@@ -90,0 +91,0 @@ }

{
"name": "adonis-mqcontroller",
"version": "1.0.4",
"version": "1.0.5",
"private": false,

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