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

@sentry/utils

Package Overview
Dependencies
Maintainers
8
Versions
521
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/utils - npm Package Compare versions

Comparing version 4.0.1 to 4.0.5

2

object.d.ts

@@ -55,2 +55,4 @@ /**

/** JSDoc */
export declare function serializeObject<T>(value: T, depth: number): T | string | {};
/** JSDoc */
export declare function limitObjectDepthToSize<T>(object: {

@@ -57,0 +59,0 @@ [key: string]: any;

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

}
exports.serializeObject = serializeObject;
/** JSDoc */

@@ -227,0 +228,0 @@ function limitObjectDepthToSize(object, depth, maxSize) {

4

package.json
{
"name": "@sentry/utils",
"version": "4.0.1",
"version": "4.0.5",
"description": "Utilities for all Sentry JavaScript SDKs",

@@ -16,3 +16,3 @@ "repository": "git://github.com/getsentry/raven-js.git",

"dependencies": {
"@sentry/types": "4.0.0"
"@sentry/types": "4.0.1"
},

@@ -19,0 +19,0 @@ "devDependencies": {

@@ -8,3 +8,3 @@ /**

*/
export declare function truncate(str: string, max: number): string;
export declare function truncate(str: string, max?: number): string;
/**

@@ -11,0 +11,0 @@ * This is basically just `trim_line` from

"use strict";
/**
* Encodes given object into url-friendly format
*
* @param str An object that contains serializable values
* @param max Maximum number of characters in truncated string
* @returns string Encoded
*/
var __values = (this && this.__values) || function (o) {

@@ -20,4 +13,13 @@ var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;

Object.defineProperty(exports, "__esModule", { value: true });
var is_1 = require("./is");
/**
* Encodes given object into url-friendly format
*
* @param str An object that contains serializable values
* @param max Maximum number of characters in truncated string
* @returns string Encoded
*/
function truncate(str, max) {
if (max === 0) {
if (max === void 0) { max = 0; }
if (max === 0 || !is_1.isString(str)) {
return str;

@@ -24,0 +26,0 @@ }

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