Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelklehr committed Dec 9, 2023
2 parents e559f25 + db9c49c commit b2ebc03
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [5.0.1] - 2023-12-09

### Fixed

- Fixes XBEL parser

## [5.0.0] - 2023-12-09

## New
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
applicationId "org.handmadeideas.floccus"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 5000000
versionName "5.0.0"
versionCode 5000001
versionName "5.0.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
Expand Down
2 changes: 1 addition & 1 deletion manifest.chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "floccus bookmarks sync",
"short_name": "floccus",
"version": "5.0.0",
"version": "5.0.1",
"description": "__MSG_DescriptionExtension__",
"icons": {
"48": "icons/logo.png",
Expand Down
2 changes: 1 addition & 1 deletion manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "floccus bookmarks sync",
"short_name": "floccus",
"version": "5.0.0",
"version": "5.0.1",
"description": "__MSG_DescriptionExtension__",
"icons": {
"48": "icons/logo.png",
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "floccus bookmarks sync",
"short_name": "floccus",
"version": "5.0.0",
"version": "5.0.1",
"description": "__MSG_DescriptionExtension__",
"icons": {
"48": "icons/logo.png",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "floccus",
"version": "5.0.0",
"version": "5.0.1",
"description": "Sync your bookmarks privately across browsers and devices",
"scripts": {
"build": "gulp",
Expand Down
12 changes: 7 additions & 5 deletions src/lib/serializers/Xbel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ class XbelSerializer implements Serializer {
id: parseInt(node[':@']['@_id']),
parentId: folder.id,
url: node[':@']['@_href'],
title: node.bookmark?.[0]?.['#text'] || '',
title: node.bookmark?.[0]?.title?.[0]?.['#text'] || '',
location: ItemLocation.SERVER,
})
} else if (typeof node.folder !== 'undefined') {
item = new Folder({
id: parseInt(node[':@']?.['@_id']),
title: node[':@']?.['@_title'] || '',
title: node.folder?.[0]?.title?.[0]?.['#text'] || '',
parentId: folder.id,
location: ItemLocation.SERVER,
})
Expand All @@ -66,7 +66,7 @@ class XbelSerializer implements Serializer {
if (child instanceof Bookmark) {
return {
bookmark: [
{'#text': child.title}
{title: [{'#text': child.title}]}
],
':@': {
'@_href': child.url,
Expand All @@ -77,10 +77,12 @@ class XbelSerializer implements Serializer {

if (child instanceof Folder) {
return {
folder: this._serializeFolder(child),
folder: [
{title: [{'#text': child.title}]},
...this._serializeFolder(child)
],
':@': {
...('id' in child && {'@_id': String(child.id)}),
'@_title': child.title,
}
}
}
Expand Down

0 comments on commit b2ebc03

Please sign in to comment.