imgbb-uploader
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -0,1 +1,11 @@ | ||
# 1.3.2 | ||
- [Patch responseObject interface](https://github.com/TheRealBarenziah/imgbb-uploader/pull/9#issuecomment-860906935) | ||
Fix the interface for medium key & update README for that matter. | ||
- [Update devDependencies](https://github.com/TheRealBarenziah/remap-istanbul/commit/f8a107f7aba3b5224011ffa3d353d5e6c2360a8b) | ||
For sport, I tried to please `npm audit` & GitHub dependabot for dev deps. Fixing the bothering [RCE](https://github.com/TheRealBarenziah/remap-istanbul/commit/f8a107f7aba3b5224011ffa3d353d5e6c2360a8b) vulnerability took a `remap-istanbul` fork since their repo last commit is 3 years ago. | ||
- One day tho, I should setup a proper Istanbul CC setup & take the opportunity to replace `tslint` by `typescript-eslint` since the former [is deprecated since 2019](https://github.com/palantir/tslint/issues/4534). | ||
# 1.3.1 | ||
@@ -2,0 +12,0 @@ |
@@ -24,3 +24,3 @@ export default interface ResponseObject { | ||
}; | ||
medium: { | ||
medium?: { | ||
filename: string; | ||
@@ -27,0 +27,0 @@ name: string; |
{ | ||
"name": "imgbb-uploader", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Lightweight module to upload images through Imgbb API.", | ||
@@ -19,2 +19,3 @@ "main": "lib/cjs/index.js", | ||
"lint": "tslint -p tsconfig.json", | ||
"clean": "node clean.js", | ||
"prepare": "npm run build", | ||
@@ -41,7 +42,6 @@ "prepublishOnly": "npm test && npm run lint", | ||
"husky": "^4.2.5", | ||
"intern": "^4.9.0", | ||
"jest": "^26.4.0", | ||
"prettier": "^2.0.5", | ||
"pretty-quick": "^2.0.1", | ||
"remap-istanbul": "^0.13.0", | ||
"remap-istanbul": "git:github.com/TheRealBarenziah/remap-istanbul", | ||
"rimraf": "^3.0.2", | ||
@@ -48,0 +48,0 @@ "sharp": "^0.26.3", |
@@ -13,8 +13,10 @@ # imgbb-uploader | ||
**Node >= 8** ( [this module uses async/await](https://node.green/) ) | ||
**Node >= 8** ( [async/await](https://node.green/) ) | ||
_Care: this module uses `fs` under the hood. **It WON'T work outside the node environment !**_ | ||
_You really SHOULDN'T use API keys from your frontend. PLEASE DON'T DO THAT !!!_ | ||
_You SHOULDN'T use API keys from your frontend anyway. PLEASE DON'T DO THAT !!!_ | ||
[Blah blah blah, my soul is lost already, bring it on](https://stackoverflow.com/a/63669049/11894221) | ||
**File formats supported by ImgBB API:** `.jpg`, `.png`,`.bmp`,`.gif`, `base64`. | ||
## Install | ||
@@ -79,2 +81,4 @@ | ||
_**Note about imgBB API:** the `medium` Object will only be returned for `.png` and `base64` files !_ | ||
## Use with options object (more features, yay! ) | ||
@@ -81,0 +85,0 @@ |
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
32348
21
170