@zayne-labs/callapi 0.4.0 → 0.4.2

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/README.md +4 -1
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Build Size](https://img.shields.io/bundlephobia/minzip/@zayne-labs/callapi?label=bundle%20size&style=flat&colorA=000000&colorB=000000)](https://bundlephobia.com/result?p=@zayne-labs/callapi)[![Version](https://img.shields.io/npm/v/@zayne-labs/callapi?style=flat&colorA=000000&colorB=000000)](https://www.npmjs.com/package/@zayne-labs/callapi)
4
4
 
5
- CallApi Fetch is an extra-lightweight wrapper over fetch that provides convenient options for making HTTP requests, while keeping the API familiar to the fetch api.
5
+ CallApi Fetch is an extra-lightweight wrapper over fetch that provides quality of life improvements beyond the bare fetch api, while keeping the API familiar.
6
6
 
7
7
  It takes in a url and a request options object, just like fetch, but with some additional options to make your life easier. Check out the [API Reference](#api-reference) for more details.
8
8
 
@@ -41,6 +41,9 @@ To do this, you first need to set your `script`'s type to `module`, then import
41
41
  </script>
42
42
  ```
43
43
 
44
+ ## Docs
45
+ [View Documentation website](https://zayne-callapi.vercel.app/)
46
+
44
47
  ## Quick Start
45
48
 
46
49
  You can use callApi just like a normal `fetch` function. The only difference is you don't have to write a `response.json` or `response.text`, you could just destructure the data and error directly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zayne-labs/callapi",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "description": "A lightweight wrapper over fetch with quality of life improvements like built-in request cancellation, retries, interceptors and more",
6
6
  "main": "./dist/cjs/index.cjs",
@@ -39,6 +39,7 @@
39
39
  "@arethetypeswrong/cli": "^0.15.3",
40
40
  "@changesets/cli": "^2.27.5",
41
41
  "@eslint/js": "^9.5.0",
42
+ "@size-limit/preset-small-lib": "^11.1.4",
42
43
  "@zayne-labs/tsconfig": "^0.0.7",
43
44
  "eslint": "^9.5.0",
44
45
  "eslint-plugin-import-x": "^0.5.1",
@@ -49,14 +50,16 @@
49
50
  "husky": "^9.0.11",
50
51
  "lint-staged": "^15.2.7",
51
52
  "prettier": "^3.3.2",
53
+ "size-limit": "^11.1.4",
52
54
  "tsup": "^8.1.0",
53
55
  "typescript": "5.5.3",
54
56
  "typescript-eslint": "^7.13.1"
55
57
  },
56
58
  "scripts": {
57
59
  "test:check-types": "tsc --pretty -p tsconfig.json",
58
- "test:format": "prettier --write .",
60
+ "test:format": "prettier --write --cache .",
59
61
  "test:lint": "eslint src/**/*.ts --max-warnings 10 --report-unused-disable-directives",
62
+ "test:size": "size-limit",
60
63
  "build": "tsup",
61
64
  "build:dev": "tsup --watch",
62
65
  "version-package": "changeset version",