vercel-api-js 0.3.0 → 0.4.0

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
@@ -169,7 +169,12 @@ const updateCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{depl
169
169
  /**
170
170
  * Rerequest a selected check that has failed.
171
171
  */
172
- const rerequestCheck = (variables, signal) => fetch$1({ url: '/v1/deployments/{deploymentId}/checks/{checkId}/rerequest', method: 'post', ...variables, signal });
172
+ const rerequestCheck = (variables, signal) => fetch$1({
173
+ url: '/v1/deployments/{deploymentId}/checks/{checkId}/rerequest',
174
+ method: 'post',
175
+ ...variables,
176
+ signal
177
+ });
173
178
  /**
174
179
  * Update the data cache feature on a project.
175
180
  */
@@ -641,7 +646,12 @@ const deleteTeam = (variables, signal) => fetch$1({
641
646
  /**
642
647
  * Delete an active Team invite code.
643
648
  */
644
- const deleteTeamInviteCode = (variables, signal) => fetch$1({ url: '/v1/teams/{teamId}/invites/{inviteId}', method: 'delete', ...variables, signal });
649
+ const deleteTeamInviteCode = (variables, signal) => fetch$1({
650
+ url: '/v1/teams/{teamId}/invites/{inviteId}',
651
+ method: 'delete',
652
+ ...variables,
653
+ signal
654
+ });
645
655
  /**
646
656
  * Before you create a deployment you need to upload the required files for that deployment. To do it, you need to first upload each file to this endpoint. Once that's completed, you can create a new deployment with the uploaded files. The file content must be placed inside the body of the request. In the case of a successful response you'll receive a status code 200 with an empty body.
647
657
  */
@@ -720,7 +730,12 @@ const getWebhook = (variables, signal) => fetch$1({
720
730
  /**
721
731
  * Deletes a webhook
722
732
  */
723
- const deleteWebhook = (variables, signal) => fetch$1({ url: '/v1/webhooks/{id}', method: 'delete', ...variables, signal });
733
+ const deleteWebhook = (variables, signal) => fetch$1({
734
+ url: '/v1/webhooks/{id}',
735
+ method: 'delete',
736
+ ...variables,
737
+ signal
738
+ });
724
739
  /**
725
740
  * Retrieves a list of aliases for the authenticated User or Team. When `domain` is provided, only aliases for that domain will be returned. When `projectId` is provided, it will only return the given project aliases.
726
741
  */
@@ -742,7 +757,12 @@ const getAlias = (variables, signal) => fetch$1({
742
757
  /**
743
758
  * Delete an Alias with the specified ID.
744
759
  */
745
- const deleteAlias = (variables, signal) => fetch$1({ url: '/v2/aliases/{aliasId}', method: 'delete', ...variables, signal });
760
+ const deleteAlias = (variables, signal) => fetch$1({
761
+ url: '/v2/aliases/{aliasId}',
762
+ method: 'delete',
763
+ ...variables,
764
+ signal
765
+ });
746
766
  /**
747
767
  * Retrieves all Aliases for the Deployment with the given ID. The authenticated user or team must own the deployment.
748
768
  */
@@ -860,7 +880,12 @@ const getSecret = (variables, signal) => fetch$1({
860
880
  /**
861
881
  * This deletes the user or team’s secret defined in the URL.
862
882
  */
863
- const deleteSecret = (variables, signal) => fetch$1({ url: '/v2/secrets/{idOrName}', method: 'delete', ...variables, signal });
883
+ const deleteSecret = (variables, signal) => fetch$1({
884
+ url: '/v2/secrets/{idOrName}',
885
+ method: 'delete',
886
+ ...variables,
887
+ signal
888
+ });
864
889
  const operationsByTag = {
865
890
  artifacts: { recordEvents, status, uploadArtifact, downloadArtifact, artifactQuery },
866
891
  checks: { createCheck, getAllChecks, getCheck, updateCheck, rerequestCheck },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vercel-api-js",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Vercel API client for Node.js",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",