backblaze-b2-client
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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); |
{ | ||
"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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18389
81