Comparing version 0.1.5 to 0.1.6
@@ -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 @@ } |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63384
1529