Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
IE8 error with 'null' type, fix #17
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Dec 7, 2015
1 parent 82aaebf commit f19d76a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
**Note**: Gaps between patch versions are faulty/broken releases.

## v0.2.2

- **Bug Fix**
- IE8 error with 'null' type, fix #17

## v0.2.1

- **New Feature**
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ var types = {
return predicate ? t.subtype(t.Array, predicate) : t.Array;
},

null: function () {
'null': function () {
return util.Null;
}

Expand All @@ -133,7 +133,7 @@ function transform(s) {
if (registerTypes.hasOwnProperty(type)) {
return registerTypes[type];
}

t.fail('[tcomb-json-schema] Unsupported json schema ' + t.stringify(s));
}

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": "tcomb-json-schema",
"version": "0.2.1",
"version": "0.2.2",
"description": "Transforms a JSON Schema to a tcomb type",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f19d76a

Please sign in to comment.