Socket
Socket
Sign inDemoInstall

@appsignal/types

Package Overview
Dependencies
Maintainers
9
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsignal/types - npm Package Compare versions

Comparing version 2.1.7 to 3.0.0

10

CHANGELOG.md
# AppSignal types changelog
## 3.0.0
### Changed
- [449d4d4](https://github.com/appsignal/appsignal-javascript/commit/449d4d40381e7e6c13076732a8b4e7f65f94d5db) patch - Update package metadata to be more up-to-date and to specify the package location in the mono repository.
### Removed
- [21c1401](https://github.com/appsignal/appsignal-javascript/commit/21c140146e616fc6f4f0fcf7dc7e9185ab0caa02) major - Remove the Node.js types from the `@appsignal/types` package. These types are now included in the `@appsignal/nodejs` package instead.
## 2.1.7

@@ -4,0 +14,0 @@

8

dist/cjs/index.d.ts
export { HashMap, HashMapValue, Func } from "./types/common";
export { Error } from "./types/error";
export { JSClient, NodeClient } from "./interfaces/client";
export { JSClient } from "./interfaces/client";
export { Breadcrumb } from "./interfaces/breadcrumb";
export { JSSpan, NodeSpan, JSSpanData, NodeSpanOptions, SpanContext } from "./interfaces/span";
export { Tracer } from "./interfaces/tracer";
export { Metrics } from "./interfaces/metrics";
export { Plugin } from "./interfaces/plugin";
export { Probes } from "./interfaces/probes";
export { JSSpan, JSSpanData } from "./interfaces/span";
export { Hook } from "./interfaces/hook";
//# sourceMappingURL=index.d.ts.map

@@ -1,26 +0,7 @@

import { Tracer } from "./tracer";
import { Metrics } from "./metrics";
import { Plugin } from "./plugin";
import { Breadcrumb } from "./breadcrumb";
import { JSSpan } from "./span";
import { Hook } from "./hook";
interface Configuration {
readonly debug: boolean;
readonly isValid: boolean;
}
interface BaseClient {
readonly VERSION: string;
}
export interface NodeClient extends BaseClient {
readonly isActive: boolean;
config: Configuration;
start(): void;
stop(calledBy?: string): void;
tracer(): Tracer;
metrics(): Metrics;
instrument<T>(plugin: {
PLUGIN_NAME: string;
instrument: (module: T, tracer: Tracer, meter: Metrics) => Plugin<T>;
}): this;
}
export interface JSClient extends BaseClient {

@@ -27,0 +8,0 @@ ignored: RegExp[];

import { HashMap, HashMapValue } from "../types/common";
import { Error } from "../types/error";
import { Breadcrumb } from "./breadcrumb";
export interface NodeSpanOptions {
namespace?: string;
startTime?: number;
}
export interface SpanContext {
traceId: string;
spanId: string;
traceFlags?: {
sampled: boolean;
};
traceState?: HashMap<string>;
}
export interface NodeSpan {
traceId: string;
spanId: string;
setName(name: string): this;
setCategory(name: string): this;
set(key: string, value: string | number | boolean): this;
child(): NodeSpan;
setError(error: Error): this;
addError(error: Error): this;
setSampleData(key: string, data: Array<HashMapValue | Array<HashMapValue> | HashMap<HashMapValue> | undefined> | HashMap<HashMapValue | Array<HashMapValue> | HashMap<HashMapValue> | undefined>): this;
setSQL(value: string): this;
close(endTime?: number): this;
toJSON(): string;
}
export interface JSSpan {

@@ -31,0 +5,0 @@ setAction(name: string): this;

export { HashMap, HashMapValue, Func } from "./types/common";
export { Error } from "./types/error";
export { JSClient, NodeClient } from "./interfaces/client";
export { JSClient } from "./interfaces/client";
export { Breadcrumb } from "./interfaces/breadcrumb";
export { JSSpan, NodeSpan, JSSpanData, NodeSpanOptions, SpanContext } from "./interfaces/span";
export { Tracer } from "./interfaces/tracer";
export { Metrics } from "./interfaces/metrics";
export { Plugin } from "./interfaces/plugin";
export { Probes } from "./interfaces/probes";
export { JSSpan, JSSpanData } from "./interfaces/span";
export { Hook } from "./interfaces/hook";
//# sourceMappingURL=index.d.ts.map

@@ -1,26 +0,7 @@

import { Tracer } from "./tracer";
import { Metrics } from "./metrics";
import { Plugin } from "./plugin";
import { Breadcrumb } from "./breadcrumb";
import { JSSpan } from "./span";
import { Hook } from "./hook";
interface Configuration {
readonly debug: boolean;
readonly isValid: boolean;
}
interface BaseClient {
readonly VERSION: string;
}
export interface NodeClient extends BaseClient {
readonly isActive: boolean;
config: Configuration;
start(): void;
stop(calledBy?: string): void;
tracer(): Tracer;
metrics(): Metrics;
instrument<T>(plugin: {
PLUGIN_NAME: string;
instrument: (module: T, tracer: Tracer, meter: Metrics) => Plugin<T>;
}): this;
}
export interface JSClient extends BaseClient {

@@ -27,0 +8,0 @@ ignored: RegExp[];

import { HashMap, HashMapValue } from "../types/common";
import { Error } from "../types/error";
import { Breadcrumb } from "./breadcrumb";
export interface NodeSpanOptions {
namespace?: string;
startTime?: number;
}
export interface SpanContext {
traceId: string;
spanId: string;
traceFlags?: {
sampled: boolean;
};
traceState?: HashMap<string>;
}
export interface NodeSpan {
traceId: string;
spanId: string;
setName(name: string): this;
setCategory(name: string): this;
set(key: string, value: string | number | boolean): this;
child(): NodeSpan;
setError(error: Error): this;
addError(error: Error): this;
setSampleData(key: string, data: Array<HashMapValue | Array<HashMapValue> | HashMap<HashMapValue> | undefined> | HashMap<HashMapValue | Array<HashMapValue> | HashMap<HashMapValue> | undefined>): this;
setSQL(value: string): this;
close(endTime?: number): this;
toJSON(): string;
}
export interface JSSpan {

@@ -31,0 +5,0 @@ setAction(name: string): this;

{
"name": "@appsignal/types",
"version": "2.1.7",
"version": "3.0.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/cjs/index",
"repository": "git@github.com:appsignal/appsignal-javascript.git",
"author": "Adam Yeats <adam@appsignal.com>",
"repository": {
"type": "git",
"url": "https://github.com/appsignal/appsignal-javascript.git",
"directory": "packages/types"
},
"license": "MIT",

@@ -10,0 +13,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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