@alwaysmeticulous/sdk-bundles-api 2.194.1 → 2.195.0

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,4 +1,4 @@
1
- import { Cookie, InjectableRequestHeader, NetworkStubbingMode, ScreenshotAssertionsEnabledOptions, ScreenshotDiffOptions, ScreenshottingEnabledOptions } from "@alwaysmeticulous/api";
1
+ import { Cookie, InjectableRequestHeader, NetworkStubbingMode, ScreenshotAssertionsEnabledOptions, ScreenshotDiffOptions, ScreenshottingEnabledOptions, StorageEntry } from "@alwaysmeticulous/api";
2
2
  import { BeforeUserEventResult } from "../bundle-to-sdk/execute-replay";
3
3
  import { LogLevelNumbers } from "./loglevel";
4
4
  export interface ReplayAndStoreResultsOptions {
@@ -184,6 +184,8 @@ export interface ReplayExecutionOptions {
184
184
  * Extra cookies to use during the replay. These will override cookies of the same name from the session under simulation.
185
185
  */
186
186
  extraCookies?: Cookie[];
187
+ extraLocalStorageEntries?: StorageEntryOverride[];
188
+ extraSessionStorageEntries?: StorageEntryOverride[];
187
189
  /**
188
190
  * Hash of the project settings at the time the test run or replay was initiated. Used as part of `ReplayLogicVersion`
189
191
  * to ensure that we don't compare screenshots that were generated from replays with different project settings.
@@ -204,6 +206,14 @@ export interface ReplayExecutionOptions {
204
206
  */
205
207
  enableCssCoverage?: boolean;
206
208
  }
209
+ export interface StorageEntryOverride extends StorageEntry {
210
+ /**
211
+ * If true, the entry will not be added if it already exists in the session.
212
+ *
213
+ * If false or omitted the entry will be overridden if it already exists in the session.
214
+ */
215
+ ignoreIfEntryAlreadyExists?: true;
216
+ }
207
217
  export interface VercelExecutionSettings {
208
218
  /**
209
219
  * The protection bypass token to pass as a 'x-vercel-protection-bypass' header when downloading
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/sdk-bundles-api",
3
- "version": "2.194.1",
3
+ "version": "2.195.0",
4
4
  "description": "Meticulous common types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -38,5 +38,5 @@
38
38
  "bugs": {
39
39
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
40
40
  },
41
- "gitHead": "893ddda7fad918abd21e80c065289336f88d125f"
41
+ "gitHead": "a57e56b9cb84f193d87269ad9c2f88b0f2108902"
42
42
  }