@angular/service-worker 16.0.0-next.2 → 16.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/index.d.ts +1 -1
- package/esm2020/src/index.mjs +3 -2
- package/esm2020/src/module.mjs +10 -100
- package/esm2020/src/provider.mjs +122 -0
- package/esm2020/src/push.mjs +3 -3
- package/esm2020/src/update.mjs +3 -3
- package/fesm2015/config.mjs +1 -1
- package/fesm2015/service-worker.mjs +73 -45
- package/fesm2015/service-worker.mjs.map +1 -1
- package/fesm2020/config.mjs +1 -1
- package/fesm2020/service-worker.mjs +73 -45
- package/fesm2020/service-worker.mjs.map +1 -1
- package/index.d.ts +22 -2
- package/ngsw-worker.js +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.0-next.
|
|
2
|
+
* @license Angular v16.0.0-next.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
8
9
|
import * as i0 from '@angular/core';
|
|
9
10
|
import { ModuleWithProviders } from '@angular/core';
|
|
10
11
|
import { Observable } from 'rxjs';
|
|
@@ -43,6 +44,25 @@ export declare interface NoNewVersionDetectedEvent {
|
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
/**
|
|
48
|
+
* @publicApi
|
|
49
|
+
*
|
|
50
|
+
* Sets up providers to register the given Angular Service Worker script.
|
|
51
|
+
*
|
|
52
|
+
* If `enabled` is set to `false` in the given options, the module will behave as if service
|
|
53
|
+
* workers are not supported by the browser, and the service worker will not be registered.
|
|
54
|
+
*
|
|
55
|
+
* Example usage:
|
|
56
|
+
* ```ts
|
|
57
|
+
* bootstrapApplication(AppComponent, {
|
|
58
|
+
* providers: [
|
|
59
|
+
* provideServiceWorker('ngsw-worker.js')
|
|
60
|
+
* ],
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export declare function provideServiceWorker(script: string, options?: SwRegistrationOptions): EnvironmentProviders;
|
|
65
|
+
|
|
46
66
|
/**
|
|
47
67
|
* @publicApi
|
|
48
68
|
*/
|
|
@@ -53,7 +73,7 @@ export declare class ServiceWorkerModule {
|
|
|
53
73
|
* If `enabled` is set to `false` in the given options, the module will behave as if service
|
|
54
74
|
* workers are not supported by the browser, and the service worker will not be registered.
|
|
55
75
|
*/
|
|
56
|
-
static register(script: string,
|
|
76
|
+
static register(script: string, options?: SwRegistrationOptions): ModuleWithProviders<ServiceWorkerModule>;
|
|
57
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<ServiceWorkerModule, never>;
|
|
58
78
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ServiceWorkerModule, never, never, never>;
|
|
59
79
|
static ɵinj: i0.ɵɵInjectorDeclaration<ServiceWorkerModule>;
|
package/ngsw-worker.js
CHANGED
|
@@ -1017,7 +1017,7 @@ ${error.stack}`;
|
|
|
1017
1017
|
};
|
|
1018
1018
|
|
|
1019
1019
|
// bazel-out/darwin_arm64-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/debug.mjs
|
|
1020
|
-
var SW_VERSION = "16.0.0-next.
|
|
1020
|
+
var SW_VERSION = "16.0.0-next.3";
|
|
1021
1021
|
var DEBUG_LOG_BUFFER_SIZE = 100;
|
|
1022
1022
|
var DebugHandler = class {
|
|
1023
1023
|
constructor(driver, adapter2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/service-worker",
|
|
3
|
-
"version": "16.0.0-next.
|
|
3
|
+
"version": "16.0.0-next.3",
|
|
4
4
|
"description": "Angular - service worker tooling!",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"tslib": "^2.3.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@angular/core": "16.0.0-next.
|
|
45
|
-
"@angular/common": "16.0.0-next.
|
|
44
|
+
"@angular/core": "16.0.0-next.3",
|
|
45
|
+
"@angular/common": "16.0.0-next.3"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|