Skip to content

Commit

Permalink
chore: 重置注册机制的提交
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanliang3 committed Nov 12, 2020
1 parent e7f6a34 commit ed6631f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/registry/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ export const createRegistry = stored => {

const instance = {
map,
builder: {
transform: register('transform'),
functional: register('functional'),
datasource: register('datasource'),
provider: register('provider')
},
use: builder => {
typeof builder !== 'function' ||
builder({
transform: register('transform'),
functional: register('functional'),
datasource: register('datasource'),
provider: register('provider')
})
typeof builder !== 'function' || builder(instance.builder)
return instance
},
build: () => {
Expand Down

0 comments on commit ed6631f

Please sign in to comment.