@honeybadger-io/js 6.5.2 → 6.6.0

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.
@@ -1,6 +1,9 @@
1
1
  import { Types } from '@honeybadger-io/core';
2
2
  export declare class ServerTransport implements Types.Transport {
3
- send(options: Types.TransportOptions, payload?: Types.NoticeTransportPayload | undefined): Promise<{
3
+ private readonly headers;
4
+ constructor(headers?: Record<string, string>);
5
+ defaultHeaders(): Record<string, string>;
6
+ send<T>(options: Types.TransportOptions, payload?: T): Promise<{
4
7
  statusCode: number;
5
8
  body: string;
6
9
  }>;
@@ -7,4 +7,5 @@ export declare function getStats(): Promise<Types.ProcessStats>;
7
7
  * @param path to source code
8
8
  */
9
9
  export declare function getSourceFile(path: string): Promise<string>;
10
+ export declare function readConfigFromFileSystem(): Record<string, unknown>;
10
11
  //# sourceMappingURL=util.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honeybadger-io/js",
3
- "version": "6.5.2",
3
+ "version": "6.6.0",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/honeybadger-io/honeybadger-js/tree/master/packages/js",
6
6
  "author": {
@@ -38,8 +38,11 @@
38
38
  "strict": false
39
39
  }
40
40
  },
41
+ "bin": {
42
+ "honeybadger-checkins-sync": "dist/server/checkins-sync-exec.js"
43
+ },
41
44
  "scripts": {
42
- "build": "tsc --build tsconfig.json && rollup -c && node ./scripts/copy-typedefs.js && node ./scripts/generate-feedback-form-assets.js",
45
+ "build": "tsc --build tsconfig.json && rollup -c && rollup -c rollup.scripts.config.js && node ./scripts/copy-typedefs.js && node ./scripts/generate-feedback-form-assets.js",
43
46
  "test": "npm run test:browser && npm run test:server && npm run tsd",
44
47
  "test:browser": "jest --env=jsdom --setupFiles=\"<rootDir>/test/unit/jest-browser-setup.js\" --testPathPattern=\"test/unit/.*(?<![\\./]server)\\.test\\.(js|ts)\"",
45
48
  "test:server": "jest --env=node --testPathPattern=\"test/unit/.*(?<![\\./]browser)\\.test\\.(js|ts)\"",
@@ -48,12 +51,13 @@
48
51
  "postpublish": "./scripts/release-cdn.sh"
49
52
  },
50
53
  "dependencies": {
51
- "@honeybadger-io/core": "^6.3.0",
54
+ "@honeybadger-io/core": "^6.4.0",
52
55
  "@types/aws-lambda": "^8.10.89",
53
- "@types/express": "^4.17.13"
56
+ "@types/express": "^4.17.13",
57
+ "cosmiconfig": "^8.3.6"
54
58
  },
55
59
  "devDependencies": {
56
- "@playwright/test": "^1.37.1",
60
+ "@playwright/test": "1.38.1",
57
61
  "@rollup/plugin-commonjs": "^22.0.1",
58
62
  "@rollup/plugin-node-resolve": "^13.3.0",
59
63
  "@rollup/plugin-replace": "^5.0.2",
@@ -65,6 +69,7 @@
65
69
  "jest-fetch-mock": "^3.0.3",
66
70
  "nock": "^13.2.1",
67
71
  "rollup": "^2.77.0",
72
+ "rollup-plugin-executable": "^1.6.3",
68
73
  "rollup-plugin-terser": "^7.0.2",
69
74
  "sinon": "^14.0.0",
70
75
  "supertest": "^6.1.6",
@@ -78,5 +83,5 @@
78
83
  "engines": {
79
84
  "node": ">=14"
80
85
  },
81
- "gitHead": "96a0f90cd1cac6cf09f074af70199744d757995c"
86
+ "gitHead": "eb89c98539e2f0e44ed862832d95713c76dc1539"
82
87
  }