@covalent/http
Advanced tools
Comparing version 0.10.2 to 1.0.0-beta.1
@@ -0,0 +0,0 @@ import { Headers, RequestOptionsArgs, Response, Request } from '@angular/http'; |
import { Headers } from '@angular/http'; | ||
import { Observable } from 'rxjs/Observable'; | ||
export var RESTService = (function () { | ||
var RESTService = (function () { | ||
function RESTService(http, config) { | ||
@@ -165,3 +165,3 @@ this.http = http; | ||
}()); | ||
//# sourceMappingURL=http-rest.service.js.map | ||
export { RESTService }; | ||
//# sourceMappingURL=http-rest.service.js.map |
@@ -0,0 +0,0 @@ import { Headers, RequestOptionsArgs, Response, Request } from '@angular/http'; |
@@ -0,0 +0,0 @@ import { ModuleWithProviders, Injector, OpaqueToken } from '@angular/core'; |
@@ -7,5 +7,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
import { NgModule, Injector, OpaqueToken } from '@angular/core'; | ||
@@ -19,3 +16,3 @@ import { HttpModule, Http } from '@angular/http'; | ||
} | ||
export var CovalentHttpModule = (function () { | ||
var CovalentHttpModule = CovalentHttpModule_1 = (function () { | ||
function CovalentHttpModule() { | ||
@@ -26,3 +23,3 @@ } | ||
return { | ||
ngModule: CovalentHttpModule, | ||
ngModule: CovalentHttpModule_1, | ||
providers: [{ | ||
@@ -39,13 +36,13 @@ provide: HTTP_CONFIG, | ||
}; | ||
CovalentHttpModule = __decorate([ | ||
NgModule({ | ||
imports: [ | ||
HttpModule, | ||
], | ||
}), | ||
__metadata('design:paramtypes', []) | ||
], CovalentHttpModule); | ||
return CovalentHttpModule; | ||
}()); | ||
//# sourceMappingURL=http.module.js.map | ||
CovalentHttpModule = CovalentHttpModule_1 = __decorate([ | ||
NgModule({ | ||
imports: [ | ||
HttpModule, | ||
], | ||
}) | ||
], CovalentHttpModule); | ||
export { CovalentHttpModule }; | ||
var CovalentHttpModule_1; | ||
//# sourceMappingURL=http.module.js.map |
@@ -0,0 +0,0 @@ import { NgModule, ModuleWithProviders, Injector, OpaqueToken } from '@angular/core'; |
@@ -179,3 +179,3 @@ (function (global, factory) { | ||
}; | ||
var HttpInterceptorService = (function () { | ||
exports.HttpInterceptorService = (function () { | ||
function HttpInterceptorService(_http, _injector, _httpInterceptorMatcher, requestInterceptorConfigs) { | ||
@@ -310,8 +310,9 @@ var _this = this; | ||
}; | ||
HttpInterceptorService = __decorate([ | ||
_angular_core.Injectable(), | ||
__metadata('design:paramtypes', [_angular_http.Http, _angular_core.Injector, Object, Array]) | ||
], HttpInterceptorService); | ||
return HttpInterceptorService; | ||
}()); | ||
exports.HttpInterceptorService = __decorate([ | ||
_angular_core.Injectable(), | ||
__metadata("design:paramtypes", [_angular_http.Http, | ||
_angular_core.Injector, Object, Array]) | ||
], exports.HttpInterceptorService); | ||
@@ -346,10 +347,7 @@ /** | ||
}; | ||
var __metadata$1 = (window && window.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var HTTP_CONFIG = new _angular_core.OpaqueToken('HTTP_CONFIG'); | ||
function httpFactory(http, injector, config) { | ||
return new HttpInterceptorService(http, injector, new URLRegExpInterceptorMatcher(), config.interceptors); | ||
return new exports.HttpInterceptorService(http, injector, new URLRegExpInterceptorMatcher(), config.interceptors); | ||
} | ||
var CovalentHttpModule = (function () { | ||
exports.CovalentHttpModule = CovalentHttpModule_1 = (function () { | ||
function CovalentHttpModule() { | ||
@@ -360,3 +358,3 @@ } | ||
return { | ||
ngModule: CovalentHttpModule, | ||
ngModule: CovalentHttpModule_1, | ||
providers: [{ | ||
@@ -366,3 +364,3 @@ provide: HTTP_CONFIG, | ||
}, { | ||
provide: HttpInterceptorService, | ||
provide: exports.HttpInterceptorService, | ||
useFactory: httpFactory, | ||
@@ -374,16 +372,14 @@ deps: [_angular_http.Http, _angular_core.Injector, HTTP_CONFIG], | ||
}; | ||
CovalentHttpModule = __decorate$1([ | ||
_angular_core.NgModule({ | ||
imports: [ | ||
_angular_http.HttpModule, | ||
], | ||
}), | ||
__metadata$1('design:paramtypes', []) | ||
], CovalentHttpModule); | ||
return CovalentHttpModule; | ||
}()); | ||
exports.CovalentHttpModule = CovalentHttpModule_1 = __decorate$1([ | ||
_angular_core.NgModule({ | ||
imports: [ | ||
_angular_http.HttpModule, | ||
], | ||
}) | ||
], exports.CovalentHttpModule); | ||
var CovalentHttpModule_1; | ||
exports.RESTService = RESTService; | ||
exports.HttpInterceptorService = HttpInterceptorService; | ||
exports.CovalentHttpModule = CovalentHttpModule; | ||
@@ -390,0 +386,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -0,0 +0,0 @@ export { RESTService, IRestTransform, IRestConfig, IRestQuery, IHttp } from './http-rest.service'; |
export { RESTService } from './http-rest.service'; | ||
export { HttpInterceptorService } from './interceptors/http-interceptor.service'; | ||
export { CovalentHttpModule } from './http.module'; | ||
//# sourceMappingURL=index.js.map | ||
//# sourceMappingURL=index.js.map |
@@ -0,0 +0,0 @@ export { RESTService, IRestTransform, IRestConfig, IRestQuery, IHttp } from './http-rest.service'; |
@@ -0,0 +0,0 @@ import { IHttpInterceptor } from './http-interceptor.interface'; |
@@ -1,3 +0,1 @@ | ||
//# sourceMappingURL=http-interceptor-mapping.interface.js.map | ||
//# sourceMappingURL=http-interceptor-mapping.interface.js.map |
@@ -0,0 +0,0 @@ import { IHttpInterceptor } from './http-interceptor.interface'; |
@@ -0,0 +0,0 @@ import { RequestOptionsArgs } from '@angular/http'; |
@@ -1,3 +0,1 @@ | ||
//# sourceMappingURL=http-interceptor-matcher.interface.js.map | ||
//# sourceMappingURL=http-interceptor-matcher.interface.js.map |
@@ -0,0 +0,0 @@ import { RequestOptionsArgs } from '@angular/http'; |
@@ -0,0 +0,0 @@ import { RequestOptionsArgs, Response } from '@angular/http'; |
@@ -1,3 +0,1 @@ | ||
//# sourceMappingURL=http-interceptor.interface.js.map | ||
//# sourceMappingURL=http-interceptor.interface.js.map |
@@ -0,0 +0,0 @@ import { RequestOptionsArgs, Response } from '@angular/http'; |
@@ -0,0 +0,0 @@ import { Type, Injector } from '@angular/core'; |
@@ -13,3 +13,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
import { Observable } from 'rxjs/Observable'; | ||
export var HttpInterceptorService = (function () { | ||
var HttpInterceptorService = (function () { | ||
function HttpInterceptorService(_http, _injector, _httpInterceptorMatcher, requestInterceptorConfigs) { | ||
@@ -144,9 +144,10 @@ var _this = this; | ||
}; | ||
HttpInterceptorService = __decorate([ | ||
Injectable(), | ||
__metadata('design:paramtypes', [Http, Injector, Object, Array]) | ||
], HttpInterceptorService); | ||
return HttpInterceptorService; | ||
}()); | ||
//# sourceMappingURL=http-interceptor.service.js.map | ||
HttpInterceptorService = __decorate([ | ||
Injectable(), | ||
__metadata("design:paramtypes", [Http, | ||
Injector, Object, Array]) | ||
], HttpInterceptorService); | ||
export { HttpInterceptorService }; | ||
//# sourceMappingURL=http-interceptor.service.js.map |
@@ -0,0 +0,0 @@ import { Injectable, Type, Injector } from '@angular/core'; |
@@ -0,0 +0,0 @@ import { RequestOptionsArgs } from '@angular/http'; |
@@ -5,3 +5,3 @@ /** | ||
*/ | ||
export var URLRegExpInterceptorMatcher = (function () { | ||
var URLRegExpInterceptorMatcher = (function () { | ||
function URLRegExpInterceptorMatcher() { | ||
@@ -23,3 +23,3 @@ } | ||
}()); | ||
//# sourceMappingURL=url-regexp-interceptor-matcher.class.js.map | ||
export { URLRegExpInterceptorMatcher }; | ||
//# sourceMappingURL=url-regexp-interceptor-matcher.class.js.map |
@@ -0,0 +0,0 @@ import { RequestOptionsArgs } from '@angular/http'; |
{ | ||
"name": "@covalent/http", | ||
"version": "0.10.2", | ||
"version": "1.0.0-beta.1", | ||
"description": "Teradata UI Platform Http Helper Module", | ||
"main": "./http.umd.js", | ||
"module": "./index.js", | ||
"typings": "./index.d.ts", | ||
"keywords": [ | ||
@@ -37,5 +40,5 @@ "angular", | ||
"dependencies": { | ||
"@angular/core": "^2.4.1", | ||
"@angular/http": "^2.4.1" | ||
"@angular/core": "^2.4.4", | ||
"@angular/http": "^2.4.4" | ||
} | ||
} |
@@ -48,3 +48,3 @@ # HttpInterceptorService | ||
if (/*somethingWrong*/) { | ||
throw 'error message for subscription error callback'; | ||
throw new Error('error message for subscription error callback'); | ||
} | ||
@@ -59,3 +59,3 @@ return requestOptions; | ||
if (cantRecover) { | ||
throw 'error message for subscription error callback'; // or return undefined; | ||
throw new Error('error message for subscription error callback'); // or return undefined; | ||
} | ||
@@ -62,0 +62,0 @@ return requestOptions; |
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
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
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
98744
1273
Updated@angular/core@^2.4.4
Updated@angular/http@^2.4.4