@forzalabs/remora 1.0.19 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Constants.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const CONSTANTS = {
4
- cliVersion: '1.0.19',
4
+ cliVersion: '1.0.20',
5
5
  backendVersion: 1,
6
6
  backendPort: 5088,
7
7
  workerVersion: 2,
@@ -44,11 +44,11 @@ class ProcessENVManagerClass {
44
44
  /**
45
45
  * All the variables foundamental for operativity of remora
46
46
  */
47
- this.FOUNDAMENTAL_ENVIRONMENT_VARIABLES = ['REMORA_LICENCE_KEY', 'REMORA_WORKERS_PATH', 'ADMIN_JWT_SECRET_FILE', 'JWT_SECRET_FILE', 'ROOT_TEMP_PASSWORD_FILE'];
47
+ this.FOUNDAMENTAL_ENVIRONMENT_VARIABLES = ['REMORA_LICENCE_KEY'];
48
48
  /**
49
49
  * All the variables that are not foundamental for the operativity of remora
50
50
  */
51
- this.ENVIRONMENT_VARIABLES = ['REMORA_KEY_SECRET_FILE', 'REMORA_WORKER_HOST', 'MONGO_URI', 'REMORA_SALT', 'OPENAI_API_KEY', 'AWS_DEFAULT_REGION', 'AWS_ACCOUNT_ID', 'AWS_ACCESS_KEY_ID', 'AWS_SESSION_TOKEN', 'NODE_ENV'];
51
+ this.ENVIRONMENT_VARIABLES = ['REMORA_KEY_SECRET_FILE', 'REMORA_WORKERS_PATH', 'ADMIN_JWT_SECRET_FILE', 'JWT_SECRET_FILE', 'ROOT_TEMP_PASSWORD_FILE', 'REMORA_WORKER_HOST', 'MONGO_URI', 'REMORA_SALT', 'OPENAI_API_KEY', 'AWS_DEFAULT_REGION', 'AWS_ACCOUNT_ID', 'AWS_ACCESS_KEY_ID', 'AWS_SESSION_TOKEN', 'NODE_ENV'];
52
52
  /**
53
53
  * get the value of an environment variable and give an error/warn if not implemented.
54
54
  * @param variable the string text of the environment varible desired
@@ -56,8 +56,8 @@ class ProcessENVManagerClass {
56
56
  */
57
57
  this.getEnvVariable = (variable) => {
58
58
  (0, Affirm_1.default)(variable, `Cannot read an undefined variable`);
59
- if (!this.FOUNDAMENTAL_ENVIRONMENT_VARIABLES.includes(variable) || !this.ENVIRONMENT_VARIABLES.includes(variable)) {
60
- console.warn(`Trying reading an implemented: ${variable}`);
59
+ if (!this.FOUNDAMENTAL_ENVIRONMENT_VARIABLES.includes(variable) && !this.ENVIRONMENT_VARIABLES.includes(variable)) {
60
+ console.warn(`Trying to read a variable that is not implemented: ${variable}`);
61
61
  }
62
62
  if (!process_1.default.env[variable] && this.FOUNDAMENTAL_ENVIRONMENT_VARIABLES.includes(variable)) {
63
63
  throw new Error(`Missing necessary property for ${variable}`);
@@ -75,7 +75,7 @@ class ParseCompressionClass {
75
75
  if (fileKey.includes('.zip') || fileKey.includes('.tar') || fileKey.includes('.gz'))
76
76
  console.log(`The file ${fileKey} seems to use a compressionType while there are no producer settings for compressionType `);
77
77
  // No decompression needed for request
78
- return standardPath;
78
+ return path_1.default.join(standardPath, fileKey);
79
79
  }
80
80
  default: {
81
81
  // throw an error if the request ask for an unsupported compression type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forzalabs/remora",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "A powerful CLI tool for seamless data translation.",
5
5
  "main": "index.js",
6
6
  "private": false,