-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into fix/expose-grrfp
- Loading branch information
Showing
6 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,23 @@ | |
|
||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
|
||
## v2.9.3 | ||
|
||
[compare changes](https://github.com/unjs/nitro/compare/v2.9.2...v2.9.3) | ||
|
||
### 🩹 Fixes | ||
|
||
- **raw:** Use mime to chck binary types and exclude `.json` ([#2239](https://github.com/unjs/nitro/pull/2239)) | ||
|
||
### 📖 Documentation | ||
|
||
- Fix typo ([a445fae6](https://github.com/unjs/nitro/commit/a445fae6)) | ||
|
||
### ❤️ Contributors | ||
|
||
- Pooya Parsa <[email protected]> | ||
- Keigo Nakao ([@kspace-trk](http://github.com/kspace-trk)) | ||
|
||
## v2.9.2 | ||
|
||
[compare changes](https://github.com/unjs/nitro/compare/v2.9.1...v2.9.2) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"foo": "bar" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export default eventHandler(async (event) => { | ||
const serverAssets = useStorage("assets/server"); | ||
|
||
const keys = await serverAssets.getKeys(); | ||
const items = await Promise.all( | ||
keys.map(async (key) => { | ||
return { | ||
key, | ||
meta: await serverAssets.getMeta(key), | ||
data: await serverAssets.getItem(key).then((r) => | ||
// prettier-ignore | ||
typeof r === "string" ? r.slice(0, 32) : (isPureObject(r) ? r : `<data>`) | ||
), | ||
}; | ||
}) | ||
); | ||
|
||
return items; | ||
}); | ||
|
||
function isPureObject(value) { | ||
return ( | ||
value !== null && typeof value === "object" && value.constructor === Object | ||
); | ||
} |