@apolitical/error-reporting 0.0.3-beta.2 → 0.2.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -2
- package/README.md +1 -1
- package/build/index.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -5,10 +5,15 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [0.0
|
|
8
|
+
## [0.2.0] - 2022-05-10
|
|
9
|
+
### Changed
|
|
10
|
+
- The `environment` is now defined externally
|
|
11
|
+
|
|
12
|
+
## [0.1.0] - 2022-01-31
|
|
9
13
|
### Fixed
|
|
10
|
-
- Buffer dependency
|
|
11
14
|
- Node.js version
|
|
15
|
+
### Removed
|
|
16
|
+
- Buffer dependency
|
|
12
17
|
|
|
13
18
|
## [0.0.2] - 2022-01-14
|
|
14
19
|
### Updated
|
package/README.md
CHANGED
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("stackdriver-errors-js")
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("stackdriver-errors-js")):"function"==typeof define&&define.amd?define(["stackdriver-errors-js"],r):"object"==typeof exports?exports.ApoliticalErrorReporting=r(require("stackdriver-errors-js")):e.ApoliticalErrorReporting=r(e["stackdriver-errors-js"])}(this,(function(e){return function(){"use strict";var r={542:function(r){r.exports=e}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){o.r(n),o.d(n,{reportError:function(){return s},setContext:function(){return c}});var e=o(542),r=o.n(e);const{GCP:{PROJECT_ID:t}}={GCP:{PROJECT_ID:"hazel-tea-194609"}};let i={key:null,environment:null,projectId:t};const c=({apiKey:e,environment:r,projectId:o,serviceName:n})=>{i.key=e,i.environment=r,i.projectId=o||t,n&&(i.service=`${n}:${i.environment}`)},s=async(e,t)=>{try{const o=new(r());o.start(i),t&&o.setUser(t),await o.report(e)}catch(e){console.warn(`Cannot report error: ${e.message}`)}}}(),n}()}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apolitical/error-reporting",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0-rc.1",
|
|
4
4
|
"description": "Browser library to report errors to GCP",
|
|
5
5
|
"author": "Apolitical Group Limited <engineering@apolitical.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"lint": "eslint --ext .js ./lib",
|
|
17
17
|
"format": "prettier --write 'lib/**/*.+(js|json)'",
|
|
18
18
|
"lint-format": "lint-staged",
|
|
19
|
-
"prepare": "husky install"
|
|
19
|
+
"prepare": "husky install",
|
|
20
|
+
"prepack": "yarn build"
|
|
20
21
|
},
|
|
21
22
|
"keywords": [
|
|
22
23
|
"JavaScript",
|
|
@@ -24,24 +25,23 @@
|
|
|
24
25
|
"Error Reporting"
|
|
25
26
|
],
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"buffer": "6.0.3",
|
|
28
28
|
"stackdriver-errors-js": "0.12.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"buffer": "6.0.3",
|
|
32
31
|
"stackdriver-errors-js": "0.12.0"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
35
|
-
"@apolitical/eslint-config": "
|
|
36
|
-
"@babel/core": "7.
|
|
37
|
-
"@babel/eslint-parser": "7.
|
|
38
|
-
"@babel/plugin-transform-runtime": "7.
|
|
39
|
-
"@babel/preset-env": "7.
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"jest
|
|
43
|
-
"
|
|
44
|
-
"
|
|
34
|
+
"@apolitical/eslint-config": "2.0.1",
|
|
35
|
+
"@babel/core": "7.17.10",
|
|
36
|
+
"@babel/eslint-parser": "7.17.0",
|
|
37
|
+
"@babel/plugin-transform-runtime": "7.17.10",
|
|
38
|
+
"@babel/preset-env": "7.17.10",
|
|
39
|
+
"eslint-config-prettier": "8.5.0",
|
|
40
|
+
"husky": "8.0.1",
|
|
41
|
+
"jest": "28.1.0",
|
|
42
|
+
"jest-junit": "13.2.0",
|
|
43
|
+
"lint-staged": "12.4.1",
|
|
44
|
+
"webpack": "5.72.1",
|
|
45
45
|
"webpack-cli": "4.9.2"
|
|
46
46
|
},
|
|
47
47
|
"eslintConfig": {
|