Skip to content

Commit 58491e5

Browse files
author
MinjiK
committed
remove bluebird
1 parent 0e3670d commit 58491e5

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"watch": "^1.0.2"
6565
},
6666
"dependencies": {
67-
"bluebird": "^3.7.2",
6867
"qs": "^6.11.0"
6968
}
7069
}

src/amadeus.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Amadeus {
100100
* ```
101101
*
102102
* @param response the previous response for an API call
103-
* @return {Promise.<Response,ResponseError>} a Bluebird Promise
103+
* @return {Promise.<Response,ResponseError>} a Promise
104104
*/
105105
previous(response) { return this.pagination.page('previous', response); }
106106

@@ -121,7 +121,7 @@ class Amadeus {
121121
* ```
122122
*
123123
* @param response the previous response for an API call
124-
* @return {Promise.<Response,ResponseError>} a Bluebird Promise
124+
* @return {Promise.<Response,ResponseError>} a Promise
125125
*/
126126
next(response) { return this.pagination.page('next', response); }
127127

@@ -143,7 +143,7 @@ class Amadeus {
143143
* ```
144144
*
145145
* @param response the previous response for an API call
146-
* @return {Promise.<Response,ResponseError>} a Bluebird Promise
146+
* @return {Promise.<Response,ResponseError>} a Promise
147147
*/
148148
first(response) { return this.pagination.page('first', response); }
149149

@@ -164,7 +164,7 @@ class Amadeus {
164164
* ```
165165
*
166166
* @param response the previous response for an API call
167-
* @return {Promise.<Response,ResponseError>} a Bluebird Promise
167+
* @return {Promise.<Response,ResponseError>} a Promise
168168
*/
169169
last(response) { return this.pagination.page('last', response); }
170170
}

src/amadeus/client.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import EventEmitter from 'events';
2-
import Promise from 'bluebird';
32
import util from 'util';
43

54
import AccessToken from './client/access_token';
@@ -183,10 +182,10 @@ class Client {
183182
}
184183

185184
/**
186-
* Builds a Bluebird Promise to be returned to the API user
185+
* Builds a Promise to be returned to the API user
187186
*
188187
* @param {type} emitter the event emitter to notify of changes
189-
* @return {Promise} a Bluebird promise
188+
* @return {Promise} a promise
190189
* @private
191190
*/
192191
buildPromise(emitter) {

src/amadeus/client/access_token.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AccessToken {
2626
* token before making an API call.
2727
*
2828
* @param {Client} client the Amadeus Client to make an API call with
29-
* @return {Promise.<Response,ResponseError>} a Bluebird Promise
29+
* @return {Promise.<Response,ResponseError>} a Promise
3030
* @protected
3131
*/
3232
bearerToken(client) {
@@ -39,10 +39,10 @@ class AccessToken {
3939
// PRIVATE
4040

4141
/**
42-
* Builds a Bluebird promise to be returned to the API user
42+
* Builds a promise to be returned to the API user
4343
*
4444
* @param {type} emitter the EventEmitter used to notify the Promise of
45-
* @return {Promise} a Bluebird promise
45+
* @return {Promise} a promise
4646
* @private
4747
*/
4848
promise(emitter) {

src/amadeus/client/pagination.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Pagination {
1717
* as a link in the meta links in the response
1818
* @param {type} response the response containing the links to the next pages,
1919
* and the request used to make the previous call
20-
* @return {Promise.<Response,ResponseError>} a Bluebird Promise
20+
* @return {Promise.<Response,ResponseError>} a Promise
2121
* @protected
2222
*/
2323
page(pageName, response) {
@@ -38,7 +38,7 @@ class Pagination {
3838
*
3939
* @param {type} request the request used to make the previous call
4040
* @param {type} pageNumber the page number to fetch
41-
* @return {Promise.<Response,ResponseError>} a Bluebird Promise
41+
* @return {Promise.<Response,ResponseError>} a Promise
4242
* @private
4343
*/
4444
call(request, pageNumber) {

0 commit comments

Comments
 (0)