@logux/core
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -300,3 +300,3 @@ var NanoEvents = require('nanoevents') | ||
/** | ||
* Return Promise until {@link BaseNode#state} sync will have specific state. | ||
* Return Promise until sync will have specific state. | ||
* | ||
@@ -528,4 +528,6 @@ * If current state is correct, method will return resolved Promise. | ||
setLastSent: function setLastSent (value) { | ||
if (this.lastSent < value) this.lastSent = value | ||
this.log.store.setLastSynced({ sent: value }) | ||
if (this.lastSent < value) { | ||
this.lastSent = value | ||
this.log.store.setLastSynced({ sent: value }) | ||
} | ||
}, | ||
@@ -532,0 +534,0 @@ |
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 0.3.5 | ||
* Fix actions double sending to the server. | ||
## 0.3.4 | ||
@@ -5,0 +8,0 @@ * Fix React Native and React Server-Side Rendering support (by Can Rau). |
@@ -47,2 +47,3 @@ var BaseNode = require('./base-node') | ||
* @extends BaseNode | ||
* @name ClientNode | ||
* @class | ||
@@ -49,0 +50,0 @@ */ |
@@ -50,2 +50,8 @@ var ServerConnection = require('./server-connection') | ||
* {@link Log#add} will fill it. | ||
* @property {number} [time] Action created time. | ||
* Milliseconds since UNIX epoch. | ||
* @property {string[]} [reasons] Why action should be kept in log. | ||
* Action without reasons will be removed. | ||
* @property {string} [keepLast] Set code as reason and remove this reasons | ||
* from previous actions. | ||
*/ | ||
@@ -52,0 +58,0 @@ |
@@ -84,2 +84,3 @@ var NanoEvents = require('nanoevents') | ||
* @class | ||
* @name LocalPair | ||
*/ | ||
@@ -86,0 +87,0 @@ function LocalPair (delay) { |
12
log.js
@@ -85,11 +85,5 @@ var NanoEvents = require('nanoevents') | ||
* @param {Meta} [meta] Open structure for action metadata. | ||
* @param {string} [meta.id] Unique action ID. | ||
* @param {number} [meta.time] Action created time. | ||
* Milliseconds since UNIX epoch. | ||
* @param {string[]} [meta.reasons] Why action should be kept in log. | ||
* Action without reasons will be removed. | ||
* @param {string} [meta.keepLast] Set code as reason and remove this reasons | ||
* from previous actions. | ||
* @return {Promise<Meta|fale>} Promise with `meta` if action was added | ||
* to log or `false` if action was already in log | ||
* @return {Promise<Meta|false>} Promise with `meta` if action was added | ||
* to log or `false` if action was already | ||
* in log. | ||
* | ||
@@ -96,0 +90,0 @@ * @example |
{ | ||
"name": "@logux/core", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Logux core components", | ||
@@ -16,2 +16,3 @@ "keywords": [ | ||
"license": "MIT", | ||
"homepage": "https://logux.io/", | ||
"repository": "logux/core", | ||
@@ -25,4 +26,5 @@ "engines": { | ||
"sharec": { | ||
"version": "0.4.4" | ||
"config": "@logux/sharec-config", | ||
"version": "0.5.6" | ||
} | ||
} |
# Logux Core [![Cult Of Martians][cult-img]][cult] | ||
<img align="right" width="95" height="95" title="Logux logo" | ||
src="https://cdn.rawgit.com/logux/logux/master/logo.svg"> | ||
<img align="right" width="95" height="148" title="Logux logotype" | ||
src="https://logux.io/branding/logotype.svg"> | ||
@@ -10,3 +10,3 @@ Logux is a new way to connect client and server. Instead of sending | ||
**Documentation: [logux/logux]** | ||
**Documentation: [logux.io]** | ||
@@ -30,3 +30,3 @@ This repository contains Logux core components for JavaScript: | ||
[logux/logux]: https://github.com/logux/logux | ||
[logux.io]: https://logux.io/ | ||
[cult-img]: http://cultofmartians.com/assets/badges/badge.svg | ||
@@ -33,0 +33,0 @@ [cult]: http://cultofmartians.com/done.html |
@@ -122,5 +122,2 @@ var merge = require('./merge') | ||
* | ||
* {@link BaseNode#destroy} will call this method instead | ||
* of {@link Reconnect#disconnect}. | ||
* | ||
* @return {undefined} | ||
@@ -127,0 +124,0 @@ */ |
@@ -46,2 +46,3 @@ var BaseNode = require('./base-node') | ||
* @extends BaseNode | ||
* @name ServerNode | ||
* @class | ||
@@ -48,0 +49,0 @@ */ |
@@ -126,2 +126,4 @@ var LocalPair = require('./local-pair') | ||
* pair.leftSent //=> [msg] | ||
* | ||
* @memberof TestPair# | ||
*/ | ||
@@ -136,2 +138,4 @@ this.leftSent = [] | ||
* pair.rightSent //=> [msg] | ||
* | ||
* @memberof TestPair# | ||
*/ | ||
@@ -147,2 +151,4 @@ this.rightSent = [] | ||
* pair.leftEvents //=> [['connect']] | ||
* | ||
* @memberof TestPair# | ||
*/ | ||
@@ -157,2 +163,4 @@ this.leftEvents = [] | ||
* pair.rightEvents //=> [['connect']] | ||
* | ||
* @memberof TestPair# | ||
*/ | ||
@@ -159,0 +167,0 @@ this.rightEvents = [] |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
101338
3185
1