From a182640fefc74bcc087ddff506ea13a8b61452c2 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 12 Aug 2023 16:25:21 +0300 Subject: [PATCH] 0.0.6 --- CHANGELOG.md | 4 ++++ Source/Library/Deployment.ts | 2 ++ Source/Library/Project.ts | 1 + Target/Library/Deployment.d.ts | 2 +- Target/Library/Deployment.js | 2 +- Target/Library/Project.js | 2 +- package.json | 2 +- 7 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5f5824..bc491c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.6 + +- Cleanup + ## 0.0.5 - Cleanup diff --git a/Source/Library/Deployment.ts b/Source/Library/Deployment.ts index 73ce1dc..77679c9 100644 --- a/Source/Library/Deployment.ts +++ b/Source/Library/Deployment.ts @@ -1,4 +1,6 @@ import type { Env } from "../Worker.ts"; +import type { HeadersInit } from "@cloudflare/workers-types/experimental"; +import { fetch } from "@cloudflare/workers-types/experimental"; /** * The function `Deployment` makes an asynchronous request to the Cloudflare API to retrieve deployment diff --git a/Source/Library/Project.ts b/Source/Library/Project.ts index 22a9d0b..5b94f89 100644 --- a/Source/Library/Project.ts +++ b/Source/Library/Project.ts @@ -1,4 +1,5 @@ import type { HeadersInit } from "@cloudflare/workers-types/experimental"; +import { fetch } from "@cloudflare/workers-types/experimental"; /** * The function `Project` makes an asynchronous request to the Cloudflare API to fetch a diff --git a/Target/Library/Deployment.d.ts b/Target/Library/Deployment.d.ts index 695a978..42d5321 100644 --- a/Target/Library/Deployment.d.ts +++ b/Target/Library/Deployment.d.ts @@ -1,5 +1,5 @@ -/// import type { Env } from "../Worker.ts"; +import type { HeadersInit } from "@cloudflare/workers-types/experimental"; /** * The function `Deployment` makes an asynchronous request to the Cloudflare API to retrieve deployment * information for a specific project. diff --git a/Target/Library/Deployment.js b/Target/Library/Deployment.js index 818fbd5..f2230b5 100644 --- a/Target/Library/Deployment.js +++ b/Target/Library/Deployment.js @@ -1 +1 @@ -var a=async(t,e,s)=>(await(await fetch(`https://api.cloudflare.com/client/v4/accounts/${t}/pages/projects/${e}/deployments`,{headers:s})).json())?.result;export{a as default}; +import{fetch as s}from"@cloudflare/workers-types/experimental";var o=async(e,t,r)=>(await(await s(`https://api.cloudflare.com/client/v4/accounts/${e}/pages/projects/${t}/deployments`,{headers:r})).json())?.result;export{o as default}; diff --git a/Target/Library/Project.js b/Target/Library/Project.js index ccaa5e7..ae22347 100644 --- a/Target/Library/Project.js +++ b/Target/Library/Project.js @@ -1 +1 @@ -var s=async(e,t)=>(await(await fetch(`https://api.cloudflare.com/client/v4/accounts/${e}/pages/projects`,{headers:t})).json())?.result;export{s as default}; +import{fetch as r}from"@cloudflare/workers-types/experimental";var a=async(e,t)=>(await(await r(`https://api.cloudflare.com/client/v4/accounts/${e}/pages/projects`,{headers:t})).json())?.result;export{a as default}; diff --git a/package.json b/package.json index 51fb1f1..3fbff34 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "deploymentdelete", - "version": "0.0.5", + "version": "0.0.6", "private": false, "description": "Deletes all deployments associated with all the projects in the account using the Cloudflare API", "keywords": [