fix(http/http): allow for commonjs as ngHttp
when using the commonjs build for node the module ngHttp can not find module(s) `http/src/http`. currently Closes #3633
This commit is contained in:
parent
63a94ee941
commit
16eb8ced58
|
@ -5,34 +5,34 @@
|
||||||
* class.
|
* class.
|
||||||
*/
|
*/
|
||||||
import {bind, Binding} from 'angular2/di';
|
import {bind, Binding} from 'angular2/di';
|
||||||
import {Http, Jsonp} from 'http/src/http';
|
import {Http, Jsonp} from './src/http';
|
||||||
import {XHRBackend, XHRConnection} from 'http/src/backends/xhr_backend';
|
import {XHRBackend, XHRConnection} from './src/backends/xhr_backend';
|
||||||
import {JSONPBackend, JSONPConnection} from 'http/src/backends/jsonp_backend';
|
import {JSONPBackend, JSONPConnection} from './src/backends/jsonp_backend';
|
||||||
import {BrowserXhr} from 'http/src/backends/browser_xhr';
|
import {BrowserXhr} from './src/backends/browser_xhr';
|
||||||
import {BrowserJsonp} from 'http/src/backends/browser_jsonp';
|
import {BrowserJsonp} from './src/backends/browser_jsonp';
|
||||||
import {BaseRequestOptions, RequestOptions} from 'http/src/base_request_options';
|
import {BaseRequestOptions, RequestOptions} from './src/base_request_options';
|
||||||
import {ConnectionBackend} from 'http/src/interfaces';
|
import {ConnectionBackend} from './src/interfaces';
|
||||||
import {BaseResponseOptions, ResponseOptions} from 'http/src/base_response_options';
|
import {BaseResponseOptions, ResponseOptions} from './src/base_response_options';
|
||||||
|
|
||||||
export {MockConnection, MockBackend} from 'http/src/backends/mock_backend';
|
export {MockConnection, MockBackend} from './src/backends/mock_backend';
|
||||||
export {Request} from 'http/src/static_request';
|
export {Request} from './src/static_request';
|
||||||
export {Response} from 'http/src/static_response';
|
export {Response} from './src/static_response';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
RequestOptionsArgs,
|
RequestOptionsArgs,
|
||||||
ResponseOptionsArgs,
|
ResponseOptionsArgs,
|
||||||
Connection,
|
Connection,
|
||||||
ConnectionBackend
|
ConnectionBackend
|
||||||
} from 'http/src/interfaces';
|
} from './src/interfaces';
|
||||||
|
|
||||||
export {BrowserXhr} from 'http/src/backends/browser_xhr';
|
export {BrowserXhr} from './src/backends/browser_xhr';
|
||||||
export {BaseRequestOptions, RequestOptions} from 'http/src/base_request_options';
|
export {BaseRequestOptions, RequestOptions} from './src/base_request_options';
|
||||||
export {BaseResponseOptions, ResponseOptions} from 'http/src/base_response_options';
|
export {BaseResponseOptions, ResponseOptions} from './src/base_response_options';
|
||||||
export {XHRBackend, XHRConnection} from 'http/src/backends/xhr_backend';
|
export {XHRBackend, XHRConnection} from './src/backends/xhr_backend';
|
||||||
export {JSONPBackend, JSONPConnection} from 'http/src/backends/jsonp_backend';
|
export {JSONPBackend, JSONPConnection} from './src/backends/jsonp_backend';
|
||||||
export {Http, Jsonp} from 'http/src/http';
|
export {Http, Jsonp} from './src/http';
|
||||||
|
|
||||||
export {Headers} from 'http/src/headers';
|
export {Headers} from './src/headers';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
ResponseTypes,
|
ResponseTypes,
|
||||||
|
@ -41,8 +41,8 @@ export {
|
||||||
RequestCredentialsOpts,
|
RequestCredentialsOpts,
|
||||||
RequestCacheOpts,
|
RequestCacheOpts,
|
||||||
RequestModesOpts
|
RequestModesOpts
|
||||||
} from 'http/src/enums';
|
} from './src/enums';
|
||||||
export {URLSearchParams} from 'http/src/url_search_params';
|
export {URLSearchParams} from './src/url_search_params';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides a basic set of injectables to use the {@link Http} service in any application.
|
* Provides a basic set of injectables to use the {@link Http} service in any application.
|
||||||
|
|
Loading…
Reference in New Issue