Skip to content

Commit

Permalink
Enabled SimpleSchema2Bridge.
Browse files Browse the repository at this point in the history
* Adds npm dependency 'simpl-schema'
* Bridges must export default class from implementation
  • Loading branch information
logankoester authored and radekmie committed Sep 28, 2016
1 parent 45eeb75 commit 1160b38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/uniforms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.4.0",
"lodash.set": "^4.3.2",
"lodash.xorwith": "^4.5.0"
"lodash.xorwith": "^4.5.0",
"simpl-schema": "0.0.3"
}
}
3 changes: 1 addition & 2 deletions packages/uniforms/src/bridges/SimpleSchema2Bridge.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ try {
);
} catch (_) { /* Ignore it. */ }

// export default class SimpleSchema2Bridge extends Bridge {
export class SimpleSchema2Bridge extends Bridge {
export default class SimpleSchema2Bridge extends Bridge {
static check (schema) {
return SimpleSchema && (
schema &&
Expand Down

0 comments on commit 1160b38

Please sign in to comment.