@ued2345/laserbeak
Advanced tools
Comparing version 0.20.0-alpha.2 to 0.20.0-alpha.3
@@ -58,3 +58,3 @@ const fs = require('fs') | ||
const envVarVersion = 'VUE_APP_VERSION' | ||
process.env[envVarName] = pkg.name | ||
process.env[envVarName] = String(pkg.name).toLowerCase() | ||
process.env[envVarVersion] = version | ||
@@ -61,0 +61,0 @@ |
{ | ||
"name": "@ued2345/laserbeak", | ||
"version": "0.20.0-alpha.2", | ||
"version": "0.20.0-alpha.3", | ||
"description": "JS SDK for logging systems", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -12,3 +12,3 @@ import { exportGlobal } from './plugin/export-global' | ||
appName, | ||
version, | ||
appVersion, | ||
sampleRate, | ||
@@ -21,9 +21,9 @@ }) { | ||
} | ||
if (!(version || version === 0)) { | ||
_log('[Logger] [Init] failed: `version` is missing!') | ||
if (!(appVersion || appVersion === 0)) { | ||
_log('[Logger] [Init] failed: `appVersion` is missing!') | ||
return | ||
} | ||
appConfig.appName = appName | ||
appConfig.version = version | ||
appConfig.release = `${ appName }@${ version }` | ||
appConfig.appName = String(appName).toLowerCase() | ||
appConfig.appVersion = appVersion | ||
appConfig.release = `${ appName }@${ appVersion }` | ||
@@ -30,0 +30,0 @@ // 抽样 |
@@ -16,3 +16,3 @@ import { appConfig, log as _log, post } from '../util' | ||
prevUrl: document.referrer, | ||
version: appConfig.version, | ||
appVersion: appConfig.appVersion, | ||
// userId : appConfig.userId, | ||
@@ -19,0 +19,0 @@ } |
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
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
15860