cerebral-module-fuse
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -7,7 +7,13 @@ 'use strict'; | ||
exports.default = function (_ref) { | ||
var query = _ref.input.query; | ||
var module = _ref.module; | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
module.state.set('query', query); | ||
exports.default = function (modulePath) { | ||
var queryPath = [].concat(_toConsumableArray(modulePath), ['query']); | ||
return function (_ref) { | ||
var query = _ref.input.query; | ||
var state = _ref.state; | ||
state.set(queryPath, query); | ||
}; | ||
}; |
@@ -13,2 +13,4 @@ 'use strict'; | ||
exports.default = [_search2.default]; | ||
exports.default = function (modulePath) { | ||
return [(0, _search2.default)(modulePath)]; | ||
}; |
'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,2 +7,4 @@ value: true | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _fuse = require('fuse.js'); | ||
@@ -11,0 +11,0 @@ |
@@ -24,2 +24,4 @@ 'use strict'; | ||
return function (module) { | ||
var modulePath = module.name.split('.'); | ||
module.addState({ | ||
@@ -32,6 +34,5 @@ statePath: statePath, | ||
module.addSignals({ | ||
search: _search2.default | ||
search: (0, _search2.default)(modulePath) | ||
}); | ||
var modulePath = module.name.split('.'); | ||
module.addServices({ | ||
@@ -38,0 +39,0 @@ fuse: (0, _compute2.default)(modulePath), |
{ | ||
"name": "cerebral-module-fuse", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A cerebral module that adds fuzzy search to data in store", | ||
@@ -36,22 +36,21 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"babel": "^6.3.26", | ||
"babel-cli": "^6.4.5", | ||
"babel-core": "^6.4.5", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel": "^6.5.1", | ||
"babel-cli": "^6.5.1", | ||
"babel-core": "^6.5.1", | ||
"babel-preset-es2015": "^6.5.0", | ||
"baobab": "^2.3.3", | ||
"cerebral": "^0.33.8", | ||
"cerebral": "^0.33.23", | ||
"cerebral-model-baobab": "^0.4.7", | ||
"chai": "^3.4.1", | ||
"mocha": "^2.4.2", | ||
"chai": "^3.5.0", | ||
"eslint": "^2.0.0-rc.0", | ||
"mocha": "^2.4.5", | ||
"parallelshell": "^2.0.0", | ||
"pouchdb": "^5.2.0", | ||
"pouchdb-authentication": "^0.4.2", | ||
"rimraf": "^2.5.1", | ||
"snazzy": "^2.0.1", | ||
"standard": "^5.4.1", | ||
"standard": "^6.0.4", | ||
"watch": "^0.17.1" | ||
}, | ||
"dependencies": { | ||
"fuse.js": "^1.3.1" | ||
"fuse.js": "^2.0.0" | ||
} | ||
} |
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
7714
15
83
+ Addedfuse.js@2.7.4(transitive)
- Removedfuse.js@1.3.1(transitive)
Updatedfuse.js@^2.0.0