Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Mar 28, 2020
1 parent 38f7650 commit 657ae1a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,11 @@
# Changelog
All notable changes to this project will be documented in this file.

### v0.3.1

**Update**
- Add `humanizedCopyrightUrl` for `humanizeWallpapers`

### v0.3.0

**Breaking change**
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -93,6 +93,7 @@ the same as option fields.
```ts
{
...wallpaper,
humanizedCopyrightUrl: string,
humanizedSearchUrl: string,
humanizedImageUrl: string,
humanizeResolutionUrl: string
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "wonderful-bing-wallpaper",
"version": "0.3.0",
"version": "0.3.1",
"description": "Simple bing daily wallpaper API lib for node.js",
"keywords": [
"bing",
Expand Down
1 change: 1 addition & 0 deletions src/bing.ts
Expand Up @@ -142,6 +142,7 @@ export default class WonderfulBingWallpaper {
const targetFileFormat = fileFormat?.length ? fileFormat?.[0] : '.jpg'
return {
...image,
humanizedCopyrightUrl: `${host}${image.copyrightlink}`,
humanizedSearchUrl: `${host}${image.quiz}`,
humanizedImageUrl: `${host}${image.url}`,
humanizeResolutionUrl: `${host}${image.urlbase}_${targetResolution}${targetFileFormat}`
Expand Down

0 comments on commit 657ae1a

Please sign in to comment.