File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ Parse `*.prototxt` files to JavaScript objects.
17
17
}
18
18
19
19
var uri = " https://rawgit.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.1/deploy.prototxt" ;
20
-
21
20
var proto;
22
21
fetchText (uri).then (function (str ){
23
22
proto = prototxtParser .parse (str);
@@ -36,6 +35,7 @@ function fetchText(uri: string) : Promise<string> {
36
35
return fetch (new Request (uri )).then ((res ) => res .text ());
37
36
}
38
37
38
+ let uri = " https://rawgit.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.1/deploy.prototxt" ;
39
39
let proto: Object ;
40
40
41
41
fetchText (uri ).then (function (str ){
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const p = require('./package.json');
9
9
10
10
const config = {
11
11
src : "./src" ,
12
+ pkgname : p . name ,
12
13
filename : p . name + ".js" ,
13
14
dst : "./dist"
14
15
} ;
@@ -18,7 +19,7 @@ const tsProject = ts.createProject('tsconfig.json');
18
19
function getBrowserify ( tinyify ) {
19
20
const b = browserify ( {
20
21
entries : config . src + '/index.ts' ,
21
- standalone : 'prototxt-parser'
22
+ standalone : config . pkgname
22
23
} ) . plugin ( 'tsify' ) ;
23
24
24
25
return tinyify === true ? b . plugin ( 'tinyify' ) . bundle ( ) : b . bundle ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " prototxt-parser" ,
3
- "version" : " 0.1.3 " ,
3
+ "version" : " 0.1.4 " ,
4
4
"description" : " a prototxt parser for js based on parsimmon" ,
5
5
"main" : " dist/node/index.js" ,
6
6
"types" : " dist/node/index.d.ts" ,
37
37
"karma-jasmine" : " ~1.1.0" ,
38
38
"karma-phantomjs-launcher" : " ^1.0.4" ,
39
39
"karma-typescript" : " ^3.0.8" ,
40
- "parsimmon" : " ^1.6.2" ,
41
40
"run-sequence" : " ^2.2.0" ,
42
41
"tinyify" : " ^2.3.0" ,
43
42
"tsify" : " ~3.0.1" ,
44
43
"tslint" : " ~5.6.0" ,
45
44
"tslint-no-circular-imports" : " ~0.2.0" ,
46
45
"typescript" : " 2.5.3" ,
47
46
"vinyl-source-stream" : " ^1.1.0"
47
+ },
48
+ "dependencies" : {
49
+ "parsimmon" : " ^1.6.2"
48
50
}
49
51
}
You can’t perform that action at this time.
0 commit comments