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

@appsignal/cli

Package Overview
Dependencies
Maintainers
8
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/cli - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

dist/installers/node/demo.d.ts

8

CHANGELOG.md
# AppSignal CLI changelog
## 1.2.8
_Published on 2024-01-19._
### Changed
- [1047390](https://github.com/appsignal/appsignal-javascript/commit/104739094e76594109a0cecb6da806eb9cb8c974) patch - Warn about Push API key being committed in the AppSignal config file and recommend using system environment variables instead.
## 1.2.7

@@ -4,0 +12,0 @@

12

dist/installers/node/index.js

@@ -76,3 +76,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var _a, pushApiKey, name, isUsingYarn, method, filename, overwrite, configExists, useConfigFile;
var _a, pushApiKey, name, isUsingYarn, method, filename, overwrite, configExists, useConfigFile, pushApiKeyConfig;
return __generator(this, function (_b) {

@@ -148,2 +148,10 @@ switch (_b.label) {

console.log("Writing ".concat(filename, " configuration file."));
pushApiKeyConfig = "";
if (useConfigFile) {
pushApiKeyConfig =
" // Your app's AppSignal Push API key. We don't recommend committing this key.\n" +
" // Set the Push API key using a system environment variable.\n" +
" // pushApiKey: process.env.APPSIGNAL_PUSH_API_KEY,\n" +
" pushApiKey: \"".concat(pushApiKey, "\",\n");
}
fs.writeFileSync(path.join(dir, filename), "const { Appsignal } = require(\"@appsignal/nodejs\");\n\n" +

@@ -153,3 +161,3 @@ "new Appsignal({\n" +

" name: \"".concat(name, "\",\n") +
(useConfigFile ? " pushApiKey: \"".concat(pushApiKey, "\",\n") : "") +
pushApiKeyConfig +
"});\n");

@@ -156,0 +164,0 @@ }

2

package.json
{
"name": "@appsignal/cli",
"version": "1.2.7",
"version": "1.2.8",
"main": "./dist/index",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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