@saulx/selva
Advanced tools
Comparing version 21.3.0 to 23.0.0
@@ -15,3 +15,3 @@ "use strict"; | ||
const inherit_1 = __importDefault(require("./inherit")); | ||
const timeseries_1 = __importDefault(require("./timeseries")); | ||
// import timeseries from './timeseries' | ||
const selva_query_ast_parser_1 = require("@saulx/selva-query-ast-parser"); | ||
@@ -377,6 +377,3 @@ const util_1 = require("./util"); | ||
if (fs.timeseries) { | ||
const vIdx = x.findIndex((el) => { | ||
return el === '_value'; | ||
}); | ||
x = x[vIdx + 1]; | ||
console.warn('Timeseries not is discontinued in this version.'); | ||
} | ||
@@ -566,16 +563,11 @@ const cast = exports.TYPE_CASTS[fs.type]; | ||
if (op.isTimeseries) { | ||
return (0, timeseries_1.default)(client, op, lang, ctx); | ||
console.warn('Timeseries not is discontinued in this version.'); | ||
} | ||
else { | ||
return (0, find_1.default)(client, op, lang, ctx, schema); | ||
} | ||
return (0, find_1.default)(client, op, lang, ctx, schema); | ||
} | ||
else if (op.type === 'aggregate') { | ||
if (op.isTimeseries) { | ||
// add this later... | ||
return (0, timeseries_1.default)(client, op, lang, ctx); | ||
console.warn('Timeseries not is discontinued in this version.'); | ||
} | ||
else { | ||
return (0, aggregate_1.default)(client, op, lang, ctx, schema); | ||
} | ||
return (0, aggregate_1.default)(client, op, lang, ctx, schema); | ||
} | ||
@@ -582,0 +574,0 @@ else if (op.type === 'inherit') { |
@@ -7,3 +7,2 @@ /// <reference types="node" /> | ||
import { FieldSchemaObject } from './schema/types'; | ||
import { TimeseriesClient } from './timeseries'; | ||
import { GetOptions, ObserveEventOptions, GetResult } from './get'; | ||
@@ -22,3 +21,2 @@ import { SetOptions } from './set'; | ||
redis: Redis; | ||
pg: TimeseriesClient; | ||
selvaId: string; | ||
@@ -25,0 +23,0 @@ uuid: string; |
@@ -33,3 +33,2 @@ "use strict"; | ||
const initializeSchema_1 = __importDefault(require("./schema/initializeSchema")); | ||
const timeseries_1 = require("./timeseries"); | ||
const get_1 = require("./get"); | ||
@@ -78,3 +77,2 @@ const set_1 = require("./set"); | ||
(0, connectRegistry_1.default)(this, opts); | ||
this.pg = new timeseries_1.TimeseriesClient(this); | ||
} | ||
@@ -81,0 +79,0 @@ setCustomValidator(validator) { |
@@ -12,2 +12,5 @@ "use strict"; | ||
const fn = _1.default[fields.values.type]; | ||
if (Object.keys(payload).filter((key) => /\./g.test(key)).length) { | ||
throw new Error('Cannot use "." in a record key'); | ||
} | ||
if (payload.$delete) { | ||
@@ -14,0 +17,0 @@ result.push('7', field, ''); |
@@ -79,3 +79,7 @@ "use strict"; | ||
const isNonEmpty = (v) => !!(v && v.length); | ||
if (payload.parents && (payload.parents['$noRoot'] || Array.isArray(payload.parents) || payload.parents.$value || isNonEmpty(payload.parents['$add']))) { | ||
if (payload.parents && | ||
(payload.parents['$noRoot'] || | ||
Array.isArray(payload.parents) || | ||
payload.parents.$value || | ||
isNonEmpty(payload.parents['$add']))) { | ||
result[0] += 'N'; | ||
@@ -82,0 +86,0 @@ } |
{ | ||
"name": "@saulx/selva", | ||
"version": "21.3.0", | ||
"version": "23.0.0", | ||
"license": "MIT", | ||
@@ -54,3 +54,3 @@ "main": "dist/src/index.js", | ||
"@types/pg": "^8.6.1", | ||
"@saulx/selva-server": "21.3.0", | ||
"@saulx/selva-server": "23.0.0", | ||
"before-exit": "1.0.0", | ||
@@ -73,4 +73,2 @@ "async-exec": "^1.1.0", | ||
"@saulx/validators": "^1.1.0", | ||
"pg": "8.7.1", | ||
"pg-native": "3.0.0", | ||
"squel": "^5.13.0", | ||
@@ -77,0 +75,0 @@ "data-record": "^1.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10
1187232
309
17286
- Removedpg@8.7.1
- Removedpg-native@3.0.0
- Removedbindings@1.5.0(transitive)
- Removedbuffer-writer@2.0.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@0.0.1(transitive)
- Removedlibpq@1.8.14(transitive)
- Removednan@2.22.0(transitive)
- Removedpacket-reader@1.0.0(transitive)
- Removedpg@8.7.1(transitive)
- Removedpg-connection-string@2.7.0(transitive)
- Removedpg-int8@1.0.1(transitive)
- Removedpg-native@3.0.0(transitive)
- Removedpg-pool@3.7.0(transitive)
- Removedpg-protocol@1.7.0(transitive)
- Removedpg-types@1.13.02.2.0(transitive)
- Removedpgpass@1.0.5(transitive)
- Removedpostgres-array@1.0.32.0.0(transitive)
- Removedpostgres-bytea@1.0.0(transitive)
- Removedpostgres-date@1.0.7(transitive)
- Removedpostgres-interval@1.2.0(transitive)
- Removedreadable-stream@1.0.31(transitive)
- Removedsplit2@4.2.0(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedxtend@4.0.2(transitive)