Skip to content

Commit b563be0

Browse files
author
Ace Nassri
authored
Update DLP dependencies to use new DLP library (#511)
1 parent 08070ac commit b563be0

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

dlp/inspect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function inspectFile (filepath, minLikelihood, maxFindings, infoTypes, includeQu
104104

105105
// Construct file data to inspect
106106
const fileItems = [{
107-
type: mime.lookup(filepath) || 'application/octet-stream',
107+
type: mime.getType(filepath) || 'application/octet-stream',
108108
data: Buffer.from(fs.readFileSync(filepath)).toString('base64')
109109
}];
110110

dlp/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@
6464
]
6565
},
6666
"dependencies": {
67-
"@google-cloud/bigquery": "^0.9.6",
68-
"@google-cloud/dlp": "^0.1.0",
69-
"google-auth-library": "0.10.0",
67+
"@google-cloud/bigquery": "^0.10.0",
68+
"@google-cloud/dlp": "^0.2.0",
69+
"google-auth-library": "0.11.0",
7070
"google-auto-auth": "0.7.2",
71-
"google-proto-files": "0.13.0",
72-
"mime": "1.4.0",
73-
"request": "2.81.0",
74-
"request-promise": "4.2.1",
71+
"google-proto-files": "0.13.1",
72+
"mime": "2.0.3",
73+
"request": "2.83.0",
74+
"request-promise": "4.2.2",
7575
"safe-buffer": "5.1.1",
76-
"yargs": "8.0.2"
76+
"yargs": "10.0.3"
7777
},
7878
"devDependencies": {
79-
"@google-cloud/nodejs-repo-tools": "1.4.17",
80-
"ava": "0.22.0"
79+
"@google-cloud/nodejs-repo-tools": "2.1.0",
80+
"ava": "0.23.0"
8181
}
8282
}

dlp/redact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function redactImage (filepath, minLikelihood, infoTypes, outputPath) {
8989
// const outputPath = 'result.png';
9090

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

0 commit comments

Comments
 (0)