From 3e6eb695e8c515a2cea02cd2473fb04b58a6b4ac Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Sat, 12 May 2018 20:45:54 +0530 Subject: [PATCH] [v0.1.5] --- lib/slideHelper.js | 3 +-- lib/utils.js | 5 +++++ package.json | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 lib/utils.js 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": {