Skip to content

Commit

Permalink
refactor: 添加high level link接口。
Browse files Browse the repository at this point in the history
  • Loading branch information
黄健 committed Nov 29, 2016
1 parent c051c66 commit d21353c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-hot-analyzer",
"version": "0.4.0",
"version": "0.4.5",
"description": "analyze es6 module import and export for ng-hot-loader.",
"main": "index.js",
"scripts": {
Expand All @@ -27,5 +27,8 @@
"istanbul": "^0.4.5",
"mocha": "^3.1.2",
"should": "^11.1.1"
},
"dependencies": {
"compose-function": "^3.0.3"
}
}
5 changes: 4 additions & 1 deletion src/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
'use strict';

const { has } = require('lodash');
const compose = require('compose-function');

module.exports = {
linkAnalyzeStream,
cleanAnalyzeStream
cleanAnalyzeStream,
// above export low level API just for mocha test, use below higher API
resolveAnalyzeStream: compose(cleanAnalyzeStream, linkAnalyzeStream)
};

/**
Expand Down

0 comments on commit d21353c

Please sign in to comment.