Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

backblaze-b2-client

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backblaze-b2-client - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

48

dist/backblaze-b2-client.js

@@ -16,9 +16,43 @@ "use strict";

return {
upload: (credentials, fileName, data) => __awaiter(void 0, void 0, void 0, function* () { }),
download: (credentials, filePath) => __awaiter(void 0, void 0, void 0, function* () { }),
downloadDir: (credentials, dirPath) => __awaiter(void 0, void 0, void 0, function* () { }),
copy: (credentials, oldFilePath, newFilePath) => __awaiter(void 0, void 0, void 0, function* () { }),
listDir: (credentials, dirPath, batchSize, iteratorCallback) => __awaiter(void 0, void 0, void 0, function* () { }),
remove: (credentials, fileName) => __awaiter(void 0, void 0, void 0, function* () { }),
removeDir: (credentials, dirPath) => __awaiter(void 0, void 0, void 0, function* () { }),
upload: (credentials, fileName, data) => __awaiter(void 0, void 0, void 0, function* () {
const b2 = new B2(credentials);
const { bucketId } = credentials;
const authorizeResponse = yield b2.authorize();
yield b2.uploadAny({
bucketId,
fileName,
partSize: authorizeResponse.data.recommendedPartSize,
data
});
}),
download: (credentials, filePath) => __awaiter(void 0, void 0, void 0, function* () {
const b2 = new B2(credentials);
const { bucketId } = credentials;
const authorizeResponse = yield b2.authorize();
}),
downloadDir: (credentials, dirPath) => __awaiter(void 0, void 0, void 0, function* () {
const b2 = new B2(credentials);
const { bucketId } = credentials;
const authorizeResponse = yield b2.authorize();
}),
copy: (credentials, oldFilePath, newFilePath) => __awaiter(void 0, void 0, void 0, function* () {
const b2 = new B2(credentials);
const { bucketId } = credentials;
const authorizeResponse = yield b2.authorize();
}),
listDir: (credentials, dirPath, batchSize, iteratorCallback) => __awaiter(void 0, void 0, void 0, function* () {
const b2 = new B2(credentials);
const { bucketId } = credentials;
const authorizeResponse = yield b2.authorize();
}),
remove: (credentials, fileName) => __awaiter(void 0, void 0, void 0, function* () {
const b2 = new B2(credentials);
const { bucketId } = credentials;
const authorizeResponse = yield b2.authorize();
}),
removeDir: (credentials, dirPath) => __awaiter(void 0, void 0, void 0, function* () {
const b2 = new B2(credentials);
const { bucketId } = credentials;
const authorizeResponse = yield b2.authorize();
}),
testCredentials: (credentials) => __awaiter(void 0, void 0, void 0, function* () {

@@ -25,0 +59,0 @@ const b2 = new B2(credentials);

5

package.json
{
"name": "backblaze-b2-client",
"description": "Rich client for Backblaze B2",
"version": "0.0.1",
"version": "0.0.2",
"license": "Apache-2.0",

@@ -52,3 +52,4 @@ "author": {

"precommit": "npm run-script lint",
"prepush": "npm test"
"prepush": "npm test",
"prepublish": "npm build && npm test"
},

@@ -55,0 +56,0 @@ "jest": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc