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.
@@ -1,10 +1,10 @@
1
1
 
2
- > vercel-api-js@0.1.2 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
2
+ > vercel-api-js@0.1.4 build /home/runner/work/openapi-clients/openapi-clients/packages/vercel-api-js
3
3
  > rimraf dist && rollup -c
4
4
 
5
5
  
6
6
  ./src/index.ts → dist/index.cjs, dist/index.mjs...
7
- created dist/index.cjs, dist/index.mjs in 3.8s
7
+ created dist/index.cjs, dist/index.mjs in 4.7s
8
8
  
9
9
  ./src/index.ts → dist/index.d.ts...
10
- created dist/index.d.ts in 3.6s
10
+ created dist/index.d.ts in 4.8s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # vercel-api-js
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 4264ad4: Fix return type of `request` method
8
+
9
+ ## 0.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - dd84ad5: Add `request` method with string literals"
14
+
3
15
  ## 0.1.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -956,6 +956,12 @@ class VercelApi {
956
956
  }
957
957
  });
958
958
  }
959
+ async request(endpoint, params) {
960
+ const [method = '', url = ''] = endpoint.split(' ');
961
+ const extraParams = (params || {});
962
+ const result = await fetch$1({ ...extraParams, method, url, token: __classPrivateFieldGet(this, _VercelApi_token, "f"), fetchImpl: __classPrivateFieldGet(this, _VercelApi_fetch, "f") });
963
+ return result;
964
+ }
959
965
  }
960
966
  _VercelApi_token = new WeakMap(), _VercelApi_fetch = new WeakMap();
961
967