@salesway/kohr
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -135,3 +135,2 @@ "use strict"; | ||
const args = ctx.request.payload; | ||
console.log(args); | ||
var res = {}; | ||
@@ -138,0 +137,0 @@ if (Array.isArray(args)) |
@@ -15,5 +15,5 @@ import { Mutation } from 'dmut'; | ||
export declare const fn_logging: Mutation; | ||
export declare const fn_merge_json: void; | ||
export declare const fn_merge_json: Mutation; | ||
export declare const views_auth: Mutation; | ||
export declare const logging_perms: Mutation; | ||
export declare const user_perms: Mutation; |
@@ -182,4 +182,3 @@ "use strict"; | ||
$body$ language sql`; | ||
exports.fn_merge_json = dmut_1.Mutation.depends(exports.plv8_ext) | ||
.fn(function mergeJson(...a) { | ||
function mergeJson(...a) { | ||
function _merge(o1, o2) { | ||
@@ -201,3 +200,6 @@ for (var x in o2) { | ||
return res; | ||
}, 'json'); | ||
} | ||
exports.fn_merge_json = dmut_1.Mutation.depends(exports.plv8_ext) | ||
.fn(mergeJson, 'json', 'json') | ||
.fn(mergeJson, 'jsonb', 'jsonb'); | ||
exports.views_auth = dmut_1.Mutation.depends(exports.users) | ||
@@ -204,0 +206,0 @@ .auto `create view users_public as |
{ | ||
"name": "@salesway/kohr", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts", |
@@ -107,3 +107,2 @@ import * as koa from 'koa' | ||
/** | ||
@@ -152,3 +151,2 @@ * | ||
const args = ctx.request.payload | ||
console.log(args) | ||
var res = {} | ||
@@ -155,0 +153,0 @@ if (Array.isArray(args)) |
@@ -213,4 +213,3 @@ import {Mutation} from 'dmut' | ||
export const fn_merge_json = Mutation.depends(plv8_ext) | ||
.fn(function mergeJson(...a: any[]): any { | ||
function mergeJson(...a: any[]): any { | ||
function _merge(o1: any, o2: any) { | ||
@@ -234,5 +233,9 @@ for (var x in o2) { | ||
return res | ||
}, 'json') | ||
} | ||
export const fn_merge_json = Mutation.depends(plv8_ext) | ||
.fn(mergeJson, 'json', 'json') | ||
.fn(mergeJson, 'jsonb', 'jsonb') | ||
export const views_auth = Mutation.depends(users) | ||
@@ -239,0 +242,0 @@ .auto `create view users_public as |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2111
0
104236
35