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

@postman/postman-sdk

Package Overview
Dependencies
Maintainers
349
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@postman/postman-sdk - npm Package Compare versions

Comparing version 0.0.45 to 0.0.46

12

build/postman/base-sdk.js

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

const logger_1 = require("./utils/logger");
const api_1 = require("@opentelemetry/api");
class PostmanBaseSDK {

@@ -28,5 +29,4 @@ constructor(config) {

}
if (this.config.debug) {
(0, logger_1.setLogger)();
}
// Keeping logLevel error as the base, so that errors are populated out.
(0, logger_1.setLogger)(this.config.debug === true ? api_1.DiagLogLevel.DEBUG : api_1.DiagLogLevel.ERROR);
this.postmanTracer = new tracing_1.PostmanTracer(this.config);

@@ -47,3 +47,3 @@ this.postmanTracer.initialize();

if (retryCount > base_types_1.DEFAULT_HEALTH_CHECK_RETRIES) {
logger_1._diag.debug('Postman SDK healthcheck retries exhausted');
logger_1._diag.error('Postman SDK healthcheck retries exhausted');
this.disable();

@@ -61,3 +61,3 @@ return;

return;
logger_1._diag.debug('Disabling Postman SDK healthcheck');
logger_1._diag.error('Disabling Postman SDK healthcheck');
// @ts-expect-error Ignore param type checking

@@ -140,3 +140,3 @@ clearTimeout(healthCheckSetTimeoutId);

catch (err) {
logger_1._diag.debug(
logger_1._diag.error(
// eslint-disable-next-line no-multi-str

@@ -143,0 +143,0 @@ 'JSONParseError: Failed to read `POSTMAN_SDK_ENABLE` config from environment variables. \

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

if (!this.req.route.path) {
instrumentation._diag.debug(`Issue: Missing Request route: ${JSON.stringify(this.req.route)}`);
instrumentation._diag.error(`Issue: Missing Request route: ${JSON.stringify(this.req.route)}`);
}

@@ -64,0 +64,0 @@ span.setAttributes({

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

suppress() {
logger_1._diag.debug('Disable PostmanTracer');
logger_1._diag.error('Disable PostmanTracer');
api_1.context.with((0, core_1.suppressTracing)(context_1.PostmanContext.getInstance()), () => {

@@ -88,0 +88,0 @@ context_1.PostmanContext.setNewContext(api_1.context.active());

@@ -1,4 +0,4 @@

import { DiagLogger } from '@opentelemetry/api';
import { DiagLogger, DiagLogLevel } from '@opentelemetry/api';
export declare let _diag: DiagLogger;
export declare const POSTMAN_LOGGING_NAMESPACE = "@postman/postman-sdk:";
export declare function setLogger(namespace?: string): void;
export declare function setLogger(logLevel: DiagLogLevel, namespace?: string): void;

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

exports.POSTMAN_LOGGING_NAMESPACE = '@postman/postman-sdk:';
function setLogger(namespace = exports.POSTMAN_LOGGING_NAMESPACE) {
api_1.diag.setLogger(new api_1.DiagConsoleLogger(), api_1.DiagLogLevel.DEBUG);
function setLogger(logLevel, namespace = exports.POSTMAN_LOGGING_NAMESPACE) {
api_1.diag.setLogger(new api_1.DiagConsoleLogger(), logLevel);
exports._diag = api_1.diag.createComponentLogger({ namespace: namespace });
}
exports.setLogger = setLogger;

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

export declare const VERSION = "0.0.45";
export declare const VERSION = "0.0.46";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = '0.0.45';
exports.VERSION = '0.0.46';
{
"name": "@postman/postman-sdk",
"version": "0.0.45",
"version": "0.0.46",
"description": "",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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