stackexchange
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -19,9 +19,9 @@ 'use strict'; | ||
function parseBody (buffer, callback) { | ||
try { | ||
zlib.unzip(buffer, function Unzipped (error, body) { | ||
zlib.unzip(buffer, function Unzipped (error, body) { | ||
try { | ||
callback(error, JSON.parse(body.toString())); | ||
}); | ||
} catch (error) { | ||
callback(error); | ||
} | ||
} catch (error) { | ||
callback(error); | ||
} | ||
}); | ||
} | ||
@@ -28,0 +28,0 @@ |
{ | ||
"name": "stackexchange", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Node.js implementation of the stackexchange/stackoverflow API", | ||
"main": "index.js", | ||
"main": "./lib/stackoverflow.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "make test" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4962
9
149