diff --git a/.agents/skills/exceptionless-javascript/references/client-angularjs.md b/.agents/skills/exceptionless-javascript/references/client-angularjs.md index 3309b342..6224a911 100644 --- a/.agents/skills/exceptionless-javascript/references/client-angularjs.md +++ b/.agents/skills/exceptionless-javascript/references/client-angularjs.md @@ -13,7 +13,7 @@ npm install @exceptionless/angularjs --save CDN or bundled script: ```html - + ``` ## Configure diff --git a/.agents/skills/exceptionless-javascript/references/client-browser.md b/.agents/skills/exceptionless-javascript/references/client-browser.md index 8eafc35a..6214ddc9 100644 --- a/.agents/skills/exceptionless-javascript/references/client-browser.md +++ b/.agents/skills/exceptionless-javascript/references/client-browser.md @@ -14,7 +14,7 @@ CDN: ```html diff --git a/README.md b/README.md index 0dbf5938..be52fb03 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,12 @@ The definition of the word exceptionless is: to be without exception. Exceptionl ## Browser You can install the npm package via `npm install @exceptionless/browser --save` -or via cdn [`https://unpkg.com/@exceptionless/browser`](https://unpkg.com/@exceptionless/browser). +or via cdn [`https://unpkg.com/@exceptionless/browser@3`](https://unpkg.com/@exceptionless/browser@3). Next, you just need to call startup during your app's startup to automatically capture unhandled errors. ```js -import { Exceptionless } from "https://unpkg.com/@exceptionless/browser"; +import { Exceptionless } from "https://unpkg.com/@exceptionless/browser@3"; await Exceptionless.startup((c) => { c.apiKey = "API_KEY_HERE"; @@ -103,7 +103,7 @@ Add the following script tag at the very beginning of your page: ```html + ``` ### npm diff --git a/packages/angularjs/package.json b/packages/angularjs/package.json index 825935b7..fb9cf7ac 100644 --- a/packages/angularjs/package.json +++ b/packages/angularjs/package.json @@ -6,6 +6,7 @@ "name": "exceptionless", "url": "https://exceptionless.com" }, + "homepage": "https://exceptionless.com", "keywords": [ "exceptionless", "error", @@ -16,8 +17,9 @@ "angularjs" ], "repository": { - "url": "git://github.com/exceptionless/Exceptionless.JavaScript.git", - "type": "git" + "type": "git", + "url": "git+https://github.com/exceptionless/Exceptionless.JavaScript.git", + "directory": "packages/angularjs" }, "bugs": { "url": "https://github.com/exceptionless/Exceptionless.JavaScript/issues" @@ -29,14 +31,21 @@ "unpkg": "dist/index.bundle.min.js", "jsdelivr": "dist/index.bundle.min.js", "exports": { - ".": "./dist/index.js", + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, "./package.json": "./package.json" }, "scripts": { "build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --sourcemap --target=es2022 --format=esm --outfile=dist/index.bundle.js && esbuild src/index.ts --bundle --minify --sourcemap --target=es2022 --format=esm --outfile=dist/index.bundle.min.js", "watch": "tsc -p ../core/tsconfig.json -w --preserveWatchOutput & tsc -p tsconfig.json -w --preserveWatchOutput & esbuild src/index.ts --bundle --sourcemap --target=es2022 --format=esm --watch --outfile=dist/index.bundle.js" }, - "sideEffects": false, + "files": [ + "dist", + "src" + ], + "sideEffects": true, "publishConfig": { "access": "public" }, diff --git a/packages/browser/README.md b/packages/browser/README.md index 2d53c158..01bbcb91 100644 --- a/packages/browser/README.md +++ b/packages/browser/README.md @@ -5,7 +5,7 @@ in vanilla HTML and JS. ## Getting Started -To use this package, your must be using ES6 and support ESM modules. +This package is published as ES modules only. ## Installation @@ -18,7 +18,7 @@ Add the following script tag at the very beginning of your page: ```html