@wix/sdk 1.15.2 → 1.15.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.
@@ -4,5 +4,5 @@ type Options = {
4
4
  method: string;
5
5
  args: unknown[];
6
6
  };
7
- export declare const callWebMethod: (({ baseURL, filename, method, args }: Options) => Promise<any>) & (({ fetchWithAuth }: import("@wix/sdk-types").HttpClient) => ({ baseURL, filename, method, args }: Options) => Promise<any>);
7
+ export declare const callWebMethod: (({ baseURL, filename, method, args }: Options) => Promise<any>) & ((restModuleOpts: import("@wix/sdk-types").HttpClient) => ({ baseURL, filename, method, args }: Options) => Promise<any>);
8
8
  export {};
@@ -1,7 +1,7 @@
1
1
  import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
2
- export const callWebMethod = createRESTModule(({ fetchWithAuth }) => {
2
+ export const callWebMethod = createRESTModule((restModuleOpts) => {
3
3
  return async ({ baseURL, filename, method, args }) => {
4
- const response = await fetchWithAuth(`${baseURL}/_webMethods/${filename}/${method}.ajax`, {
4
+ const response = await restModuleOpts.fetchWithAuth(`${baseURL}/_webMethods/${filename}/${method}.ajax`, {
5
5
  body: JSON.stringify(args),
6
6
  method: 'POST',
7
7
  });
@@ -4,5 +4,5 @@ type Options = {
4
4
  method: string;
5
5
  args: unknown[];
6
6
  };
7
- export declare const callWebMethod: (({ baseURL, filename, method, args }: Options) => Promise<any>) & (({ fetchWithAuth }: import("@wix/sdk-types").HttpClient) => ({ baseURL, filename, method, args }: Options) => Promise<any>);
7
+ export declare const callWebMethod: (({ baseURL, filename, method, args }: Options) => Promise<any>) & ((restModuleOpts: import("@wix/sdk-types").HttpClient) => ({ baseURL, filename, method, args }: Options) => Promise<any>);
8
8
  export {};
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.callWebMethod = void 0;
4
4
  const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
- exports.callWebMethod = (0, rest_modules_1.createRESTModule)(({ fetchWithAuth }) => {
5
+ exports.callWebMethod = (0, rest_modules_1.createRESTModule)((restModuleOpts) => {
6
6
  return async ({ baseURL, filename, method, args }) => {
7
- const response = await fetchWithAuth(`${baseURL}/_webMethods/${filename}/${method}.ajax`, {
7
+ const response = await restModuleOpts.fetchWithAuth(`${baseURL}/_webMethods/${filename}/${method}.ajax`, {
8
8
  body: JSON.stringify(args),
9
9
  method: 'POST',
10
10
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk",
3
- "version": "1.15.2",
3
+ "version": "1.15.3",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -67,15 +67,15 @@
67
67
  "*.{js,ts}": "yarn lint"
68
68
  },
69
69
  "dependencies": {
70
- "@wix/identity": "^1.0.90",
71
- "@wix/image-kit": "^1.96.0",
70
+ "@wix/identity": "^1.0.92",
71
+ "@wix/image-kit": "^1.97.0",
72
72
  "@wix/redirects": "^1.0.64",
73
73
  "@wix/sdk-context": "^0.0.1",
74
74
  "@wix/sdk-runtime": "0.3.25",
75
75
  "@wix/sdk-types": "^1.12.5",
76
76
  "jose": "^5.9.6",
77
77
  "serialize-error": "^8.1.0",
78
- "type-fest": "^4.29.0"
78
+ "type-fest": "^4.30.0"
79
79
  },
80
80
  "optionalDependencies": {
81
81
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
@@ -84,17 +84,17 @@
84
84
  "@types/is-ci": "^3.0.4",
85
85
  "@types/node": "^20.17.9",
86
86
  "@vitest/ui": "^1.6.0",
87
- "@wix/ecom": "^1.0.845",
88
- "@wix/events": "^1.0.348",
87
+ "@wix/ecom": "^1.0.846",
88
+ "@wix/events": "^1.0.350",
89
89
  "@wix/metro": "^1.0.90",
90
- "@wix/metro-runtime": "^1.1865.0",
90
+ "@wix/metro-runtime": "^1.1867.0",
91
91
  "@wix/sdk-runtime": "0.3.25",
92
92
  "eslint": "^8.57.1",
93
93
  "eslint-config-sdk": "0.0.0",
94
94
  "graphql": "^16.8.0",
95
95
  "is-ci": "^3.0.1",
96
96
  "jsdom": "^22.1.0",
97
- "msw": "^2.6.6",
97
+ "msw": "^2.6.8",
98
98
  "typescript": "^5.7.2",
99
99
  "vitest": "^1.6.0",
100
100
  "vitest-teamcity-reporter": "^0.3.1"
@@ -122,5 +122,5 @@
122
122
  "wallaby": {
123
123
  "autoDetect": true
124
124
  },
125
- "falconPackageHash": "a2c7f94cc4b75d51e4cedb69abe8e84c0dba1a761ccbb7ed2f3bc92f"
125
+ "falconPackageHash": "25dcbae818e2fa823f5eef46a730bacb11dfe191946ce618a5fac63d"
126
126
  }