File tree Expand file tree Collapse file tree 9 files changed +26
-29
lines changed Expand file tree Collapse file tree 9 files changed +26
-29
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nbind" ,
3
- "version" : " 0.3.9 " ,
3
+ "version" : " 0.3.10 " ,
4
4
"description" : " Magical headers that make your C++ library accessible from JavaScript" ,
5
5
"main" : " dist/nbind.js" ,
6
6
"typings" : " dist/nbind.d.ts" ,
18
18
"tslint" : " tslint" ,
19
19
"cbuild" : " cbuild" ,
20
20
"dump-lib" : " dump-em-lib dist/em-api.js" ,
21
- "lint" : " tslint -c src/tslint.json src/*.ts src/em/*.ts " ,
21
+ "lint" : " tslint --type-check - c src/tslint.json -p src/tsconfig.json && tslint --type-check -c src/tslint.json -p src/ em/tsconfig.json " ,
22
22
"prepublish" : " npm run lint && tsc -p src/em && tsc -p src && cbuild -x -v -s dist/bundle/em/em-api.js -o dist/em-api.js" ,
23
23
"clean-asm" : " cd test/em && node-gyp clean" ,
24
24
"config-test" : " autogypi -c test/autogypi.json" ,
52
52
" win32"
53
53
],
54
54
"dependencies" : {
55
- "emscripten-library-decorator" : " ~0.2.0" ,
55
+ "@types/node" : " ^7.0.13" ,
56
+ "emscripten-library-decorator" : " ~0.2.2" ,
56
57
"mkdirp" : " ~0.5.1" ,
57
- "nan" : " ^2.5.0 "
58
+ "nan" : " ^2.6.2 "
58
59
},
59
60
"devDependencies" : {
60
61
"autogypi" : " ~0.2.2" ,
61
- "cbuild" : " ~0.1.1 " ,
62
- "node-gyp" : " ^3.5 .0" ,
63
- "tap" : " ^9.0.3 " ,
64
- "tslint" : " ^4.3.1 " ,
65
- "typescript" : " ^2.1.5 "
62
+ "cbuild" : " ~0.1.2 " ,
63
+ "node-gyp" : " ^3.6 .0" ,
64
+ "tap" : " ^10.3.2 " ,
65
+ "tslint" : " ^5.1.0 " ,
66
+ "typescript" : " ^2.2.2 "
66
67
}
67
68
}
Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ export function typeModule(self: any) {
332
332
spec . name = (
333
333
( flags & TypeFlags . isUnsigned ? 'u' : '' ) +
334
334
( flags & TypeFlags . isFloat ? 'float' : 'int' ) +
335
- ( spec . ptrSize * 8 + '_t' )
335
+ ( spec . ptrSize ! * 8 + '_t' )
336
336
) ;
337
337
}
338
338
}
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ export namespace _nbind {
286
286
287
287
const dynCall = getDynCall ( typeList , spec . title ) ;
288
288
289
- const mask = ~ spec . flags & TypeFlags . isConst ;
289
+ const mask = ~ spec . flags ! & TypeFlags . isConst ;
290
290
291
291
function err ( ) {
292
292
throw ( new Error ( 'Calling a non-const method on a const object' ) ) ;
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export namespace _nbind {
67
67
// Called by C++ side destructor through unregisterExternal
68
68
// to free any related JavaScript resources.
69
69
70
- free ?( ) : void
70
+ free ?( ) : void ;
71
71
72
72
refCount = 1 ;
73
73
data : any ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export namespace _nbind {
17
17
18
18
let dirtyList : Wrapper [ ] = [ ] ;
19
19
20
- let gcTimer = 0 ;
20
+ let gcTimer : number | NodeJS . Timer = 0 ;
21
21
22
22
function sweep ( ) {
23
23
for ( let obj of dirtyList ) {
@@ -48,4 +48,4 @@ export namespace _nbind {
48
48
49
49
@prepareNamespace ( '_nbind' )
50
50
export class _ { } // tslint:disable-line:class-name
51
- } ;
51
+ }
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export namespace _nbind {
30
30
export class Wrapper {
31
31
persist ( ) { this . __nbindState |= StateFlags . isPersistent ; }
32
32
33
- free ?( ) : void
33
+ free ?( ) : void ;
34
34
35
35
/* tslint:disable:variable-name */
36
36
Original file line number Diff line number Diff line change @@ -32,15 +32,3 @@ declare var HEAPU16: Uint16Array;
32
32
declare var HEAPU32 : Uint32Array ;
33
33
declare var HEAPF32 : Float32Array ;
34
34
declare var HEAPF64 : Float64Array ;
35
-
36
- declare class Buffer {
37
- constructor ( src : Uint8Array ) ;
38
-
39
- static from ( src : Uint8Array ) : Buffer ;
40
-
41
- copy ( target : Buffer ) : number ;
42
-
43
- length : number ;
44
-
45
- [ index : number ] : number ;
46
- }
Original file line number Diff line number Diff line change @@ -188,7 +188,10 @@ export class Reflect {
188
188
hitch ( this , this . readMethod )
189
189
) ;
190
190
191
- function compareName ( { name : a } : { name : string } , { name : b } : { name : string } ) {
191
+ function compareName (
192
+ { name : a } : { name : string } ,
193
+ { name : b } : { name : string }
194
+ ) {
192
195
return ( ~ ~ ( a > b ) - ~ ~ ( a < b ) ) ;
193
196
}
194
197
Original file line number Diff line number Diff line change 1
1
{
2
2
"rules" : {
3
+ "adjacent-overload-signatures" : true ,
3
4
"align" : true ,
4
5
"ban" : false ,
5
6
"class-name" : true ,
41
42
"no-default-export" : true ,
42
43
"no-duplicate-variable" : true ,
43
44
"no-empty" : true ,
45
+ "no-empty-interface" : true ,
44
46
"no-eval" : false ,
47
+ "no-import-side-effect" : true ,
45
48
"no-inferrable-types" : true ,
46
49
"no-internal-module" : true ,
47
50
"no-invalid-this" : false ,
51
+ "no-magic-numbers" : false ,
48
52
"no-namespace" : false ,
53
+ "no-non-null-assertion" : false ,
49
54
"no-null-keyword" : false ,
50
55
"no-reference" : true ,
51
56
"no-require-imports" : false ,
54
59
"no-switch-case-fall-through" : true ,
55
60
"no-trailing-whitespace" : true ,
56
61
"no-unused-expression" : true ,
57
- "no-use-before-declare" : true ,
62
+ "no-use-before-declare" : false ,
58
63
"no-var-keyword" : true ,
59
64
"no-var-requires" : true ,
60
65
"object-literal-sort-keys" : true ,
You can’t perform that action at this time.
0 commit comments