@sentry/utils
Advanced tools
Comparing version 4.0.1 to 4.0.5
@@ -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) { |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105168
1489
+ Added@sentry/types@4.0.1(transitive)
- Removed@sentry/types@4.0.0(transitive)
Updated@sentry/types@4.0.1