@serwist/google-analytics 9.0.0-preview.1 → 9.0.0-preview.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.
@@ -22,6 +22,5 @@ export interface GoogleAnalyticsInitializeOptions {
22
22
  /**
23
23
  * @param options
24
24
  */
25
- declare const initialize: (options?: GoogleAnalyticsInitializeOptions) => void;
26
- export { initialize };
25
+ export declare const initialize: (options?: GoogleAnalyticsInitializeOptions) => void;
27
26
  //# sourceMappingURL=initialize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../src/initialize.ts"],"names":[],"mappings":"AA0BA,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACrD;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CAC/C;AAyID;;GAEG;AACH,QAAA,MAAM,UAAU,aAAa,gCAAgC,KAAQ,IAgBpE,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"initialize.d.ts","sourceRoot":"","sources":["../src/initialize.ts"],"names":[],"mappings":"AA0BA,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE;QAAE,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACrD;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;CAC/C;AAyID;;GAEG;AACH,eAAO,MAAM,UAAU,aAAa,gCAAgC,KAAQ,IAgB3E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/google-analytics",
3
- "version": "9.0.0-preview.1",
3
+ "version": "9.0.0-preview.3",
4
4
  "type": "module",
5
5
  "description": "Queues failed requests and uses the Background Sync API to replay them when the network is available",
6
6
  "files": [
@@ -42,15 +42,15 @@
42
42
  "./package.json": "./package.json"
43
43
  },
44
44
  "dependencies": {
45
- "@serwist/background-sync": "9.0.0-preview.1",
46
- "@serwist/core": "9.0.0-preview.1",
47
- "@serwist/routing": "9.0.0-preview.1",
48
- "@serwist/strategies": "9.0.0-preview.1"
45
+ "@serwist/background-sync": "9.0.0-preview.3",
46
+ "@serwist/core": "9.0.0-preview.3",
47
+ "@serwist/routing": "9.0.0-preview.3",
48
+ "@serwist/strategies": "9.0.0-preview.3"
49
49
  },
50
50
  "devDependencies": {
51
51
  "rollup": "4.9.6",
52
- "typescript": "5.4.0-dev.20240203",
53
- "@serwist/constants": "9.0.0-preview.1"
52
+ "typescript": "5.4.0-dev.20240206",
53
+ "@serwist/constants": "9.0.0-preview.3"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "typescript": ">=5.0.0"
package/src/initialize.ts CHANGED
@@ -182,7 +182,7 @@ const createGtmJsRoute = (cacheName: string) => {
182
182
  /**
183
183
  * @param options
184
184
  */
185
- const initialize = (options: GoogleAnalyticsInitializeOptions = {}): void => {
185
+ export const initialize = (options: GoogleAnalyticsInitializeOptions = {}): void => {
186
186
  const cacheName = privateCacheNames.getGoogleAnalyticsName(options.cacheName);
187
187
 
188
188
  const bgSyncPlugin = new BackgroundSyncPlugin(QUEUE_NAME, {
@@ -199,5 +199,3 @@ const initialize = (options: GoogleAnalyticsInitializeOptions = {}): void => {
199
199
 
200
200
  router.addFetchListener();
201
201
  };
202
-
203
- export { initialize };