Skip to content

Commit 7874abc

Browse files
authored
Merge pull request #10 from contentstack/feature/OAA-2926-master
feat: adding tls capability on epicurou
2 parents f4333b2 + 914153a commit 7874abc

Some content is hidden

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

43 files changed

+1490
-631
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish Epicurus Package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: 20
19+
cache: 'npm'
20+
21+
- name: Authenticate to Github Package Registry
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.PKG_TOKEN }}
24+
run: |
25+
echo "@contentstack:registry=https://npm.pkg.github.com" >> ~/.npmrc
26+
echo "//npm.pkg.github.com/:_authToken=${ NODE_AUTH_TOKEN}" > ~/.npmrc
27+
28+
- name: Install dependencies
29+
run: npm install
30+
31+
- name: Build the package
32+
run: npm run compile
33+
34+
- name: Publish to Github Package Registry
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.PKG_TOKEN }}
37+
run: |
38+
echo "Publishing Epicurus package to GitHub Package Registry..."
39+
npm publish --registry=https://npm.pkg.github.com

.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: 52fe445de22ff337ecbd1dd7731cf738777f4f9f95a81ff7fbe087d851902b42
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 [email protected].
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+
};

0 commit comments

Comments
 (0)