├── .gitignore ├── BUILD.MD ├── dist ├── build │ └── Release │ │ └── cpufeatures.node ├── lib │ └── protocol │ │ └── crypto │ │ └── build │ │ └── Release │ │ └── sshcrypto.node └── licenses.txt ├── package.json ├── LICENSE ├── action.yml ├── README.md └── index.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist/pagent.exe -------------------------------------------------------------------------------- /BUILD.MD: -------------------------------------------------------------------------------- 1 | ncc build index.js --license licenses.txt -------------------------------------------------------------------------------- /dist/build/Release/cpufeatures.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Creepios/sftp-action/HEAD/dist/build/Release/cpufeatures.node -------------------------------------------------------------------------------- /dist/lib/protocol/crypto/build/Release/sshcrypto.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Creepios/sftp-action/HEAD/dist/lib/protocol/crypto/build/Release/sshcrypto.node -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sftp-action", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "@actions/core": "^1.9.1", 14 | "@actions/github": "^5.0.1", 15 | "ssh2-sftp-client": "^7.0.3" 16 | }, 17 | "devDependencies": { 18 | "@vercel/ncc": "^0.31.1" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Niklas (aka. Creep) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'SFTP SSH Action' 2 | description: 'Upload files or directories via sftp and ssh' 3 | author: 'Creepios (Niklas R.)' 4 | branding: 5 | icon: 'upload' 6 | color: 'green' 7 | inputs: 8 | host: 9 | description: 'Host to login' 10 | required: true 11 | default: 'localhost' 12 | port: 13 | description: 'Port to login' 14 | required: false 15 | default: '22' 16 | username: 17 | description: 'Username to login' 18 | required: true 19 | default: 'root' 20 | password: 21 | description: 'Passwort to login' 22 | required: true 23 | default: 'password' 24 | additionalPaths: 25 | description: "Map of the path to upload multiple files." 26 | required: false 27 | default: '{}' 28 | localPath: 29 | description: 'Local file or directory' 30 | required: true 31 | remotePath: 32 | description: 'Remote file or directory path (file or directories will be created)' 33 | required: true 34 | agent: 35 | description: 'Path to ssh-agent' 36 | required: false 37 | default: 'process.env.SSH_AGENT' 38 | privateKey: 39 | description: 'Path to key file or directly the key (via secret or paste)' 40 | required: false 41 | privateKeyIsFile: 42 | description: 'Define if private key is a local file or string' 43 | required: false 44 | default: 'false' 45 | passphrase: 46 | description: 'Define a passphrase for encrypted private keys' 47 | required: false 48 | runs: 49 | using: 'node16' 50 | main: 'dist/index.js' 51 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Currently, not active maintained, but working! 2 | 3 | # sftp-action 4 | This action can (currently only) upload files and directories over sftp with ssh login. 5 | 6 | ## Inputs 7 | 8 | ### `host` 9 | **Required** The hostname under which you can reach the server. Default `"localhost"`. 10 | 11 | ### `port` 12 | **Required** The port under which you can reach the server. Default `22`. 13 | 14 | ### `username` 15 | **Required** The login name. Default `"root"`. 16 | 17 | ### `password` 18 | **Required** The login password. Default `"password"`. 19 | 20 | ### `localPath` 21 | **Required** Path to a local file or directory. 22 | 23 | ### `remotePath` 24 | **Required** Path to a remote file or directory (Any non existing directory or file will be created). 25 | 26 | ### `agent` 27 | **Optional** Path to local SSH Agent (key-forwarding). 28 | 29 | ### `privateKey` 30 | **Optional** Path to key file or directly the key (via secret or paste). 31 | 32 | ### `privateKeyIsFile` 33 | **Optional** Define if private key is a local file or string. Default `"false"`. 34 | 35 | ### `passphrase` 36 | **Optional** Define a passphrase for encrypted private keys. 37 | 38 | ### `additionalPaths` 39 | **Optional** Upload multiple files. type: JSON Object (key/ value). E.g '{"localPath":"remotePath"}'. 40 | 41 | 42 | ## Example usage 43 | ``` 44 | on: [push] 45 | 46 | jobs: 47 | upload_files: 48 | runs-on: ubuntu-latest 49 | name: Upload a builded file. 50 | steps: 51 | - name: Checkout 52 | uses: actions/checkout@v2.3.4 53 | - name: Upload Files 54 | id: upload 55 | uses: Creepios/sftp-action@v1.0.3 56 | with: 57 | host: '127.0.0.1' 58 | port: 22 59 | username: 'root' 60 | password: 'password' 61 | localPath: './dist/index.js' 62 | remotePath: './' 63 | ``` 64 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const core = require('@actions/core'); 2 | const fs = require('fs'); 3 | const path = require('path'); 4 | 5 | let Client = require('ssh2-sftp-client'); 6 | let sftp = new Client(); 7 | 8 | const host = core.getInput('host'); 9 | const port = parseInt(core.getInput('port')); 10 | const username = core.getInput('username'); 11 | const password = core.getInput('password'); 12 | const agent = core.getInput('agent'); 13 | const privateKeyIsFile = core.getInput('privateKeyIsFile'); 14 | const passphrase = core.getInput('passphrase'); 15 | 16 | var privateKey = core.getInput('privateKey'); 17 | 18 | core.setSecret(password); 19 | if (passphrase != undefined) { 20 | core.setSecret(passphrase); 21 | } 22 | 23 | if (privateKeyIsFile == "true") { 24 | var privateKey = fs.readFileSync(privateKey); 25 | core.setSecret(privateKey); 26 | } 27 | 28 | const localPath = core.getInput('localPath'); 29 | const remotePath = core.getInput('remotePath'); 30 | const additionalPaths = core.getInput('additionalPaths') 31 | 32 | sftp.connect({ 33 | host: host, 34 | port: port, 35 | username: username, 36 | password: password, 37 | agent: agent, 38 | privateKey: privateKey, 39 | passphrase: passphrase 40 | }).then(async () => { 41 | console.log("Connection established."); 42 | console.log("Current working directory: " + await sftp.cwd()) 43 | await processPath(localPath, remotePath) //TODO: Instead of localPath, remotePath use key/value to uplaod multiple files at once. 44 | 45 | const parsedAdditionalPaths = (() => { 46 | try { 47 | const parsedAdditionalPaths = JSON.parse(additionalPaths) 48 | return Object.entries(parsedAdditionalPaths) 49 | } 50 | catch (e) { 51 | throw "Error parsing addtionalPaths. Make sure it is a valid JSON object (key/ value pairs)." 52 | } 53 | })() 54 | 55 | for (const [local, remote] of parsedAdditionalPaths) { 56 | await processPath(local, remote) 57 | } 58 | 59 | }).then(() => { 60 | console.log("Upload finished."); 61 | return sftp.end(); 62 | }).catch(err => { 63 | core.setFailed(`Action failed with error ${err}`); 64 | process.exit(1); 65 | }); 66 | 67 | async function processPath(local, remote) { 68 | console.log("Uploading: " + local + " to " + remote) 69 | if (fs.lstatSync(local).isDirectory()) { 70 | return sftp.uploadDir(local, remote); 71 | } else { 72 | 73 | var directory = await sftp.realPath(path.dirname(remote)); 74 | if (!(await sftp.exists(directory))) { 75 | await sftp.mkdir(directory, true); 76 | console.log("Created directories."); 77 | } 78 | 79 | var modifiedPath = remote; 80 | if (await sftp.exists(remote)) { 81 | if ((await sftp.stat(remote)).isDirectory) { 82 | var modifiedPath = modifiedPath + path.basename(local); 83 | } 84 | } 85 | 86 | return sftp.put(fs.createReadStream(local), modifiedPath); 87 | } 88 | } -------------------------------------------------------------------------------- /dist/licenses.txt: -------------------------------------------------------------------------------- 1 | @actions/core 2 | MIT 3 | The MIT License (MIT) 4 | 5 | Copyright 2019 GitHub 6 | 7 | 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: 8 | 9 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 10 | 11 | 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. 12 | 13 | @actions/http-client 14 | MIT 15 | Actions Http Client for Node.js 16 | 17 | Copyright (c) GitHub, Inc. 18 | 19 | All rights reserved. 20 | 21 | MIT License 22 | 23 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 24 | associated documentation files (the "Software"), to deal in the Software without restriction, 25 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 26 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 27 | subject to the following conditions: 28 | 29 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 32 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 33 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 34 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 35 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 36 | 37 | 38 | @vercel/ncc 39 | MIT 40 | Copyright 2018 ZEIT, Inc. 41 | 42 | 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: 43 | 44 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 45 | 46 | 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. 47 | 48 | asn1 49 | MIT 50 | Copyright (c) 2011 Mark Cavage, All rights reserved. 51 | 52 | Permission is hereby granted, free of charge, to any person obtaining a copy 53 | of this software and associated documentation files (the "Software"), to deal 54 | in the Software without restriction, including without limitation the rights 55 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 56 | copies of the Software, and to permit persons to whom the Software is 57 | furnished to do so, subject to the following conditions: 58 | 59 | The above copyright notice and this permission notice shall be included in 60 | all copies or substantial portions of the Software. 61 | 62 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 63 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 64 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 65 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 66 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 67 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 68 | THE SOFTWARE 69 | 70 | 71 | bcrypt-pbkdf 72 | BSD-3-Clause 73 | The Blowfish portions are under the following license: 74 | 75 | Blowfish block cipher for OpenBSD 76 | Copyright 1997 Niels Provos 77 | All rights reserved. 78 | 79 | Implementation advice by David Mazieres . 80 | 81 | Redistribution and use in source and binary forms, with or without 82 | modification, are permitted provided that the following conditions 83 | are met: 84 | 1. Redistributions of source code must retain the above copyright 85 | notice, this list of conditions and the following disclaimer. 86 | 2. Redistributions in binary form must reproduce the above copyright 87 | notice, this list of conditions and the following disclaimer in the 88 | documentation and/or other materials provided with the distribution. 89 | 3. The name of the author may not be used to endorse or promote products 90 | derived from this software without specific prior written permission. 91 | 92 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 93 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 94 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 95 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 96 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 97 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 98 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 99 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 100 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 101 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 102 | 103 | 104 | 105 | The bcrypt_pbkdf portions are under the following license: 106 | 107 | Copyright (c) 2013 Ted Unangst 108 | 109 | Permission to use, copy, modify, and distribute this software for any 110 | purpose with or without fee is hereby granted, provided that the above 111 | copyright notice and this permission notice appear in all copies. 112 | 113 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 114 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 115 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 116 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 117 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 118 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 119 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 120 | 121 | 122 | 123 | Performance improvements (Javascript-specific): 124 | 125 | Copyright 2016, Joyent Inc 126 | Author: Alex Wilson 127 | 128 | Permission to use, copy, modify, and distribute this software for any 129 | purpose with or without fee is hereby granted, provided that the above 130 | copyright notice and this permission notice appear in all copies. 131 | 132 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 133 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 134 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 135 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 136 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 137 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 138 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 139 | 140 | 141 | buffer-from 142 | MIT 143 | MIT License 144 | 145 | Copyright (c) 2016, 2018 Linus Unnebäck 146 | 147 | Permission is hereby granted, free of charge, to any person obtaining a copy 148 | of this software and associated documentation files (the "Software"), to deal 149 | in the Software without restriction, including without limitation the rights 150 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 151 | copies of the Software, and to permit persons to whom the Software is 152 | furnished to do so, subject to the following conditions: 153 | 154 | The above copyright notice and this permission notice shall be included in all 155 | copies or substantial portions of the Software. 156 | 157 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 158 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 159 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 160 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 161 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 162 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 163 | SOFTWARE. 164 | 165 | 166 | concat-stream 167 | MIT 168 | The MIT License 169 | 170 | Copyright (c) 2013 Max Ogden 171 | 172 | Permission is hereby granted, free of charge, 173 | to any person obtaining a copy of this software and 174 | associated documentation files (the "Software"), to 175 | deal in the Software without restriction, including 176 | without limitation the rights to use, copy, modify, 177 | merge, publish, distribute, sublicense, and/or sell 178 | copies of the Software, and to permit persons to whom 179 | the Software is furnished to do so, 180 | subject to the following conditions: 181 | 182 | The above copyright notice and this permission notice 183 | shall be included in all copies or substantial portions of the Software. 184 | 185 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 186 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 187 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 188 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 189 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 190 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 191 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 192 | 193 | err-code 194 | MIT 195 | 196 | inherits 197 | ISC 198 | The ISC License 199 | 200 | Copyright (c) Isaac Z. Schlueter 201 | 202 | Permission to use, copy, modify, and/or distribute this software for any 203 | purpose with or without fee is hereby granted, provided that the above 204 | copyright notice and this permission notice appear in all copies. 205 | 206 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 207 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 208 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 209 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 210 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 211 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 212 | PERFORMANCE OF THIS SOFTWARE. 213 | 214 | 215 | 216 | promise-retry 217 | MIT 218 | Copyright (c) 2014 IndigoUnited 219 | 220 | Permission is hereby granted, free of charge, to any person obtaining a copy 221 | of this software and associated documentation files (the "Software"), to deal 222 | in the Software without restriction, including without limitation the rights 223 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 224 | copies of the Software, and to permit persons to whom the Software is furnished 225 | to do so, subject to the following conditions: 226 | 227 | The above copyright notice and this permission notice shall be included in all 228 | copies or substantial portions of the Software. 229 | 230 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 231 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 232 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 233 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 234 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 235 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 236 | THE SOFTWARE. 237 | 238 | 239 | readable-stream 240 | MIT 241 | Node.js is licensed for use as follows: 242 | 243 | """ 244 | Copyright Node.js contributors. All rights reserved. 245 | 246 | Permission is hereby granted, free of charge, to any person obtaining a copy 247 | of this software and associated documentation files (the "Software"), to 248 | deal in the Software without restriction, including without limitation the 249 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 250 | sell copies of the Software, and to permit persons to whom the Software is 251 | furnished to do so, subject to the following conditions: 252 | 253 | The above copyright notice and this permission notice shall be included in 254 | all copies or substantial portions of the Software. 255 | 256 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 257 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 258 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 259 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 260 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 261 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 262 | IN THE SOFTWARE. 263 | """ 264 | 265 | This license applies to parts of Node.js originating from the 266 | https://github.com/joyent/node repository: 267 | 268 | """ 269 | Copyright Joyent, Inc. and other Node contributors. All rights reserved. 270 | Permission is hereby granted, free of charge, to any person obtaining a copy 271 | of this software and associated documentation files (the "Software"), to 272 | deal in the Software without restriction, including without limitation the 273 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 274 | sell copies of the Software, and to permit persons to whom the Software is 275 | furnished to do so, subject to the following conditions: 276 | 277 | The above copyright notice and this permission notice shall be included in 278 | all copies or substantial portions of the Software. 279 | 280 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 281 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 282 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 283 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 284 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 285 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 286 | IN THE SOFTWARE. 287 | """ 288 | 289 | 290 | retry 291 | MIT 292 | Copyright (c) 2011: 293 | Tim Koschützki (tim@debuggable.com) 294 | Felix Geisendörfer (felix@debuggable.com) 295 | 296 | Permission is hereby granted, free of charge, to any person obtaining a copy 297 | of this software and associated documentation files (the "Software"), to deal 298 | in the Software without restriction, including without limitation the rights 299 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 300 | copies of the Software, and to permit persons to whom the Software is 301 | furnished to do so, subject to the following conditions: 302 | 303 | The above copyright notice and this permission notice shall be included in 304 | all copies or substantial portions of the Software. 305 | 306 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 307 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 308 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 309 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 310 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 311 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 312 | THE SOFTWARE. 313 | 314 | 315 | safe-buffer 316 | MIT 317 | The MIT License (MIT) 318 | 319 | Copyright (c) Feross Aboukhadijeh 320 | 321 | Permission is hereby granted, free of charge, to any person obtaining a copy 322 | of this software and associated documentation files (the "Software"), to deal 323 | in the Software without restriction, including without limitation the rights 324 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 325 | copies of the Software, and to permit persons to whom the Software is 326 | furnished to do so, subject to the following conditions: 327 | 328 | The above copyright notice and this permission notice shall be included in 329 | all copies or substantial portions of the Software. 330 | 331 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 332 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 333 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 334 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 335 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 336 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 337 | THE SOFTWARE. 338 | 339 | 340 | safer-buffer 341 | MIT 342 | MIT License 343 | 344 | Copyright (c) 2018 Nikita Skovoroda 345 | 346 | Permission is hereby granted, free of charge, to any person obtaining a copy 347 | of this software and associated documentation files (the "Software"), to deal 348 | in the Software without restriction, including without limitation the rights 349 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 350 | copies of the Software, and to permit persons to whom the Software is 351 | furnished to do so, subject to the following conditions: 352 | 353 | The above copyright notice and this permission notice shall be included in all 354 | copies or substantial portions of the Software. 355 | 356 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 357 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 358 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 359 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 360 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 361 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 362 | SOFTWARE. 363 | 364 | 365 | ssh2 366 | MIT 367 | Copyright Brian White. All rights reserved. 368 | 369 | Permission is hereby granted, free of charge, to any person obtaining a copy 370 | of this software and associated documentation files (the "Software"), to 371 | deal in the Software without restriction, including without limitation the 372 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 373 | sell copies of the Software, and to permit persons to whom the Software is 374 | furnished to do so, subject to the following conditions: 375 | 376 | The above copyright notice and this permission notice shall be included in 377 | all copies or substantial portions of the Software. 378 | 379 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 380 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 381 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 382 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 383 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 384 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 385 | IN THE SOFTWARE. 386 | 387 | ssh2-sftp-client 388 | Apache-2.0 389 | Apache License 390 | Version 2.0, January 2004 391 | http://www.apache.org/licenses/ 392 | 393 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 394 | 395 | 1. Definitions. 396 | 397 | "License" shall mean the terms and conditions for use, reproduction, 398 | and distribution as defined by Sections 1 through 9 of this document. 399 | 400 | "Licensor" shall mean the copyright owner or entity authorized by 401 | the copyright owner that is granting the License. 402 | 403 | "Legal Entity" shall mean the union of the acting entity and all 404 | other entities that control, are controlled by, or are under common 405 | control with that entity. For the purposes of this definition, 406 | "control" means (i) the power, direct or indirect, to cause the 407 | direction or management of such entity, whether by contract or 408 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 409 | outstanding shares, or (iii) beneficial ownership of such entity. 410 | 411 | "You" (or "Your") shall mean an individual or Legal Entity 412 | exercising permissions granted by this License. 413 | 414 | "Source" form shall mean the preferred form for making modifications, 415 | including but not limited to software source code, documentation 416 | source, and configuration files. 417 | 418 | "Object" form shall mean any form resulting from mechanical 419 | transformation or translation of a Source form, including but 420 | not limited to compiled object code, generated documentation, 421 | and conversions to other media types. 422 | 423 | "Work" shall mean the work of authorship, whether in Source or 424 | Object form, made available under the License, as indicated by a 425 | copyright notice that is included in or attached to the work 426 | (an example is provided in the Appendix below). 427 | 428 | "Derivative Works" shall mean any work, whether in Source or Object 429 | form, that is based on (or derived from) the Work and for which the 430 | editorial revisions, annotations, elaborations, or other modifications 431 | represent, as a whole, an original work of authorship. For the purposes 432 | of this License, Derivative Works shall not include works that remain 433 | separable from, or merely link (or bind by name) to the interfaces of, 434 | the Work and Derivative Works thereof. 435 | 436 | "Contribution" shall mean any work of authorship, including 437 | the original version of the Work and any modifications or additions 438 | to that Work or Derivative Works thereof, that is intentionally 439 | submitted to Licensor for inclusion in the Work by the copyright owner 440 | or by an individual or Legal Entity authorized to submit on behalf of 441 | the copyright owner. For the purposes of this definition, "submitted" 442 | means any form of electronic, verbal, or written communication sent 443 | to the Licensor or its representatives, including but not limited to 444 | communication on electronic mailing lists, source code control systems, 445 | and issue tracking systems that are managed by, or on behalf of, the 446 | Licensor for the purpose of discussing and improving the Work, but 447 | excluding communication that is conspicuously marked or otherwise 448 | designated in writing by the copyright owner as "Not a Contribution." 449 | 450 | "Contributor" shall mean Licensor and any individual or Legal Entity 451 | on behalf of whom a Contribution has been received by Licensor and 452 | subsequently incorporated within the Work. 453 | 454 | 2. Grant of Copyright License. Subject to the terms and conditions of 455 | this License, each Contributor hereby grants to You a perpetual, 456 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 457 | copyright license to reproduce, prepare Derivative Works of, 458 | publicly display, publicly perform, sublicense, and distribute the 459 | Work and such Derivative Works in Source or Object form. 460 | 461 | 3. Grant of Patent License. Subject to the terms and conditions of 462 | this License, each Contributor hereby grants to You a perpetual, 463 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 464 | (except as stated in this section) patent license to make, have made, 465 | use, offer to sell, sell, import, and otherwise transfer the Work, 466 | where such license applies only to those patent claims licensable 467 | by such Contributor that are necessarily infringed by their 468 | Contribution(s) alone or by combination of their Contribution(s) 469 | with the Work to which such Contribution(s) was submitted. If You 470 | institute patent litigation against any entity (including a 471 | cross-claim or counterclaim in a lawsuit) alleging that the Work 472 | or a Contribution incorporated within the Work constitutes direct 473 | or contributory patent infringement, then any patent licenses 474 | granted to You under this License for that Work shall terminate 475 | as of the date such litigation is filed. 476 | 477 | 4. Redistribution. You may reproduce and distribute copies of the 478 | Work or Derivative Works thereof in any medium, with or without 479 | modifications, and in Source or Object form, provided that You 480 | meet the following conditions: 481 | 482 | (a) You must give any other recipients of the Work or 483 | Derivative Works a copy of this License; and 484 | 485 | (b) You must cause any modified files to carry prominent notices 486 | stating that You changed the files; and 487 | 488 | (c) You must retain, in the Source form of any Derivative Works 489 | that You distribute, all copyright, patent, trademark, and 490 | attribution notices from the Source form of the Work, 491 | excluding those notices that do not pertain to any part of 492 | the Derivative Works; and 493 | 494 | (d) If the Work includes a "NOTICE" text file as part of its 495 | distribution, then any Derivative Works that You distribute must 496 | include a readable copy of the attribution notices contained 497 | within such NOTICE file, excluding those notices that do not 498 | pertain to any part of the Derivative Works, in at least one 499 | of the following places: within a NOTICE text file distributed 500 | as part of the Derivative Works; within the Source form or 501 | documentation, if provided along with the Derivative Works; or, 502 | within a display generated by the Derivative Works, if and 503 | wherever such third-party notices normally appear. The contents 504 | of the NOTICE file are for informational purposes only and 505 | do not modify the License. You may add Your own attribution 506 | notices within Derivative Works that You distribute, alongside 507 | or as an addendum to the NOTICE text from the Work, provided 508 | that such additional attribution notices cannot be construed 509 | as modifying the License. 510 | 511 | You may add Your own copyright statement to Your modifications and 512 | may provide additional or different license terms and conditions 513 | for use, reproduction, or distribution of Your modifications, or 514 | for any such Derivative Works as a whole, provided Your use, 515 | reproduction, and distribution of the Work otherwise complies with 516 | the conditions stated in this License. 517 | 518 | 5. Submission of Contributions. Unless You explicitly state otherwise, 519 | any Contribution intentionally submitted for inclusion in the Work 520 | by You to the Licensor shall be under the terms and conditions of 521 | this License, without any additional terms or conditions. 522 | Notwithstanding the above, nothing herein shall supersede or modify 523 | the terms of any separate license agreement you may have executed 524 | with Licensor regarding such Contributions. 525 | 526 | 6. Trademarks. This License does not grant permission to use the trade 527 | names, trademarks, service marks, or product names of the Licensor, 528 | except as required for reasonable and customary use in describing the 529 | origin of the Work and reproducing the content of the NOTICE file. 530 | 531 | 7. Disclaimer of Warranty. Unless required by applicable law or 532 | agreed to in writing, Licensor provides the Work (and each 533 | Contributor provides its Contributions) on an "AS IS" BASIS, 534 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 535 | implied, including, without limitation, any warranties or conditions 536 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 537 | PARTICULAR PURPOSE. You are solely responsible for determining the 538 | appropriateness of using or redistributing the Work and assume any 539 | risks associated with Your exercise of permissions under this License. 540 | 541 | 8. Limitation of Liability. In no event and under no legal theory, 542 | whether in tort (including negligence), contract, or otherwise, 543 | unless required by applicable law (such as deliberate and grossly 544 | negligent acts) or agreed to in writing, shall any Contributor be 545 | liable to You for damages, including any direct, indirect, special, 546 | incidental, or consequential damages of any character arising as a 547 | result of this License or out of the use or inability to use the 548 | Work (including but not limited to damages for loss of goodwill, 549 | work stoppage, computer failure or malfunction, or any and all 550 | other commercial damages or losses), even if such Contributor 551 | has been advised of the possibility of such damages. 552 | 553 | 9. Accepting Warranty or Additional Liability. While redistributing 554 | the Work or Derivative Works thereof, You may choose to offer, 555 | and charge a fee for, acceptance of support, warranty, indemnity, 556 | or other liability obligations and/or rights consistent with this 557 | License. However, in accepting such obligations, You may act only 558 | on Your own behalf and on Your sole responsibility, not on behalf 559 | of any other Contributor, and only if You agree to indemnify, 560 | defend, and hold each Contributor harmless for any liability 561 | incurred by, or claims asserted against, such Contributor by reason 562 | of your accepting any such warranty or additional liability. 563 | 564 | END OF TERMS AND CONDITIONS 565 | 566 | APPENDIX: How to apply the Apache License to your work. 567 | 568 | To apply the Apache License to your work, attach the following 569 | boilerplate notice, with the fields enclosed by brackets "[]" 570 | replaced with your own identifying information. (Don't include 571 | the brackets!) The text should be enclosed in the appropriate 572 | comment syntax for the file format. We also recommend that a 573 | file or class name and description of purpose be included on the 574 | same "printed page" as the copyright notice for easier 575 | identification within third-party archives. 576 | 577 | Copyright 2020 Tim Cross 578 | 579 | Licensed under the Apache License, Version 2.0 (the "License"); 580 | you may not use this file except in compliance with the License. 581 | You may obtain a copy of the License at 582 | 583 | http://www.apache.org/licenses/LICENSE-2.0 584 | 585 | Unless required by applicable law or agreed to in writing, software 586 | distributed under the License is distributed on an "AS IS" BASIS, 587 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 588 | See the License for the specific language governing permissions and 589 | limitations under the License. 590 | 591 | 592 | string_decoder 593 | MIT 594 | Node.js is licensed for use as follows: 595 | 596 | """ 597 | Copyright Node.js contributors. All rights reserved. 598 | 599 | Permission is hereby granted, free of charge, to any person obtaining a copy 600 | of this software and associated documentation files (the "Software"), to 601 | deal in the Software without restriction, including without limitation the 602 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 603 | sell copies of the Software, and to permit persons to whom the Software is 604 | furnished to do so, subject to the following conditions: 605 | 606 | The above copyright notice and this permission notice shall be included in 607 | all copies or substantial portions of the Software. 608 | 609 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 610 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 611 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 612 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 613 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 614 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 615 | IN THE SOFTWARE. 616 | """ 617 | 618 | This license applies to parts of Node.js originating from the 619 | https://github.com/joyent/node repository: 620 | 621 | """ 622 | Copyright Joyent, Inc. and other Node contributors. All rights reserved. 623 | Permission is hereby granted, free of charge, to any person obtaining a copy 624 | of this software and associated documentation files (the "Software"), to 625 | deal in the Software without restriction, including without limitation the 626 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 627 | sell copies of the Software, and to permit persons to whom the Software is 628 | furnished to do so, subject to the following conditions: 629 | 630 | The above copyright notice and this permission notice shall be included in 631 | all copies or substantial portions of the Software. 632 | 633 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 634 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 635 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 636 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 637 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 638 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 639 | IN THE SOFTWARE. 640 | """ 641 | 642 | 643 | 644 | tunnel 645 | MIT 646 | The MIT License (MIT) 647 | 648 | Copyright (c) 2012 Koichi Kobayashi 649 | 650 | Permission is hereby granted, free of charge, to any person obtaining a copy 651 | of this software and associated documentation files (the "Software"), to deal 652 | in the Software without restriction, including without limitation the rights 653 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 654 | copies of the Software, and to permit persons to whom the Software is 655 | furnished to do so, subject to the following conditions: 656 | 657 | The above copyright notice and this permission notice shall be included in 658 | all copies or substantial portions of the Software. 659 | 660 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 661 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 662 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 663 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 664 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 665 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 666 | THE SOFTWARE. 667 | 668 | 669 | tweetnacl 670 | Unlicense 671 | This is free and unencumbered software released into the public domain. 672 | 673 | Anyone is free to copy, modify, publish, use, compile, sell, or 674 | distribute this software, either in source code form or as a compiled 675 | binary, for any purpose, commercial or non-commercial, and by any 676 | means. 677 | 678 | In jurisdictions that recognize copyright laws, the author or authors 679 | of this software dedicate any and all copyright interest in the 680 | software to the public domain. We make this dedication for the benefit 681 | of the public at large and to the detriment of our heirs and 682 | successors. We intend this dedication to be an overt act of 683 | relinquishment in perpetuity of all present and future rights to this 684 | software under copyright law. 685 | 686 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 687 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 688 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 689 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 690 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 691 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 692 | OTHER DEALINGS IN THE SOFTWARE. 693 | 694 | For more information, please refer to 695 | 696 | 697 | typedarray 698 | MIT 699 | /* 700 | Copyright (c) 2010, Linden Research, Inc. 701 | Copyright (c) 2012, Joshua Bell 702 | 703 | Permission is hereby granted, free of charge, to any person obtaining a copy 704 | of this software and associated documentation files (the "Software"), to deal 705 | in the Software without restriction, including without limitation the rights 706 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 707 | copies of the Software, and to permit persons to whom the Software is 708 | furnished to do so, subject to the following conditions: 709 | 710 | The above copyright notice and this permission notice shall be included in 711 | all copies or substantial portions of the Software. 712 | 713 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 714 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 715 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 716 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 717 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 718 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 719 | THE SOFTWARE. 720 | $/LicenseInfo$ 721 | */ 722 | 723 | // Original can be found at: 724 | // https://bitbucket.org/lindenlab/llsd 725 | // Modifications by Joshua Bell inexorabletash@gmail.com 726 | // https://github.com/inexorabletash/polyfill 727 | 728 | // ES3/ES5 implementation of the Krhonos Typed Array Specification 729 | // Ref: http://www.khronos.org/registry/typedarray/specs/latest/ 730 | // Date: 2011-02-01 731 | // 732 | // Variations: 733 | // * Allows typed_array.get/set() as alias for subscripts (typed_array[]) 734 | 735 | 736 | util-deprecate 737 | MIT 738 | (The MIT License) 739 | 740 | Copyright (c) 2014 Nathan Rajlich 741 | 742 | Permission is hereby granted, free of charge, to any person 743 | obtaining a copy of this software and associated documentation 744 | files (the "Software"), to deal in the Software without 745 | restriction, including without limitation the rights to use, 746 | copy, modify, merge, publish, distribute, sublicense, and/or sell 747 | copies of the Software, and to permit persons to whom the 748 | Software is furnished to do so, subject to the following 749 | conditions: 750 | 751 | The above copyright notice and this permission notice shall be 752 | included in all copies or substantial portions of the Software. 753 | 754 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 755 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 756 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 757 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 758 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 759 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 760 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 761 | OTHER DEALINGS IN THE SOFTWARE. 762 | --------------------------------------------------------------------------------