@bigbinary/neeto-playwright-commons 1.6.0 → 1.6.2

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/index.d.ts CHANGED
@@ -24,7 +24,7 @@ interface VerifySuccessToastParams {
24
24
  }
25
25
  type VerifySuccessToast = (params: VerifySuccessToastParams) => Promise<void>;
26
26
  type BasicTypesInterface = Record<string, number | string | boolean>;
27
- type HttpMethods = "get" | "post" | "put" | "delete";
27
+ type HttpMethods = "get" | "patch" | "post" | "put" | "delete";
28
28
  interface ApiRequestProps {
29
29
  url: string;
30
30
  headers?: BasicTypesInterface;
package/index.js CHANGED
@@ -206,6 +206,7 @@ class CustomCommands {
206
206
  };
207
207
  const httpMethodsHandlers = {
208
208
  get: () => this.request.get(url, requestOptions),
209
+ patch: () => this.request.patch(url, requestOptions),
209
210
  post: () => this.request.post(url, requestOptions),
210
211
  put: () => this.request.put(url, requestOptions),
211
212
  delete: () => this.request.delete(url, requestOptions),