Socket
Socket
Sign inDemoInstall

goodeggs-json-schema-converter

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goodeggs-json-schema-converter - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

5

lib/index.js
// Generated by CoffeeScript 1.9.3
var indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
module.exports.toMongooseSchema = function(JSONSchema, mongoose) {
var config, convert, formats, propertiesMappings, schema, types;
module.exports.toMongooseSchema = function(originalJSONSchema, mongoose) {
var JSONSchema, config, convert, formats, propertiesMappings, schema, types;
JSONSchema = JSON.parse(JSON.stringify(originalJSONSchema));
types = {

@@ -7,0 +8,0 @@ "string": String,

2

package.json
{
"name": "goodeggs-json-schema-converter",
"version": "1.1.0",
"version": "1.1.1",
"description": "convert json schemas to mongoose schemas using good eggs best practices",

@@ -5,0 +5,0 @@ "author": "Good Eggs <open-source@goodeggs.com>",

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