apinow-sdk 0.11.5 → 0.11.7

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -127,7 +127,12 @@ class ApiNow {
127
127
  console.error(`txResponse: Preparing ${method} request to ${endpoint}`);
128
128
  const fetchOptions = {
129
129
  method: method,
130
- headers: { 'Content-Type': 'application/json' },
130
+ headers: {
131
+ 'Content-Type': 'application/json',
132
+ 'Accept': '*/*',
133
+ 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36',
134
+ 'X-Transaction-Hash': txHash
135
+ },
131
136
  // body is set conditionally below
132
137
  };
133
138
  if (method === 'GET' || method === 'HEAD') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apinow-sdk",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "description": "ApiNow SDK · The endpoint vending machine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",