New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@appsignal/nodejs

Package Overview
Dependencies
Maintainers
6
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/nodejs - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

dist/bootstrap.d.ts

5

CHANGELOG.md
# Changelog
## 1.2.0
- Add minutely probe for collecting heap stats (#345)
- Bumped agent to 44e4d97
- Dependency bumps
## 1.1.0

@@ -4,0 +9,0 @@ - Fix memory leak when creating child spans by passing around span reference instead of id strings (#351)

2

dist/client.d.ts

@@ -16,3 +16,3 @@ import { NodeClient, Metrics, Plugin, Tracer } from "@appsignal/types";

#private;
readonly VERSION = "1.1.0";
readonly VERSION = "1.2.0";
config: Configuration;

@@ -19,0 +19,0 @@ agent: Agent;

@@ -6,3 +6,2 @@ "use strict";

const tslib_1 = require("tslib");
const version_1 = require("./version");
const agent_1 = require("./agent");

@@ -13,7 +12,6 @@ const config_1 = require("./config");

const noops_1 = require("./noops");
const instrument_1 = require("./instrument");
const bootstrap_1 = require("./bootstrap");
const demo_1 = require("./demo");
const instrument_1 = require("./instrument");
const http_1 = require("./instrumentation/http");
const pgPlugin = tslib_1.__importStar(require("./instrumentation/pg"));
const redisPlugin = tslib_1.__importStar(require("./instrumentation/redis"));
const version_1 = require("./version");
/**

@@ -33,25 +31,15 @@ * AppSignal for Node.js's main class.

this.VERSION = version_1.VERSION;
_tracer.set(this, void 0);
_metrics.set(this, void 0);
// Agent is not started by default
const { active = false, ignoreInstrumentation } = options;
tslib_1.__classPrivateFieldSet(this, _tracer, new tracer_1.BaseTracer());
tslib_1.__classPrivateFieldSet(this, _metrics, new metrics_1.BaseMetrics());
_tracer.set(this, new tracer_1.BaseTracer());
_metrics.set(this, new metrics_1.BaseMetrics()
/**
* Creates a new instance of the `Appsignal` object
*/
);
const { active = false, // Agent is not started by default
ignoreInstrumentation, enableMinutelyProbes = true } = options;
this.config = new config_1.Configuration(options);
this.agent = new agent_1.Agent({ active });
this.instrumentation = new instrument_1.Instrumentation(this.tracer(), this.metrics());
let plugins = [http_1.httpPlugin, http_1.httpsPlugin, redisPlugin, pgPlugin];
// cull ignored plugins
if (ignoreInstrumentation && Array.isArray(ignoreInstrumentation)) {
plugins = plugins.filter(p => ignoreInstrumentation.includes(p));
}
// load plugins
plugins.forEach(p => {
try {
this.instrument(p);
}
catch (e) {
console.warn(`Failed to instrument "${p.PLUGIN_NAME}": ${e.message}`);
}
});
bootstrap_1.initCorePlugins(this.instrumentation, { ignoreInstrumentation });
bootstrap_1.initCoreProbes(this.metrics(), { enableMinutelyProbes });
}

@@ -58,0 +46,0 @@ /**

@@ -1,2 +0,2 @@

export declare const VERSION = "1.1.0";
export declare const AGENT_VERSION = "1332013";
export declare const VERSION = "1.2.0";
export declare const AGENT_VERSION = "44e4d97";

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

// Do not touch this file, auto-generated by scripts/create-versionfile
exports.VERSION = "1.1.0";
exports.AGENT_VERSION = "1332013";
exports.VERSION = "1.2.0";
exports.AGENT_VERSION = "44e4d97";
{
"name": "@appsignal/nodejs",
"version": "1.1.0",
"version": "1.2.0",
"main": "dist/index",

@@ -11,5 +11,5 @@ "types": "dist/index",

"dependencies": {
"@appsignal/core": "^1.1.3",
"@appsignal/core": "^1.1.4",
"@appsignal/types": "^2.0.2",
"require-in-the-middle": "^5.0.3",
"require-in-the-middle": "^5.1.0",
"semver": "^7.3.4",

@@ -20,3 +20,3 @@ "shimmer": "^1.2.1",

"optionalDependencies": {
"@appsignal/nodejs-ext": "^1.1.0"
"@appsignal/nodejs-ext": "^1.2.0"
},

@@ -40,3 +40,3 @@ "scripts": {

},
"gitHead": "72fc187fe60841e9b789162ce14716454b54b375"
"gitHead": "399801eb891b244b2e7b6ae47ee63467e75db7a8"
}
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