@logux/core
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -143,3 +143,3 @@ var NanoEvents = require('nanoevents') | ||
* | ||
* * `disconnected`: no connection, but no new actions to synchronization. | ||
* * `disconnected`: no connection. | ||
* * `connecting`: connection was started and we wait for node answer. | ||
@@ -575,3 +575,3 @@ * * `sending`: new actions was sent, waiting for answer. | ||
var DUILIANS = { | ||
'金木水火土': '板城烧锅酒' | ||
金木水火土: '板城烧锅酒' | ||
} | ||
@@ -578,0 +578,0 @@ |
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.3.2 | ||
* Fix read-only meta keys. | ||
## 0.3.1 | ||
@@ -5,0 +8,0 @@ * Fix using old `added` in `sync` message. |
10
log.js
@@ -251,6 +251,6 @@ var NanoEvents = require('nanoevents') | ||
changeMeta: function changeMeta (id, diff) { | ||
var key | ||
for (key in diff) { | ||
if (key === 'id' || key === 'added' || key === 'time') { | ||
throw new Error('Meta "' + key + '" is read-only') | ||
var k | ||
for (k in diff) { | ||
if (k === 'id' || k === 'added' || k === 'time' || k === 'subprotocol') { | ||
throw new Error('Meta "' + k + '" is read-only') | ||
} | ||
@@ -263,3 +263,3 @@ } | ||
if (entry) { | ||
for (key in diff) entry[1][key] = diff[key] | ||
for (k in diff) entry[1][k] = diff[k] | ||
emitter.emit('clean', entry[0], entry[1]) | ||
@@ -266,0 +266,0 @@ } |
{ | ||
"name": "@logux/core", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Logux core components", | ||
@@ -22,3 +22,6 @@ "keywords": [ | ||
"nanoevents": "^2.0.0" | ||
}, | ||
"sharec": { | ||
"version": "0.4.3" | ||
} | ||
} |
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
100561