diff --git a/lib/slideHelper.js b/lib/slideHelper.js index 272b8aa..417e9c4 100644 --- a/lib/slideHelper.js +++ b/lib/slideHelper.js @@ -1,10 +1,9 @@ const isEq = require('@codefeathers/iseq'); const Fuse = require('@codefeathers/fuse'); +const { wrap } = require('./utils'); const errors = require('./errorsHelper'); -const wrap = (f, ...x) => (...y) => f(...x, ...y); - const converter = ( hostPosition, guestPosition, diff --git a/lib/utils.js b/lib/utils.js new file mode 100644 index 0000000..c2bfc0a --- /dev/null +++ b/lib/utils.js @@ -0,0 +1,5 @@ +const wrap = (f, ...x) => (...y) => f(...x, ...y); + +module.exports = { + wrap +} \ No newline at end of file diff --git a/package.json b/package.json index 85c7f90..fb0c742 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@codefeathers/window", - "version": "0.1.0", + "version": "0.1.5", "description": "A sliding window algorithm to insert a new array into an existing one.", "main": "index.js", "scripts": {