@covalent/http
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"RESTService":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":40,"character":20,"context":{"typeName":"IHttp"}},{"__symbolic":"error","message":"Could not resolve type","line":40,"character":35,"context":{"typeName":"IRestConfig"}}]}],"query":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"buildRequestOptions":[{"__symbolic":"method"}],"buildUrl":[{"__symbolic":"method"}],"buildQuery":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"RESTService":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"error","message":"Could not resolve type","line":40,"character":20,"context":{"typeName":"IHttp"}},{"__symbolic":"error","message":"Could not resolve type","line":40,"character":35,"context":{"typeName":"IRestConfig"}}]}],"query":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"buildRequestOptions":[{"__symbolic":"method"}],"buildUrl":[{"__symbolic":"method"}],"buildQuery":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"IRestTransform":{"__symbolic":"interface"},"IRestConfig":{"__symbolic":"interface"},"IRestQuery":{"__symbolic":"interface"},"IHttp":{"__symbolic":"interface"},"RESTService":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"any"}]}],"query":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"buildRequestOptions":[{"__symbolic":"method"}],"buildUrl":[{"__symbolic":"method"}],"buildQuery":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"IRestTransform":{"__symbolic":"interface"},"IRestConfig":{"__symbolic":"interface"},"IRestQuery":{"__symbolic":"interface"},"IHttp":{"__symbolic":"interface"},"RESTService":{"__symbolic":"class","arity":1,"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"any"}]}],"query":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"create":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"delete":[{"__symbolic":"method"}],"buildRequestOptions":[{"__symbolic":"method"}],"buildUrl":[{"__symbolic":"method"}],"buildQuery":[{"__symbolic":"method"}]}}}}] |
@@ -1,5 +0,5 @@ | ||
import { ModuleWithProviders, Injector, OpaqueToken } from '@angular/core'; | ||
import { ModuleWithProviders, Injector, InjectionToken } from '@angular/core'; | ||
import { Http } from '@angular/http'; | ||
import { HttpInterceptorService, IHttpInterceptorConfig } from './interceptors/http-interceptor.service'; | ||
export declare const HTTP_CONFIG: OpaqueToken; | ||
export declare const HTTP_CONFIG: InjectionToken<HttpConfig>; | ||
export declare type HttpConfig = { | ||
@@ -6,0 +6,0 @@ interceptors: IHttpInterceptorConfig[]; |
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
import { NgModule, Injector, OpaqueToken } from '@angular/core'; | ||
import { NgModule, Injector, InjectionToken } from '@angular/core'; | ||
import { HttpModule, Http } from '@angular/http'; | ||
import { HttpInterceptorService } from './interceptors/http-interceptor.service'; | ||
import { URLRegExpInterceptorMatcher } from './interceptors/url-regexp-interceptor-matcher.class'; | ||
export var HTTP_CONFIG = new OpaqueToken('HTTP_CONFIG'); | ||
export var HTTP_CONFIG = new InjectionToken('HTTP_CONFIG'); | ||
export function httpFactory(http, injector, config) { | ||
@@ -14,0 +14,0 @@ return new HttpInterceptorService(http, injector, new URLRegExpInterceptorMatcher(), config.interceptors); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"HTTP_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["HTTP_CONFIG"]},"httpFactory":{"__symbolic":"function","parameters":["http","injector","config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./interceptors/http-interceptor.service","name":"HttpInterceptorService"},"arguments":[{"__symbolic":"reference","name":"http"},{"__symbolic":"reference","name":"injector"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./interceptors/url-regexp-interceptor-matcher.class","name":"URLRegExpInterceptorMatcher"}},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"interceptors"}]}},"CovalentHttpModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/http","name":"HttpModule"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"CovalentHttpModule"},"providers":[{"provide":{"__symbolic":"reference","name":"HTTP_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","module":"./interceptors/http-interceptor.service","name":"HttpInterceptorService"},"useFactory":{"__symbolic":"reference","name":"httpFactory"},"deps":[{"__symbolic":"reference","module":"@angular/http","name":"Http"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"HTTP_CONFIG"}]}]},"defaults":[{"interceptors":[]}]}}}}},{"__symbolic":"module","version":1,"metadata":{"HTTP_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"OpaqueToken"},"arguments":["HTTP_CONFIG"]},"httpFactory":{"__symbolic":"function","parameters":["http","injector","config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./interceptors/http-interceptor.service","name":"HttpInterceptorService"},"arguments":[{"__symbolic":"reference","name":"http"},{"__symbolic":"reference","name":"injector"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./interceptors/url-regexp-interceptor-matcher.class","name":"URLRegExpInterceptorMatcher"}},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"interceptors"}]}},"CovalentHttpModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/http","name":"HttpModule"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"CovalentHttpModule"},"providers":[{"provide":{"__symbolic":"reference","name":"HTTP_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","module":"./interceptors/http-interceptor.service","name":"HttpInterceptorService"},"useFactory":{"__symbolic":"reference","name":"httpFactory"},"deps":[{"__symbolic":"reference","module":"@angular/http","name":"Http"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"HTTP_CONFIG"}]}]},"defaults":[{"interceptors":[]}]}}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"HTTP_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["HTTP_CONFIG"]},"httpFactory":{"__symbolic":"function","parameters":["http","injector","config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./interceptors/http-interceptor.service","name":"HttpInterceptorService"},"arguments":[{"__symbolic":"reference","name":"http"},{"__symbolic":"reference","name":"injector"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./interceptors/url-regexp-interceptor-matcher.class","name":"URLRegExpInterceptorMatcher"}},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"interceptors"}]}},"CovalentHttpModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/http","name":"HttpModule"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"CovalentHttpModule"},"providers":[{"provide":{"__symbolic":"reference","name":"HTTP_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","module":"./interceptors/http-interceptor.service","name":"HttpInterceptorService"},"useFactory":{"__symbolic":"reference","name":"httpFactory"},"deps":[{"__symbolic":"reference","module":"@angular/http","name":"Http"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"HTTP_CONFIG"}]}]},"defaults":[{"interceptors":[]}]}}}}},{"__symbolic":"module","version":1,"metadata":{"HTTP_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["HTTP_CONFIG"]},"httpFactory":{"__symbolic":"function","parameters":["http","injector","config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./interceptors/http-interceptor.service","name":"HttpInterceptorService"},"arguments":[{"__symbolic":"reference","name":"http"},{"__symbolic":"reference","name":"injector"},{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./interceptors/url-regexp-interceptor-matcher.class","name":"URLRegExpInterceptorMatcher"}},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"interceptors"}]}},"CovalentHttpModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/http","name":"HttpModule"}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"CovalentHttpModule"},"providers":[{"provide":{"__symbolic":"reference","name":"HTTP_CONFIG"},"useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","module":"./interceptors/http-interceptor.service","name":"HttpInterceptorService"},"useFactory":{"__symbolic":"reference","name":"httpFactory"},"deps":[{"__symbolic":"reference","module":"@angular/http","name":"Http"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","name":"HTTP_CONFIG"}]}]},"defaults":[{"interceptors":[]}]}}}}}] |
@@ -170,12 +170,3 @@ (function (global, factory) { | ||
var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (window && window.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
exports.HttpInterceptorService = (function () { | ||
var HttpInterceptorService = (function () { | ||
function HttpInterceptorService(_http, _injector, _httpInterceptorMatcher, requestInterceptorConfigs) { | ||
@@ -312,7 +303,2 @@ var _this = this; | ||
}()); | ||
exports.HttpInterceptorService = __decorate([ | ||
_angular_core.Injectable(), | ||
__metadata("design:paramtypes", [_angular_http.Http, | ||
_angular_core.Injector, Object, Array]) | ||
], exports.HttpInterceptorService); | ||
@@ -341,3 +327,3 @@ /** | ||
var __decorate$1 = (window && window.__decorate) || function (decorators, target, key, desc) { | ||
var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
@@ -348,5 +334,5 @@ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
}; | ||
var HTTP_CONFIG = new _angular_core.OpaqueToken('HTTP_CONFIG'); | ||
var HTTP_CONFIG = new _angular_core.InjectionToken('HTTP_CONFIG'); | ||
function httpFactory(http, injector, config) { | ||
return new exports.HttpInterceptorService(http, injector, new URLRegExpInterceptorMatcher(), config.interceptors); | ||
return new HttpInterceptorService(http, injector, new URLRegExpInterceptorMatcher(), config.interceptors); | ||
} | ||
@@ -364,3 +350,3 @@ exports.CovalentHttpModule = CovalentHttpModule_1 = (function () { | ||
}, { | ||
provide: exports.HttpInterceptorService, | ||
provide: HttpInterceptorService, | ||
useFactory: httpFactory, | ||
@@ -374,3 +360,3 @@ deps: [_angular_http.Http, _angular_core.Injector, HTTP_CONFIG], | ||
}()); | ||
exports.CovalentHttpModule = CovalentHttpModule_1 = __decorate$1([ | ||
exports.CovalentHttpModule = CovalentHttpModule_1 = __decorate([ | ||
_angular_core.NgModule({ | ||
@@ -385,2 +371,3 @@ imports: [ | ||
exports.RESTService = RESTService; | ||
exports.HttpInterceptorService = HttpInterceptorService; | ||
@@ -387,0 +374,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -1,12 +0,2 @@ | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
import { Injectable, Injector } from '@angular/core'; | ||
import { Http, Request, RequestMethod } from '@angular/http'; | ||
import { Request, RequestMethod } from '@angular/http'; | ||
import { Observable } from 'rxjs/Observable'; | ||
@@ -145,8 +135,3 @@ var HttpInterceptorService = (function () { | ||
}()); | ||
HttpInterceptorService = __decorate([ | ||
Injectable(), | ||
__metadata("design:paramtypes", [Http, | ||
Injector, Object, Array]) | ||
], HttpInterceptorService); | ||
export { HttpInterceptorService }; | ||
//# sourceMappingURL=http-interceptor.service.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"HttpInterceptorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./http-interceptor-matcher.interface","name":"IHttpInterceptorMatcher"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":23,"character":41,"context":{"typeName":"IHttpInterceptorConfig"}}]}]}],"delete":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"head":[{"__symbolic":"method"}],"patch":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"request":[{"__symbolic":"method"}],"_setupRequest":[{"__symbolic":"method"}],"_requestResolve":[{"__symbolic":"method"}],"_responseResolve":[{"__symbolic":"method"}],"_responseErrorResolve":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"HttpInterceptorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./http-interceptor-matcher.interface","name":"IHttpInterceptorMatcher"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":23,"character":41,"context":{"typeName":"IHttpInterceptorConfig"}}]}]}],"delete":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"head":[{"__symbolic":"method"}],"patch":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"request":[{"__symbolic":"method"}],"_setupRequest":[{"__symbolic":"method"}],"_requestResolve":[{"__symbolic":"method"}],"_responseResolve":[{"__symbolic":"method"}],"_responseErrorResolve":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"IHttpInterceptorConfig":{"__symbolic":"interface"},"HttpInterceptorService":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./http-interceptor-matcher.interface","name":"IHttpInterceptorMatcher"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"delete":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"head":[{"__symbolic":"method"}],"patch":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"request":[{"__symbolic":"method"}],"_setupRequest":[{"__symbolic":"method"}],"_requestResolve":[{"__symbolic":"method"}],"_responseResolve":[{"__symbolic":"method"}],"_responseErrorResolve":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"IHttpInterceptorConfig":{"__symbolic":"interface"},"HttpInterceptorService":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"},{"__symbolic":"reference","module":"@angular/core","name":"Injector"},{"__symbolic":"reference","module":"./http-interceptor-matcher.interface","name":"IHttpInterceptorMatcher"},{"__symbolic":"reference","name":"Array","arguments":[{"__symbolic":"reference","name":"any"}]}]}],"delete":[{"__symbolic":"method"}],"get":[{"__symbolic":"method"}],"head":[{"__symbolic":"method"}],"patch":[{"__symbolic":"method"}],"post":[{"__symbolic":"method"}],"put":[{"__symbolic":"method"}],"request":[{"__symbolic":"method"}],"_setupRequest":[{"__symbolic":"method"}],"_requestResolve":[{"__symbolic":"method"}],"_responseResolve":[{"__symbolic":"method"}],"_responseErrorResolve":[{"__symbolic":"method"}]}}}}] |
{ | ||
"name": "@covalent/http", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"description": "Teradata UI Platform Http Helper Module", | ||
@@ -40,5 +40,5 @@ "main": "./http.umd.js", | ||
"peerDependencies": { | ||
"@angular/core": "^2.4.5", | ||
"@angular/http": "^2.4.5" | ||
"@angular/core": "^4.0.0", | ||
"@angular/http": "^4.0.0" | ||
} | ||
} |
@@ -91,3 +91,3 @@ # HttpInterceptorService | ||
imports: [ | ||
HttpModule, /* or CovalentCoreModule.forRoot() */ | ||
HttpModule, /* or CovalentCoreModule */ | ||
CovalentHttpModule.forRoot({ | ||
@@ -94,0 +94,0 @@ interceptors: [{ |
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
35
81669
851