Skip to content

Commit

Permalink
new release
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Olave committed Mar 12, 2016
1 parent 45cbe60 commit 4d866d0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
15 changes: 13 additions & 2 deletions release/ngForge.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* Copyright 2015 Thinking Bytes Ltd.
*
* ngForge, v0.2.3
* ngForge, v0.2.4
* Angular wrappers for Trigger.io (forge) modules.
* http://trigger.io/
* http://angularjs.org/
Expand Down Expand Up @@ -643,6 +643,10 @@ angular.module('ngForge').provider('$forgeHttp', ['$httpProvider', function($htt
$forgeLogger.log("ngget:" + url);
return $http.get(url, config);
},
head: function(url, config) {
$forgeLogger.log("nghead:" + url);
return $http.head(url, config);
},
jsonp: function(url, config) {
$forgeLogger.log("ngjsonp:" + url);
return $http.jsonp(url, config);
Expand All @@ -655,6 +659,10 @@ angular.module('ngForge').provider('$forgeHttp', ['$httpProvider', function($htt
$forgeLogger.log("ngput:" + url + ":" + data);
return $http.put(url, data, config);
},
patch: function(url, data, config) {
$forgeLogger.log("ngpatch:" + url + ":" + data);
return $http.patch(url, data, config);
},
"delete": function(url, config) {
$forgeLogger.log("ngdelete:" + url);
return $http["delete"](url, config);
Expand Down Expand Up @@ -698,6 +706,9 @@ angular.module('ngForge').provider('$forgeHttp', ['$httpProvider', function($htt
get: function(url, config) {
return this._getRequest(url, config);
},
head: function(url, config) {
return this._basicRequest('head', url, config);
},
post: function(url, data, config) {
return this._basicRequest('post', url, config, data);
},
Expand Down Expand Up @@ -843,7 +854,7 @@ angular.module('ngForge').provider('$forgeHttp', ['$httpProvider', function($htt
_doRequest: function(config) {
var chain, promise, rejectFn, thenFn;
$forgeLogger.log("$forge" + (config.method.toLowerCase()) + ":" + config.url + ":" + ((config != null ? config.data : void 0) ? JSON.stringify(config.data) : void 0));
promise = $q.when(forgeOptions);
promise = $q.when(config);
chain = [this._forgeRequester, void 0];
angular.forEach(reversedInterceptors, function(interceptor) {
if (interceptor.request || interceptor.requestError) {
Expand Down
Loading

0 comments on commit 4d866d0

Please sign in to comment.