Skip to content

Commit

Permalink
Change licence to LGPL
Browse files Browse the repository at this point in the history
siddharthvp committed Dec 23, 2020
1 parent 1267ae7 commit 07149ef
Showing 6 changed files with 180 additions and 684 deletions.
827 changes: 159 additions & 668 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -328,3 +328,8 @@ bot.seriesBatchOperation(pageList, (page, idx) => {
}, 5000, 2); // set the sleep duration in milliseconds as the third parameter, max number of retries for each action is set as the 4th parameter
```
Note that `seriesBatchOperation` with delay=0 is same as `batchOperation` with concurrency=1.


## Licensing

**mwn** is released under GNU Lesser General Public License (LGPL) v3.0, since it borrows quite a bit of code from MediaWiki core (GPL v2). LGPL is a more permissive variant of the more popular GNU GPL. Unlike GPL, LPGL _allows_ the work to be used as a library in software not released under GPL-compatible licenses, and even in proprietary software. However, any derivatives of this library should also be released under LGPL or another GPL-compatible license.
8 changes: 4 additions & 4 deletions build/bot.d.ts
Original file line number Diff line number Diff line change
@@ -5,16 +5,16 @@
* Copyright (C) 2020 Siddharth VP
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
8 changes: 4 additions & 4 deletions build/bot.js
Original file line number Diff line number Diff line change
@@ -6,16 +6,16 @@
* Copyright (C) 2020 Siddharth VP
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mwn",
"version": "0.8.2",
"version": "0.8.3",
"description": "MediaWiki bot framework for Node.js",
"main": "./build/bot.js",
"types": "./build/bot.d.ts",
@@ -17,7 +17,7 @@
"wikipedia-bot"
],
"author": "Siddharth VP",
"license": "GPL-3.0-or-later",
"license": "LGPL-3.0-or-later",
"bugs": {
"url": "https://github.com/siddharthvp/mwn/issues"
},
12 changes: 6 additions & 6 deletions src/bot.ts
Original file line number Diff line number Diff line change
@@ -5,16 +5,16 @@
* Copyright (C) 2020 Siddharth VP
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
@@ -1286,8 +1286,8 @@ export class mwn {
* @return {Promise<Object>} Edit API response
*/
edit(title: string | number,
transform: ((rev: {content: string, timestamp: string}) => string | ApiEditPageParams),
editConfig?: editConfigType
transform: ((rev: {content: string, timestamp: string}) => string | ApiEditPageParams),
editConfig?: editConfigType
): Promise<ApiEditResponse> {

editConfig = editConfig || this.options.editConfig;

0 comments on commit 07149ef

Please sign in to comment.