@finteqhub/sdk-js 0.12.0 → 0.13.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.
- package/README.md +2 -2
- package/dist/src/version.d.ts +2 -2
- package/dist/src/version.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ Diagnostics are collected regardless of whether retries are enabled.
|
|
|
56
56
|
Every request the SDK makes carries an extra header:
|
|
57
57
|
|
|
58
58
|
```
|
|
59
|
-
|
|
59
|
+
x-pgw-sdk: sdk-js/<version>
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
The value contains the SDK name and version (kept in sync with `package.json` by a test) — for example `sdk-js/0.11.0`. FinteqHub uses this header to identify traffic coming from the official SDK integration — for example to notify affected merchants when a security fix is released. It does not affect authentication or request routing.
|
|
@@ -109,7 +109,7 @@ processing
|
|
|
109
109
|
|
|
110
110
|
## Releasing
|
|
111
111
|
|
|
112
|
-
On every version bump update **both** `package.json` `version` and `SDK_VERSION` in `src/version.ts` — they must stay in sync so the `
|
|
112
|
+
On every version bump update **both** `package.json` `version` and `SDK_VERSION` in `src/version.ts` — they must stay in sync so the `x-pgw-sdk` header reports the right version. `src/version.test.ts` fails CI if they drift (`node scripts/sync-version.js` updates `src/version.ts` from `package.json`). Describe the release in [CHANGELOG.md](CHANGELOG.md), including migration notes for breaking changes.
|
|
113
113
|
|
|
114
114
|
### Beta releases
|
|
115
115
|
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SDK_HEADER_NAME = "
|
|
2
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_HEADER_NAME = "x-pgw-sdk";
|
|
2
|
+
export declare const SDK_VERSION = "0.13.0";
|
|
3
3
|
export declare const SDK_HEADER_VALUE: string;
|
package/dist/src/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const SDK_HEADER_NAME = "
|
|
2
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_HEADER_NAME = "x-pgw-sdk";
|
|
2
|
+
export const SDK_VERSION = "0.13.0";
|
|
3
3
|
export const SDK_HEADER_VALUE = `sdk-js/${SDK_VERSION}`;
|