Skip to content

Commit

Permalink
Update DLP dependencies to use new DLP library (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri authored Oct 30, 2017
1 parent 08070ac commit b563be0
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 @@ -104,7 +104,7 @@ function inspectFile (filepath, minLikelihood, maxFindings, infoTypes, includeQu

// 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 @@ -64,19 +64,19 @@
]
},
"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 @@ -89,7 +89,7 @@ function redactImage (filepath, minLikelihood, infoTypes, outputPath) {
// const outputPath = 'result.png';

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 b563be0

Please sign in to comment.