mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 06:20:02 -04:00
add copyright notice to libcurl js bundle
This commit is contained in:
parent
a4c075b497
commit
a5a537423e
8 changed files with 24 additions and 11 deletions
15
client/javascript/copyright.js
Normal file
15
client/javascript/copyright.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
const copyright_notice = `ading2210/libcurl.js - A port of libcurl to WASM for use in the browser.
|
||||
Copyright (C) 2023 ading2210
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero 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 Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.`;
|
|
@ -310,12 +310,14 @@ return {
|
|||
wisp: _wisp_connections,
|
||||
WebSocket: CurlWebSocket,
|
||||
|
||||
get copyright() {return copyright_notice},
|
||||
get version() {return get_version()},
|
||||
get ready() {return wasm_ready},
|
||||
|
||||
get stdout() {return out},
|
||||
set stdout(callback) {out = callback},
|
||||
get stderr() {return err},
|
||||
set stderr(callback) {err = callback},
|
||||
get ready() {return wasm_ready}
|
||||
set stderr(callback) {err = callback}
|
||||
}
|
||||
|
||||
})()
|
Loading…
Add table
Add a link
Reference in a new issue