redux-collector
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -145,2 +145,2 @@ 'use strict'; | ||
exports.default = generateCollector; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb2xsZWN0b3ItcmVkdWNlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQTs7OztBQUNBOztBQUVBOztBQUNBOztBQUVBOztBQUNBOztBQUNBOzs7O0FBQ0E7Ozs7OztBQUVBLFNBQVMsVUFBVCxDQUFxQixLQUFyQixFQUE0QjtBQUMxQixNQUFJLENBQUMsaUJBQUUsT0FBRixDQUFVLEtBQVYsQ0FBTCxFQUF1QjtBQUNyQix5Q0FBbUMsS0FBSyxTQUFMLENBQWUsS0FBZixDQUFuQztBQUNEO0FBQ0Y7O0FBRUQsU0FBUyxpQkFBVCxHQUErSztBQUFBLG1FQUEzRCxFQUEyRDs7QUFBQSxNQUExSSxVQUEwSSxRQUFuSixPQUFtSjtBQUFBLE1BQXJILFVBQXFILFFBQTlILE9BQThIO0FBQUEsTUFBOUYsWUFBOEYsUUFBekcsU0FBeUc7QUFBQSxNQUF4RSxTQUF3RSxRQUFoRixNQUFnRjs7QUFBQSxvRUFBSixFQUFJOztBQUFBLDRCQUF0RCxPQUFzRDtBQUFBLE1BQTdDLFdBQTZDLGlDQUEvQixpQkFBRSxRQUE2QjtBQUFBLE1BQW5CLFdBQW1CLFNBQW5CLFdBQW1COzs7QUFFN0ssTUFBTSxnQkFBZ0IsZUFBZSxTQUFmLG9DQUE0QyxpQkFBRSxZQUFGLENBQWUsVUFBZixpQ0FBbEU7OztBQUdBLE1BQU0sVUFBVSxpQkFBRSxJQUFGLENBQU8sYUFBUCxtQkFBaEI7QUFDQSxNQUFNLFlBQVksZ0JBQWdCLHlDQUFrQixPQUFsQixDQUFsQztBQUNBLE1BQU0sVUFBVSxjQUFjLHVDQUFnQixTQUFoQixDQUE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ZXMgPSBnZXRJbmRleGVzQmFzZS5iaW5kKHRoaXMsIGluZGV4ZXNPZik7XG4gIGNvbnN0IGdldE1vdmVJbmRleGVzID0gZ2V0TW92ZUluZGV4ZXNCYXNlLmJpbmQodGhpcywgaW5kZXhlc09mKTtcblxuXG4gIGNvbnN0IGNvbGxlY3Rvck9iamVjdCA9IGNvbGxlY3RvclJlZHVjZXJCYXNlKHtcbiAgICBpdGVtRGVmYXVsdCxcbiAgICBtYXRjaGVyLFxuICAgIGdldEluZGV4ZXMsXG4gICAgZ2V0TW92ZUluZGV4ZXMsXG4gICAgYWRkV3JhcHBlcixcbiAgICByZWR1Y2VyOiBfLndyYXAoaXRlbVJlZHVjZXIsIGl0ZW1SZWR1Y2VyV3JhcCksXG4gICAgc29ydEJ5XG4gIH0pO1xuXG4gIHJldHVybiBPYmplY3Qua2V5cyhjb2xsZWN0b3JPYmplY3QpLnJlZHVjZSgocG9pbnRlciwga2V5KSA9PiB7XG5cbiAgICBpZiAoY29udGFpbnMoc29ydFJlZHVjZXJzLCBrZXkpKSB7XG4gICAgICByZXR1cm4ge1xuICAgICAgICAuLi5wb2ludGVyLFxuICAgICAgICBba2V5XTogXy53cmFwKGNvbGxlY3Rvck9iamVjdFtrZXldLCBzb3J0UmVkdWNlcldyYXApXG4gICAgICB9O1xuICAgIH1cblxuICAgIHJldHVybiB7XG4gICAgICAuLi5wb2ludGVyLFxuICAgICAgW2tleV06IF8ud3JhcChjb2xsZWN0b3JPYmplY3Rba2V5XSwgY29sbGVjdGlvblJlZHVjZXJXcmFwKVxuICAgIH07XG4gIH0sIHt9KTtcblxufVxuXG5leHBvcnQgZGVmYXVsdCBnZW5lcmF0ZUNvbGxlY3RvcjtcbiJdfQ== |
{ | ||
"name": "redux-collector", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Easy Collection Reducers for Redux", | ||
"main": "lib/redux-collector.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/cross-env BABEL_ENV=commonjs ./node_modules/.bin/mocha --compilers js:babel-register --recursive", | ||
"compile": "./node_modules/.bin/babel --source-maps inline --optional runtime -d lib/ src/", | ||
"test": "./node_modules/.bin/cross-env BABEL_ENV=compile ./node_modules/.bin/mocha --compilers js:babel-register --recursive", | ||
"compile": "BABEL_ENV=compile ./node_modules/.bin/babel --source-maps inline --optional runtime -d lib/ src/", | ||
"prepublish": "npm run compile", | ||
"ghpage": "lessc ghpage/style.less ghpage.css && pug ./ghpage/index.pug --out ./" | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"es2015", | ||
"stage-1", | ||
"stage-2" | ||
] | ||
}, | ||
"nyc": { | ||
@@ -76,4 +69,4 @@ "exclude": [ | ||
"lodash": "^4.14.1", | ||
"reducify": "^1.0.2" | ||
"reducify": "^1.0.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
252486
39
Updatedreducify@^1.0.3