diff --git a/LICENSE b/LICENSE index 6058849..ec1a2ae 100644 --- a/LICENSE +++ b/LICENSE @@ -1,12 +1,21 @@ -ConvertAPI -https://www.convertapi.com -(c) 2011-2022 Baltsoft - -ConvertAPI-JS -https://github.com/ConvertAPI/convertapi-js -Copyright (c) 2020 Tomas Rutkauskas - -The MIT License -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +MIT License + +Copyright (c) 2012-2026 ConvertAPI + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 2c3edbf..156b86b 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ let convertApi = ConvertApi.auth('api-token') ### File conversion Example to convert DOCX file to PDF. All supported formats and options can be found -[here](https://www.convertapi.com/conversions). +[here](https://www.convertapi.com/api). ```js let params = convertApi.createParams() @@ -72,12 +72,12 @@ let url = result.files[0].Url #### Additional conversion parameters ConvertAPI accepts extra conversion parameters depending on converted formats. All conversion -parameters and explanations can be found [here](https://www.convertapi.com/conversions). +parameters and explanations can be found [here](https://www.convertapi.com/api). ```js // Converting PDF to JPG file let params = convertApi.createParams() -params.add('file', e.currentTarget.files[0]) +params.add('file', elFileInput.files[0]) params.add('ImageHeight', '300') params.add('ImageWidth', '300') params.add('FitToSize', 'true') @@ -89,7 +89,7 @@ let url = result.files[0].Url ### Alternative domain -Set the last argument for the `ConvertApi.auth` method to use an alternative domain. Dedicated to the region [domain list](https://www.convertapi.com/doc/servers-location). +Set the last argument for the `ConvertApi.auth` method to use an alternative domain. Dedicated to the region [domain list](https://www.convertapi.com/docs/servers-location). ```js let convertApi = ConvertApi.auth('api-token', 'https://eu-v2.convertapi.com/') @@ -101,5 +101,5 @@ Please leave all comments, bugs, requests, and issues on the Issues page. We'll respond to your request ASAP! ### License -The ConvertAPI JS Library is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php "Read more about the MIT license form") license. -Refere to the [LICENSE](https://github.com/ConvertAPI/convertapi-library-js/blob/main/LICENSE) file for more information. \ No newline at end of file +The ConvertAPI JS Library is licensed under the [MIT](https://opensource.org/licenses/MIT) license. +Refer to the [LICENSE](https://github.com/ConvertAPI/convertapi-library-js/blob/main/LICENSE) file for more information. \ No newline at end of file diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..8ae0ba8 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security policy + +## Reporting a vulnerability + +Please do not report security vulnerabilities in public GitHub issues, discussions or pull requests. + +Report them privately on GitHub instead: open the [Security tab](https://github.com/ConvertAPI/convertapi-library-js/security) of this repository and click "Report a vulnerability", or go straight to [the report form](https://github.com/ConvertAPI/convertapi-library-js/security/advisories/new). Only you and the maintainers can see the report. + +Please include: + +- the version of the convertapi-js npm package and of the browser you use; +- the steps to reproduce the issue, or a proof of concept; +- what an attacker could do with it. + +We will confirm that we received your report and keep you updated until it is fixed. Please give us reasonable time to release a fix before you disclose the issue publicly. + +You can use the same private route if you are not sure whether the issue is in this SDK or in the ConvertAPI service itself. + +## Supported versions + +Security fixes are released in the latest version of the [convertapi-js package on npm](https://www.npmjs.com/package/convertapi-js). Please check that the issue still occurs with the latest version before you report it.