@etsoo/smarterp-core 1.1.5 → 1.1.6

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.
@@ -156,7 +156,7 @@ class PublicApi extends appscript_1.BaseApi {
156
156
  */
157
157
  async queryPlace(rq, payload) {
158
158
  // For simplified Chinese, or CN region, use China map
159
- if (rq.provider === null &&
159
+ if (!rq.provider &&
160
160
  (rq.language === "zh-Hans" ||
161
161
  rq.language === "zh-CN" ||
162
162
  rq.region === "CN")) {
@@ -153,7 +153,7 @@ export class PublicApi extends BaseApi {
153
153
  */
154
154
  async queryPlace(rq, payload) {
155
155
  // For simplified Chinese, or CN region, use China map
156
- if (rq.provider === null &&
156
+ if (!rq.provider &&
157
157
  (rq.language === "zh-Hans" ||
158
158
  rq.language === "zh-CN" ||
159
159
  rq.region === "CN")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -48,7 +48,7 @@
48
48
  "@types/react": "^19.2.7",
49
49
  "@types/react-dom": "^19.2.3",
50
50
  "@vitejs/plugin-react": "^5.1.2",
51
- "jsdom": "^27.3.0",
51
+ "jsdom": "^27.4.0",
52
52
  "typescript": "^5.9.3",
53
53
  "vitest": "^4.0.16"
54
54
  },
@@ -57,7 +57,7 @@
57
57
  "@etsoo/materialui": "^1.5.93",
58
58
  "@etsoo/react": "^1.8.66",
59
59
  "@etsoo/shared": "^1.2.80",
60
- "@etsoo/toolpad": "^1.0.42",
60
+ "@etsoo/toolpad": "^1.0.44",
61
61
  "@mui/material": "^7.3.6",
62
62
  "ajv": "^8.17.1",
63
63
  "ajv-formats": "^3.0.1",
package/src/PublicApi.ts CHANGED
@@ -199,7 +199,7 @@ export class PublicApi extends BaseApi {
199
199
  ): Promise<[MapApiProvider, PlaceCommon[] | undefined]> {
200
200
  // For simplified Chinese, or CN region, use China map
201
201
  if (
202
- rq.provider === null &&
202
+ !rq.provider &&
203
203
  (rq.language === "zh-Hans" ||
204
204
  rq.language === "zh-CN" ||
205
205
  rq.region === "CN")