Socket
Socket
Sign inDemoInstall

mongorito-tcomb

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongorito-tcomb - npm Package Compare versions

Comparing version 0.7.0 to 0.9.0

examples/simple.coffee

8

package.json
{
"name": "mongorito-tcomb",
"version": "0.7.0",
"version": "0.9.0",
"description": "Bring schema validation to Mongorito thanks to tcomb",
"main": "./lib/index.js",
"scripts": {
"build": "./node_modules/coffee-script/bin/coffee -o ./lib/index.js -c src/index.coffee",
"test": "nyc ava --serial tests.js",
"build": "./node_modules/coffee-script/bin/coffee -o lib -c src",
"test": "nyc ava tests.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls",

@@ -32,4 +32,6 @@ "prepublish": "npm run build"

"colors": "^1.1.2",
"get-value": "^2.0.3",
"kerberos": "0.0.18",
"mongorito": "^1.4.6",
"tcomb": "^2.7.0",
"tcomb-validation": "^2.3.0"

@@ -36,0 +38,0 @@ },

@@ -61,1 +61,15 @@ # mongorito-tcomb [![Build Status](https://travis-ci.org/xouabita/mongorito-tcomb.svg?branch=master)](https://travis-ci.org/xouabita/mongorito-tcomb) [![Dependency Status](https://david-dm.org/xouabita/mongorito-tcomb.svg)](https://david-dm.org/xouabita/mongorito-tcomb) [![devDependency Status](https://david-dm.org/alanshaw/david/dev-status.svg)](https://david-dm.org/alanshaw/david#info=devDependencies) [![Coverage Status](https://coveralls.io/repos/github/xouabita/mongorito-tcomb/badge.svg?branch=master)](https://coveralls.io/github/xouabita/mongorito-tcomb?branch=master)

extend it then return the extended class.
TODOS
-----
- [x] Add t.ID for validating ID
- [x] Add t.unique for unique index creation
- [x] Add tests for t.unique
- [x] More efficient indexing
- [x] More efficient ID validation
- [x] Add tests for t.ID
- [x] Add example for t.unique
- [ ] Add example for t.ID
- [ ] Add docs for t.ID/t.unique
- [ ] Find recursively t.ID/t.unique
import 'coffee-script/register'
require('./tests.coffee').call(this)
require('./tests/index.coffee').call(this);
require('./tests/get_path_for_type.coffee').call(this);
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