@nocobase/sdk 1.2.34-alpha → 1.2.35-alpha

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/lib/APIClient.js +2 -2
  2. package/package.json +2 -2
package/lib/APIClient.js CHANGED
@@ -322,7 +322,7 @@ const _APIClient = class _APIClient {
322
322
  resource(name, of, headers) {
323
323
  const target = {};
324
324
  const handler = {
325
- get: (_, actionName) => {
325
+ get: /* @__PURE__ */ __name((_, actionName) => {
326
326
  let url = name.split(".").join(`/${encodeURIComponent(of) || "_"}/`);
327
327
  url += `:${actionName}`;
328
328
  const config = { url };
@@ -353,7 +353,7 @@ const _APIClient = class _APIClient {
353
353
  headers
354
354
  });
355
355
  };
356
- }
356
+ }, "get")
357
357
  };
358
358
  return new Proxy(target, handler);
359
359
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/sdk",
3
- "version": "1.2.34-alpha",
3
+ "version": "1.2.35-alpha",
4
4
  "license": "AGPL-3.0",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -11,5 +11,5 @@
11
11
  "devDependencies": {
12
12
  "axios-mock-adapter": "^1.20.0"
13
13
  },
14
- "gitHead": "c62835e64106fcfb0b6554e75dac6c368276bcc2"
14
+ "gitHead": "37a4edc27153f9346b3b08c25a407fb57c78b68e"
15
15
  }