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

Commit f19d76a

Browse files
committed
IE8 error with 'null' type, fix #17
1 parent 82aaebf commit f19d76a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
1212
**Note**: Gaps between patch versions are faulty/broken releases.
1313

14+
## v0.2.2
15+
16+
- **Bug Fix**
17+
- IE8 error with 'null' type, fix #17
18+
1419
## v0.2.1
1520

1621
- **New Feature**

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var types = {
107107
return predicate ? t.subtype(t.Array, predicate) : t.Array;
108108
},
109109

110-
null: function () {
110+
'null': function () {
111111
return util.Null;
112112
}
113113

@@ -133,7 +133,7 @@ function transform(s) {
133133
if (registerTypes.hasOwnProperty(type)) {
134134
return registerTypes[type];
135135
}
136-
136+
137137
t.fail('[tcomb-json-schema] Unsupported json schema ' + t.stringify(s));
138138
}
139139

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tcomb-json-schema",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Transforms a JSON Schema to a tcomb type",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)