Skip to content

Commit

Permalink
Parsing HAL title links
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Sep 12, 2018
1 parent acaf598 commit e764148
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
ChangeLog
=========

2.0.4 (2018-09-12)
------------------

* Fixed bug: HAL title values weren't parsed.


2.0.3 (2018-08-23)
------------------

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { default } from './ketting';
export { default as default } from './ketting';
export { default as Ketting } from './ketting';
export { default as Resource } from './resource';
2 changes: 2 additions & 0 deletions src/representor/hal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const parseHalLinks = (representation: Hal): void => {
type HalLink = {
href: string,
name?: string,
title: string,
templated?: boolean,
type?: string
};
Expand All @@ -71,6 +72,7 @@ const parseHalLink = (representation: Hal, rel: string, links: HalLink[]): void
rel: rel,
baseHref: representation.uri,
href: link.href,
title: link.title,
type: link.type,
templated: link.templated,
name: link.name
Expand Down

0 comments on commit e764148

Please sign in to comment.