unione 1.3.0 → 1.3.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/AGENTS.md CHANGED
@@ -79,7 +79,7 @@ try {
79
79
  npm pack --dry-run
80
80
  ```
81
81
 
82
- - **Source label.** Every request carries the query parameter `platform=node-sdk.1.3.0`, added in one place, the shared request client (`ApiClient`); a package built on this SDK puts its own label in front: `<package>.<version>,node-sdk.1.3.0`.
82
+ - **Source label.** Every request carries the query parameter `platform=node-sdk.1.3.1`, added in one place, the shared request client (`ApiClient`); a package built on this SDK puts its own label in front: `<package>.<version>,node-sdk.1.3.1`.
83
83
  - **Tests.** `npm install && npm test` runs the tests of the package (tests/ or test/, not published) offline: the API is faked (a fake transport or a mock server on 127.0.0.1), never the real API, no real key; add a test with every change of the client. Before a release the generator also builds and lints the package and runs every example of docs/ and of this file against a mock of the API. The CI (.github/workflows/test.yml) runs the tests on every push and pull request over the supported runtimes; release.yml publishes a tag only after they pass.
84
- - **Release.** The version (1.3.0 in package.json) and the tag `v1.3.0` come from the generator; README.md states the Web API version the release was generated from.
84
+ - **Release.** The version (1.3.1 in package.json) and the tag `v1.3.1` come from the generator; README.md states the Web API version the release was generated from.
85
85
  - **Secrets.** Never commit API keys; the examples read `UNIONE_API_KEY` from the environment.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unione",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "UniOne Web API client library for Node.js",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -37,7 +37,7 @@ export function extraFields(data, names) {
37
37
  }
38
38
 
39
39
  /** The SDK and its version in the "platform" query parameter of every request. */
40
- export const PLATFORM = "node-sdk.1.3.0";
40
+ export const PLATFORM = "node-sdk.1.3.1";
41
41
 
42
42
  /**
43
43
  * Sets a header, replacing one of the same name in another case.
@@ -36,7 +36,7 @@ export class Configuration {
36
36
  * that uses the SDK and its version (e.g. "express.1.0.0"), sent in the "platform" query parameter before the SDK
37
37
  * one (PLATFORM); headers: extra headers of every request; fetch: a fetch-compatible function, default: the built-in http/https modules.
38
38
  */
39
- constructor(apiKey, { baseUrl = DEFAULT_BASE_URL, timeout = 30000, userAgent = "unione-node-sdk/1.3.0", platform, headers = {}, fetch } = {}) {
39
+ constructor(apiKey, { baseUrl = DEFAULT_BASE_URL, timeout = 30000, userAgent = "unione-node-sdk/1.3.1", platform, headers = {}, fetch } = {}) {
40
40
  this.apiKey = apiKey;
41
41
  this.baseUrl = baseUrl.replace(/\/+$/, "");
42
42
  this.timeout = timeout;