@ray-js/lock-sdk 1.1.1-beta.5 → 1.1.1-beta.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.
Files changed (2) hide show
  1. package/lib/open.js +1 -1
  2. package/package.json +1 -1
package/lib/open.js CHANGED
@@ -94,7 +94,7 @@ const _doAction = async (isOpen, timeout) => {
94
94
  }
95
95
  return false;
96
96
  };
97
- if (hasThread && deviceStatus.onlineType === "local") {
97
+ if (hasThread && deviceStatus.onlineTypes.includes("local") && deviceStatus.onlineTypes.length === 1) {
98
98
  await publishDps({ [dpCodes.matterLanUnlock]: isOpen }, {
99
99
  checkReport: (dps) => {
100
100
  return typeof dps[dpCodes.matterLanUnlock] !== "undefined";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lock-sdk",
3
- "version": "1.1.1-beta.5",
3
+ "version": "1.1.1-beta.6",
4
4
  "files": [
5
5
  "lib",
6
6
  "LICENSE.md"