@silenteer/natsu-runner
Advanced tools
Comparing version 1.0.1 to 1.0.2
14
index.js
@@ -15,2 +15,15 @@ #!/usr/bin/env node | ||
const envPath = path.join(process.cwd(), '.env.natsu'); | ||
let namespaceConfig; | ||
if (fs.existsSync(envPath)) { | ||
require('dotenv').config({ path: envPath }); | ||
const { NATS_GET_NAMESPACE_SUBJECT, NATS_NAMESPACE_SUBJECTS } = process.env; | ||
if (NATS_GET_NAMESPACE_SUBJECT && NATS_NAMESPACE_SUBJECTS) { | ||
namespaceConfig = { | ||
getNamespaceSubject: NATS_GET_NAMESPACE_SUBJECT, | ||
namespaceSubjects: NATS_NAMESPACE_SUBJECTS, | ||
}; | ||
} | ||
} | ||
esbuild.buildSync({ | ||
@@ -30,2 +43,3 @@ entryPoints: files, | ||
verbose: options.verbose, | ||
namespace: namespaceConfig, | ||
}); | ||
@@ -32,0 +46,0 @@ |
{ | ||
"name": "@silenteer/natsu-runner", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Nats Unit runner", | ||
@@ -22,2 +22,3 @@ "main": "index.js", | ||
"commander": "^8.2.0", | ||
"dotenv": "^10.0.0", | ||
"esbuild": "^0.12.29", | ||
@@ -24,0 +25,0 @@ "matched": "^5.0.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2729
70
5
4
+ Addeddotenv@^10.0.0
+ Addeddotenv@10.0.0(transitive)