Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Merge pull request #34 from vientorepublic/dev
Browse files Browse the repository at this point in the history
release to main branch
  • Loading branch information
vientorepublic authored Jul 31, 2024
2 parents fc7b7f5 + 4e22589 commit 3aecad0
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 72 deletions.
134 changes: 68 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vientorepublic/remote-env",
"version": "0.1.9",
"version": "1.0.0",
"description": "Remote environment variable server/client for Node.js",
"main": "./dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export class remoteEnvClient {
if (!address || !port) {
throw new Error('address, port is required.');
}
if (!config.auth) {
throw new Error('Authentication options are not set');
if (!config || !config.auth) {
throw new Error('Required options are not set');
}
if (config.auth.key && config.auth.rsa) {
throw new Error('key and rsa options cannot be used together.');
Expand Down
3 changes: 0 additions & 3 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export class remoteEnvProvider {
console.log(`IP Address: ${address}, Port: ${port}`);

socket.on('data', (e) => {
// [0]: Response Type (CHA-POLY, RSA)
// [1]?: RSA Public Key
// [2]: Dotenv Key
const data = e.toString().split(':');
const value: string[] = [];

Expand Down

0 comments on commit 3aecad0

Please sign in to comment.