From 3b523598ad19144b2f136904e83398d7c33f479f Mon Sep 17 00:00:00 2001 From: teidesu <86301490+teidesu@users.noreply.github.com> Date: Mon, 19 Jul 2021 03:57:47 +0300 Subject: [PATCH] build: changed license to lgplv3 --- LICENSE | 179 +++++++++++++++++++++++--- package.json | 2 +- packages/client/package.json | 2 +- packages/core/package.json | 2 +- packages/crypto-node/package.json | 2 +- packages/dispatcher/package.json | 2 +- packages/file-id/package.json | 2 +- packages/html-parser/package.json | 2 +- packages/http-proxy/package.json | 2 +- packages/markdown-parser/package.json | 2 +- packages/mtproxy/package.json | 2 +- packages/node/package.json | 2 +- packages/socks-proxy/package.json | 2 +- packages/sqlite/package.json | 2 +- packages/tl/package.json | 2 +- yarn.lock | 5 + 16 files changed, 181 insertions(+), 31 deletions(-) diff --git a/LICENSE b/LICENSE index 932cf273..0a041280 100644 --- a/LICENSE +++ b/LICENSE @@ -1,20 +1,165 @@ -Copyright (C) 2021 Alisa Sireneva + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 -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: + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. -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. + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + You may place library facilities that are a work based on the +Library side by side in a single library together with other library +facilities that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU Lesser General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Library as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. diff --git a/package.json b/package.json index 23450c75..909b4fd5 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": true, "version": "1.0.0", "description": "Cute and type-safe library for MTProto (Telegram API) for browser and NodeJS", - "license": "MIT", + "license": "LGPL-3.0", "author": "Alisa Sireneva ", "scripts": { "test": "lerna run test", diff --git a/packages/client/package.json b/packages/client/package.json index 224c19d6..e6748038 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "High-level API over @mtcute/core", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "src/index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/core/package.json b/packages/core/package.json index 67e12fc4..78bf83e9 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "Core functions and base MTProto client", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "src/index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/crypto-node/package.json b/packages/crypto-node/package.json index 1f2c4021..0f62a1a3 100644 --- a/packages/crypto-node/package.json +++ b/packages/crypto-node/package.json @@ -4,7 +4,7 @@ "description": "Native crypto implementation for NodeJS", "main": "src/index.ts", "private": true, - "license": "MIT", + "license": "LGPL-3.0", "scripts": { "build-ts": "tsc", "build:dev": "node-gyp -j 16 build --debug", diff --git a/packages/dispatcher/package.json b/packages/dispatcher/package.json index 89b21329..c04e0503 100644 --- a/packages/dispatcher/package.json +++ b/packages/dispatcher/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "Updates dispatcher and bot framework for @mtcute/client", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "src/index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/file-id/package.json b/packages/file-id/package.json index 27343dac..f819778d 100644 --- a/packages/file-id/package.json +++ b/packages/file-id/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "Support for TDLib and Bot API file ID for MTCute", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "src/index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/html-parser/package.json b/packages/html-parser/package.json index e6f86b39..9b39d010 100644 --- a/packages/html-parser/package.json +++ b/packages/html-parser/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "HTML entities parser for MTCute", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "src/index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/http-proxy/package.json b/packages/http-proxy/package.json index 89c94168..cf0f00b1 100644 --- a/packages/http-proxy/package.json +++ b/packages/http-proxy/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "HTTP(S) proxy support for MTCute", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/markdown-parser/package.json b/packages/markdown-parser/package.json index 4600764d..9f9d28c7 100644 --- a/packages/markdown-parser/package.json +++ b/packages/markdown-parser/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "Markdown entities parser for MTCute", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "src/index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/mtproxy/package.json b/packages/mtproxy/package.json index e70713e4..7e42b2cf 100644 --- a/packages/mtproxy/package.json +++ b/packages/mtproxy/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "MTProto proxy (MTProxy) support for MTCute", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/node/package.json b/packages/node/package.json index e8037481..19e72846 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "Meta-package for Node JS", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/socks-proxy/package.json b/packages/socks-proxy/package.json index 45fdf95c..00280413 100644 --- a/packages/socks-proxy/package.json +++ b/packages/socks-proxy/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "SOCKS4/5 proxy support for MTCute", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/sqlite/package.json b/packages/sqlite/package.json index 1a716c9c..ada07aaf 100644 --- a/packages/sqlite/package.json +++ b/packages/sqlite/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "description": "SQLite-based storage for MTCute", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "main": "index.ts", "scripts": { "test": "mocha -r ts-node/register tests/**/*.spec.ts", diff --git a/packages/tl/package.json b/packages/tl/package.json index ac4bbf35..7cbdbcf4 100644 --- a/packages/tl/package.json +++ b/packages/tl/package.json @@ -4,7 +4,7 @@ "description": "TL schema used for MTCute", "main": "index.js", "author": "Alisa Sireneva ", - "license": "MIT", + "license": "LGPL-3.0", "scripts": { "test": "tsc --noEmit tests/types.ts", "generate-schema": "node scripts/generate-schema.js", diff --git a/yarn.lock b/yarn.lock index f3a53dd3..8494686b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2659,6 +2659,11 @@ events@3.2.0: resolved "https://registry.yarnpkg.com/events/-/events-3.2.0.tgz#93b87c18f8efcd4202a461aec4dfc0556b639379" integrity sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg== +events@^3.2.0: + version "3.3.0" + resolved "http://localhost:4873/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" + integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== + execa@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/execa/-/execa-5.0.0.tgz#4029b0007998a841fbd1032e5f4de86a3c1e3376"