Skip to content

Commit 497f7db

Browse files
committed
Tweaked angularjs package
1 parent b891606 commit 497f7db

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/angularjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"./package.json": "./package.json"
3434
},
3535
"scripts": {
36-
"build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --sourcemap --target=es2017 --format=esm --outfile=dist/index.bundle.js && esbuild src/index.ts --bundle --minify --sourcemap --target=es2019 --format=esm --outfile=dist/index.bundle.min.js",
37-
"watch": "tsc -p ../core/tsconfig.json -w --preserveWatchOutput & tsc -p tsconfig.json -w --preserveWatchOutput & esbuild src/index.ts --bundle --sourcemap --target=es2017 --format=esm --watch --outfile=dist/index.bundle.js",
36+
"build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --sourcemap --target=es2015 --format=esm --outfile=dist/index.bundle.js && esbuild src/index.ts --bundle --minify --sourcemap --target=es2015 --format=esm --outfile=dist/index.bundle.min.js",
37+
"watch": "tsc -p ../core/tsconfig.json -w --preserveWatchOutput & tsc -p tsconfig.json -w --preserveWatchOutput & esbuild src/index.ts --bundle --sourcemap --target=es2015 --format=esm --watch --outfile=dist/index.bundle.js",
3838
"test": ""
3939
},
4040
"sideEffects": false,

packages/angularjs/src/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
55
/* eslint-disable @typescript-eslint/no-unsafe-call */
66

7-
import { BrowserExceptionlessClient } from "@exceptionless/browser";
7+
import { BrowserExceptionlessClient, Exceptionless } from "@exceptionless/browser";
88

9-
let angular: ng.IAngularStatic;
9+
// eslint-disable-next-line no-var
10+
declare var angular;
1011
angular.module("exceptionless", [])
11-
.constant("$ExceptionlessClient", BrowserExceptionlessClient)
12+
.constant("$ExceptionlessClient", Exceptionless)
1213
.factory("exceptionlessHttpInterceptor", ["$location", "$q", "$ExceptionlessClient", ($location: ng.ILocationService, $q: ng.IQService, $ExceptionlessClient: BrowserExceptionlessClient) => {
1314
return {
1415
responseError: function responseError(response: ng.IHttpResponse<{ Message?: string }>) {

0 commit comments

Comments
 (0)