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

linen

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linen - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

5

lib/field.js

@@ -95,2 +95,5 @@ // Generated by CoffeeScript 1.6.2

}
if (this.options.methods && !~this.options.methods.indexOf(payload.method)) {
return next();
}
if (!this.options.fetch) {

@@ -153,3 +156,3 @@ return next();

}
} else if (!payload.changed[this.property]) {
} else if (payload.data[this.property] == null) {
return next();

@@ -156,0 +159,0 @@ }

23

lib/fieldParser.js

@@ -42,13 +42,18 @@ // Generated by CoffeeScript 1.6.2

Parser.prototype._parseFields = function(options, fields, path) {
var fops, key, opName, ops, t, test, _results;
var fops, key, multi, opName, ops, t, test, _results;
ops = {};
if ((t = type(options)) === "string") {
ops.$type = options;
} else if (t === "array") {
ops = options[0];
ops.$multi = true;
} else {
ops = options;
ops = options;
t = type();
if (type(ops) === "array") {
ops = ops[0];
multi = true;
}
if (type(ops) === "string") {
ops = {
$type: ops
};
}
if (multi) {
ops.$multi = multi;
}
if (!this._hasOps(ops)) {

@@ -55,0 +60,0 @@ _results = [];

{
"name": "linen",
"version": "0.1.5",
"version": "0.1.6",
"description": "```javascript",

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

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