Skip to content

Commit 0dc52f7

Browse files
committed
Updated dependencies and version
1 parent 2c74f53 commit 0dc52f7

21 files changed

+78
-132
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "exceptionless",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "JavaScript client for Exceptionless",
55
"license": "Apache-2.0",
66
"main": "dist/exceptionless.js",

dist/exceptionless.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.node.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/exceptionless.node.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/submitSync.js

+3-64
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "exceptionless",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "JavaScript client for Exceptionless",
55
"license": "Apache-2.0",
66
"main": "dist/exceptionless.node.js",
@@ -29,25 +29,25 @@
2929
"devDependencies": {
3030
"chai": "3.5.0",
3131
"del": "2.2.0",
32-
"es5-shim": "4.5.2",
33-
"es6-shim": "0.34.2",
34-
"gulp": "3.9.0",
32+
"es5-shim": "4.5.5",
33+
"es6-shim": "0.34.4",
34+
"gulp": "3.9.1",
3535
"gulp-concat": "2.6.0",
3636
"gulp-exec": "2.1.2",
3737
"gulp-mocha": "2.2.0",
3838
"gulp-replace": "0.5.4",
3939
"gulp-sourcemaps": "1.6.0",
40-
"gulp-tslint": "4.3.1",
41-
"gulp-uglify": "1.5.1",
40+
"gulp-tslint": "4.3.2",
41+
"gulp-uglify": "1.5.3",
4242
"gulp-wrap-umd": "0.2.1",
43-
"rimraf": "2.5.1",
43+
"rimraf": "2.5.2",
4444
"source-map-support": "0.4.0",
45-
"mock-fs": "3.6.0",
45+
"mock-fs": "3.7.0",
4646
"tracekit": "0.3.2",
47-
"tslint": "3.3.0",
47+
"tslint": "3.5.0",
4848
"tsproject": "1.2.0-rc.8",
4949
"typescript": "1.7.5",
50-
"typescript-formatter": "1.2.0"
50+
"typescript-formatter": "2.1.0"
5151
},
5252
"dependencies": {
5353
"stack-trace": "0.0.9"

src/lastReferenceIdManager/DefaultLastReferenceIdManager.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ export class DefaultLastReferenceIdManager implements ILastReferenceIdManager {
1212
* Gets the last event's reference id that was submitted to the server.
1313
* @returns {string}
1414
*/
15-
getLast(): string {
15+
public getLast(): string {
1616
return this._lastReferenceId;
1717
}
1818

1919
/**
2020
* Clears the last event's reference id.
2121
*/
22-
clearLast(): void {
22+
public clearLast(): void {
2323
this._lastReferenceId = null;
2424
}
2525

2626
/**
2727
* Sets the last event's reference id.
2828
* @param eventId
2929
*/
30-
setLast(eventId: string): void {
30+
public setLast(eventId: string): void {
3131
this._lastReferenceId = eventId;
3232
}
3333
}

src/services/NodeRequestInfoCollector.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { EventPluginContext } from '../plugins/EventPluginContext';
44
import { Utils } from '../Utils';
55

66
export class NodeRequestInfoCollector implements IRequestInfoCollector {
7-
getRequestInfo(context: EventPluginContext): IRequestInfo {
7+
public getRequestInfo(context: EventPluginContext): IRequestInfo {
88
const REQUEST_KEY: string = '@request'; // optimization for minifier.
99
if (!context.contextData[REQUEST_KEY]) {
1010
return null;

src/storage/BrowserStorage.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { KeyValueStorageBase } from './KeyValueStorageBase';
33
export class BrowserStorage extends KeyValueStorageBase {
44
private prefix: string;
55

6-
static isAvailable(): boolean {
6+
public static isAvailable(): boolean {
77
try {
88
let storage = window.localStorage,
99
x = '__storage_test__';
@@ -21,28 +21,28 @@ export class BrowserStorage extends KeyValueStorageBase {
2121
this.prefix = prefix + namespace + '-';
2222
}
2323

24-
write(key: string, value: string) {
24+
public write(key: string, value: string) {
2525
window.localStorage.setItem(key, value);
2626
}
2727

28-
read(key: string) {
28+
public read(key: string) {
2929
return window.localStorage.getItem(key);
3030
}
3131

32-
readAllKeys() {
32+
public readAllKeys() {
3333
return Object.keys(window.localStorage)
3434
.filter(key => key.indexOf(this.prefix) === 0);
3535
}
3636

37-
delete(key: string) {
37+
public delete(key: string) {
3838
window.localStorage.removeItem(key);
3939
}
4040

41-
getKey(timestamp) {
41+
public getKey(timestamp) {
4242
return this.prefix + timestamp;
4343
}
4444

45-
getTimestamp(key) {
45+
public getTimestamp(key) {
4646
return parseInt(key.substr(this.prefix.length), 10);
4747
}
4848
}

src/storage/BrowserStorageProvider.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { IStorage } from './IStorage';
22
import { IStorageProvider } from './IStorageProvider';
3-
43
import { BrowserStorage } from './BrowserStorage';
54

65
export class BrowserStorageProvider implements IStorageProvider {
7-
8-
queue: IStorage;
9-
settings: IStorage;
6+
public queue: IStorage;
7+
public settings: IStorage;
108

119
constructor(prefix?: string, maxQueueItems: number = 250) {
1210
this.queue = new BrowserStorage('q', prefix, maxQueueItems);

src/storage/InMemoryStorageProvider.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { IStorage } from './IStorage';
22
import { IStorageProvider } from './IStorageProvider';
3-
43
import { InMemoryStorage } from './InMemoryStorage';
54

65
export class InMemoryStorageProvider implements IStorageProvider {
7-
8-
queue: IStorage;
9-
settings: IStorage;
6+
public queue: IStorage;
7+
public settings: IStorage;
108

119
constructor(maxQueueItems: number = 250) {
1210
this.queue = new InMemoryStorage(maxQueueItems);

src/storage/KeyValueStorageBase.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export abstract class KeyValueStorageBase implements IStorage {
1010
this.maxItems = maxItems;
1111
}
1212

13-
save(value: any, single?: boolean): number {
13+
public save(value: any, single?: boolean): number {
1414
if (!value) {
1515
return null;
1616
}
@@ -35,7 +35,7 @@ export abstract class KeyValueStorageBase implements IStorage {
3535
return timestamp;
3636
}
3737

38-
get(limit?: number): IStorageItem[] {
38+
public get(limit?: number): IStorageItem[] {
3939
this.ensureIndex();
4040

4141
return this.items.slice(0, limit)
@@ -55,7 +55,7 @@ export abstract class KeyValueStorageBase implements IStorage {
5555
.filter(item => item != null);
5656
}
5757

58-
remove(timestamp: number): void {
58+
public remove(timestamp: number): void {
5959
this.ensureIndex();
6060

6161
let items = this.items;
@@ -67,7 +67,7 @@ export abstract class KeyValueStorageBase implements IStorage {
6767
};
6868
}
6969

70-
clear(): void {
70+
public clear(): void {
7171
this.items.forEach(item => this.safeDelete(this.getKey(item)));
7272
this.items = [];
7373
}

src/storage/NodeFileStorage.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,29 @@ export class NodeFileStorage extends KeyValueStorageBase {
2323
this.mkdir(this.directory);
2424
}
2525

26-
write(key: string, value: string) {
26+
public write(key: string, value: string) {
2727
this.fs.writeFileSync(key, value);
2828
}
2929

30-
read(key: string) {
30+
public read(key: string) {
3131
return this.fs.readFileSync(key, 'utf8');
3232
}
3333

34-
readAllKeys() {
34+
public readAllKeys() {
3535
return this.fs.readdirSync(this.directory)
3636
.filter(file => file.indexOf(this.prefix) === 0)
3737
.map(file => Path.join(this.directory, file));
3838
}
3939

40-
delete(key: string) {
40+
public delete(key: string) {
4141
this.fs.unlinkSync(key);
4242
}
4343

44-
getKey(timestamp) {
44+
public getKey(timestamp) {
4545
return Path.join(this.directory, `${this.prefix}${timestamp}.json`);
4646
}
4747

48-
getTimestamp(key) {
48+
public getTimestamp(key) {
4949
return parseInt(Path.basename(key, '.json')
5050
.substr(this.prefix.length), 10);
5151
}

src/storage/NodeFileStorageProvider.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { IStorage } from './IStorage';
22
import { IStorageProvider } from './IStorageProvider';
3-
43
import { NodeFileStorage } from './NodeFileStorage';
54

65
export class NodeFileStorageProvider implements IStorageProvider {
7-
8-
queue: IStorage;
9-
settings: IStorage;
6+
public queue: IStorage;
7+
public settings: IStorage;
108

119
constructor(folder?: string, prefix?: string, maxQueueItems: number = 250) {
1210
this.queue = new NodeFileStorage('q', folder, prefix, maxQueueItems);

src/storage/Storage-spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let nodeFileStorageFactory = (maxItems?) => {
1616

1717
let nodeFileStorageInitializer = () => {
1818
mockedFs = mockFs.fs({
19-
'fileStorage': {},
19+
'fileStorage': {}
2020
});
2121
};
2222

src/submission/SettingsResponse.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export class SettingsResponse {
2-
success: boolean = false;
3-
settings: any;
4-
settingsVersion: number = -1;
5-
message: string;
6-
exception: any;
2+
public success: boolean = false;
3+
public settings: any;
4+
public settingsVersion: number = -1;
5+
public message: string;
6+
public exception: any;
77

88
constructor(success: boolean, settings: any, settingsVersion: number = -1, exception: any = null, message: string = null) {
99
this.success = success;

src/submission/SubmissionResponse.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
export class SubmissionResponse {
2-
success: boolean = false;
3-
badRequest: boolean = false;
4-
serviceUnavailable: boolean = false;
5-
paymentRequired: boolean = false;
6-
unableToAuthenticate: boolean = false;
7-
notFound: boolean = false;
8-
requestEntityTooLarge: boolean = false;
9-
statusCode: number;
10-
message: string;
2+
public success: boolean = false;
3+
public badRequest: boolean = false;
4+
public serviceUnavailable: boolean = false;
5+
public paymentRequired: boolean = false;
6+
public unableToAuthenticate: boolean = false;
7+
public notFound: boolean = false;
8+
public requestEntityTooLarge: boolean = false;
9+
public statusCode: number;
10+
public message: string;
1111

1212
constructor(statusCode: number, message?: string) {
1313
this.statusCode = statusCode;

0 commit comments

Comments
 (0)