Skip to content

Commit

Permalink
introduces support for shortDescription
Browse files Browse the repository at this point in the history
addresses #687
  • Loading branch information
jonathansampson committed Aug 9, 2024
1 parent 60261ad commit 86217fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Results:
title: 'Google Translate',
description: 'Translate between 103 languages by typing\r\n...' ,
descriptionHTML: 'Translate between 103 languages by typing<br>...',
shortDescription: 'The world is closer than ever with over 100 languages',
summary: 'The world is closer than ever with over 100 languages',
installs: '500,000,000+',
minInstalls: 500000000,
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export interface IAppItemFullDetail extends IAppItem {
title: string
description: string
descriptionHTML: string
shortDescription: string
summary: string
installs: string
minInstalls: number
Expand Down
1 change: 1 addition & 0 deletions lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const MAPPINGS = {
path: ['ds:5', 1, 2],
fun: helper.descriptionHtmlLocalized
},
shortDescription: ['ds:5', 1, 2, 73, 0, 1],
summary: ['ds:5', 1, 2, 73, 0, 1],
installs: ['ds:5', 1, 2, 13, 0],
minInstalls: ['ds:5', 1, 2, 13, 1],
Expand Down
1 change: 1 addition & 0 deletions test/lib.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const validateAppDetails = (app) => {
assert.isString(app.summary);
assert.isString(app.description);
assert.isString(app.descriptionHTML);
assert.isString(app.shortDescription);
assert.isString(app.released);
assert.equal(app.genreId, 'GAME_PUZZLE');

Expand Down

0 comments on commit 86217fd

Please sign in to comment.