@exceptionless/node
Advanced tools
Comparing version 2.0.0-beta2 to 2.0.0-beta3
@@ -13,3 +13,3 @@ import { DefaultSubmissionClient, ExceptionlessClient, LocalStorage, SimpleErrorPlugin } from "@exceptionless/core"; | ||
const config = this.config; | ||
if (configurationOrApiKey) { | ||
if (configurationOrApiKey && !this._initialized) { | ||
if (!(globalThis === null || globalThis === void 0 ? void 0 : globalThis.localStorage)) { | ||
@@ -33,3 +33,3 @@ const storage = new LocalStorage(undefined, new LocalStoragePolyfill(process.cwd() + '/.exceptionless')); | ||
await super.startup(configurationOrApiKey); | ||
if (configurationOrApiKey) { | ||
if (configurationOrApiKey && !this._initialized) { | ||
config.removePlugin(new SimpleErrorPlugin()); | ||
@@ -36,0 +36,0 @@ } |
@@ -1,2 +0,3 @@ | ||
export declare class NodeDirectoryStorage { | ||
import { IStorage } from "@exceptionless/core"; | ||
export declare class NodeDirectoryStorage implements IStorage { | ||
private directory; | ||
@@ -3,0 +4,0 @@ constructor(directory?: string); |
{ | ||
"name": "@exceptionless/node", | ||
"version": "2.0.0-beta2", | ||
"version": "2.0.0-beta3", | ||
"description": "JavaScript client for Exceptionless", | ||
@@ -67,3 +67,3 @@ "author": { | ||
"dependencies": { | ||
"@exceptionless/core": "2.0.0-beta2", | ||
"@exceptionless/core": "2.0.0-beta3", | ||
"node-fetch": "^3.0.0-beta.9", | ||
@@ -70,0 +70,0 @@ "node-localstorage": "^2.2.1", |
@@ -23,3 +23,3 @@ import { | ||
if (configurationOrApiKey) { | ||
if (configurationOrApiKey && !this._initialized) { | ||
if (!globalThis?.localStorage) { | ||
@@ -47,3 +47,3 @@ const storage = new LocalStorage(undefined, new LocalStoragePolyfill(process.cwd() + '/.exceptionless')); | ||
if (configurationOrApiKey) { | ||
if (configurationOrApiKey && !this._initialized) { | ||
config.removePlugin(new SimpleErrorPlugin()); | ||
@@ -50,0 +50,0 @@ } |
@@ -0,1 +1,5 @@ | ||
import { | ||
IStorage | ||
} from "@exceptionless/core"; | ||
import { mkdirSync } from "fs"; | ||
@@ -6,3 +10,3 @@ import { readdir, readFile, unlink, writeFile } from "fs/promises"; | ||
export class NodeDirectoryStorage { | ||
export class NodeDirectoryStorage implements IStorage { | ||
private directory: string; | ||
@@ -9,0 +13,0 @@ |
Sorry, the diff of this file is too big to display
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
405388
5424
+ Added@exceptionless/core@2.0.0-beta3(transitive)
- Removed@exceptionless/core@2.0.0-beta2(transitive)