marmot-client
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -49,2 +49,6 @@ 'use strict'; | ||
if (acl === 'authenticated-read') { | ||
form.append('acl', 'authenticated-read'); | ||
} | ||
const requestUrl = `${this.endpoint}${pathname}?${querystring}`; | ||
@@ -66,4 +70,11 @@ const stringToSign = this.signData(method, `${pathname}?${querystring}`); | ||
} | ||
async authenticatedReadUrl(url) { | ||
return this.post({ | ||
pathname: '/openapi/storage_authenticated_read', | ||
body: { url }, | ||
}); | ||
} | ||
} | ||
module.exports = MarmotClient; |
{ | ||
"name": "marmot-client", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Marmot client.", | ||
@@ -22,3 +22,7 @@ "keywords": [ | ||
"husky": "^3.1.0", | ||
"intelli-espower-loader": "^1.0.1", | ||
"lint-staged": "^9.5.0", | ||
"mocha": "^7.1.2", | ||
"nyc": "^15.0.1", | ||
"power-assert": "^1.6.1", | ||
"prettier": "^1.19.1" | ||
@@ -30,4 +34,3 @@ }, | ||
"ci": "npm run lint && npm run test", | ||
"test": "nyc --reporter=lcov --reporter=text mocha", | ||
"contributor": "git-contributor" | ||
"test": "nyc mocha" | ||
}, | ||
@@ -50,2 +53,13 @@ "files": [ | ||
}, | ||
"nyc": { | ||
"include": [ | ||
"lib", | ||
"index.js" | ||
], | ||
"reporter": [ | ||
"lcov", | ||
"text", | ||
"text-summary" | ||
] | ||
}, | ||
"engines": { | ||
@@ -52,0 +66,0 @@ "node": ">=8" |
7269
164
10