@angular/service-worker 14.0.0-next.8 → 14.0.0-rc.1
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 +94 -6
- package/esm2020/src/module.mjs +4 -4
- 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 +11 -11
- package/fesm2020/config.mjs +1 -1
- package/fesm2020/service-worker.mjs +11 -11
- package/{service-worker.d.ts → index.d.ts} +465 -464
- package/ngsw-worker.js +1 -1
- package/package.json +6 -6
- package/config/config.d.ts +0 -96
- package/config/package.json +0 -9
- package/config/public_api.d.ts +0 -11
- package/config/src/duration.d.ts +0 -9
- package/config/src/filesystem.d.ts +0 -20
- package/config/src/generator.d.ts +0 -27
- package/config/src/glob.d.ts +0 -9
- package/config/src/in.d.ts +0 -62
package/ngsw-worker.js
CHANGED
|
@@ -1014,7 +1014,7 @@ ${error.stack}`;
|
|
|
1014
1014
|
};
|
|
1015
1015
|
|
|
1016
1016
|
// bazel-out/k8-fastbuild-ST-2e5f3376adb5/bin/packages/service-worker/worker/src/debug.mjs
|
|
1017
|
-
var SW_VERSION = "14.0.0-
|
|
1017
|
+
var SW_VERSION = "14.0.0-rc.1";
|
|
1018
1018
|
var DEBUG_LOG_BUFFER_SIZE = 100;
|
|
1019
1019
|
var DebugHandler = class {
|
|
1020
1020
|
constructor(driver, adapter2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/service-worker",
|
|
3
|
-
"version": "14.0.0-
|
|
3
|
+
"version": "14.0.0-rc.1",
|
|
4
4
|
"description": "Angular - service worker tooling!",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"default": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./
|
|
24
|
+
"types": "./index.d.ts",
|
|
25
25
|
"esm2020": "./esm2020/service-worker.mjs",
|
|
26
26
|
"es2020": "./fesm2020/service-worker.mjs",
|
|
27
27
|
"es2015": "./fesm2015/service-worker.mjs",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"default": "./fesm2020/service-worker.mjs"
|
|
30
30
|
},
|
|
31
31
|
"./config": {
|
|
32
|
-
"types": "./config/
|
|
32
|
+
"types": "./config/index.d.ts",
|
|
33
33
|
"esm2020": "./esm2020/config/config.mjs",
|
|
34
34
|
"es2020": "./fesm2020/config.mjs",
|
|
35
35
|
"es2015": "./fesm2015/config.mjs",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"tslib": "^2.3.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@angular/core": "14.0.0-
|
|
45
|
-
"@angular/common": "14.0.0-
|
|
44
|
+
"@angular/core": "14.0.0-rc.1",
|
|
45
|
+
"@angular/common": "14.0.0-rc.1"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"fesm2020": "./fesm2020/service-worker.mjs",
|
|
77
77
|
"fesm2015": "./fesm2015/service-worker.mjs",
|
|
78
78
|
"esm2020": "./esm2020/service-worker.mjs",
|
|
79
|
-
"typings": "./
|
|
79
|
+
"typings": "./index.d.ts",
|
|
80
80
|
"module": "./fesm2015/service-worker.mjs",
|
|
81
81
|
"es2020": "./fesm2020/service-worker.mjs",
|
|
82
82
|
"type": "module"
|
package/config/config.d.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Angular v14.0.0-next.8
|
|
3
|
-
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Configuration for a particular group of assets.
|
|
9
|
-
*
|
|
10
|
-
* @publicApi
|
|
11
|
-
*/
|
|
12
|
-
export declare interface AssetGroup {
|
|
13
|
-
name: string;
|
|
14
|
-
installMode?: 'prefetch' | 'lazy';
|
|
15
|
-
updateMode?: 'prefetch' | 'lazy';
|
|
16
|
-
resources: {
|
|
17
|
-
files?: Glob[];
|
|
18
|
-
urls?: Glob[];
|
|
19
|
-
};
|
|
20
|
-
cacheQueryOptions?: Pick<CacheQueryOptions, 'ignoreSearch'>;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* A top-level Angular Service Worker configuration object.
|
|
25
|
-
*
|
|
26
|
-
* @publicApi
|
|
27
|
-
*/
|
|
28
|
-
export declare interface Config {
|
|
29
|
-
appData?: {};
|
|
30
|
-
index: string;
|
|
31
|
-
assetGroups?: AssetGroup[];
|
|
32
|
-
dataGroups?: DataGroup[];
|
|
33
|
-
navigationUrls?: string[];
|
|
34
|
-
navigationRequestStrategy?: 'freshness' | 'performance';
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Configuration for a particular group of dynamic URLs.
|
|
39
|
-
*
|
|
40
|
-
* @publicApi
|
|
41
|
-
*/
|
|
42
|
-
export declare interface DataGroup {
|
|
43
|
-
name: string;
|
|
44
|
-
urls: Glob[];
|
|
45
|
-
version?: number;
|
|
46
|
-
cacheConfig: {
|
|
47
|
-
maxSize: number;
|
|
48
|
-
maxAge: Duration;
|
|
49
|
-
timeout?: Duration;
|
|
50
|
-
strategy?: 'freshness' | 'performance';
|
|
51
|
-
cacheOpaqueResponses?: boolean;
|
|
52
|
-
};
|
|
53
|
-
cacheQueryOptions?: Pick<CacheQueryOptions, 'ignoreSearch'>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @publicApi
|
|
58
|
-
*/
|
|
59
|
-
export declare type Duration = string;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* An abstraction over a virtual file system used to enable testing and operation
|
|
64
|
-
* of the config generator in different environments.
|
|
65
|
-
*
|
|
66
|
-
* @publicApi
|
|
67
|
-
*/
|
|
68
|
-
export declare interface Filesystem {
|
|
69
|
-
list(dir: string): Promise<string[]>;
|
|
70
|
-
read(file: string): Promise<string>;
|
|
71
|
-
hash(file: string): Promise<string>;
|
|
72
|
-
write(file: string, contents: string): Promise<void>;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Consumes service worker configuration files and processes them into control files.
|
|
77
|
-
*
|
|
78
|
-
* @publicApi
|
|
79
|
-
*/
|
|
80
|
-
declare class Generator_2 {
|
|
81
|
-
readonly fs: Filesystem;
|
|
82
|
-
private baseHref;
|
|
83
|
-
constructor(fs: Filesystem, baseHref: string);
|
|
84
|
-
process(config: Config): Promise<Object>;
|
|
85
|
-
private processAssetGroups;
|
|
86
|
-
private processDataGroups;
|
|
87
|
-
}
|
|
88
|
-
export { Generator_2 as Generator }
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @publicApi
|
|
93
|
-
*/
|
|
94
|
-
export declare type Glob = string;
|
|
95
|
-
|
|
96
|
-
export { }
|
package/config/package.json
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@angular/service-worker/config",
|
|
3
|
-
"fesm2020": "../fesm2020/config.mjs",
|
|
4
|
-
"fesm2015": "../fesm2015/config.mjs",
|
|
5
|
-
"esm2020": "../esm2020/config/config.mjs",
|
|
6
|
-
"typings": "./config.d.ts",
|
|
7
|
-
"module": "../fesm2015/config.mjs",
|
|
8
|
-
"es2020": "../fesm2020/config.mjs"
|
|
9
|
-
}
|
package/config/public_api.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/// <amd-module name="@angular/service-worker/config/public_api" />
|
|
9
|
-
export { Filesystem } from './src/filesystem';
|
|
10
|
-
export { Generator } from './src/generator';
|
|
11
|
-
export { AssetGroup, Config, DataGroup, Duration, Glob } from './src/in';
|
package/config/src/duration.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/// <amd-module name="@angular/service-worker/config/src/duration" />
|
|
9
|
-
export declare function parseDurationToMs(duration: string): number;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/// <amd-module name="@angular/service-worker/config/src/filesystem" />
|
|
9
|
-
/**
|
|
10
|
-
* An abstraction over a virtual file system used to enable testing and operation
|
|
11
|
-
* of the config generator in different environments.
|
|
12
|
-
*
|
|
13
|
-
* @publicApi
|
|
14
|
-
*/
|
|
15
|
-
export interface Filesystem {
|
|
16
|
-
list(dir: string): Promise<string[]>;
|
|
17
|
-
read(file: string): Promise<string>;
|
|
18
|
-
hash(file: string): Promise<string>;
|
|
19
|
-
write(file: string, contents: string): Promise<void>;
|
|
20
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/// <amd-module name="@angular/service-worker/config/src/generator" />
|
|
9
|
-
import { Filesystem } from './filesystem';
|
|
10
|
-
import { Config } from './in';
|
|
11
|
-
/**
|
|
12
|
-
* Consumes service worker configuration files and processes them into control files.
|
|
13
|
-
*
|
|
14
|
-
* @publicApi
|
|
15
|
-
*/
|
|
16
|
-
export declare class Generator {
|
|
17
|
-
readonly fs: Filesystem;
|
|
18
|
-
private baseHref;
|
|
19
|
-
constructor(fs: Filesystem, baseHref: string);
|
|
20
|
-
process(config: Config): Promise<Object>;
|
|
21
|
-
private processAssetGroups;
|
|
22
|
-
private processDataGroups;
|
|
23
|
-
}
|
|
24
|
-
export declare function processNavigationUrls(baseHref: string, urls?: string[]): {
|
|
25
|
-
positive: boolean;
|
|
26
|
-
regex: string;
|
|
27
|
-
}[];
|
package/config/src/glob.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/// <amd-module name="@angular/service-worker/config/src/glob" />
|
|
9
|
-
export declare function globToRegex(glob: string, literalQuestionMark?: boolean): string;
|
package/config/src/in.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/// <amd-module name="@angular/service-worker/config/src/in" />
|
|
9
|
-
/**
|
|
10
|
-
* @publicApi
|
|
11
|
-
*/
|
|
12
|
-
export declare type Glob = string;
|
|
13
|
-
/**
|
|
14
|
-
* @publicApi
|
|
15
|
-
*/
|
|
16
|
-
export declare type Duration = string;
|
|
17
|
-
/**
|
|
18
|
-
* A top-level Angular Service Worker configuration object.
|
|
19
|
-
*
|
|
20
|
-
* @publicApi
|
|
21
|
-
*/
|
|
22
|
-
export interface Config {
|
|
23
|
-
appData?: {};
|
|
24
|
-
index: string;
|
|
25
|
-
assetGroups?: AssetGroup[];
|
|
26
|
-
dataGroups?: DataGroup[];
|
|
27
|
-
navigationUrls?: string[];
|
|
28
|
-
navigationRequestStrategy?: 'freshness' | 'performance';
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Configuration for a particular group of assets.
|
|
32
|
-
*
|
|
33
|
-
* @publicApi
|
|
34
|
-
*/
|
|
35
|
-
export interface AssetGroup {
|
|
36
|
-
name: string;
|
|
37
|
-
installMode?: 'prefetch' | 'lazy';
|
|
38
|
-
updateMode?: 'prefetch' | 'lazy';
|
|
39
|
-
resources: {
|
|
40
|
-
files?: Glob[];
|
|
41
|
-
urls?: Glob[];
|
|
42
|
-
};
|
|
43
|
-
cacheQueryOptions?: Pick<CacheQueryOptions, 'ignoreSearch'>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Configuration for a particular group of dynamic URLs.
|
|
47
|
-
*
|
|
48
|
-
* @publicApi
|
|
49
|
-
*/
|
|
50
|
-
export interface DataGroup {
|
|
51
|
-
name: string;
|
|
52
|
-
urls: Glob[];
|
|
53
|
-
version?: number;
|
|
54
|
-
cacheConfig: {
|
|
55
|
-
maxSize: number;
|
|
56
|
-
maxAge: Duration;
|
|
57
|
-
timeout?: Duration;
|
|
58
|
-
strategy?: 'freshness' | 'performance';
|
|
59
|
-
cacheOpaqueResponses?: boolean;
|
|
60
|
-
};
|
|
61
|
-
cacheQueryOptions?: Pick<CacheQueryOptions, 'ignoreSearch'>;
|
|
62
|
-
}
|