From 657ae1aeca240093563478ec24e70280a3dc65f7 Mon Sep 17 00:00:00 2001 From: surmon-china Date: Sat, 28 Mar 2020 21:58:24 +0800 Subject: [PATCH] v0.3.1 --- CHANGELOG.md | 5 +++++ README.md | 1 + package.json | 2 +- src/bing.ts | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c58baef..a1e3dc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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** diff --git a/README.md b/README.md index 378bead..79be628 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ the same as option fields. ```ts { ...wallpaper, + humanizedCopyrightUrl: string, humanizedSearchUrl: string, humanizedImageUrl: string, humanizeResolutionUrl: string diff --git a/package.json b/package.json index 2775ff7..8e754e2 100644 --- a/package.json +++ b/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", diff --git a/src/bing.ts b/src/bing.ts index 1619649..d00817d 100644 --- a/src/bing.ts +++ b/src/bing.ts @@ -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}`