@covalent/http
Advanced tools
Comparing version 3.1.0-beta.1 to 3.1.0-beta.2
@@ -75,6 +75,7 @@ (function (global, factory) { | ||
function __awaiter(thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -117,5 +118,5 @@ }); | ||
function __values(o) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; | ||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; | ||
if (m) return m.call(o); | ||
return { | ||
if (o && typeof o.length === "number") return { | ||
next: function () { | ||
@@ -126,2 +127,3 @@ if (o && i >= o.length) o = void 0; | ||
}; | ||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); | ||
} | ||
@@ -207,2 +209,17 @@ | ||
function __classPrivateFieldGet(receiver, privateMap) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to get private field on non-instance"); | ||
} | ||
return privateMap.get(receiver); | ||
} | ||
function __classPrivateFieldSet(receiver, privateMap, value) { | ||
if (!privateMap.has(receiver)) { | ||
throw new TypeError("attempted to set private field on non-instance"); | ||
} | ||
privateMap.set(receiver, value); | ||
return value; | ||
} | ||
/** | ||
@@ -544,3 +561,3 @@ * @fileoverview added by tsickle | ||
? arguments | ||
: injectArgs(new core["ɵReflectionCapabilities"]().parameters(base), getInjector())))) || this; | ||
: injectArgs(new core.ɵReflectionCapabilities().parameters(base), getInjector())))) || this; | ||
_this._injector = getInjector(); | ||
@@ -703,3 +720,3 @@ _this.buildConfig(); | ||
]; }; | ||
/** @nocollapse */ InternalHttpService.ɵprov = core["ɵɵdefineInjectable"]({ factory: function InternalHttpService_Factory() { return new InternalHttpService(core["ɵɵinject"](core.INJECTOR)); }, token: InternalHttpService, providedIn: "root" }); | ||
/** @nocollapse */ InternalHttpService.ɵprov = core.ɵɵdefineInjectable({ factory: function InternalHttpService_Factory() { return new InternalHttpService(core.ɵɵinject(core.INJECTOR)); }, token: InternalHttpService, providedIn: "root" }); | ||
return InternalHttpService; | ||
@@ -743,6 +760,3 @@ }()); | ||
function (path) { | ||
path = path | ||
.replace(/\*\*/gi, '<>') | ||
.replace(/\*/gi, '[^/?]+') | ||
.replace(/<>/gi, '[^?]*'); | ||
path = path.replace(/\*\*/gi, '<>').replace(/\*/gi, '[^/?]+').replace(/<>/gi, '[^?]*'); | ||
if (path) { | ||
@@ -749,0 +763,0 @@ path += '(\\?{1}.*)?$'; |
@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common/http"),require("rxjs")):"function"==typeof define&&define.amd?define("@covalent/http",["exports","@angular/core","@angular/common/http","rxjs"],t):t(((e=e||self).covalent=e.covalent||{},e.covalent.http={}),e.ng.core,e.ng.common.http,e.rxjs)}(this,(function(e,t,r,n){"use strict"; | ||
and limitations under the License. | ||
***************************************************************************** */var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function a(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function i(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}function s(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}var u=function(){function e(e,t,r){var n=this;this._injector=e,this._httpInterceptorMatcher=t,this._requestInterceptors=[],r.forEach((function(t){n._requestInterceptors.push({interceptor:e.get(t.interceptor),paths:t.paths})}))}return Object.defineProperty(e.prototype,"requestInterceptors",{get:function(){return this._requestInterceptors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"httpInterceptorMatcher",{get:function(){return this._httpInterceptorMatcher},enumerable:!0,configurable:!0}),e}();var p=function(e){function o(t,r){var n=e.call(this,t)||this;return n._handler=t,n._interceptorBehavior=r,n}return a(o,e),o.prototype.request=function(e,t,r){var n=this;void 0===r&&(r={});var o=this._interceptorBehavior.requestInterceptors.filter((function(e){return n._interceptorBehavior.httpInterceptorMatcher.matches({url:t},e)})).map((function(e){return e.interceptor}));return this._setupRequest(e,t,r,o)},o.prototype._setupRequest=function(t,r,o,a){try{o=this._requestResolve(o,a)}catch(e){return new n.Observable((function(t){t.error(e)}))}return this._handleResponseResolve(e.prototype.request.call(this,t,r,o),a)},o.prototype._requestResolve=function(e,t){return t.forEach((function(t){t.handleOptions&&(e=t.handleOptions(e))})),e},o.prototype._handleResponseResolve=function(e,t){return t.reverse(),t.forEach((function(t){t.handleResponse&&(e=t.handleResponse(e))})),e},o.decorators=[{type:t.Injectable}],o.ctorParameters=function(){return[{type:r.HttpHandler},{type:u}]},o}(r.HttpClient);function f(e,r){var n,o,a,s,c=[];try{for(var u=i(e),p=u.next();!p.done;p=u.next()){var f=p.value;if(f)if(Array.isArray(f)){if(0===f.length)throw new Error("Arguments array must have arguments.");var l=void 0,d=t.InjectFlags.Default;try{for(var h=(a=void 0,i(f)),y=h.next();!y.done;y=h.next()){var v=y.value;v instanceof t.Optional||"Optional"===v.ngMetadataName?d|=t.InjectFlags.Optional:v instanceof t.SkipSelf||"SkipSelf"===v.ngMetadataName?d|=t.InjectFlags.SkipSelf:v instanceof t.Self||"Self"===v.ngMetadataName?d|=t.InjectFlags.Self:l=v instanceof t.Inject?v.token:v}}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}c.push(r.get(l,d))}else c.push(r.get(f))}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return c}function l(){try{return t.inject(t.INJECTOR)}catch(e){if(!d._injector)throw new Error("Please add CovalentHttpModule into your imports.");return d._injector}}var d=function(){function e(t){e._injector=t}return e._injector=void 0,e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:t.Injector}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](t.INJECTOR))},token:e,providedIn:"root"}),e}();var h=function(){function e(){}return e.prototype.matches=function(e,t){return t.paths.filter((function(t){return!!(t=t.replace(/\*\*/gi,"<>").replace(/\*/gi,"[^/?]+").replace(/<>/gi,"[^?]*"))&&(t+="(\\?{1}.*)?$",new RegExp(t).test(e.url))})).length>0},e}(),y=new t.InjectionToken("HTTP_CONFIG");function v(e,t,r){return new p(e,new u(t,new h,r.interceptors))}var b={provide:p,useFactory:v,deps:[r.HttpHandler,t.Injector,y]},m=function(){function e(e){this._internalHttpService=e}return e.forRoot=function(t){return void 0===t&&(t={interceptors:[]}),{ngModule:e,providers:[{provide:y,useValue:t},b]}},e.decorators=[{type:t.NgModule,args:[{imports:[r.HttpClientModule],providers:[d]}]}],e.ctorParameters=function(){return[{type:d}]},e}();var g=Symbol("TdHttpRESTParam");function _(e,t){return function(r,n,o){var a=Reflect.getOwnMetadata(g,r,n)||[];a.push({index:o,param:t,type:e}),Reflect.defineMetadata(g,a,r,n)}}var T=n.of(void 0);function j(e,t){var n=e;if(t instanceof r.HttpParams)t.keys().forEach((function(e){void 0!==t.get(e)&&t.getAll(e).forEach((function(t,r){n=0===r?n.set(e,t):n.append(e,t)}))}));else{var o=function(e){void 0!==t[e]&&(t[e]instanceof Array?t[e].forEach((function(t,r){n=0===r?n.set(e,t):n.append(e,t)})):n=n.set(e,t[e]))};for(var a in t)o(a)}return n}function H(e){return function(t,n,o){var a=o.value;o.value=function(){var o,s,c,u;try{var p=e.path,f=Reflect.getOwnMetadata(g,t,n),l=[],d=void 0,h=new r.HttpParams;if(f)try{for(var y=i(f),v=y.next();!v.done;v=y.next()){if("param"===(x=v.value).type)l[x.index]=arguments[x.index],p=p.replace(":"+x.param,arguments[x.index]);else if("body"===x.type)l[x.index]=arguments[x.index],d=arguments[x.index];else if("queryParams"===x.type){l[x.index]=arguments[x.index];var b=arguments[x.index];e.options&&e.options.params&&(h=e.options.params instanceof r.HttpParams?j(e.options.params,h):j(h,e.options.params)),b&&(h=b instanceof r.HttpParams?j(b,h):j(h,b))}}}catch(e){o={error:e}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}var m=this.baseUrl+p,_=Object.assign({},e.options,{body:d,params:h}),H=this.buildRequest(e.method,m,_);if(f)try{for(var O=i(f),R=O.next();!R.done;R=O.next()){var x;"response"===(x=R.value).type&&(l[x.index]=H)}}catch(e){c={error:e}}finally{try{R&&!R.done&&(u=O.return)&&u.call(O)}finally{if(c)throw c.error}}var P=a.apply(this,l);return P===T||void 0===P?H:P}catch(e){console.error(e)}}}}e.CovalentHttpModule=m,e.HTTP_CONFIG=y,e.HTTP_INTERCEPTOR_PROVIDER=b,e.InternalHttpService=d,e.TdBody=function(){return _("body")},e.TdDELETE=function(e){return H(Object.assign({method:"DELETE"},e))},e.TdGET=function(e){return H(Object.assign({method:"GET"},e))},e.TdHttpService=p,e.TdPATCH=function(e){return H(Object.assign({method:"PATCH"},e))},e.TdPOST=function(e){return H(Object.assign({method:"POST"},e))},e.TdPUT=function(e){return H(Object.assign({method:"PUT"},e))},e.TdParam=function(e){return _("param",e)},e.TdQueryParams=function(){return _("queryParams")},e.TdResponse=function(){return _("response")},e.TdURLRegExpInterceptorMatcher=h,e.getInjector=l,e.httpFactory=v,e.mixinHttp=function(e,n,o){return void 0===o&&(o=p),function(s){function u(){var r=s.apply(this,c(arguments&&arguments.length?arguments:f((new t["ɵReflectionCapabilities"]).parameters(e),l())))||this;return r._injector=l(),r.buildConfig(),r}return a(u,s),Object.defineProperty(u.prototype,"baseUrl",{get:function(){return("string"==typeof this.basePath?this.basePath.replace(/\/$/,""):"")+this._baseUrl},enumerable:!0,configurable:!0}),u.prototype.buildConfig=function(){this.http=this._injector.get(o),this._baseUrl=n&&n.baseUrl?n.baseUrl.replace(/\/$/,""):"",this._baseHeaders=n&&n.baseHeaders?n.baseHeaders:new r.HttpHeaders,this._defaultObserve=n&&n.defaultObserve?n.defaultObserve:"body",this._defaultResponseType=n&&n.defaultResponseType?n.defaultResponseType:"json"},u.prototype.buildHeaders=function(){var e=this,t={};return this._baseHeaders.keys().forEach((function(r){t[r]=e._baseHeaders.get(r)})),new r.HttpHeaders(t)},u.prototype.buildRequest=function(e,t,r){return this._buildRequest(e,t,r)},u.prototype._buildRequest=function(e,t,n){var o,a;if(void 0===n&&(n={}),n.responseType||(n.responseType=this._defaultResponseType),n.observe||(n.observe=this._defaultObserve),n.headers){var s=this.buildHeaders();if(n.headers instanceof r.HttpHeaders)n.headers.keys().forEach((function(e){s=s.set(e,n.headers.get(e))}));else try{for(var c=i(Object.keys(n.headers)),u=c.next();!u.done;u=c.next()){var p=u.value;s=s.set(p,n.headers[p])}}catch(e){o={error:e}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}n.headers=s}else n.headers=this.buildHeaders();return(this.http.request(e,t,n))},u}(e)},e.ɵa=u,e.ɵb=d,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function a(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function i(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}var u=function(){function e(e,t,r){var n=this;this._injector=e,this._httpInterceptorMatcher=t,this._requestInterceptors=[],r.forEach((function(t){n._requestInterceptors.push({interceptor:e.get(t.interceptor),paths:t.paths})}))}return Object.defineProperty(e.prototype,"requestInterceptors",{get:function(){return this._requestInterceptors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"httpInterceptorMatcher",{get:function(){return this._httpInterceptorMatcher},enumerable:!0,configurable:!0}),e}();var p=function(e){function o(t,r){var n=e.call(this,t)||this;return n._handler=t,n._interceptorBehavior=r,n}return a(o,e),o.prototype.request=function(e,t,r){var n=this;void 0===r&&(r={});var o=this._interceptorBehavior.requestInterceptors.filter((function(e){return n._interceptorBehavior.httpInterceptorMatcher.matches({url:t},e)})).map((function(e){return e.interceptor}));return this._setupRequest(e,t,r,o)},o.prototype._setupRequest=function(t,r,o,a){try{o=this._requestResolve(o,a)}catch(e){return new n.Observable((function(t){t.error(e)}))}return this._handleResponseResolve(e.prototype.request.call(this,t,r,o),a)},o.prototype._requestResolve=function(e,t){return t.forEach((function(t){t.handleOptions&&(e=t.handleOptions(e))})),e},o.prototype._handleResponseResolve=function(e,t){return t.reverse(),t.forEach((function(t){t.handleResponse&&(e=t.handleResponse(e))})),e},o.decorators=[{type:t.Injectable}],o.ctorParameters=function(){return[{type:r.HttpHandler},{type:u}]},o}(r.HttpClient);function f(e,r){var n,o,a,s,c=[];try{for(var u=i(e),p=u.next();!p.done;p=u.next()){var f=p.value;if(f)if(Array.isArray(f)){if(0===f.length)throw new Error("Arguments array must have arguments.");var l=void 0,d=t.InjectFlags.Default;try{for(var h=(a=void 0,i(f)),y=h.next();!y.done;y=h.next()){var v=y.value;v instanceof t.Optional||"Optional"===v.ngMetadataName?d|=t.InjectFlags.Optional:v instanceof t.SkipSelf||"SkipSelf"===v.ngMetadataName?d|=t.InjectFlags.SkipSelf:v instanceof t.Self||"Self"===v.ngMetadataName?d|=t.InjectFlags.Self:l=v instanceof t.Inject?v.token:v}}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}c.push(r.get(l,d))}else c.push(r.get(f))}}catch(e){n={error:e}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return c}function l(){try{return t.inject(t.INJECTOR)}catch(e){if(!d._injector)throw new Error("Please add CovalentHttpModule into your imports.");return d._injector}}var d=function(){function e(t){e._injector=t}return e._injector=void 0,e.decorators=[{type:t.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:t.Injector}]},e.ɵprov=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(t.INJECTOR))},token:e,providedIn:"root"}),e}();var h=function(){function e(){}return e.prototype.matches=function(e,t){return t.paths.filter((function(t){return!!(t=t.replace(/\*\*/gi,"<>").replace(/\*/gi,"[^/?]+").replace(/<>/gi,"[^?]*"))&&(t+="(\\?{1}.*)?$",new RegExp(t).test(e.url))})).length>0},e}(),y=new t.InjectionToken("HTTP_CONFIG");function v(e,t,r){return new p(e,new u(t,new h,r.interceptors))}var b={provide:p,useFactory:v,deps:[r.HttpHandler,t.Injector,y]},m=function(){function e(e){this._internalHttpService=e}return e.forRoot=function(t){return void 0===t&&(t={interceptors:[]}),{ngModule:e,providers:[{provide:y,useValue:t},b]}},e.decorators=[{type:t.NgModule,args:[{imports:[r.HttpClientModule],providers:[d]}]}],e.ctorParameters=function(){return[{type:d}]},e}();var g=Symbol("TdHttpRESTParam");function _(e,t){return function(r,n,o){var a=Reflect.getOwnMetadata(g,r,n)||[];a.push({index:o,param:t,type:e}),Reflect.defineMetadata(g,a,r,n)}}var T=n.of(void 0);function j(e,t){var n=e;if(t instanceof r.HttpParams)t.keys().forEach((function(e){void 0!==t.get(e)&&t.getAll(e).forEach((function(t,r){n=0===r?n.set(e,t):n.append(e,t)}))}));else{var o=function(e){void 0!==t[e]&&(t[e]instanceof Array?t[e].forEach((function(t,r){n=0===r?n.set(e,t):n.append(e,t)})):n=n.set(e,t[e]))};for(var a in t)o(a)}return n}function H(e){return function(t,n,o){var a=o.value;o.value=function(){var o,s,c,u;try{var p=e.path,f=Reflect.getOwnMetadata(g,t,n),l=[],d=void 0,h=new r.HttpParams;if(f)try{for(var y=i(f),v=y.next();!v.done;v=y.next()){if("param"===(x=v.value).type)l[x.index]=arguments[x.index],p=p.replace(":"+x.param,arguments[x.index]);else if("body"===x.type)l[x.index]=arguments[x.index],d=arguments[x.index];else if("queryParams"===x.type){l[x.index]=arguments[x.index];var b=arguments[x.index];e.options&&e.options.params&&(h=e.options.params instanceof r.HttpParams?j(e.options.params,h):j(h,e.options.params)),b&&(h=b instanceof r.HttpParams?j(b,h):j(h,b))}}}catch(e){o={error:e}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}var m=this.baseUrl+p,_=Object.assign({},e.options,{body:d,params:h}),H=this.buildRequest(e.method,m,_);if(f)try{for(var O=i(f),R=O.next();!R.done;R=O.next()){var x;"response"===(x=R.value).type&&(l[x.index]=H)}}catch(e){c={error:e}}finally{try{R&&!R.done&&(u=O.return)&&u.call(O)}finally{if(c)throw c.error}}var P=a.apply(this,l);return P===T||void 0===P?H:P}catch(e){console.error(e)}}}}e.CovalentHttpModule=m,e.HTTP_CONFIG=y,e.HTTP_INTERCEPTOR_PROVIDER=b,e.InternalHttpService=d,e.TdBody=function(){return _("body")},e.TdDELETE=function(e){return H(Object.assign({method:"DELETE"},e))},e.TdGET=function(e){return H(Object.assign({method:"GET"},e))},e.TdHttpService=p,e.TdPATCH=function(e){return H(Object.assign({method:"PATCH"},e))},e.TdPOST=function(e){return H(Object.assign({method:"POST"},e))},e.TdPUT=function(e){return H(Object.assign({method:"PUT"},e))},e.TdParam=function(e){return _("param",e)},e.TdQueryParams=function(){return _("queryParams")},e.TdResponse=function(){return _("response")},e.TdURLRegExpInterceptorMatcher=h,e.getInjector=l,e.httpFactory=v,e.mixinHttp=function(e,n,o){return void 0===o&&(o=p),function(s){function u(){var r=s.apply(this,c(arguments&&arguments.length?arguments:f((new t.ɵReflectionCapabilities).parameters(e),l())))||this;return r._injector=l(),r.buildConfig(),r}return a(u,s),Object.defineProperty(u.prototype,"baseUrl",{get:function(){return("string"==typeof this.basePath?this.basePath.replace(/\/$/,""):"")+this._baseUrl},enumerable:!0,configurable:!0}),u.prototype.buildConfig=function(){this.http=this._injector.get(o),this._baseUrl=n&&n.baseUrl?n.baseUrl.replace(/\/$/,""):"",this._baseHeaders=n&&n.baseHeaders?n.baseHeaders:new r.HttpHeaders,this._defaultObserve=n&&n.defaultObserve?n.defaultObserve:"body",this._defaultResponseType=n&&n.defaultResponseType?n.defaultResponseType:"json"},u.prototype.buildHeaders=function(){var e=this,t={};return this._baseHeaders.keys().forEach((function(r){t[r]=e._baseHeaders.get(r)})),new r.HttpHeaders(t)},u.prototype.buildRequest=function(e,t,r){return this._buildRequest(e,t,r)},u.prototype._buildRequest=function(e,t,n){var o,a;if(void 0===n&&(n={}),n.responseType||(n.responseType=this._defaultResponseType),n.observe||(n.observe=this._defaultObserve),n.headers){var s=this.buildHeaders();if(n.headers instanceof r.HttpHeaders)n.headers.keys().forEach((function(e){s=s.set(e,n.headers.get(e))}));else try{for(var c=i(Object.keys(n.headers)),u=c.next();!u.done;u=c.next()){var p=u.value;s=s.set(p,n.headers[p])}}catch(e){o={error:e}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}n.headers=s}else n.headers=this.buildHeaders();return(this.http.request(e,t,n))},u}(e)},e.ɵa=u,e.ɵb=d,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=covalent-http.umd.min.js.map |
@@ -176,2 +176,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QtbWV0aG9kLmRlY29yYXRvci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bjb3ZhbGVudC9odHRwLyIsInNvdXJjZXMiOlsiYWN0aW9ucy9tZXRob2RzL2Fic3RyYWN0LW1ldGhvZC5kZWNvcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUdsRCxPQUFPLEVBQWUsZUFBZSxFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFFbEYsT0FBTyxFQUFjLEVBQUUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7QUFJdEMsTUFBTSxPQUFPLFNBQVMsR0FBb0IsRUFBRSxDQUFDLFNBQVMsQ0FBQzs7Ozs7Ozs7O0FBT3ZELE1BQU0sVUFBVSxXQUFXLENBQUMsTUFBa0IsRUFBRSxNQUF5RDs7UUFDbkcsV0FBVyxHQUFlLE1BQU07SUFDcEMsSUFBSSxNQUFNLFlBQVksVUFBVSxFQUFFO1FBQ2hDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsQ0FBQyxPQUFPOzs7O1FBQUMsQ0FBQyxHQUFXLEVBQUUsRUFBRTtZQUNwQyw2Qk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W1zKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgaWYgKHFQYXJhbXMpIHtcbiAgICAgICAgICAgICAgICBpZiAocVBhcmFtcyBpbnN0YW5jZW9mIEh0dHBQYXJhbXMpIHtcbiAgICAgICAgICAgICAgICAgIHF1ZXJ5UGFyYW1zID0gcGFyc2VQYXJhbXMocVBhcmFtcywgcXVlcnlQYXJhbXMpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICBxdWVyeVBhcmFtcyA9IHBhcnNlUGFyYW1zKHF1ZXJ5UGFyYW1zLCBxUGFyYW1zKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lXG4gICAgICAgIGxldCB1cmw6IHN0cmluZyA9IHRoaXMuYmFzZVVybCArIHJlcGxhY2VkUGF0aDtcbiAgICAgICAgY29uc3Qgb3B0aW9uczogSVRkSHR0cFJFU1RPcHRpb25zV2l0aEJvZHkgPSBPYmplY3QuYXNzaWduKHt9LCBjb25maWcub3B0aW9ucywge1xuICAgICAgICAgIGJvZHksXG4gICAgICAgICAgcGFyYW1zOiBxdWVyeVBhcmFtcyxcbiAgICAgICAgfSk7XG4gICAgICAgIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZVxuICAgICAgICBsZXQgcmVxdWVzdDogYW55ID0gdGhpcy5idWlsZFJlcXVlc3QoY29uZmlnLm1ldGhvZCwgdXJsLCBvcHRpb25zKTtcbiAgICAgICAgaWYgKHBhcmFtZXRlcnMpIHtcbiAgICAgICAgICAvLyBzZWUgd2hpY2ggb25lIHdhcyB0aGUgcmVzcG9uc2UgcGFyYW1ldGVyIHNvIHdlIGNhbiBzZXQgdGhlIHJlcXVlc3Qgb2JzZXJ2YWJsZVxuICAgICAgICAgIGZvciAoY29uc3QgcGFyYW1ldGVyIG9mIHBhcmFtZXRlcnMpIHtcbiAgICAgICAgICAgIGlmIChwYXJhbWV0ZXIudHlwZSA9PT0gJ3Jlc3BvbnNlJykge1xuICAgICAgICAgICAgICBuZXdBcmdzW3BhcmFtZXRlci5pbmRleF0gPSByZXF1ZXN0O1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICAvLyB0c2xpbnQ6ZGlzYWJsZS1uZXh0LWxpbmVcbiAgICAgICAgbGV0IHJlc3BvbnNlOiBhbnkgPSB3cmFwcGVkRnVuY3Rpb24uYXBwbHkodGhpcywgbmV3QXJncyk7XG4gICAgICAgIC8vIGlmIHRoZSByZXNwb25zZSBpcyBOT09QX0hUVFAgb3IgdW5kZWZpbmVkLCB0aGVuIHdlIHJldHVybiB0aGUgcmVxdWVzdCBhcyBpdCBpc1xuICAgICAgICAvLyBlbHNlIHdlIHJldHVybiB0aGUgcmVzcG9uc2UgZnJvbSB0aGUgaW5uZXIgZnVuY3Rpb25cbiAgICAgICAgaWYgKHJlc3BvbnNlID09PSBOT09QX0hUVFAgfHwgcmVzcG9uc2UgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgIHJldHVybiByZXF1ZXN0O1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHJldHVybiByZXNwb25zZTtcbiAgICAgICAgfVxuICAgICAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICAgICAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lXG4gICAgICAgIGNvbnNvbGUuZXJyb3IoZXJyb3IpO1xuICAgICAgfVxuICAgIH07XG4gIH07XG59XG4iXX0= |
@@ -32,2 +32,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QtcGFyYW0uZGVjb3JhdG9yLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNvdmFsZW50L2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RlckluZGV4OiBudW1iZXIpID0+IHZvaWQge1xuICByZXR1cm4gZnVuY3Rpb24gKHRhcmdldDogb2JqZWN0LCBwcm9wZXJ0eUtleTogc3RyaW5nIHwgc3ltYm9sLCBwYXJhbWV0ZXJJbmRleDogbnVtYmVyKTogdm9pZCB7XG4gICAgY29uc3QgcGFyYW1ldGVyczogeyBpbmRleDogbnVtYmVyOyBwYXJhbTogc3RyaW5nOyB0eXBlOiBUZFBhcmFtVHlwZSB9W10gPVxuICAgICAgUmVmbGVjdC5nZXRPd25NZXRhZGF0YSh0ZEh0dHBSRVNUUGFyYW0sIHRhcmdldCwgcHJvcGVydHlLZXkpIHx8IFtdO1xuICAgIHBhcmFtZXRlcnMucHVzaCh7XG4gICAgICBpbmRleDogcGFyYW1ldGVySW5kZXgsXG4gICAgICBwYXJhbSxcbiAgICAgIHR5cGUsXG4gICAgfSk7XG4gICAgUmVmbGVjdC5kZWZpbmVNZXRhZGF0YSh0ZEh0dHBSRVNUUGFyYW0sIHBhcmFtZXRlcnMsIHRhcmdldCwgcHJvcGVydHlLZXkpO1xuICB9O1xufVxuIl19 |
@@ -21,6 +21,3 @@ /** | ||
(path) => { | ||
path = path | ||
.replace(/\*\*/gi, '<>') | ||
.replace(/\*/gi, '[^/?]+') | ||
.replace(/<>/gi, '[^?]*'); | ||
path = path.replace(/\*\*/gi, '<>').replace(/\*/gi, '[^/?]+').replace(/<>/gi, '[^?]*'); | ||
if (path) { | ||
@@ -34,2 +31,2 @@ path += '(\\?{1}.*)?$'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsLXJlZ2V4cC1pbnRlcmNlcHRvci1tYXRjaGVyLmNsYXNzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNvdmFsZW50L2h0dHAvIiwic291cmNlcyI6WyJpbnRlcmNlcHRvcnMvdXJsLXJlZ2V4cC1pbnRlcmNlcHRvci1tYXRjaGVyLmNsYXNzLnRzIl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YXJhbXMsIHF1ZXJ5UGFyYW1zKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgcXVlcnlQYXJhbXMgPSBwYXJzZVBhcmFtcyhxdWVyeVBhcmFtcywgY29uZmlnLm9wdGlvbnMucGFyYW1zKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgaWYgKHFQYXJhbXMpIHtcbiAgICAgICAgICAgICAgICBpZiAocVBhcmFtcyBpbnN0YW5jZW9mIEh0dHBQYXJhbXMpIHtcbiAgICAgICAgICAgICAgICAgIHF1ZXJ5UGFyYW1zID0gcGFyc2VQYXJhbXMocVBhcmFtcywgcXVlcnlQYXJhbXMpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICBxdWVyeVBhcmFtcyA9IHBhcnNlUGFyYW1zKHF1ZXJ5UGFyYW1zLCBxUGFyYW1zKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lXG4gICAgICAgIGxldCB1cmw6IHN0cmluZyA9IHRoaXMuYmFzZVVybCArIHJlcGxhY2VkUGF0aDtcbiAgICAgICAgY29uc3Qgb3B0aW9uczogSVRkSHR0cFJFU1RPcHRpb25zV2l0aEJvZHkgPSBPYmplY3QuYXNzaWduKHt9LCBjb25maWcub3B0aW9ucywge1xuICAgICAgICAgIGJvZHksXG4gICAgICAgICAgcGFyYW1zOiBxdWVyeVBhcmFtcyxcbiAgICAgICAgfSk7XG4gICAgICAgIC8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZVxuICAgICAgICBsZXQgcmVxdWVzdDogYW55ID0gdGhpcy5idWlsZFJlcXVlc3QoY29uZmlnLm1ldGhvZCwgdXJsLCBvcHRpb25zKTtcbiAgICAgICA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6IEh0dHBQYXJhbXMgfCB7IFtrZXk6IHN0cmluZ106IHN0cmluZyB8IHN0cmluZ1tdIH0gPSBhcmd1bWVudHNbcGFyYW1ldGVyLmluZGV4XTtcbiAgICAgICAgICAgICAgaWYgKGNvbmZpZy5vcHRpb25zICYmIGNvbmZpZy5vcHRpb25zLnBhcmFtcykge1xuICAgICAgICAgICAgICAgIGlmIChjb25maWcub3B0aW9ucy5wYXJhbXMgaW5zdGFuY2VvZiBIdHRwUGFyYW1zKSB7XG4gICAgICAgICAgICAgICAgICBxdWVyeVBhcmFtcyA9IHBhcnNlUGFyYW1zKGNvbmZpZy5vcHRpb25zLnBhcmFtcywgcXVlcnlQYXJhbXMpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICBxdWVyeVBhcmFtcyA9IHBhcnNlUGFyYW1zKHF1ZXJ5UGFyYW1zLCBjb25maWcub3B0aW9ucy5wYXJhbXMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICBpZiAocVBhcmFtcykge1xuICAgICAgICAgICAgICAgIGlmIChxUGFyYW1zIGluc3RhbmNlb2YgSHR0cFBhcmFtcykge1xuICAgICAgICAgICAgICAgICAgcXVlcnlQYXJhbXMgPSBwYXJzZVBhcmFtcyhxUGFyYW1zLCBxdWVyeVBhcmFtcyk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgIHF1ZXJ5UGFyYW1zID0gcGFyc2VQYXJhbXMocXVlcnlQYXJhbXMsIHFQYXJhbXMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICAvLyB0c2xpbnQ6ZGlzYWJsZS1uZXh0LWxpbmVcbiAgICAgICAgbGV0IHVybDogc3RyaW5nID0gdGhpcy5iYXNlVXJsICsgcmVwbGFjZWRQYXRoO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JzLCB0YXJnZXQsIHByb3BlcnR5S2V5KTtcbiAgfTtcbn1cbiJdfQ== |
@@ -32,6 +32,3 @@ /** | ||
function (path) { | ||
path = path | ||
.replace(/\*\*/gi, '<>') | ||
.replace(/\*/gi, '[^/?]+') | ||
.replace(/<>/gi, '[^?]*'); | ||
path = path.replace(/\*\*/gi, '<>').replace(/\*/gi, '[^/?]+').replace(/<>/gi, '[^?]*'); | ||
if (path) { | ||
@@ -51,2 +48,2 @@ path += '(\\?{1}.*)?$'; | ||
export { TdURLRegExpInterceptorMatcher }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsLXJlZ2V4cC1pbnRlcmNlcHRvci1tYXRjaGVyLmNsYXNzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNvdmFsZW50L2h0dHAvIiwic291cmNlcyI6WyJpbnRlcmNlcHRvcnMvdXJsLXJlZ2V4cC1pbnRlcmNlcHRvci1tYXRjaGVyLmNsYXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBT0E7Ozs7O0lBQUE7SUFnQkEsQ0FBQzs7Ozs7O0lBZkMsK0NBQU87Ozs7O0lBQVAsVUFBUSxPQUF3QixFQUFFLE9BQWtDO1FBQ2xFLE9BQU8sQ0FDTCxPQUFPLENBQUMsS0FBSyxDQUFDLE1BQU07Ozs7UUFBQyxVQUFDLElBQVk7WUFDaEMsSUFBSSxHQUFHLElBQUk7aUJBQ1IsT0FBTyxDQUFDLFFBQVEsRUFBRSxJQUFJLENBQUM7aUJBQ3ZCLE9BQU8sQ0FBQyxNQUFNLEVBQUUsUUFBUSxDQUFDO2lCQUN6QixPQUFPLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxDQUFDO1lBQzVCLElBQUksSUFBSSxFQUFFO2dCQUNSLElBQUksSUFBSSxjQUFjLENBQUM7Z0JBQ3ZCLE9BQU8sSUFBSSxNQUFNLENBQUMsSUF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9dKicpO1xuICAgICAgICBpZiAocGF0aCkge1xuICAgICAgICAgIHBhdGggKz0gJyhcXFxcP3sxfS4qKT8kJztcbiAgICAgICAgICByZXR1cm4gbmV3IFJlZ0V4cChwYXRoKS50ZXN0KG9wdGlvbnMudXJsKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICB9KS5sZW5ndGggPiAwXG4gICAgKTtcbiAgfVxufVxuIl19 |
@@ -421,6 +421,3 @@ import { Injectable, InjectFlags, Optional, SkipSelf, Self, Inject, inject, INJECTOR, ɵReflectionCapabilities, Injector, ɵɵdefineInjectable, ɵɵinject, InjectionToken, NgModule } from '@angular/core'; | ||
(path) => { | ||
path = path | ||
.replace(/\*\*/gi, '<>') | ||
.replace(/\*/gi, '[^/?]+') | ||
.replace(/<>/gi, '[^?]*'); | ||
path = path.replace(/\*\*/gi, '<>').replace(/\*/gi, '[^/?]+').replace(/<>/gi, '[^?]*'); | ||
if (path) { | ||
@@ -427,0 +424,0 @@ path += '(\\?{1}.*)?$'; |
@@ -539,6 +539,3 @@ import { Injectable, InjectFlags, Optional, SkipSelf, Self, Inject, inject, INJECTOR, ɵReflectionCapabilities, Injector, ɵɵdefineInjectable, ɵɵinject, InjectionToken, NgModule } from '@angular/core'; | ||
function (path) { | ||
path = path | ||
.replace(/\*\*/gi, '<>') | ||
.replace(/\*/gi, '[^/?]+') | ||
.replace(/<>/gi, '[^?]*'); | ||
path = path.replace(/\*\*/gi, '<>').replace(/\*/gi, '[^/?]+').replace(/<>/gi, '[^?]*'); | ||
if (path) { | ||
@@ -545,0 +542,0 @@ path += '(\\?{1}.*)?$'; |
{ | ||
"name": "@covalent/http", | ||
"version": "3.1.0-beta.1", | ||
"version": "3.1.0-beta.2", | ||
"description": "Teradata UI Platform HttpClient Helper Module", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
527245
5589
1