Skip to content

Commit

Permalink
Security update for unzipper, update of GND data test
Browse files Browse the repository at this point in the history
  • Loading branch information
sermo-de-arboribus committed Sep 18, 2019
1 parent ada6b5d commit 7d4ce5b
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 93 deletions.
Empty file modified bin/reason.js
100755 → 100644
Empty file.
Empty file modified bin/stream.js
100755 → 100644
Empty file.
Empty file modified bin/tdb-loader.js
100755 → 100644
Empty file.
4 changes: 2 additions & 2 deletions lib/getty.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
N3 = require "n3"
miss = require "mississippi"
request = require "request"
unzip = require "unzip"
unzipper = require "unzipper"

debug = require "debug"
log = debug "rdf-tools:getty"
Expand All @@ -18,7 +18,7 @@ aatFilter = (components...) ->

aat = (to, filter=aatFilter(), cb) ->
source = request { url }
extract = unzip.Parse()
extract = unzipper.Parse()
.on "entry" , (entry) ->
if filter entry
log "+ %o", entry
Expand Down
4 changes: 1 addition & 3 deletions lib/gnd.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ request = require "request"

nt2nq = require "./nt2nq"

url = [
"http://datendienst.dnb.de/cgi-bin/mabit.pl"
"?cmd=fetch&userID=opendata&pass=opendata&mabheft=GND.ttl.gz"].join ""
url = "https://data.dnb.de/opendata/authorities-person_lds.ttl.gz"

module.exports =
stream: (cb) -> miss.pipe request({ url }), zlib.createGunzip(), cb
Expand Down
165 changes: 78 additions & 87 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"n3": "^1.0.0-beta.1",
"rdfxml-streaming-parser": "^1.0.0",
"request": "^2.85.0",
"unzip": "^0.1.11"
"unzipper": "^0.10.5"
}
}

0 comments on commit 7d4ce5b

Please sign in to comment.