@serwist/core 9.0.0-preview.10 → 9.0.0-preview.12

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Get the current cache names and prefix/suffix used by Workbox.
2
+ * Get the current cache names and prefix/suffix used by Serwist.
3
3
  *
4
4
  * `cacheNames.precache` is used for precached assets,
5
5
  * `cacheNames.googleAnalytics` is used by `@serwist/google-analytics` to
@@ -10,12 +10,11 @@
10
10
  *
11
11
  * @returns An object with `precache`, `runtime`, `prefix`, and `googleAnalytics` properties.
12
12
  */
13
- declare const cacheNames: {
13
+ export declare const cacheNames: {
14
14
  readonly googleAnalytics: string;
15
15
  readonly precache: string;
16
16
  readonly prefix: string;
17
17
  readonly runtime: string;
18
18
  readonly suffix: string;
19
19
  };
20
- export { cacheNames };
21
20
  //# sourceMappingURL=cacheNames.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cacheNames.d.ts","sourceRoot":"","sources":["../src/cacheNames.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,UAAU;;;;;;CAgBf,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"cacheNames.d.ts","sourceRoot":"","sources":["../src/cacheNames.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU;;;;;;CAgBtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/core",
3
- "version": "9.0.0-preview.10",
3
+ "version": "9.0.0-preview.12",
4
4
  "type": "module",
5
5
  "description": "This module is used by a number of the other Serwist modules to share common code.",
6
6
  "files": [
@@ -40,7 +40,7 @@
40
40
  "devDependencies": {
41
41
  "rollup": "4.9.6",
42
42
  "typescript": "5.4.0-dev.20240206",
43
- "@serwist/constants": "9.0.0-preview.10"
43
+ "@serwist/constants": "9.0.0-preview.12"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "typescript": ">=5.0.0"
package/src/cacheNames.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  import { cacheNames as _cacheNames } from "./_private/cacheNames.js";
10
10
 
11
11
  /**
12
- * Get the current cache names and prefix/suffix used by Workbox.
12
+ * Get the current cache names and prefix/suffix used by Serwist.
13
13
  *
14
14
  * `cacheNames.precache` is used for precached assets,
15
15
  * `cacheNames.googleAnalytics` is used by `@serwist/google-analytics` to
@@ -20,7 +20,7 @@ import { cacheNames as _cacheNames } from "./_private/cacheNames.js";
20
20
  *
21
21
  * @returns An object with `precache`, `runtime`, `prefix`, and `googleAnalytics` properties.
22
22
  */
23
- const cacheNames = {
23
+ export const cacheNames = {
24
24
  get googleAnalytics(): string {
25
25
  return _cacheNames.getGoogleAnalyticsName();
26
26
  },
@@ -37,5 +37,3 @@ const cacheNames = {
37
37
  return _cacheNames.getSuffix();
38
38
  },
39
39
  };
40
-
41
- export { cacheNames };