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

orm

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orm - npm Package Compare versions

Comparing version 2.1.5 to 2.1.6

5

Changelog.md
### v2.2.0 - (to do, in future)
- Fixes error code spelling: `PARAM_MISSMATCH` -> `PARAM_MISMATCH`
### v2.1.5 - 08 Apr 2013
### v2.1.6 - 23 Apr 2014
- Add '.omit' to chain find - opposite of '.only'
### v2.1.5 - 08 Apr 2014
- Don't create indexes for primary/composite keys; they are created automatically (#484)

@@ -6,0 +9,0 @@

2

examples/anontxt/Readme.md

@@ -14,3 +14,3 @@ # AnonTXT demo app

git tag
git checkout v2.1.3
git checkout v2.1.4
```

@@ -17,0 +17,0 @@

@@ -40,2 +40,13 @@ var _ = require("lodash");

},
omit: function () {
var omit = null;
if (arguments.length && Array.isArray(arguments[0])) {
omit = arguments[0];
} else {
omit = Array.prototype.slice.apply(arguments);
}
this.only(_.difference(Object.keys(Model.properties), omit));
return this;
},
limit: function (limit) {

@@ -42,0 +53,0 @@ opts.limit = limit;

@@ -15,3 +15,3 @@ {

],
"version" : "2.1.5",
"version" : "2.1.6",
"license" : "MIT",

@@ -18,0 +18,0 @@ "homepage" : "http://dresende.github.io/node-orm2",

@@ -25,3 +25,3 @@ ## Object Relational Mapping

- MySQL
- MySQL & MariaDB
- PostgreSQL

@@ -392,2 +392,3 @@ - Amazon Redshift

```
If you want to skip just one or two properties, you can call `.omit()` instead of `.only`.

@@ -394,0 +395,0 @@ Chaining allows for more complicated queries. For example, we can search by specifying custom SQL:

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