Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ued2345/laserbeak

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ued2345/laserbeak - npm Package Compare versions

Comparing version 0.4.0-beta.1 to 0.4.0-beta.2

10

node/index.js
const fs = require('fs')
const path = require('path')

@@ -78,5 +79,14 @@ // 读取应用的 `package.json` 中的数据

// 把 Logger 的种子代码写入环境变量,便于在构建时自动嵌入 HTML
function setSeedCode() {
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`.')
}
module.exports = {
setAppInfo,
setSentryRelease,
setSeedCode,
}

7

package.json
{
"name": "@ued2345/laserbeak",
"version": "0.4.0-beta.1",
"version": "0.4.0-beta.2",
"description": "JS SDK for logging systems",

@@ -8,3 +8,3 @@ "main": "src/index.js",

"scripts": {
"build": "uglifyjs ./src/seed/index.js -o ./dist/logger-seed.min.js -c -m --stats --comments '/^!/'",
"build": "npx uglifyjs ./src/seed/index.js -o ./dist/logger-seed.min.js -c -m --ie8 --timings --comments '/^!/'",
"lint": "eslint ./**/*.js"

@@ -28,4 +28,5 @@ },

"@ued2345/eslint-config": "^0.4.1",
"eslint": "^6.7.2"
"eslint": "^6.7.2",
"uglify-js": "^3.8.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc