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

@redis/time-series

Package Overview
Dependencies
Maintainers
3
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.5 to 1.1.0

5

dist/commands/ADD.d.ts
import { TimeSeriesEncoding, TimeSeriesDuplicatePolicies, Labels, Timestamp } from '.';
export interface TsIgnoreOptions {
MAX_TIME_DIFF: number;
MAX_VAL_DIFF: number;
}
interface AddOptions {

@@ -8,2 +12,3 @@ RETENTION?: number;

LABELS?: Labels;
IGNORE?: TsIgnoreOptions;
}

@@ -10,0 +15,0 @@ export declare const FIRST_KEY_INDEX = 1;

1

dist/commands/ADD.js

@@ -20,4 +20,5 @@ "use strict";

(0, _1.pushLabelsArgument)(args, options?.LABELS);
(0, _1.pushIgnoreArgument)(args, options?.IGNORE);
return args;
}
exports.transformArguments = transformArguments;
import { Labels, TimeSeriesDuplicatePolicies } from '.';
import { TsIgnoreOptions } from './ADD';
export declare const FIRST_KEY_INDEX = 1;

@@ -8,2 +9,3 @@ interface AlterOptions {

LABELS?: Labels;
IGNORE?: TsIgnoreOptions;
}

@@ -10,0 +12,0 @@ export declare function transformArguments(key: string, options?: AlterOptions): Array<string>;

@@ -12,4 +12,5 @@ "use strict";

(0, _1.pushLabelsArgument)(args, options?.LABELS);
(0, _1.pushIgnoreArgument)(args, options?.IGNORE);
return args;
}
exports.transformArguments = transformArguments;
import { TimeSeriesEncoding, TimeSeriesDuplicatePolicies, Labels } from '.';
import { TsIgnoreOptions } from './ADD';
export declare const FIRST_KEY_INDEX = 1;

@@ -9,2 +10,3 @@ interface CreateOptions {

LABELS?: Labels;
IGNORE?: TsIgnoreOptions;
}

@@ -11,0 +13,0 @@ export declare function transformArguments(key: string, options?: CreateOptions): Array<string>;

@@ -13,4 +13,5 @@ "use strict";

(0, _1.pushLabelsArgument)(args, options?.LABELS);
(0, _1.pushIgnoreArgument)(args, options?.IGNORE);
return args;
}
exports.transformArguments = transformArguments;

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

export declare function transformTimestampArgument(timestamp: Timestamp): string;
export declare function pushIgnoreArgument(args: RedisCommandArguments, ignore?: ADD.TsIgnoreOptions): void;
export declare function pushRetentionArgument(args: RedisCommandArguments, retention?: number): RedisCommandArguments;

@@ -112,0 +113,0 @@ export declare enum TimeSeriesEncoding {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushLatestArgument = exports.transformMRangeWithLabelsReply = exports.transformMRangeReply = exports.transformRangeReply = exports.pushMRangeWithLabelsArguments = exports.pushWithLabelsArgument = exports.pushMRangeArguments = exports.pushFilterArgument = exports.pushMRangeGroupByArguments = exports.pushRangeArguments = exports.TimeSeriesBucketTimestamp = exports.transformSampleReply = exports.transformIncrDecrArguments = exports.pushLabelsArgument = exports.transformLablesReply = exports.pushDuplicatePolicy = exports.pushChunkSizeArgument = exports.pushEncodingArgument = exports.TimeSeriesEncoding = exports.pushRetentionArgument = exports.transformTimestampArgument = exports.TimeSeriesReducers = exports.TimeSeriesDuplicatePolicies = exports.TimeSeriesAggregationType = void 0;
exports.pushLatestArgument = exports.transformMRangeWithLabelsReply = exports.transformMRangeReply = exports.transformRangeReply = exports.pushMRangeWithLabelsArguments = exports.pushWithLabelsArgument = exports.pushMRangeArguments = exports.pushFilterArgument = exports.pushMRangeGroupByArguments = exports.pushRangeArguments = exports.TimeSeriesBucketTimestamp = exports.transformSampleReply = exports.transformIncrDecrArguments = exports.pushLabelsArgument = exports.transformLablesReply = exports.pushDuplicatePolicy = exports.pushChunkSizeArgument = exports.pushEncodingArgument = exports.TimeSeriesEncoding = exports.pushRetentionArgument = exports.pushIgnoreArgument = exports.transformTimestampArgument = exports.TimeSeriesReducers = exports.TimeSeriesDuplicatePolicies = exports.TimeSeriesAggregationType = void 0;
const ADD = require("./ADD");

@@ -126,2 +126,8 @@ const ALTER = require("./ALTER");

exports.transformTimestampArgument = transformTimestampArgument;
function pushIgnoreArgument(args, ignore) {
if (ignore !== undefined) {
args.push('IGNORE', ignore.MAX_TIME_DIFF.toString(), ignore.MAX_VAL_DIFF.toString());
}
}
exports.pushIgnoreArgument = pushIgnoreArgument;
function pushRetentionArgument(args, retention) {

@@ -128,0 +134,0 @@ if (retention !== undefined) {

8

package.json
{
"name": "@redis/time-series",
"version": "1.0.5",
"version": "1.1.0",
"license": "MIT",

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

"@redis/test-utils": "*",
"@types/node": "^20.5.3",
"@types/node": "^20.6.2",
"nyc": "^15.1.0",

@@ -27,4 +27,4 @@ "release-it": "^16.1.5",

"ts-node": "^10.9.1",
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
"typedoc": "^0.25.1",
"typescript": "^5.2.2"
},

@@ -31,0 +31,0 @@ "repository": {

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