Skip to content

Commit

Permalink
unhandle promise
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetc committed May 22, 2017
1 parent b754485 commit 08b309d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var Primo = function () {
* @return {string}
*/
get: function get() {
return "0.0.7";
return "0.0.8";
}
}, {
key: 'explore',
Expand Down Expand Up @@ -462,6 +462,9 @@ var Helper = function () {
if (data.status == 'ok') {
var fines = data.data.fines;
resolve(fines.fine);
} else {
console.log('No fines');
resolve([]);
}
} catch (error) {
resolve([]);
Expand Down
2 changes: 1 addition & 1 deletion js/primo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class Primo {
* @return {string}
*/
static get version() {
return "0.0.7";
return "0.0.8";
}

/**
Expand Down
3 changes: 3 additions & 0 deletions js/primo/explore/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export default class Helper {
if (data.status == 'ok') {
let fines = data.data.fines;
resolve(fines.fine);
} else {
console.log('No fines');
resolve([]);
}
}
catch(error){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "primo-explore-dom",
"version": "0.0.7",
"version": "0.0.8",
"description": "A simple Domain Object Model for Primo 5",
"main": "js/custom.js",
"scripts": {
Expand Down

0 comments on commit 08b309d

Please sign in to comment.