sqrl-redis-functions
Advanced tools
Comparing version 0.6.4 to 0.6.5-beta.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addressToHostPort = void 0; | ||
const sqrl_common_1 = require("sqrl-common"); | ||
@@ -4,0 +5,0 @@ function addressToHostPort(address, defaultPort) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.registerCountFunctions = exports.ensureCounterBump = void 0; | ||
const sqrl_1 = require("sqrl"); | ||
@@ -214,3 +215,3 @@ const sqrlRedisParser_1 = require("./parser/sqrlRedisParser"); | ||
const currentCountAst = databaseCountTransform(state, ast, currentCountArgs); | ||
const currentAndPreviousCountAst = databaseCountTransform(state, ast, Object.assign({}, currentCountArgs, { timespan: trendingConfig.currentAndPrevious })); | ||
const currentAndPreviousCountAst = databaseCountTransform(state, ast, Object.assign(Object.assign({}, currentCountArgs), { timespan: trendingConfig.currentAndPrevious })); | ||
const { keysAst } = interpretCountArgs(state, ast, currentCountArgs); | ||
@@ -244,4 +245,4 @@ return sqrl_1.AstBuilder.call("_fetchTrendingDetails", [ | ||
const resultAst = sqrl_1.AstBuilder.call("_subtract", [ | ||
classifyCountTransform(state, ast, Object.assign({}, args, { timespan: previousConfig.subtractLeft })), | ||
classifyCountTransform(state, ast, Object.assign({}, args, { timespan: previousConfig.subtractRight })) | ||
classifyCountTransform(state, ast, Object.assign(Object.assign({}, args), { timespan: previousConfig.subtractLeft })), | ||
classifyCountTransform(state, ast, Object.assign(Object.assign({}, args), { timespan: previousConfig.subtractRight })) | ||
]); | ||
@@ -248,0 +249,0 @@ if (!previousConfig.allowNegativeValue) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.registerCountUniqueFunctions = void 0; | ||
const stringify = require("fast-stable-stringify"); | ||
@@ -4,0 +5,0 @@ const sqrl_1 = require("sqrl"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.registerEntityFunctions = void 0; | ||
const sqrl_1 = require("sqrl"); | ||
@@ -4,0 +5,0 @@ async function toEntity(service, state, type, value, options = {}) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.register = void 0; | ||
const CountFunctions_1 = require("./CountFunctions"); | ||
@@ -4,0 +5,0 @@ const CountUniqueFunctions_1 = require("./CountUniqueFunctions"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.registerLabelFunctions = void 0; | ||
const sqrl_common_1 = require("sqrl-common"); | ||
@@ -4,0 +5,0 @@ const sqrl_1 = require("sqrl"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mockRateLimitFetch = exports.rateLimitFetchLua = void 0; | ||
function rateLimitFetchLua() { | ||
@@ -4,0 +5,0 @@ return (` |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mockSessionize = exports.sessionizeLua = void 0; | ||
function sessionizeLua() { | ||
@@ -4,0 +5,0 @@ return (` |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MockRedisService = void 0; | ||
const sqrl_common_1 = require("sqrl-common"); | ||
@@ -4,0 +5,0 @@ const rateLimitFetchLua_1 = require("../lua/rateLimitFetchLua"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.registerRateLimitFunctions = void 0; | ||
const sqrl_1 = require("sqrl"); | ||
@@ -4,0 +5,0 @@ const sqrl_common_1 = require("sqrl-common"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedisServices = void 0; | ||
const RedisService_1 = require("./services/RedisService"); | ||
@@ -4,0 +5,0 @@ const MockRedisService_1 = require("./mocks/MockRedisService"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getWindowStart = exports.getCurrentBucketExpirySeconds = exports.getBucketTimeForTimeMs = exports.getBucketSize = exports.getAllBucketKeys = exports.getBucketKey = void 0; | ||
const RedisService_1 = require("./RedisService"); | ||
@@ -4,0 +5,0 @@ function getBucketKey(databaseSet, prefix, key, windowMs, bucketTime) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedisApproxCountUniqueService = void 0; | ||
const RedisService_1 = require("./RedisService"); | ||
@@ -4,0 +5,0 @@ const BucketedKeys_1 = require("./BucketedKeys"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedisTotalCountService = void 0; | ||
const RedisService_1 = require("./RedisService"); | ||
@@ -4,0 +5,0 @@ const RedisCountService_1 = require("./RedisCountService"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedisCountService = exports.TOTAL_COUNT_EXPIRY_SEC = void 0; | ||
const RedisService_1 = require("./RedisService"); | ||
@@ -4,0 +5,0 @@ const BucketedKeys_1 = require("./BucketedKeys"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedisCountUniqueService = void 0; | ||
const RedisService_1 = require("./RedisService"); | ||
@@ -4,0 +5,0 @@ class RedisCountUniqueService { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedisLabelService = void 0; | ||
const RedisService_1 = require("./RedisService"); | ||
@@ -4,0 +5,0 @@ const EXPIRY = 60 * 60 * 24 * 30; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedisRateLimit = void 0; | ||
class RedisRateLimit { | ||
@@ -4,0 +5,0 @@ constructor(redis, prefix) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedisService = exports.createRedisKey = void 0; | ||
const addressToHostPort_1 = require("../addressToHostPort"); | ||
@@ -4,0 +5,0 @@ const Redis = require("ioredis"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RedisUniqueIdService = exports.SimpleId = exports.REMAINDER_SIZE = exports.REMAINDER_BITS = exports.TIMESTAMP_EPOCH = exports.TIMESTAMP_SIZE = exports.TIMESTAMP_BITS = void 0; | ||
const RedisService_1 = require("./RedisService"); | ||
@@ -4,0 +5,0 @@ const sqrl_1 = require("sqrl"); |
{ | ||
"name": "sqrl-redis-functions", | ||
"version": "0.6.4", | ||
"version": "0.6.5-beta.2", | ||
"description": "SQRL (A Safe, Stateful Rules Language for Event Streams) - functions for storing state in redis", | ||
@@ -46,6 +46,6 @@ "homepage": "https://twitter.github.io/sqrl", | ||
"prettier": "^1.18.2", | ||
"sqrl-test-utils": "^0.6.4", | ||
"sqrl-test-utils": "^0.6.5-beta.2", | ||
"ts-jest": "^24.0.2", | ||
"ts-node": "^8.3.0", | ||
"typescript": "^3.6.2" | ||
"typescript": "^3.9.7" | ||
}, | ||
@@ -62,6 +62,6 @@ "engines": { | ||
"murmurhash-native": "^3.4.1", | ||
"sqrl": "^0.6.4", | ||
"sqrl-common": "^0.6.4" | ||
"sqrl": "^0.6.5-beta.2", | ||
"sqrl-common": "^0.6.5-beta.2" | ||
}, | ||
"gitHead": "822d8a8531bcf2b9b8dd324841b84cde9fd2bedb" | ||
"gitHead": "1cdd62295c6ecfdb8718aba90b77011a33aad099" | ||
} |
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
268071
7141
1
Updatedsqrl@^0.6.5-beta.2
Updatedsqrl-common@^0.6.5-beta.2