mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(service-worker): convert scripts within packages/service-worker to relative imports (#60238)
This commit updates scripts within `packages/service-worker` to relative imports as a prep work to the upcoming infra updates. PR Close #60238
This commit is contained in:
committed by
Alex Rickabaugh
parent
40bd57646a
commit
bc042935d0
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
|
||||
import {Filesystem} from '@angular/service-worker/config';
|
||||
import {Filesystem} from '../config';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
|
||||
import {Config, Generator} from '@angular/service-worker/config';
|
||||
import {Config, Generator} from '../config';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
|
||||
|
||||
@@ -14,17 +14,17 @@ import {
|
||||
VersionDetectedEvent,
|
||||
VersionEvent,
|
||||
VersionReadyEvent,
|
||||
} from '@angular/service-worker/src/low_level';
|
||||
import {ngswCommChannelFactory, SwRegistrationOptions} from '@angular/service-worker/src/provider';
|
||||
import {SwPush} from '@angular/service-worker/src/push';
|
||||
import {SwUpdate} from '@angular/service-worker/src/update';
|
||||
} from '../src/low_level';
|
||||
import {ngswCommChannelFactory, SwRegistrationOptions} from '../src/provider';
|
||||
import {SwPush} from '../src/push';
|
||||
import {SwUpdate} from '../src/update';
|
||||
import {
|
||||
MockPushManager,
|
||||
MockPushSubscription,
|
||||
MockServiceWorkerContainer,
|
||||
MockServiceWorkerRegistration,
|
||||
patchDecodeBase64,
|
||||
} from '@angular/service-worker/testing/mock';
|
||||
} from '../testing/mock';
|
||||
import {filter} from 'rxjs/operators';
|
||||
|
||||
describe('ServiceWorker library', () => {
|
||||
|
||||
@@ -6,21 +6,21 @@
|
||||
* found in the LICENSE file at https://angular.dev/license
|
||||
*/
|
||||
|
||||
import {NgswCommChannel} from '@angular/service-worker/src/low_level';
|
||||
import {SwPush} from '@angular/service-worker/src/push';
|
||||
import {SwUpdate} from '@angular/service-worker/src/update';
|
||||
import {MockServiceWorkerContainer} from '@angular/service-worker/testing/mock';
|
||||
import {CacheDatabase} from '@angular/service-worker/worker/src/db-cache';
|
||||
import {Driver} from '@angular/service-worker/worker/src/driver';
|
||||
import {Manifest} from '@angular/service-worker/worker/src/manifest';
|
||||
import {MockRequest} from '@angular/service-worker/worker/testing/fetch';
|
||||
import {NgswCommChannel} from '../src/low_level';
|
||||
import {SwPush} from '../src/push';
|
||||
import {SwUpdate} from '../src/update';
|
||||
import {MockServiceWorkerContainer} from '../testing/mock';
|
||||
import {CacheDatabase} from '../worker/src/db-cache';
|
||||
import {Driver} from '../worker/src/driver';
|
||||
import {Manifest} from '../worker/src/manifest';
|
||||
import {MockRequest} from '../worker/testing/fetch';
|
||||
import {
|
||||
MockFileSystemBuilder,
|
||||
MockServerStateBuilder,
|
||||
tmpHashTableForFs,
|
||||
} from '@angular/service-worker/worker/testing/mock';
|
||||
import {SwTestHarness, SwTestHarnessBuilder} from '@angular/service-worker/worker/testing/scope';
|
||||
import {envIsSupported} from '@angular/service-worker/worker/testing/utils';
|
||||
} from '../worker/testing/mock';
|
||||
import {SwTestHarness, SwTestHarnessBuilder} from '../worker/testing/scope';
|
||||
import {envIsSupported} from '../worker/testing/utils';
|
||||
import {Observable} from 'rxjs';
|
||||
import {take} from 'rxjs/operators';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user