vercel-api-js 0.1.2 → 0.1.4

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/dist/index.mjs CHANGED
@@ -954,6 +954,12 @@ class VercelApi {
954
954
  }
955
955
  });
956
956
  }
957
+ async request(endpoint, params) {
958
+ const [method = '', url = ''] = endpoint.split(' ');
959
+ const extraParams = (params || {});
960
+ const result = await fetch$1({ ...extraParams, method, url, token: __classPrivateFieldGet(this, _VercelApi_token, "f"), fetchImpl: __classPrivateFieldGet(this, _VercelApi_fetch, "f") });
961
+ return result;
962
+ }
957
963
  }
958
964
  _VercelApi_token = new WeakMap(), _VercelApi_fetch = new WeakMap();
959
965
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",