@salesforce/sdk-data 1.111.0 → 1.112.1

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { getSurface as k, Surface as h } from "@salesforce/sdk-core";
2
- const R = "salesforce_graphql";
2
+ const R = "graphqlQuery";
3
3
  class C {
4
4
  async graphql(e, r) {
5
5
  return (await window.openai.callTool(R, {
@@ -9,7 +9,7 @@ class C {
9
9
  }
10
10
  }
11
11
  function u(t) {
12
- return _(t) ? t.then((e) => e) : {
12
+ return m(t) ? t.then((e) => e) : {
13
13
  then: (e, r) => {
14
14
  try {
15
15
  return u(e(t));
@@ -20,7 +20,7 @@ function u(t) {
20
20
  };
21
21
  }
22
22
  function y(t) {
23
- return _(t) ? t.then((e) => e) : {
23
+ return m(t) ? t.then((e) => e) : {
24
24
  then: (e, r) => {
25
25
  if (typeof r == "function")
26
26
  try {
@@ -32,7 +32,7 @@ function y(t) {
32
32
  }
33
33
  };
34
34
  }
35
- function _(t) {
35
+ function m(t) {
36
36
  return typeof t?.then == "function";
37
37
  }
38
38
  function T(t = {
@@ -243,7 +243,7 @@ function M(t) {
243
243
  b(new g(r)).service
244
244
  ).service;
245
245
  }
246
- const F = 1, N = `@salesforce/sdk-data_v${F}`, O = typeof __SF_API_VERSION__ < "u" ? __SF_API_VERSION__ : "65.0", m = `/services/data/v${O}`, H = `${m}/ui-api`;
246
+ const F = 1, N = `@salesforce/sdk-data_v${F}`, O = typeof __SF_API_VERSION__ < "u" ? __SF_API_VERSION__ : "65.0", _ = `/services/data/v${O}`, H = `${_}/ui-api`;
247
247
  class x {
248
248
  baseUrl;
249
249
  clientFetch;
@@ -261,7 +261,7 @@ class x {
261
261
  });
262
262
  }
263
263
  async graphql(e, r) {
264
- return (await this.fetch(`${m}/graphql`, {
264
+ return (await this.fetch(`${_}/graphql`, {
265
265
  method: "POST",
266
266
  body: JSON.stringify({ query: e, variables: r }),
267
267
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/sdk-data",
3
- "version": "1.111.0",
3
+ "version": "1.112.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@conduit-client/service-fetch-network": "3.17.0",
30
30
  "@conduit-client/utils": "3.17.0",
31
- "@salesforce/sdk-core": "^1.111.0"
31
+ "@salesforce/sdk-core": "^1.112.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "vite": "^7.3.1",