Comparing version 0.0.4 to 0.0.5
@@ -445,3 +445,3 @@ var plv8x, q, qq, walk, compile, cond, test, evaluate, orderBy, routes, SQL_PrimaryFieldInfo, SQL_ColumnsInfo, join$ = [].join, out$ = typeof exports != 'undefined' && exports || this, slice$ = [].slice; | ||
function upsert(param){ | ||
var i$, ref$, len$, p, collection, u, $, q, delay, $set, cond, cols, res$, k, vals, _, v, insertCols, insertVals, updates, i, it, xi, query, res, _vals, e; | ||
var i$, ref$, len$, p, collection, u, $, q, delay, $set, meta, cond, cols, res$, k, vals, _, v, insertCols, insertVals, updates, i, it, xi, query, res, _vals, e; | ||
for (i$ = 0, len$ = (ref$ = ['u', 'delay']).length; i$ < len$; ++i$) { | ||
@@ -463,3 +463,8 @@ p = ref$[i$]; | ||
$set = (ref$ = $.$set) != null ? ref$ : $; | ||
refreshMeta(collection); | ||
meta = refreshMeta(collection); | ||
if (/\bjson$/.exec(meta != null ? meta._ : void 8)) { | ||
$set = { | ||
_: $set | ||
}; | ||
} | ||
if (q) { | ||
@@ -466,0 +471,0 @@ cond = compile(collection, q); |
@@ -10,3 +10,3 @@ { | ||
"description": "enable REST in postgres", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "lib/index.js", | ||
@@ -13,0 +13,0 @@ "bin": { |
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
57464
923