@camera.ui/browser 0.0.195 → 0.0.197

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 +5 -11
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -2061,11 +2061,9 @@ function usePluginStorage(pluginName) {
2061
2061
  }
2062
2062
  }
2063
2063
  async function getConfig() {
2064
- if (!state.cachedStorage) {
2065
- const name = toValue(pluginName);
2066
- if (!name) return void 0;
2067
- if (!await connect(name)) return void 0;
2068
- }
2064
+ const name = toValue(pluginName);
2065
+ if (!name) return void 0;
2066
+ if (!await connect(name)) return void 0;
2069
2067
  return operations.getConfig();
2070
2068
  }
2071
2069
  async function sync() {
@@ -2125,9 +2123,7 @@ function useCameraStorage(camera, pluginName) {
2125
2123
  const cameraId = extractCameraId(toValue(camera));
2126
2124
  const name = toValue(pluginName);
2127
2125
  if (!cameraId || !name) return void 0;
2128
- if (!state.cachedStorage) {
2129
- if (!await connect(cameraId, name)) return void 0;
2130
- }
2126
+ if (!await connect(cameraId, name)) return void 0;
2131
2127
  return operations.getConfig();
2132
2128
  }
2133
2129
  async function sync() {
@@ -2190,9 +2186,7 @@ function useSensorStorage(sensorId, pluginId) {
2190
2186
  const senId = toValue(sensorId);
2191
2187
  const plugId = toValue(pluginId);
2192
2188
  if (!senId || !plugId) return void 0;
2193
- if (!state.cachedStorage) {
2194
- if (!connect(senId, plugId)) return void 0;
2195
- }
2189
+ if (!connect(senId, plugId)) return void 0;
2196
2190
  return operations.getConfig();
2197
2191
  }
2198
2192
  function sync() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camera.ui/browser",
3
- "version": "0.0.195",
3
+ "version": "0.0.197",
4
4
  "description": "camera.ui browser client",
5
5
  "author": "seydx (https://github.com/cameraui/clients)",
6
6
  "type": "module",
@@ -39,7 +39,7 @@
39
39
  "devDependencies": {
40
40
  "@camera.ui/logger": "file:../../packages/logger",
41
41
  "@camera.ui/rpc": "^1.0.12",
42
- "@camera.ui/sdk": "~1.3.1",
42
+ "@camera.ui/sdk": "~1.3.2",
43
43
  "@camera.ui/transport": "file:../../packages/transport",
44
44
  "@eneris/push-receiver": "^4.3.1",
45
45
  "@microsoft/api-extractor": "^7.59.1",
@@ -60,7 +60,7 @@
60
60
  "rimraf": "^6.1.3",
61
61
  "typescript": "5.9.3",
62
62
  "typescript-eslint": "^8.70.0",
63
- "unplugin-dts": "^1.1.0",
63
+ "unplugin-dts": "^1.1.1",
64
64
  "updates": "^18.1.1",
65
65
  "vite": "^8.3.0",
66
66
  "vitest": "^5.0.1",