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

proton-model

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proton-model - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

15

index.js

@@ -9,3 +9,4 @@ 'use strict'

this.options = {}
this._bindToApp()
this.store = this.store()
this._bindToApp()
this.expose()

@@ -19,6 +20,2 @@ }

get name() {
return this.constructor.name
}
schema() {

@@ -33,6 +30,10 @@ return new Error('You must implement the method schema')

_bindToApp() {
this.proton.app.models[this.name] = this
get name() {
return this.constructor.name
}
store() {
return this.app.config.database.store
}
_generateModel() {

@@ -39,0 +40,0 @@ return this.mongoose.model(this.name, this._buildSchema())

{
"name": "proton-model",
"version": "1.0.4",
"version": "1.0.5",
"description": "",

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