@wix/sdk 1.15.19 → 1.15.20

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
  export declare const LOCALSTORAGE_PREWARM_REDIRECT_KEY = "wixRedirectSessionLastPreWarm";
2
2
  export declare function isVisitorCookieWarmedUp(): boolean;
3
- export declare function preWarmVisitorCookie(opts: {
3
+ export declare function preWarmVisitorCookie(opts?: {
4
4
  force?: boolean;
5
5
  }): Promise<void>;
@@ -15,7 +15,7 @@ export function isVisitorCookieWarmedUp() {
15
15
  return false; // We need to pre-warm
16
16
  }
17
17
  // Function to check if we need to pre-warm
18
- export async function preWarmVisitorCookie(opts) {
18
+ export async function preWarmVisitorCookie(opts = {}) {
19
19
  // Check if we already pre-warmed recently
20
20
  if (!opts.force && isVisitorCookieWarmedUp()) {
21
21
  return;
@@ -1,5 +1,5 @@
1
1
  export declare const LOCALSTORAGE_PREWARM_REDIRECT_KEY = "wixRedirectSessionLastPreWarm";
2
2
  export declare function isVisitorCookieWarmedUp(): boolean;
3
- export declare function preWarmVisitorCookie(opts: {
3
+ export declare function preWarmVisitorCookie(opts?: {
4
4
  force?: boolean;
5
5
  }): Promise<void>;
@@ -20,7 +20,7 @@ function isVisitorCookieWarmedUp() {
20
20
  return false; // We need to pre-warm
21
21
  }
22
22
  // Function to check if we need to pre-warm
23
- async function preWarmVisitorCookie(opts) {
23
+ async function preWarmVisitorCookie(opts = {}) {
24
24
  // Check if we already pre-warmed recently
25
25
  if (!opts.force && isVisitorCookieWarmedUp()) {
26
26
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk",
3
- "version": "1.15.19",
3
+ "version": "1.15.20",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -126,5 +126,5 @@
126
126
  "wallaby": {
127
127
  "autoDetect": true
128
128
  },
129
- "falconPackageHash": "592894e577597079e92bb18739c16bf2a548927578b05cef9baa1885"
129
+ "falconPackageHash": "3434e586c2a8e1c939c162c9e07c307dbb381a0315f88e2e5d99b08c"
130
130
  }