@warerebel/azureblobstoragehelper
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -85,2 +85,16 @@ const https = require("https"); | ||
getPath(options, callback) { | ||
let pathOptions = { | ||
method: "HEAD", | ||
protocol: "https:", | ||
host: this.storageAccount.concat(".dfs.core.windows.net"), | ||
path: "/".concat(options.filesystem, "/", options.filename), | ||
headers: options.httpHeaders || {} | ||
}; | ||
pathOptions.headers["x-ms-date"] = new Date().toUTCString(); | ||
pathOptions.headers["x-ms-version"] = "2019-02-02"; | ||
pathOptions.headers["Content-Length"] = 0; | ||
this.executeRequest(pathOptions, null, callback); | ||
} | ||
flushContent(options, callback) { | ||
@@ -87,0 +101,0 @@ let flushOptions = { |
{ | ||
"name": "@warerebel/azureblobstoragehelper", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Module to ease the storing of data in azure gen2 blob storage", | ||
@@ -5,0 +5,0 @@ "main": "lib/azureBlobStorage.js", |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
53807
7
331