@heroku/applink 1.0.0-ea.0 → 1.0.0-ea.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 CHANGED
@@ -17,3 +17,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
 
18
18
  ## [1.0.0-ea.0] - 2025-06-06
19
19
  - Add `X-App-UUID` header, `heroku-applink-node-sdk` UA.
20
+
21
+ ## [1.0.0-ea.1] - 2025-06-06
22
+ - Remove dynamic UA.
@@ -1,11 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.HttpRequestUtil = exports.HTTPResponseError = void 0;
7
- const fs_1 = __importDefault(require("fs"));
8
- const path_1 = __importDefault(require("path"));
9
4
  class HTTPResponseError extends Error {
10
5
  constructor(response) {
11
6
  super(`HTTP Error Response: ${response.status}: ${response.statusText}`);
@@ -15,11 +10,9 @@ class HTTPResponseError extends Error {
15
10
  exports.HTTPResponseError = HTTPResponseError;
16
11
  class HttpRequestUtil {
17
12
  async request(url, opts, json = true) {
18
- const pjson = fs_1.default.readFileSync(path_1.default.join(__dirname, "..", "package.json"), "utf8");
19
- const pkg = JSON.parse(pjson);
20
13
  const defaultOpts = {
21
14
  headers: {
22
- "User-Agent": `heroku-applink-node-sdk/${pkg.version}`,
15
+ "User-Agent": `heroku-applink-node-sdk/1.0`,
23
16
  },
24
17
  };
25
18
  const response = await fetch(url, { ...defaultOpts, ...opts });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroku/applink",
3
- "version": "1.0.0-ea.0",
3
+ "version": "1.0.0-ea.1",
4
4
  "description": "Applink SDK for Heroku Apps.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",