@blocksuite/store
Advanced tools
Comparing version 0.3.0-20221229170017-735c989 to 0.3.0-20221230041649-6b8fcf7
@@ -48,3 +48,9 @@ import { Map as YMap } from 'yjs'; | ||
else { | ||
return Reflect.set(target, p, value, receiver); | ||
if (typeof p === 'string') { | ||
yMap.set(p, value); | ||
return Reflect.set(target, p, value, receiver); | ||
} | ||
else { | ||
throw new Error('key cannot be a symbol'); | ||
} | ||
} | ||
@@ -51,0 +57,0 @@ }, |
{ | ||
"name": "@blocksuite/store", | ||
"version": "0.3.0-20221229170017-735c989", | ||
"version": "0.3.0-20221230041649-6b8fcf7", | ||
"description": "BlockSuite data store built for general purpose state management.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -62,3 +62,8 @@ import { Map as YMap } from 'yjs'; | ||
} else { | ||
return Reflect.set(target, p, value, receiver); | ||
if (typeof p === 'string') { | ||
yMap.set(p, value); | ||
return Reflect.set(target, p, value, receiver); | ||
} else { | ||
throw new Error('key cannot be a symbol'); | ||
} | ||
} | ||
@@ -65,0 +70,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
419560
7025