Skip to content

Commit f819382

Browse files
committed
fix dependency
1 parent 54e2ec3 commit f819382

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Parse `*.prototxt` files to JavaScript objects.
1717
}
1818
1919
var uri = "https://rawgit.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.1/deploy.prototxt";
20-
2120
var proto;
2221
fetchText(uri).then(function(str){
2322
proto = prototxtParser.parse(str);
@@ -36,6 +35,7 @@ function fetchText(uri: string) : Promise<string> {
3635
return fetch(new Request(uri)).then((res) => res.text());
3736
}
3837

38+
let uri = "https://rawgit.com/DeepScale/SqueezeNet/master/SqueezeNet_v1.1/deploy.prototxt";
3939
let proto: Object;
4040

4141
fetchText(uri).then(function(str){

gulpfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const p = require('./package.json');
99

1010
const config = {
1111
src: "./src",
12+
pkgname: p.name,
1213
filename: p.name + ".js",
1314
dst: "./dist"
1415
};
@@ -18,7 +19,7 @@ const tsProject = ts.createProject('tsconfig.json');
1819
function getBrowserify(tinyify) {
1920
const b = browserify({
2021
entries: config.src + '/index.ts',
21-
standalone: 'prototxt-parser'
22+
standalone: config.pkgname
2223
}).plugin('tsify');
2324

2425
return tinyify === true ? b.plugin('tinyify').bundle() : b.bundle();

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prototxt-parser",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "a prototxt parser for js based on parsimmon",
55
"main": "dist/node/index.js",
66
"types": "dist/node/index.d.ts",
@@ -37,13 +37,15 @@
3737
"karma-jasmine": "~1.1.0",
3838
"karma-phantomjs-launcher": "^1.0.4",
3939
"karma-typescript": "^3.0.8",
40-
"parsimmon": "^1.6.2",
4140
"run-sequence": "^2.2.0",
4241
"tinyify": "^2.3.0",
4342
"tsify": "~3.0.1",
4443
"tslint": "~5.6.0",
4544
"tslint-no-circular-imports": "~0.2.0",
4645
"typescript": "2.5.3",
4746
"vinyl-source-stream": "^1.1.0"
47+
},
48+
"dependencies": {
49+
"parsimmon": "^1.6.2"
4850
}
4951
}

0 commit comments

Comments
 (0)