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

koa-mongo-rest

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-mongo-rest - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

lib/model.js

@@ -8,7 +8,4 @@ var createModel, mongoose;

mongoose.connect(mongoUrl);
DocumentSchema = new mongoose.Schema(schema.schema, {
collection: schema.collectionName,
versionKey: schema.versionKey
});
DocumentSchema = new mongoose.Schema(schema.schema, schema.options);
return mongoose.model(schema.collectionName, DocumentSchema);
};

2

package.json
{
"name": "koa-mongo-rest",
"version": "0.1.0",
"version": "0.1.1",
"description": "generate REST API with koa and mongo",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -35,3 +35,7 @@ # Koa mongo REST [![NPM version](https://badge.fury.io/js/koa-mongo-rest.png)](http://badge.fury.io/js/koa-mongo-rest) [![Dependency Status](https://gemnasium.com/t3chnoboy/koa-mongo-rest.png)](https://gemnasium.com/t3chnoboy/koa-mongo-rest) [![Build Status](https://travis-ci.org/t3chnoboy/koa-mongo-rest.png?branch=master)](https://travis-ci.org/t3chnoboy/koa-mongo-rest)

},
collectionName: 'user'
collectionName: 'user', //this is required
//mongoose schema options (optional)
options: {
versionKey: false
}
};

@@ -38,0 +42,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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