Skip to content

Commit d725c6e

Browse files
AndrewKushnirthePunderWoman
authored andcommitted
refactor(common): convert scripts within packages/common to relative imports (angular#60676)
This commit updates scripts within `packages/common` to relative imports as a prep work to the upcoming infra updates. PR Close angular#60676
1 parent 7edca03 commit d725c6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+127
-145
lines changed

packages/common/http/src/interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {isPlatformServer} from '@angular/common';
9+
import {isPlatformServer} from '../../index';
1010
import {
1111
EnvironmentInjector,
1212
inject,

packages/common/http/src/jsonp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {DOCUMENT} from '@angular/common';
9+
import {DOCUMENT} from '../../index';
1010
import {
1111
EnvironmentInjector,
1212
Inject,

packages/common/http/src/xhr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {XhrFactory} from '@angular/common';
9+
import {XhrFactory} from '../../index';
1010
import {Injectable, ɵRuntimeError as RuntimeError} from '@angular/core';
1111
import {from, Observable, Observer, of} from 'rxjs';
1212
import {switchMap} from 'rxjs/operators';

packages/common/http/src/xsrf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {DOCUMENT, ɵparseCookieValue as parseCookieValue} from '@angular/common';
9+
import {DOCUMENT, ɵparseCookieValue as parseCookieValue} from '../../index';
1010
import {
1111
EnvironmentInjector,
1212
Inject,

packages/common/http/test/client_spec.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {HttpClient} from '@angular/common/http/src/client';
10-
import {
11-
HttpErrorResponse,
12-
HttpEventType,
13-
HttpResponse,
14-
HttpStatusCode,
15-
} from '@angular/common/http/src/response';
16-
import {HttpClientTestingBackend} from '@angular/common/http/testing/src/backend';
9+
import {HttpClient} from '../src/client';
10+
import {HttpErrorResponse, HttpEventType, HttpResponse, HttpStatusCode} from '../src/response';
11+
import {HttpClientTestingBackend} from '../testing/src/backend';
1712
import {toArray} from 'rxjs/operators';
1813

1914
describe('HttpClient', () => {

packages/common/http/test/fetch_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {HttpEvent, HttpEventType, HttpRequest, HttpResponse} from '@angular/common/http';
9+
import {HttpEvent, HttpEventType, HttpRequest, HttpResponse} from '../index';
1010
import {TestBed} from '@angular/core/testing';
1111
import {Observable, of, Subject} from 'rxjs';
1212
import {catchError, retry, scan, skip, take, toArray} from 'rxjs/operators';

packages/common/http/test/headers_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {HttpHeaders} from '@angular/common/http/src/headers';
9+
import {HttpHeaders} from '../src/headers';
1010

1111
describe('HttpHeaders', () => {
1212
describe('initialization', () => {

packages/common/http/test/jsonp_spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {HttpHeaders} from '@angular/common/http/src/headers';
9+
import {HttpHeaders} from '../src/headers';
1010
import {
1111
JSONP_ERR_HEADERS_NOT_SUPPORTED,
1212
JSONP_ERR_NO_CALLBACK,
1313
JSONP_ERR_WRONG_METHOD,
1414
JSONP_ERR_WRONG_RESPONSE_TYPE,
1515
JsonpClientBackend,
16-
} from '@angular/common/http/src/jsonp';
17-
import {HttpRequest} from '@angular/common/http/src/request';
18-
import {HttpErrorResponse, HttpEventType} from '@angular/common/http/src/response';
16+
} from '../src/jsonp';
17+
import {HttpRequest} from '../src/request';
18+
import {HttpErrorResponse, HttpEventType} from '../src/response';
1919
import {toArray} from 'rxjs/operators';
2020

2121
import {MockDocument} from './jsonp_mock';

packages/common/http/test/module_spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {HttpHandler} from '@angular/common/http/src/backend';
10-
import {HttpClient} from '@angular/common/http/src/client';
11-
import {HttpContext, HttpContextToken} from '@angular/common/http/src/context';
12-
import {HTTP_INTERCEPTORS, HttpInterceptor} from '@angular/common/http/src/interceptor';
13-
import {HttpRequest} from '@angular/common/http/src/request';
14-
import {HttpEvent, HttpResponse} from '@angular/common/http/src/response';
15-
import {HttpTestingController} from '@angular/common/http/testing/src/api';
16-
import {HttpClientTestingModule} from '@angular/common/http/testing/src/module';
17-
import {TestRequest} from '@angular/common/http/testing/src/request';
9+
import {HttpHandler} from '../src/backend';
10+
import {HttpClient} from '../src/client';
11+
import {HttpContext, HttpContextToken} from '../src/context';
12+
import {HTTP_INTERCEPTORS, HttpInterceptor} from '../src/interceptor';
13+
import {HttpRequest} from '../src/request';
14+
import {HttpEvent, HttpResponse} from '../src/response';
15+
import {HttpTestingController} from '../testing/src/api';
16+
import {HttpClientTestingModule} from '../testing/src/module';
17+
import {TestRequest} from '../testing/src/request';
1818
import {Injectable, Injector} from '@angular/core';
1919
import {TestBed} from '@angular/core/testing';
2020
import {Observable} from 'rxjs';

packages/common/http/test/params_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
import {HttpParams} from '@angular/common/http/src/params';
9+
import {HttpParams} from '../src/params';
1010

1111
describe('HttpUrlEncodedParams', () => {
1212
describe('initialization', () => {

0 commit comments

Comments
 (0)