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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +6 -0
- package/dist/index.d.ts +1510 -44
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
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
|
|