Skip to content

Commit

Permalink
Update sample dependencies (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri authored and lukesneeringer committed Oct 28, 2017
1 parent d92954f commit 520281b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dlp/inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function inspectFile(
// Construct file data to inspect
const fileItems = [
{
type: mime.lookup(filepath) || 'application/octet-stream',
type: mime.getType(filepath) || 'application/octet-stream',
data: Buffer.from(fs.readFileSync(filepath)).toString('base64'),
},
];
Expand Down
20 changes: 10 additions & 10 deletions dlp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
"test": "samples test run --cmd ava -- -T 1m --verbose system-test/*.test.js"
},
"dependencies": {
"@google-cloud/bigquery": "^0.9.6",
"@google-cloud/dlp": "^0.1.0",
"google-auth-library": "0.10.0",
"@google-cloud/bigquery": "^0.10.0",
"@google-cloud/dlp": "^0.2.0",
"google-auth-library": "0.11.0",
"google-auto-auth": "0.7.2",
"google-proto-files": "0.13.0",
"mime": "1.4.0",
"request": "2.81.0",
"request-promise": "4.2.1",
"google-proto-files": "0.13.1",
"mime": "2.0.3",
"request": "2.83.0",
"request-promise": "4.2.2",
"safe-buffer": "5.1.1",
"yargs": "8.0.2"
"yargs": "10.0.3"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "1.4.17",
"ava": "0.22.0"
"@google-cloud/nodejs-repo-tools": "2.1.0",
"ava": "0.23.0"
}
}
2 changes: 1 addition & 1 deletion dlp/redact.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function redactImage(filepath, minLikelihood, infoTypes, outputPath) {

const fileItems = [
{
type: mime.lookup(filepath) || 'application/octet-stream',
type: mime.getType(filepath) || 'application/octet-stream',
data: Buffer.from(fs.readFileSync(filepath)).toString('base64'),
},
];
Expand Down

0 comments on commit 520281b

Please sign in to comment.