@ued2345/laserbeak
Advanced tools
Comparing version 0.4.0-beta.2 to 0.4.0
@@ -56,7 +56,10 @@ const fs = require('fs') | ||
process.env.VUE_APP_NAME = pkg.name | ||
process.env.VUE_APP_VERSION = version | ||
const envVarName = 'VUE_APP_NAME' | ||
const envVarVersion = 'VUE_APP_VERSION' | ||
process.env[envVarName] = pkg.name | ||
process.env[envVarVersion] = version | ||
console.log('[Logger] Set env variable `VUE_APP_NAME`: ' + process.env.VUE_APP_NAME) | ||
console.log('[Logger] Set env variable `VUE_APP_VERSION`: ' + process.env.VUE_APP_VERSION) | ||
void [envVarName, envVarVersion].forEach((item) => { | ||
console.log(`[Logger] Set env variable \`${ item }\`: ${ process.env[item] }`) | ||
}) | ||
} | ||
@@ -76,4 +79,3 @@ | ||
fs.writeFileSync(filePath, release, 'utf8') | ||
console.log('[Logger] Written `.sentry-release` file: ' + release) | ||
console.log(`[Logger] Written Sentry release "${ release }" to file \`${ filePath }\`.`) | ||
} | ||
@@ -84,5 +86,7 @@ | ||
const filePath = path.join(__dirname, '../dist/logger-seed.min.js') | ||
const content = fs.readFileSync(filePath, 'utf8') | ||
process.env.VUE_APP_LOGGER_SEED_CODE = content | ||
console.log('[Logger] Read seed code and set to env variable `VUE_APP_LOGGER_SEED_CODE`.') | ||
const code = fs.readFileSync(filePath, 'utf8') | ||
const envVar = 'VUE_APP_LOGGER_SEED_CODE' | ||
process.env[envVar] = code | ||
console.log(`[Logger] Read seed code and set to env variable \`${ envVar }\`.`) | ||
} | ||
@@ -89,0 +93,0 @@ |
{ | ||
"name": "@ued2345/laserbeak", | ||
"version": "0.4.0-beta.2", | ||
"version": "0.4.0", | ||
"description": "JS SDK for logging systems", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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 4 instances 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
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
12046
348
8
0
1