ancient-graph-spreading
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -1,2 +0,2 @@ | ||
#### 0.0.12 (2016-11-30) | ||
#### 0.0.13 (2016-12-3) | ||
@@ -30,2 +30,3 @@ ##### Documentation Changes | ||
* **spreading:** | ||
* Support for pathLink in _getToFields and _getFromFields. ([c04a122e](https://github.com/AncientSouls/GraphSpreading/commit/c04a122ed80a9e1398afa06fb0c74abdc4aba707)) | ||
* spreadTo support for toFields array, not just first of all... ([7301f7e5](https://github.com/AncientSouls/GraphSpreading/commit/7301f7e543fb71295cbad19f1813276fea888fba)) | ||
@@ -32,0 +33,0 @@ * Wrong field name ([befd9659](https://github.com/AncientSouls/GraphSpreading/commit/befd9659d8779040c7bf95b23f18b043b63cd173)) |
@@ -33,11 +33,13 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.GraphSpreading=undefined;var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if('value'in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var _async=require('async');var _async2=_interopRequireDefault(_async);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError('Cannot call a class as a function')}}/** | ||
* @param {Object} [pathGraph] | ||
* @param {Object} [pathLink] | ||
* @param {Object} [spreadLink] | ||
* @return {String[]} [fromFields] | ||
*/},{key:'_getFromFields',value:function _getFromFields(pathGraph,spreadLink){return pathGraph.fromFields}/** | ||
*/},{key:'_getFromFields',value:function _getFromFields(pathGraph,pathLink,spreadLink){return pathGraph.fromFields}/** | ||
* Custom getter of possible to fields. | ||
* | ||
* @param {Object} [pathGraph] | ||
* @param {Object} [pathLink] | ||
* @param {Object} [spreadLink] | ||
* @return {String[]} [toFields] | ||
*/},{key:'_getToFields',value:function _getToFields(pathGraph,spreadLink){return pathGraph.toFields}/** | ||
*/},{key:'_getToFields',value:function _getToFields(pathGraph,pathLink,spreadLink){return pathGraph.toFields}/** | ||
* Spread by pathLink and specified fromField with available spreadLinks. | ||
@@ -59,3 +61,3 @@ * | ||
* @param {GraphSpreading~spreadByPathLinkCallback} [callback] | ||
*/},{key:'spreadByPathLink',value:function spreadByPathLink(pathGraph,pathLink,context,handler,callback){var _this2=this;this.each(this._getFromFields(pathGraph),function(fromField,next){_this2._spreadByPathLink(fromField,pathGraph,pathLink,context,handler,next)},callback)}/** | ||
*/},{key:'spreadByPathLink',value:function spreadByPathLink(pathGraph,pathLink,context,handler,callback){var _this2=this;this.each(this._getFromFields(pathGraph,pathLink),function(fromField,next){_this2._spreadByPathLink(fromField,pathGraph,pathLink,context,handler,next)},callback)}/** | ||
* Optional callback. | ||
@@ -93,3 +95,3 @@ * | ||
* @param {GraphSpreading~spreadFromSpreadLinkByPathGraphCallback} [callback] | ||
*/},{key:'spreadFromSpreadLinkByPathGraph',value:function spreadFromSpreadLinkByPathGraph(spreadLink,pathGraph,context,handler,callback){var _this6=this;this.each(this._getFromFields(pathGraph,spreadLink),function(fromField,next){_this6._spreadFromSpreadLinkByPathGraph(fromField,spreadLink,pathGraph,context,handler,next)},callback)}/** | ||
*/},{key:'spreadFromSpreadLinkByPathGraph',value:function spreadFromSpreadLinkByPathGraph(spreadLink,pathGraph,context,handler,callback){var _this6=this;this.each(this._getFromFields(pathGraph,undefined,spreadLink),function(fromField,next){_this6._spreadFromSpreadLinkByPathGraph(fromField,spreadLink,pathGraph,context,handler,next)},callback)}/** | ||
* Optional handler. If present, called with an error object as the first argument and, if no error, others arguments with results of spreading. | ||
@@ -124,3 +126,3 @@ * | ||
* @param {GraphSpreading~spreadFromSpreadLinkByPathLinkCallback} [callback] | ||
*/},{key:'spreadFromSpreadLinkByPathLink',value:function spreadFromSpreadLinkByPathLink(spreadLink,pathGraph,pathLink,context,handler,callback){var _this8=this;this.each(this._getToFields(pathGraph,spreadLink),function(toField,next){_this8._spreadFromSpreadLinkByPathLink(toField,spreadLink,pathGraph,pathLink,context,function(error,id,prev,pathGraph,pathLink){if(handler)handler(error,id,prev,pathGraph,pathLink);next()})},callback)}/** | ||
*/},{key:'spreadFromSpreadLinkByPathLink',value:function spreadFromSpreadLinkByPathLink(spreadLink,pathGraph,pathLink,context,handler,callback){var _this8=this;this.each(this._getToFields(pathGraph,pathLink,spreadLink),function(toField,next){_this8._spreadFromSpreadLinkByPathLink(toField,spreadLink,pathGraph,pathLink,context,function(error,id,prev,pathGraph,pathLink){if(handler)handler(error,id,prev,pathGraph,pathLink);next()})},callback)}/** | ||
* Optional handler. | ||
@@ -127,0 +129,0 @@ * |
{ | ||
"name": "ancient-graph-spreading", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Automatic maintenance spreading of graph according other graphs.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
1871376
1384