page-action-cache 2.0.0 → 2.0.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.
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import { browserActionExecutor } from './browser-action-executor.js';
12
12
  export function register(api) {
13
13
  console.log('[PageActionCache] Initializing extension...');
14
14
  // 获取插件配置
15
- const config = (api.getConfig?.() || {});
15
+ const config = (api.getConfig?.() ?? {});
16
16
  const enabled = config.enabled !== false;
17
17
  if (!enabled) {
18
18
  console.log('[PageActionCache] Extension disabled by configuration');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "page-action-cache",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Page Action Cache - OpenClaw extension using Browser Client API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -37,7 +37,7 @@ export function register(api: OpenClawPluginApi): void {
37
37
  console.log('[PageActionCache] Initializing extension...');
38
38
 
39
39
  // 获取插件配置
40
- const config = (api.getConfig?.() || {}) as PageActionCacheConfig;
40
+ const config = (api.getConfig?.() ?? {}) as PageActionCacheConfig;
41
41
  const enabled = config.enabled !== false;
42
42
 
43
43
  if (!enabled) {