@sentry/utils
Advanced tools
Comparing version 4.5.4 to 4.6.1
@@ -24,3 +24,5 @@ // tslint:disable:no-unsafe-any | ||
else { | ||
for (const value of this.inner) { | ||
// tslint:disable-next-line:prefer-for-of | ||
for (let i = 0; i < this.inner.length; i++) { | ||
const value = this.inner[i]; | ||
if (value === obj) { | ||
@@ -27,0 +29,0 @@ return true; |
@@ -173,3 +173,3 @@ import { isArray, isNaN, isPlainObject, isPrimitive, isUndefined } from './is'; | ||
const to = Object(target); | ||
// tslint:disable-next-line | ||
// tslint:disable-next-line:prefer-for-of | ||
for (let i = 0; i < args.length; i++) { | ||
@@ -264,3 +264,3 @@ const source = args[i]; | ||
// tslint:disable-next-line:no-unsafe-any | ||
const copy = isArray(obj) ? [...obj] : isPlainObject(obj) ? { ...obj } : obj; | ||
const copy = isArray(obj) ? obj.slice() : isPlainObject(obj) ? assign({}, obj) : obj; | ||
if (!isPrimitive(obj)) { | ||
@@ -267,0 +267,0 @@ if (memo.memoize(obj)) { |
@@ -63,3 +63,3 @@ import { isString } from './is'; | ||
const output = []; | ||
// tslint:disable-next-line | ||
// tslint:disable-next-line:prefer-for-of | ||
for (let i = 0; i < input.length; i++) { | ||
@@ -66,0 +66,0 @@ const value = input[i]; |
20
memo.js
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
// tslint:disable:no-unsafe-any | ||
@@ -19,3 +18,2 @@ /** | ||
Memo.prototype.memoize = function (obj) { | ||
var e_1, _a; | ||
if (this.hasWeakSet) { | ||
@@ -29,17 +27,9 @@ if (this.inner.has(obj)) { | ||
else { | ||
try { | ||
for (var _b = tslib_1.__values(this.inner), _c = _b.next(); !_c.done; _c = _b.next()) { | ||
var value = _c.value; | ||
if (value === obj) { | ||
return true; | ||
} | ||
// tslint:disable-next-line:prefer-for-of | ||
for (var i = 0; i < this.inner.length; i++) { | ||
var value = this.inner[i]; | ||
if (value === obj) { | ||
return true; | ||
} | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
} | ||
this.inner.push(obj); | ||
@@ -46,0 +36,0 @@ return false; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var is_1 = require("./is"); | ||
@@ -191,3 +190,3 @@ var memo_1 = require("./memo"); | ||
var to = Object(target); | ||
// tslint:disable-next-line | ||
// tslint:disable-next-line:prefer-for-of | ||
for (var i = 0; i < args.length; i++) { | ||
@@ -284,3 +283,3 @@ var source = args[i]; | ||
// tslint:disable-next-line:no-unsafe-any | ||
var copy = is_1.isArray(obj) ? tslib_1.__spread(obj) : is_1.isPlainObject(obj) ? tslib_1.__assign({}, obj) : obj; | ||
var copy = is_1.isArray(obj) ? obj.slice() : is_1.isPlainObject(obj) ? assign({}, obj) : obj; | ||
if (!is_1.isPrimitive(obj)) { | ||
@@ -287,0 +286,0 @@ if (memo.memoize(obj)) { |
{ | ||
"name": "@sentry/utils", | ||
"version": "4.5.4", | ||
"version": "4.6.1", | ||
"description": "Utilities for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
@@ -68,3 +68,3 @@ "use strict"; | ||
var output = []; | ||
// tslint:disable-next-line | ||
// tslint:disable-next-line:prefer-for-of | ||
for (var i = 0; i < input.length; i++) { | ||
@@ -71,0 +71,0 @@ var value = input[i]; |
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
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
266838
3719