@tryfinch/finch-api 5.14.2 → 5.14.3

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
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.14.3 (2023-12-20)
4
+
5
+ Full Changelog: [v5.14.2...v5.14.3](https://github.com/Finch-API/finch-api-node/compare/v5.14.2...v5.14.3)
6
+
7
+ ### Documentation
8
+
9
+ * reformat README.md ([#259](https://github.com/Finch-API/finch-api-node/issues/259)) ([aeadd81](https://github.com/Finch-API/finch-api-node/commit/aeadd812236bad61610280946b98db000e27aad3))
10
+
11
+
12
+ ### Refactors
13
+
14
+ * write jest config in typescript ([#257](https://github.com/Finch-API/finch-api-node/issues/257)) ([b19f8be](https://github.com/Finch-API/finch-api-node/commit/b19f8be4a71e4b0ae70d198fb6fde1656ed562b3))
15
+
3
16
  ## 5.14.2 (2023-12-19)
4
17
 
5
18
  Full Changelog: [v5.14.1...v5.14.2](https://github.com/Finch-API/finch-api-node/compare/v5.14.1...v5.14.2)
package/README.md CHANGED
@@ -18,6 +18,7 @@ yarn add @tryfinch/finch-api
18
18
 
19
19
  The full API of this library can be found in [api.md](https://www.github.com/Finch-API/finch-api-node/blob/main/api.md).
20
20
 
21
+ <!-- prettier-ignore -->
21
22
  ```js
22
23
  import Finch from '@tryfinch/finch-api';
23
24
 
@@ -39,6 +40,7 @@ main();
39
40
 
40
41
  This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
41
42
 
43
+ <!-- prettier-ignore -->
42
44
  ```ts
43
45
  import Finch from '@tryfinch/finch-api';
44
46
 
@@ -61,6 +63,7 @@ When the library is unable to connect to the API,
61
63
  or if the API returns a non-success status code (i.e., 4xx or 5xx response),
62
64
  a subclass of `APIError` will be thrown:
63
65
 
66
+ <!-- prettier-ignore -->
64
67
  ```ts
65
68
  async function main() {
66
69
  const company = await finch.hris.company.retrieve().catch((err) => {
@@ -217,6 +220,7 @@ The "raw" `Response` returned by `fetch()` can be accessed through the `.asRespo
217
220
 
218
221
  You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
219
222
 
223
+ <!-- prettier-ignore -->
220
224
  ```ts
221
225
  const finch = new Finch();
222
226
 
@@ -239,12 +243,11 @@ If you would prefer to use a global, web-standards-compliant `fetch` function ev
239
243
  (for example, if you are running Node with `--experimental-fetch` or using NextJS which polyfills with `undici`),
240
244
  add the following import before your first import `from "Finch"`:
241
245
 
242
- <!-- prettier-ignore -->
243
246
  ```ts
244
247
  // Tell TypeScript and the package to use the global web fetch instead of node-fetch.
245
248
  // Note, despite the name, this does not add any polyfills, but expects them to be provided if needed.
246
- import "@tryfinch/finch-api/shims/web";
247
- import Finch from "@tryfinch/finch-api";
249
+ import '@tryfinch/finch-api/shims/web';
250
+ import Finch from '@tryfinch/finch-api';
248
251
  ```
249
252
 
250
253
  To do the inverse, add `import "@tryfinch/finch-api/shims/node"` (which does import polyfills).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryfinch/finch-api",
3
- "version": "5.14.2",
3
+ "version": "5.14.3",
4
4
  "description": "The official TypeScript library for the Finch API",
5
5
  "author": "Finch <founders@tryfinch.com>",
6
6
  "types": "./index.d.ts",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.14.2'; // x-release-please-version
1
+ export const VERSION = '5.14.3'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.14.2";
1
+ export declare const VERSION = "5.14.3";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.14.2'; // x-release-please-version
4
+ exports.VERSION = '5.14.3'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.14.2'; // x-release-please-version
1
+ export const VERSION = '5.14.3'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map