starhs-api-proxy-aws-lambda-client
Advanced tools
Comparing version 1.1.5 to 2.0.0
@@ -290,2 +290,20 @@ 'use strict'; | ||
} | ||
/** | ||
* Update the users profile with the data given in profile | ||
* | ||
* @param {Profile} profile | ||
* @param {JsonWebToken} token | ||
* @returns {Promise} | ||
*/ | ||
}, { | ||
key: 'updateProfile', | ||
value: function updateProfile(profile, token) { | ||
(0, _starhsModels.ProfileType)(profile); | ||
(0, _rheactorModels.JsonWebTokenType)(token); | ||
return this.post(profile.$links.filter(function (link) { | ||
return link.rel === 'update-profile'; | ||
})[0].href, profile.toJSON(), token); | ||
} | ||
}]); | ||
@@ -292,0 +310,0 @@ |
{ | ||
"name": "starhs-api-proxy-aws-lambda-client", | ||
"version": "1.1.5", | ||
"version": "2.0.0", | ||
"description": "API client for https://github.com/ResourcefulHumans/starhs-api-proxy-aws-lambda using fetch", | ||
@@ -30,3 +30,4 @@ "main": "dist/index.js", | ||
"homepage": "https://github.com/ResourcefulHumans/staRHs-API-proxy-aws-lambda-client#readme", | ||
"dependencies": { | ||
"peerDependencies": { | ||
"@resourcefulhumans/rheactor-errors": "1.x", | ||
"bluebird": "^3.4.7", | ||
@@ -36,9 +37,6 @@ "es6-promise": "^4.0.5", | ||
"lodash": "^4.17.4", | ||
"tcomb": "^3.2.15" | ||
}, | ||
"peerDependencies": { | ||
"@resourcefulhumans/rheactor-errors": "1.x", | ||
"rheactor-models": "3.x >=3.2.1", | ||
"rheactor-value-objects": "9.x >=9.0.1", | ||
"starhs-models": "8.x" | ||
"starhs-models": "8.x", | ||
"tcomb": "^3.2.15" | ||
}, | ||
@@ -45,0 +43,0 @@ "devDependencies": { |
13493
268
- Removedbluebird@^3.4.7
- Removedes6-promise@^4.0.5
- Removedisomorphic-fetch@^2.2.1
- Removedlodash@^4.17.4
- Removedtcomb@^3.2.15