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

@postman/postman-sdk

Package Overview
Dependencies
Maintainers
342
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.33 to 0.0.34

8

build/postman/instrumentation/instrumentation-express.js

@@ -48,4 +48,4 @@ "use strict";

}
let responseBody = args[0];
let requestBody = this.req.body;
let responseBody = args[0] || {};
let requestBody = this.req.body || {};
if (instrumentation.getConfig().dataTruncation) {

@@ -55,4 +55,4 @@ requestBody = (0, data_trimmer_1.trimBodyValuesToTypes)(requestBody);

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

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

@@ -23,3 +23,3 @@ /**

[key: string]: any;
};
} | undefined;
export declare function formatBody(data: object | string): string;

@@ -29,2 +29,4 @@ "use strict";

function trimBodyValuesToTypes(data, deepUpdateLevel = base_types_1.DEFAULT_DATA_TRUNCATION_LEVEL, currentLevel = 1) {
if (!data)
return;
const trimmedBody = {};

@@ -35,5 +37,8 @@ if (typeof data === 'string') {

Object.entries(data).forEach(([key, value]) => {
if (currentLevel < deepUpdateLevel && isObject(value)) {
if (currentLevel < deepUpdateLevel && value && isObject(value)) {
trimmedBody[key] = trimBodyValuesToTypes(value, currentLevel + 1);
}
else if (value === null) {
trimmedBody[key] = { type: null };
}
else {

@@ -40,0 +45,0 @@ trimmedBody[key] = { type: typeof value };

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

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

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

@@ -16,2 +16,3 @@ ### About

collectionId: 'postman-collection-id'
apiKey: '<your-postman-api-key>'
});

@@ -30,3 +31,3 @@ ```

- type: string(valid url)
- default: 'https://trace-service-receiver.postman-beta.tech/traces'
- default: 'https://api.getpostman-beta.com' , **if using default please connect to postman VPN**
- **samplingRatio**: sampling ration ( TO-DO)

@@ -33,0 +34,0 @@ - type: number

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