Skip to content

Commit 184ca6a

Browse files
authored
Merge pull request #71 from caesay/migrate-to-latest-ts
Migrate to latest typescript
2 parents 941b23e + 88566b5 commit 184ca6a

23 files changed

+115
-567
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ node_modules
44
jspm_packages
55
public
66
/dist/temp
7-
/src/typings
87
example/exceptionless.js

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -248,21 +248,19 @@ If you find a bug or want to contribute a feature, feel free to create a pull re
248248
3. Install [tsd](https://github.com/DefinitelyTyped/tsd) and [gulp](http://gulpjs.com) and the development dependencies using [npm](https://www.npmjs.com).
249249

250250
```sh
251-
npm install -g tsd
252-
npm install -g gulp
253251
npm install
254252
```
255253

256254
4. Build the project by running the following gulp command.
257255

258256
```sh
259-
gulp build
257+
npm run build
260258
```
261259

262260
5. Test the project by running the following gulp command.
263261

264262
```sh
265-
gulp test
263+
npm run test
266264
```
267265

268266
During development, you can use relative paths to require Exceptionless, e.g. `require('./dist/exceptionless.node.js')` when you are running Node.js from the git root directory.

appveyor.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ version: 1.4.{build}
22

33
install:
44
- ps: Install-Product node 5
5-
- npm install -g tsd
65
- npm install -g gulp
76
- npm install -g bower
87
- npm install

dist/exceptionless.d.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export declare class EventPluginContext {
126126
event: IEvent;
127127
contextData: ContextData;
128128
constructor(client: ExceptionlessClient, event: IEvent, contextData?: ContextData);
129-
log: ILog;
129+
readonly log: ILog;
130130
}
131131
export declare class EventPluginManager {
132132
static run(context: EventPluginContext, callback: (context?: EventPluginContext) => void): void;
@@ -222,15 +222,15 @@ export declare class Configuration implements IConfigurationSettings {
222222
private _handlers;
223223
constructor(configSettings?: IConfigurationSettings);
224224
apiKey: string;
225-
isValid: boolean;
225+
readonly isValid: boolean;
226226
serverUrl: string;
227227
heartbeatServerUrl: string;
228228
updateSettingsWhenIdleInterval: number;
229-
dataExclusions: string[];
229+
readonly dataExclusions: string[];
230230
addDataExclusions(...exclusions: string[]): void;
231-
userAgentBotPatterns: string[];
231+
readonly userAgentBotPatterns: string[];
232232
addUserAgentBotPatterns(...userAgentBotPatterns: string[]): void;
233-
plugins: IEventPlugin[];
233+
readonly plugins: IEventPlugin[];
234234
addPlugin(plugin: IEventPlugin): void;
235235
addPlugin(name: string, priority: number, pluginAction: (context: EventPluginContext, next?: () => void) => void): void;
236236
removePlugin(plugin: IEventPlugin): void;
@@ -239,14 +239,14 @@ export declare class Configuration implements IConfigurationSettings {
239239
setUserIdentity(userInfo: IUserInfo): void;
240240
setUserIdentity(identity: string): void;
241241
setUserIdentity(identity: string, name: string): void;
242-
userAgent: string;
242+
readonly userAgent: string;
243243
useSessions(sendHeartbeats?: boolean, heartbeatInterval?: number): void;
244244
useReferenceIds(): void;
245245
useLocalStorage(): void;
246246
useDebugLogger(): void;
247247
onChanged(handler: (config: Configuration) => void): void;
248248
private changed();
249-
static defaults: IConfigurationSettings;
249+
static readonly defaults: IConfigurationSettings;
250250
}
251251
export declare class EventBuilder {
252252
target: IEvent;
@@ -281,10 +281,10 @@ export interface IUserDescription {
281281
}
282282
export declare class ContextData {
283283
setException(exception: Error): void;
284-
hasException: boolean;
284+
readonly hasException: boolean;
285285
getException(): Error;
286286
markAsUnhandledError(): void;
287-
isUnhandledError: boolean;
287+
readonly isUnhandledError: boolean;
288288
setSubmissionMethod(method: string): void;
289289
getSubmissionMethod(): string;
290290
}
@@ -319,7 +319,7 @@ export declare class ExceptionlessClient {
319319
updateUserEmailAndDescription(referenceId: string, email: string, description: string, callback?: (response: SubmissionResponse) => void): void;
320320
getLastReferenceId(): string;
321321
private updateSettingsTimer(initialDelay?);
322-
static default: ExceptionlessClient;
322+
static readonly default: ExceptionlessClient;
323323
}
324324
export interface IManualStackingInfo {
325325
title?: string;
@@ -511,7 +511,7 @@ export declare class BrowserStorage extends KeyValueStorageBase {
511511
static isAvailable(): boolean;
512512
constructor(namespace: string, prefix?: string, maxItems?: number);
513513
write(key: string, value: string): void;
514-
read(key: string): any;
514+
read(key: string): string;
515515
readAllKeys(): string[];
516516
delete(key: string): void;
517517
getKey(timestamp: any): string;

dist/exceptionless.js

+22-15
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

+2-2
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

+31-24
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/integrations/angular.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", { value: true });
3+
var angular = require("angular");
14
angular.module('exceptionless', [])
25
.constant('$ExceptionlessClient', exceptionless.ExceptionlessClient.default)
36
.factory('exceptionlessHttpInterceptor', ['$q', '$ExceptionlessClient', function ($q, $ExceptionlessClient) {

dist/submitSync.js

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

0 commit comments

Comments
 (0)