Skip to content

Commit

Permalink
chore(release): 0.5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
anpigon committed Sep 13, 2022
1 parent e7f5f8b commit e14dab1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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.

### [0.5.8](https://github.com/anpigon/obsidian-book-search-plugin/compare/0.5.8-beta.2...0.5.8) (2022-09-13)

### [0.5.7](https://github.com/anpigon/obsidian-book-search-plugin/compare/0.5.6...0.5.7) (2022-09-03)


Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "obsidian-book-search-plugin",
"name": "Book Search",
"version": "0.5.7",
"version": "0.5.8",
"minAppVersion": "0.15.0",
"description": "Helps you find books and create notes.",
"author": "anpigon",
"authorUrl": "https://github.com/anpigon",
"isDesktopOnly": false
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-book-search-plugin",
"version": "0.5.7",
"version": "0.5.8",
"description": "This is a plugin to help you create book notes.",
"homepage": "https://anpigon.github.io/obsidian-book-search-plugin/",
"main": "main.js",
Expand Down
2 changes: 1 addition & 1 deletion src/apis/google_books_api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('Book creation', () => {
canonicalVolumeLink: 'https://play.google.com/store/books/details?id=QVjPsd1UukEC',
};

const api: GoogleBooksApi = new GoogleBooksApi();
const api: GoogleBooksApi = new GoogleBooksApi('default');
const book: Book = api.createBookItem(volumeInfo);

it('Title', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/apis/google_books_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { apiGet, BaseBooksApiImpl } from '@apis/base_api';
import { GoogleBooksResponse, VolumeInfo } from './models/google_books_response';

export class GoogleBooksApi implements BaseBooksApiImpl {
constructor(private readonly localePreference: string,) {}
constructor(private readonly localePreference: string) {}

async getByQuery(query: string) {
try {
Expand Down
9 changes: 4 additions & 5 deletions src/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export class BookSearchSettingTab extends PluginSettingTab {

// Service Provider
let serviceProviderExtraSettingButton: HTMLElement;
// eslint-disable-next-line prefer-const
let preferredLocaleDropdownSetting: Setting;
const hideServiceProviderExtraSettingButton = () => {
serviceProviderExtraSettingButton.addClass('book-search-plugin__hide');
Expand All @@ -151,9 +152,7 @@ export class BookSearchSettingTab extends PluginSettingTab {
preferredLocaleDropdownSetting.settingEl.removeClass('book-search-plugin__hide');
}
};
const toggleServiceProviderExtraSettings = (
serviceProvider: ServiceProvider = this.settings?.serviceProvider,
) => {
const toggleServiceProviderExtraSettings = (serviceProvider: ServiceProvider = this.settings?.serviceProvider) => {
if (serviceProvider === ServiceProvider.naver) {
showServiceProviderExtraSettingButton();
hideServiceProviderExtraSettingDropdown();
Expand Down Expand Up @@ -191,7 +190,7 @@ export class BookSearchSettingTab extends PluginSettingTab {
.addDropdown(dropDown => {
const defaultLocale = window.moment.locale();
dropDown.addOption(defaultLocale, `${defaultLocale} (Default Locale)`);
window.moment.locales().forEach((locale) => {
window.moment.locales().forEach(locale => {
dropDown.addOption(locale, locale);
});
const setValue = this.settings.localePreference;
Expand All @@ -205,7 +204,7 @@ export class BookSearchSettingTab extends PluginSettingTab {
this.settings.localePreference = newValue;
await this.plugin.saveSettings();
});
})
});

// Frontmatter Settings
const formatterSettingsChildren: Setting[] = [];
Expand Down

0 comments on commit e14dab1

Please sign in to comment.