Skip to content

Commit

Permalink
#75 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Jan 23, 2019
1 parent 37039dc commit cf9aeb5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.1.1] - 2019-01-23
### Fixed
- [#75](https://github.com/jgable/gulp-cache/issues/75)

## [1.1.0] - 2019-01-07
### Changed
- Dependencies were updated.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-cache",
"version": "1.1.0",
"version": "1.1.1",
"description": "A cache proxy plugin for Gulp",
"author": "Jacob Gable <jacob.gable@gmail.com> (http://jacobgable.com)",
"contributors": [
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ plugin.Cache = Cache;
plugin.fileCache = fileCache;
plugin.defaultOptions = defaultOptions;

export default function plugin(task, inputOptions) {
export default function plugin(task, inputOptions = {}) {
// Check for required task option
if (!task) {
throw new PluginError('gulp-cache', 'Must pass a task to cache()');
}

const options = {
...plugin.defaultOptions,
...task.cacheable,
...(task.cacheable || {}),
...inputOptions
};
const taskProxy = new TaskProxy(task, options);
Expand Down

0 comments on commit cf9aeb5

Please sign in to comment.