Socket
Socket
Sign inDemoInstall

@sentry/utils

Package Overview
Dependencies
Maintainers
9
Versions
502
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 0.4.1 to 0.4.2

21

dist/lib/store.js

@@ -53,5 +53,10 @@ "use strict";

if (this.data === undefined) {
this.data = fs_1.existsSync(this.path)
? JSON.parse(fs_1.readFileSync(this.path, 'utf8'))
: this.initial;
try {
this.data = fs_1.existsSync(this.path)
? JSON.parse(fs_1.readFileSync(this.path, 'utf8'))
: this.initial;
}
catch (e) {
this.data = this.initial;
}
}

@@ -66,5 +71,9 @@ return this.data;

Store.prototype.flush = function () {
fs_2.mkdirpSync(path_1.dirname(this.path));
fs_1.writeFileSync(this.path, JSON.stringify(this.data));
this.flushing = false;
try {
fs_2.mkdirpSync(path_1.dirname(this.path));
fs_1.writeFileSync(this.path, JSON.stringify(this.data));
}
finally {
this.flushing = false;
}
};

@@ -71,0 +80,0 @@ return Store;

{
"name": "@sentry/utils",
"version": "0.4.1",
"version": "0.4.2",
"description": "Utilities for all Sentry JavaScript SDKs",

@@ -5,0 +5,0 @@ "repository": "https://github.com/getsentry/raven-js",

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