Skip to content

Commit 520281b

Browse files
Ace Nassrilukesneeringer
authored andcommitted
Update sample dependencies (#5)
1 parent d92954f commit 520281b

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
@@ -118,7 +118,7 @@ function inspectFile(
118118
// Construct file data to inspect
119119
const fileItems = [
120120
{
121-
type: mime.lookup(filepath) || 'application/octet-stream',
121+
type: mime.getType(filepath) || 'application/octet-stream',
122122
data: Buffer.from(fs.readFileSync(filepath)).toString('base64'),
123123
},
124124
];

dlp/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313
"test": "samples test run --cmd ava -- -T 1m --verbose system-test/*.test.js"
1414
},
1515
"dependencies": {
16-
"@google-cloud/bigquery": "^0.9.6",
17-
"@google-cloud/dlp": "^0.1.0",
18-
"google-auth-library": "0.10.0",
16+
"@google-cloud/bigquery": "^0.10.0",
17+
"@google-cloud/dlp": "^0.2.0",
18+
"google-auth-library": "0.11.0",
1919
"google-auto-auth": "0.7.2",
20-
"google-proto-files": "0.13.0",
21-
"mime": "1.4.0",
22-
"request": "2.81.0",
23-
"request-promise": "4.2.1",
20+
"google-proto-files": "0.13.1",
21+
"mime": "2.0.3",
22+
"request": "2.83.0",
23+
"request-promise": "4.2.2",
2424
"safe-buffer": "5.1.1",
25-
"yargs": "8.0.2"
25+
"yargs": "10.0.3"
2626
},
2727
"devDependencies": {
28-
"@google-cloud/nodejs-repo-tools": "1.4.17",
29-
"ava": "0.22.0"
28+
"@google-cloud/nodejs-repo-tools": "2.1.0",
29+
"ava": "0.23.0"
3030
}
3131
}

dlp/redact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function redactImage(filepath, minLikelihood, infoTypes, outputPath) {
9191

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

0 commit comments

Comments
 (0)