cloud-blaze
Advanced tools
Comparing version 0.1.2 to 0.2.0
@@ -8,2 +8,9 @@ # changelog | ||
## [0.2.0] - 2020-12-23 | ||
### added | ||
- export map | ||
- typescript types | ||
## [0.1.2] - 2020-12-16 | ||
@@ -10,0 +17,0 @@ |
/** | ||
* enhance response by adding cache headers and removing unnecessary header entries | ||
* | ||
* @function | ||
* @param {Response} immRes - immutable response | ||
* @returns {Response} enhanced response | ||
*/ | ||
export const enhanceResponse = function enhanceResponse(immRes) { | ||
const enhanceResponse = function enhanceResponse(immRes) { | ||
const res = new Response(immRes.body, immRes); | ||
@@ -36,3 +37,3 @@ | ||
*/ | ||
export const getBucketAuth = async function getB2BucketAuth({ | ||
const getBucketAuth = async function getB2BucketAuth({ | ||
bucketKey, | ||
@@ -85,3 +86,3 @@ bucketKeyId, | ||
*/ | ||
export const getBucketURL = function getB2BucketURL({ | ||
const getBucketURL = function getB2BucketURL({ | ||
bucketName, | ||
@@ -107,2 +108,4 @@ bucketPrefix, | ||
export { enhanceResponse, getBucketAuth, getBucketURL }; | ||
/** | ||
@@ -109,0 +112,0 @@ * cloudflare workers handler for proxying requests to backblaze b2 |
{ | ||
"name": "cloud-blaze", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "cloudflare workers handler for proxying requests to backblaze b2", | ||
@@ -9,5 +9,23 @@ "main": "index.js", | ||
"license": "MIT", | ||
"type": "module", | ||
"exports": { | ||
"import": "./index.js" | ||
}, | ||
"scripts": { | ||
"clean": "rm -rf types", | ||
"types": "tsc --allowJs --declaration --emitDeclarationOnly index.js" | ||
}, | ||
"files": [ | ||
"!example" | ||
], | ||
"keywords": [ | ||
"b2", | ||
"backblaze", | ||
"backblaze-b2", | ||
"cloudflare", | ||
"cloudflare-workers", | ||
"edge", | ||
"proxy", | ||
"workers" | ||
] | ||
} |
8844
156
Yes