Skip to content

Commit d5deafb

Browse files
feat: adding tls capability on epicurou
1 parent f4333b2 commit d5deafb

42 files changed

Lines changed: 790 additions & 133 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules
2-
js
2+
.idea

.snyk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.25.0
3+
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
4+
ignore:
5+
SNYK-JS-REDIS-1255645:
6+
- '*':
7+
reason: 'High Severity - https://contentstack.atlassian.net/browse/IS-1224'
8+
expires: 2025-06-15T05:52:48.301Z
9+
created: 2025-05-15T05:52:48.306Z
10+
patch: {}

.talismanrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ fileignoreconfig:
22
- filename: .github/workflows/secrets-scan.yml
33
ignore_detectors:
44
- filecontent
5+
- filename: package-lock.json
6+
checksum: 8dae940d01a846b804a410f9c59b8b173866342950ec0e75026640326bdb8b8c
57
version: "1.0"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 ABX
3+
Copyright (c) 2018-2025 ABX
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

SECURITY.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Security
3+
Contentstack takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations.
4+
5+
If you believe you have found a security vulnerability in any Contentstack-owned repository, please report it to us as described below.
6+
7+
Reporting Security Issues
8+
Please do not report security vulnerabilities through public GitHub issues.
9+
10+
Send email to security@contentstack.com.
11+
12+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
13+
14+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
15+
16+
Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
17+
Full paths of source file(s) related to the manifestation of the issue
18+
The location of the affected source code (tag/branch/commit or direct URL)
19+
Any special configuration required to reproduce the issue
20+
Step-by-step instructions to reproduce the issue
21+
Proof-of-concept or exploit code (if possible)
22+
Impact of the issue, including how an attacker might exploit the issue
23+
This information will help us triage your report more quickly.
24+
25+
https://www.contentstack.com/trust/

js/config.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export declare const config: {
2+
requestValidityPeriod: number;
3+
};

js/config.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/config.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { RedisClient } from 'redis';
2+
import { EpicurusRedisConfig, serverCallback, subscribeCallback } from './interface';
3+
export default function Epicurus(redisConfig?: EpicurusRedisConfig, requestTimeout?: number): EpicurusPublicInterface;
4+
export declare type EpicurusPublicInterface = {
5+
getRedisClient: () => RedisClient;
6+
getRedisSubClient: () => RedisClient;
7+
subscribe: <T = any>(channel: string, callback: subscribeCallback<T>) => Promise<void>;
8+
publish: (channel: string, body: any) => void;
9+
server: <T = any, S = any>(channel: string, callback: serverCallback<T, S>) => Promise<void>;
10+
request: <T = any>(channel: string, body: any) => Promise<T>;
11+
shutdown: () => void;
12+
close: () => void;
13+
};

js/index.js

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)