File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 5
5
- JSON literal value handling issues (` null ` and ` [] ` ).
6
6
- Always pass typeScopedContext to _ expandObject.
7
7
- Allow a keyword to exist when expanding in _ expandObject when the key is ` @included ` or ` @type ` .
8
+ - Improve isDouble to look for big integers.
8
9
9
10
## 2.0.2 - 2020-01-17
10
11
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ api.isBoolean = v => (typeof v === 'boolean' ||
32
32
*
33
33
* @return true if the value is a double, false if not.
34
34
*/
35
- api . isDouble = v => api . isNumber ( v ) && String ( v ) . indexOf ( '.' ) !== - 1 ;
35
+ api . isDouble = v => api . isNumber ( v ) &&
36
+ ( String ( v ) . indexOf ( '.' ) !== - 1 || Math . abs ( v ) >= 1e21 ) ;
36
37
37
38
/**
38
39
* Returns true if the given value is an empty Object.
Original file line number Diff line number Diff line change @@ -334,15 +334,12 @@ const TEST_TYPES = {
334
334
/ h t m l - m a n i f e s t .j s o n l d # t r 0 2 0 $ / ,
335
335
/ h t m l - m a n i f e s t .j s o n l d # t r 0 2 1 $ / ,
336
336
/ h t m l - m a n i f e s t .j s o n l d # t r 0 2 2 $ / ,
337
- // number fixes
338
- / t o R d f - m a n i f e s t .j s o n l d # t r t 0 1 $ / ,
339
337
// IRI resolution
340
338
/ t o R d f - m a n i f e s t .j s o n l d # t 0 1 3 0 $ / ,
341
339
/ t o R d f - m a n i f e s t .j s o n l d # t 0 1 3 1 $ / ,
342
340
/ t o R d f - m a n i f e s t .j s o n l d # t 0 1 3 2 $ / ,
343
- // @vocab mapping
344
- / t o R d f - m a n i f e s t .j s o n l d # t e 0 7 5 $ / ,
345
341
// Invalid Statement
342
+ / t o R d f - m a n i f e s t .j s o n l d # t e 0 7 5 $ / ,
346
343
/ t o R d f - m a n i f e s t .j s o n l d # t e 1 1 1 $ / ,
347
344
/ t o R d f - m a n i f e s t .j s o n l d # t e 1 1 2 $ / ,
348
345
// @import
You can’t perform that action at this time.
0 commit comments