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

@redis/time-series

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redis/time-series - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

14

dist/commands/index.d.ts

@@ -108,3 +108,3 @@ import * as ADD from './ADD';

}
export declare type Timestamp = number | Date | string;
export type Timestamp = number | Date | string;
export declare function transformTimestampArgument(timestamp: Timestamp): string;

@@ -119,4 +119,4 @@ export declare function pushRetentionArgument(args: RedisCommandArguments, retention?: number): RedisCommandArguments;

export declare function pushDuplicatePolicy(args: RedisCommandArguments, duplicatePolicy?: TimeSeriesDuplicatePolicies): RedisCommandArguments;
export declare type RawLabels = Array<[label: string, value: string]>;
export declare type Labels = {
export type RawLabels = Array<[label: string, value: string]>;
export type Labels = {
[label: string]: string;

@@ -134,3 +134,3 @@ };

export declare function transformIncrDecrArguments(command: 'TS.INCRBY' | 'TS.DECRBY', key: string, value: number, options?: IncrDecrOptions): RedisCommandArguments;
export declare type SampleRawReply = [timestamp: number, value: string];
export type SampleRawReply = [timestamp: number, value: string];
export interface SampleReply {

@@ -168,3 +168,3 @@ timestamp: number;

export declare function pushMRangeGroupByArguments(args: RedisCommandArguments, groupBy?: MRangeGroupBy): RedisCommandArguments;
export declare type Filter = string | Array<string>;
export type Filter = string | Array<string>;
export declare function pushFilterArgument(args: RedisCommandArguments, filter: string | Array<string>): RedisCommandArguments;

@@ -175,3 +175,3 @@ export interface MRangeOptions extends RangeOptions {

export declare function pushMRangeArguments(args: RedisCommandArguments, fromTimestamp: Timestamp, toTimestamp: Timestamp, filter: Filter, options?: MRangeOptions): RedisCommandArguments;
export declare type SelectedLabels = string | Array<string>;
export type SelectedLabels = string | Array<string>;
export declare function pushWithLabelsArgument(args: RedisCommandArguments, selectedLabels?: SelectedLabels): RedisCommandArguments;

@@ -183,3 +183,3 @@ export interface MRangeWithLabelsOptions extends MRangeOptions {

export declare function transformRangeReply(reply: Array<SampleRawReply>): Array<SampleReply>;
declare type MRangeRawReply = Array<[
type MRangeRawReply = Array<[
key: string,

@@ -186,0 +186,0 @@ labels: RawLabels,

@@ -91,3 +91,3 @@ "use strict";

TimeSeriesAggregationType["TWA"] = "TWA";
})(TimeSeriesAggregationType = exports.TimeSeriesAggregationType || (exports.TimeSeriesAggregationType = {}));
})(TimeSeriesAggregationType || (exports.TimeSeriesAggregationType = TimeSeriesAggregationType = {}));
var TimeSeriesDuplicatePolicies;

@@ -101,3 +101,3 @@ (function (TimeSeriesDuplicatePolicies) {

TimeSeriesDuplicatePolicies["SUM"] = "SUM";
})(TimeSeriesDuplicatePolicies = exports.TimeSeriesDuplicatePolicies || (exports.TimeSeriesDuplicatePolicies = {}));
})(TimeSeriesDuplicatePolicies || (exports.TimeSeriesDuplicatePolicies = TimeSeriesDuplicatePolicies = {}));
var TimeSeriesReducers;

@@ -119,3 +119,3 @@ (function (TimeSeriesReducers) {

TimeSeriesReducers["VAR_S"] = "VAR.S";
})(TimeSeriesReducers = exports.TimeSeriesReducers || (exports.TimeSeriesReducers = {}));
})(TimeSeriesReducers || (exports.TimeSeriesReducers = TimeSeriesReducers = {}));
function transformTimestampArgument(timestamp) {

@@ -130,3 +130,3 @@ if (typeof timestamp === 'string')

function pushRetentionArgument(args, retention) {
if (retention) {
if (retention !== undefined) {
args.push('RETENTION', retention.toString());

@@ -141,5 +141,5 @@ }

TimeSeriesEncoding["UNCOMPRESSED"] = "UNCOMPRESSED";
})(TimeSeriesEncoding = exports.TimeSeriesEncoding || (exports.TimeSeriesEncoding = {}));
})(TimeSeriesEncoding || (exports.TimeSeriesEncoding = TimeSeriesEncoding = {}));
function pushEncodingArgument(args, encoding) {
if (encoding) {
if (encoding !== undefined) {
args.push('ENCODING', encoding);

@@ -151,3 +151,3 @@ }

function pushChunkSizeArgument(args, chunkSize) {
if (chunkSize) {
if (chunkSize !== undefined) {
args.push('CHUNK_SIZE', chunkSize.toString());

@@ -159,3 +159,3 @@ }

function pushDuplicatePolicy(args, duplicatePolicy) {
if (duplicatePolicy) {
if (duplicatePolicy !== undefined) {
args.push('DUPLICATE_POLICY', duplicatePolicy);

@@ -214,3 +214,3 @@ }

TimeSeriesBucketTimestamp["MID"] = "~";
})(TimeSeriesBucketTimestamp = exports.TimeSeriesBucketTimestamp || (exports.TimeSeriesBucketTimestamp = {}));
})(TimeSeriesBucketTimestamp || (exports.TimeSeriesBucketTimestamp = TimeSeriesBucketTimestamp = {}));
function pushRangeArguments(args, fromTimestamp, toTimestamp, options) {

@@ -217,0 +217,0 @@ args.push(transformTimestampArgument(fromTimestamp), transformTimestampArgument(toTimestamp));

import { InfoRawReply, InfoReply } from './INFO';
export { IS_READ_ONLY, FIRST_KEY_INDEX } from './INFO';
export declare function transformArguments(key: string): Array<string>;
declare type InfoDebugRawReply = [
type InfoDebugRawReply = [
...InfoRawReply,

@@ -6,0 +6,0 @@ 'keySelfName',

@@ -5,3 +5,3 @@ import { TimeSeriesAggregationType, TimeSeriesDuplicatePolicies } from '.';

export declare function transformArguments(key: string): Array<string>;
export declare type InfoRawReply = [
export type InfoRawReply = [
'totalSamples',

@@ -8,0 +8,0 @@ number,

@@ -8,3 +8,3 @@ import { RedisCommandArguments } from '@redis/client/dist/lib/commands';

export declare function transformArguments(filter: Filter, options?: MGetOptions): RedisCommandArguments;
export declare type MGetRawReply = Array<[
export type MGetRawReply = Array<[
key: string,

@@ -11,0 +11,0 @@ labels: RawLabels,

{
"name": "@redis/time-series",
"version": "1.0.4",
"version": "1.0.5",
"license": "MIT",

@@ -21,10 +21,22 @@ "main": "./dist/index.js",

"@redis/test-utils": "*",
"@types/node": "^18.11.6",
"@types/node": "^20.5.3",
"nyc": "^15.1.0",
"release-it": "^15.5.0",
"release-it": "^16.1.5",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.1",
"typedoc": "^0.23.18",
"typescript": "^4.8.4"
}
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
},
"repository": {
"type": "git",
"url": "git://github.com/redis/node-redis.git"
},
"bugs": {
"url": "https://github.com/redis/node-redis/issues"
},
"homepage": "https://github.com/redis/node-redis/tree/master/packages/time-series",
"keywords": [
"redis",
"RedisTimeSeries"
]
}
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