UNPKG

node-base64-image

Version:

Download images from remote URLs and encode/decode them to base64

177 lines (113 loc) 11.3 kB
### Changelog All notable changes to this project will be documented in this file. Dates are displayed in UTC. Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### [v2.0.7](https://github.com/riyadhalnur/node-base64-image/compare/v2.0.7...v2.0.7) #### [v2.0.7](https://github.com/riyadhalnur/node-base64-image/compare/v2.0.6...v2.0.7) > 15 August 2024 - fix: Updated dependencies to remove vulnerabilities [`#79`](https://github.com/riyadhalnur/node-base64-image/pull/79) - Update README.md to include example for encoding from local file [`#77`](https://github.com/riyadhalnur/node-base64-image/pull/77) - Bump follow-redirects from 1.15.4 to 1.15.6 [`#75`](https://github.com/riyadhalnur/node-base64-image/pull/75) - Bump follow-redirects from 1.15.2 to 1.15.4 [`#74`](https://github.com/riyadhalnur/node-base64-image/pull/74) - fix: Updated dependencies to remove vulnerabilities #78 [`d6a368b`](https://github.com/riyadhalnur/node-base64-image/commit/d6a368b330a286eea04b64b4a7cc44edb9b7de22) - Update npm-test-publish.yaml [`65f8463`](https://github.com/riyadhalnur/node-base64-image/commit/65f846389db591d75d4bcfbe63ccdb06bb3c9467) - Bump package and drop support for v16 [`5e87fb5`](https://github.com/riyadhalnur/node-base64-image/commit/5e87fb5ab8238eb887b9c8bb8913666df5cfc66d) #### [v2.0.6](https://github.com/riyadhalnur/node-base64-image/compare/v2.0.5...v2.0.6) > 12 November 2023 - Update npm-test-publish.yaml [`#71`](https://github.com/riyadhalnur/node-base64-image/pull/71) - Bump axios from 1.3.5 to 1.6.0 [`#70`](https://github.com/riyadhalnur/node-base64-image/pull/70) - Bump @babel/traverse from 7.21.4 to 7.23.2 [`#68`](https://github.com/riyadhalnur/node-base64-image/pull/68) - Bump word-wrap from 1.2.3 to 1.2.4 [`#67`](https://github.com/riyadhalnur/node-base64-image/pull/67) - Bump package [`a078bbe`](https://github.com/riyadhalnur/node-base64-image/commit/a078bbe2820d4dd5ffc70e722d35fc2fa131a814) #### [v2.0.5](https://github.com/riyadhalnur/node-base64-image/compare/v2.0.4...v2.0.5) > 13 April 2023 - UPDATED: update deps [`c5e44ad`](https://github.com/riyadhalnur/node-base64-image/commit/c5e44ad30022141c46a4626fe9a45a7d40993f0c) - Update SECURITY.md [`93b768a`](https://github.com/riyadhalnur/node-base64-image/commit/93b768aa7d531cb20dd80df01d0569f4fa06594e) #### [v2.0.4](https://github.com/riyadhalnur/node-base64-image/compare/v2.0.3...v2.0.4) > 29 January 2022 - [Snyk] Security upgrade axios from 0.21.1 to 0.21.3 [`#60`](https://github.com/riyadhalnur/node-base64-image/pull/60) - Update README.md [`#55`](https://github.com/riyadhalnur/node-base64-image/pull/55) - UPDATED: update deps [`1e262ab`](https://github.com/riyadhalnur/node-base64-image/commit/1e262ab4907e4cc23daacea28395f0c268b78785) - fix: package.json & package-lock.json to reduce vulnerabilities [`d257bce`](https://github.com/riyadhalnur/node-base64-image/commit/d257bce0c88b9824e102892b9c60d1b7b7499ee6) - Create SECURITY.md [`73448cd`](https://github.com/riyadhalnur/node-base64-image/commit/73448cd693ae54a98e7da50594993f9b9334d180) #### [v2.0.3](https://github.com/riyadhalnur/node-base64-image/compare/v2.0.2...v2.0.3) > 20 January 2021 - Create codeql-analysis.yml [`de88cbe`](https://github.com/riyadhalnur/node-base64-image/commit/de88cbebdfa0e6c0ab85e8a953d7d94bfb75f9fd) - Updated CHANGELOG [`90cd0ca`](https://github.com/riyadhalnur/node-base64-image/commit/90cd0cae8d0609e10c54034dbe60ee82ce9be8f2) #### [v2.0.2](https://github.com/riyadhalnur/node-base64-image/compare/v2.0.1...v2.0.2) > 18 January 2021 - [Snyk] Security upgrade axios from 0.19.2 to 0.21.1 [`#56`](https://github.com/riyadhalnur/node-base64-image/pull/56) - Bump lodash from 4.17.15 to 4.17.19 [`#54`](https://github.com/riyadhalnur/node-base64-image/pull/54) - CHORE: update outdated deps [`e7dfdd1`](https://github.com/riyadhalnur/node-base64-image/commit/e7dfdd16964fdb13b15b051c6432eb69a5425461) - fix: package.json & package-lock.json to reduce vulnerabilities [`6fe9230`](https://github.com/riyadhalnur/node-base64-image/commit/6fe923006d5f59e9d76dfa48295f82232729dfe7) - Updated CHANGELOG [`e5fabdd`](https://github.com/riyadhalnur/node-base64-image/commit/e5fabddf8caed373f33805af38adfa5c22ede896) #### [v2.0.1](https://github.com/riyadhalnur/node-base64-image/compare/v2.0.0...v2.0.1) > 26 May 2020 - Updated README [`b0cb1f2`](https://github.com/riyadhalnur/node-base64-image/commit/b0cb1f21a658ed8020dd8309caa5aa72b1633f5d) ### [v2.0.0](https://github.com/riyadhalnur/node-base64-image/compare/v1.0.7...v2.0.0) > 26 May 2020 - Add new dependencies [`548f628`](https://github.com/riyadhalnur/node-base64-image/commit/548f6286e4f9502e9d0a7eaded04ca9399f84827) - Remove old and unecessary files [`87127f3`](https://github.com/riyadhalnur/node-base64-image/commit/87127f3cb68d6ae08a0b17ccf95cd59a4b7e8e70) - Rewrite package in typescript [`57b828d`](https://github.com/riyadhalnur/node-base64-image/commit/57b828d2d08f7fb4e33c3428555650f00c605b01) #### [v1.0.7](https://github.com/riyadhalnur/node-base64-image/compare/v1.0.6...v1.0.7) > 13 February 2020 - Updated CHANGELOG [`7170568`](https://github.com/riyadhalnur/node-base64-image/commit/717056898f464c734bc3daec14c120d4e54e4d3e) - [CHORE] Update deps [`34fb86d`](https://github.com/riyadhalnur/node-base64-image/commit/34fb86d5bc1129c43c8ca3df98a46994180f293f) - Bump eslint-utils from 1.3.1 to 1.4.2 [`6f51d3a`](https://github.com/riyadhalnur/node-base64-image/commit/6f51d3a763c0106d53eb39f1162cec146b8c7617) #### [v1.0.6](https://github.com/riyadhalnur/node-base64-image/compare/v1.0.5...v1.0.6) > 1 June 2019 - [Snyk] Fix for 1 vulnerable dependencies [`#36`](https://github.com/riyadhalnur/node-base64-image/pull/36) - Update packages and bump version [`0f73780`](https://github.com/riyadhalnur/node-base64-image/commit/0f73780f1e8cd7b0434c74b47b02196df61e842d) - CI node versions update [`0e5466b`](https://github.com/riyadhalnur/node-base64-image/commit/0e5466b60b52b68b6ea1ea1940a43474adc1e8e3) - declare type [`a4ebdd1`](https://github.com/riyadhalnur/node-base64-image/commit/a4ebdd13fb23c19838b63310ae6f57049eede6e9) #### [v1.0.5](https://github.com/riyadhalnur/node-base64-image/compare/v1.0.4...v1.0.5) > 22 April 2018 - Bump package version to use vulnerability fixes [`#34`](https://github.com/riyadhalnur/node-base64-image/pull/34) - [Snyk Update] New fixes for 4 vulnerable dependency paths [`#32`](https://github.com/riyadhalnur/node-base64-image/pull/32) - [Snyk Update] New fixes for 1 vulnerable dependency path [`#31`](https://github.com/riyadhalnur/node-base64-image/pull/31) - Update packages and add package lock [`add73c0`](https://github.com/riyadhalnur/node-base64-image/commit/add73c07459f1096fd003a87a1509a4d4ba7f60b) - Test node version to test against on travis [`4532e16`](https://github.com/riyadhalnur/node-base64-image/commit/4532e16c90e71227669255c493a15a98034dafac) - fix: package.json to reduce vulnerabilities [`57fd98a`](https://github.com/riyadhalnur/node-base64-image/commit/57fd98a19dc6212b0a920c1e9dd3ccc83df7ad02) #### [v1.0.4](https://github.com/riyadhalnur/node-base64-image/compare/v1.0.3...v1.0.4) > 7 July 2017 - [Snyk Update] New fixes for 1 vulnerable dependency path [`#28`](https://github.com/riyadhalnur/node-base64-image/pull/28) - fix: package.json to reduce vulnerabilities [`75c9359`](https://github.com/riyadhalnur/node-base64-image/commit/75c9359ee2f902ad2c609d5e4583d299b49c8a78) #### [v1.0.3](https://github.com/riyadhalnur/node-base64-image/compare/v1.0.2...v1.0.3) > 4 November 2016 - Increase timeout for tests [`cb0e8d4`](https://github.com/riyadhalnur/node-base64-image/commit/cb0e8d47ad0e2164e93f29241d7d81089d12882a) #### [v1.0.2](https://github.com/riyadhalnur/node-base64-image/compare/v1.0.1...v1.0.2) > 3 November 2016 - [Snyk Alert] Fix for 1 vulnerable dependency path [`#22`](https://github.com/riyadhalnur/node-base64-image/pull/22) - Generate dist/ [`a631f97`](https://github.com/riyadhalnur/node-base64-image/commit/a631f9772656963a6bb4034f56f112798af85468) - fix: package.json & .snyk to reduce vulnerabilities [`c50075c`](https://github.com/riyadhalnur/node-base64-image/commit/c50075cbbbd787d1df488cf5950d0f053d88b43a) #### [v1.0.1](https://github.com/riyadhalnur/node-base64-image/compare/v1.0.0...v1.0.1) > 28 May 2016 - Dist folder [`47bc8a4`](https://github.com/riyadhalnur/node-base64-image/commit/47bc8a4bb0511e3ee25436daab66dcc0a8f0f3cd) - Patch version [`890b94a`](https://github.com/riyadhalnur/node-base64-image/commit/890b94a943ab66f8afeceeada05f1289599f2471) ### [v1.0.0](https://github.com/riyadhalnur/node-base64-image/compare/0.1.2...v1.0.0) > 28 May 2016 - ES6 rewrite [`#15`](https://github.com/riyadhalnur/node-base64-image/pull/15) - Create PR template [`#17`](https://github.com/riyadhalnur/node-base64-image/pull/17) - Create Issue Template [`#16`](https://github.com/riyadhalnur/node-base64-image/pull/16) - Set up initial ES6 boilerplate [`2bb6f3d`](https://github.com/riyadhalnur/node-base64-image/commit/2bb6f3dd6bee8bae7b173fb2cd2217a5010a8b3c) - Finished re-writing main encode and decode funcs [`bb2b5cf`](https://github.com/riyadhalnur/node-base64-image/commit/bb2b5cf18b700049f386f01e5e224f030f054866) - Streamline build process [`a834070`](https://github.com/riyadhalnur/node-base64-image/commit/a8340703348a7e154585ea6fcd90d252ee0858e3) #### [0.1.2](https://github.com/riyadhalnur/node-base64-image/compare/0.1.1...0.1.2) > 27 February 2016 - Handle image loading failure (empty body or statusCode other than 200) [`#7`](https://github.com/riyadhalnur/node-base64-image/pull/7) - Test added for 404 case [`27d1ff8`](https://github.com/riyadhalnur/node-base64-image/commit/27d1ff82e38e854fb698e775067c6358ae9b46db) - Release 0.1.2 [`0c204e6`](https://github.com/riyadhalnur/node-base64-image/commit/0c204e65686be9a9947d4da4aa1f31e968b10dcc) #### [0.1.1](https://github.com/riyadhalnur/node-base64-image/compare/0.1.0...0.1.1) > 9 November 2015 - README fixes [`#6`](https://github.com/riyadhalnur/node-base64-image/pull/6) - Fix first example code [`98dac6e`](https://github.com/riyadhalnur/node-base64-image/commit/98dac6e711d25d3d571620d9481ad3163c78ca6e) - Added newer version of Node for Travis [`0b6ba64`](https://github.com/riyadhalnur/node-base64-image/commit/0b6ba64f1b2047b8462cbb84fc2b46fe3418018e) #### [0.1.0](https://github.com/riyadhalnur/node-base64-image/compare/0.0.1...0.1.0) > 17 September 2015 - Bump version [`47cb1dd`](https://github.com/riyadhalnur/node-base64-image/commit/47cb1dd26b39bafc59722313c46da20e7611766b) - added option to encode a local file [`c9cd5df`](https://github.com/riyadhalnur/node-base64-image/commit/c9cd5dfc84408dc2f2c7fdeecad444e8a872ebe2) - codestyle fixes, added test.jpg, fixed tests [`2ab6af0`](https://github.com/riyadhalnur/node-base64-image/commit/2ab6af0c61d190f83a2cf9ef72e6f15496c071f6) #### 0.0.1 > 13 December 2014 - Initial commit [`0de7374`](https://github.com/riyadhalnur/node-base64-image/commit/0de7374fb5bd9ad6846f039938ade3a9c5ea9d45) - Added Base64 encoder function [`ba1381e`](https://github.com/riyadhalnur/node-base64-image/commit/ba1381e50b2579d9304fad6ff291c4136c966b09) - Updated README [`838d856`](https://github.com/riyadhalnur/node-base64-image/commit/838d856f9cdafb0231954fb7d1b5312ff5e596c9)