From 3d677ac575eac4b370e52131024fa99ee754def1 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 19 Oct 2021 14:30:04 -0500 Subject: [PATCH] script to generate license info (#614) --- .github/workflows/licensed.yml | 8 +-- .gitignore | 1 + .licenses/npm/call-bind.dep.yml | 32 ++++++++++++ .licenses/npm/function-bind.dep.yml | 31 +++++++++++ .licenses/npm/get-intrinsic.dep.yml | 33 ++++++++++++ .licenses/npm/has-symbols.dep.yml | 32 ++++++++++++ .licenses/npm/has.dep.yml | 33 ++++++++++++ .licenses/npm/node-fetch.dep.yml | 6 ++- .licenses/npm/object-inspect.dep.yml | 51 +++++++++++++++++++ .licenses/npm/qs.dep.yml | 40 +++++++++++++++ .licenses/npm/side-channel.dep.yml | 32 ++++++++++++ .licenses/npm/tr46.dep.yml | 30 +++++++++++ .../{tunnel-0.0.6.dep.yml => tunnel.dep.yml} | 0 .licenses/npm/typed-rest-client.dep.yml | 20 +++++++- .licenses/npm/underscore.dep.yml | 7 ++- .licenses/npm/webidl-conversions.dep.yml | 23 +++++++++ ...unnel-0.0.4.dep.yml => whatwg-url.dep.yml} | 15 +++--- package.json | 4 +- src/misc/licensed-check.sh | 8 +++ src/misc/licensed-download.sh | 24 +++++++++ src/misc/licensed-generate.sh | 8 +++ 21 files changed, 415 insertions(+), 23 deletions(-) create mode 100644 .licenses/npm/call-bind.dep.yml create mode 100644 .licenses/npm/function-bind.dep.yml create mode 100644 .licenses/npm/get-intrinsic.dep.yml create mode 100644 .licenses/npm/has-symbols.dep.yml create mode 100644 .licenses/npm/has.dep.yml create mode 100644 .licenses/npm/object-inspect.dep.yml create mode 100644 .licenses/npm/qs.dep.yml create mode 100644 .licenses/npm/side-channel.dep.yml create mode 100644 .licenses/npm/tr46.dep.yml rename .licenses/npm/{tunnel-0.0.6.dep.yml => tunnel.dep.yml} (100%) create mode 100644 .licenses/npm/webidl-conversions.dep.yml rename .licenses/npm/{tunnel-0.0.4.dep.yml => whatwg-url.dep.yml} (78%) create mode 100755 src/misc/licensed-check.sh create mode 100755 src/misc/licensed-download.sh create mode 100755 src/misc/licensed-generate.sh diff --git a/.github/workflows/licensed.yml b/.github/workflows/licensed.yml index ae62613ff..c7c9dbeb9 100644 --- a/.github/workflows/licensed.yml +++ b/.github/workflows/licensed.yml @@ -11,10 +11,4 @@ jobs: steps: - uses: actions/checkout@v2 - run: npm ci - - name: Install licensed - run: | - cd $RUNNER_TEMP - curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz - sudo tar -xzf licensed.tar.gz - sudo mv licensed /usr/local/bin/licensed - - run: licensed status \ No newline at end of file + - run: npm run licensed-check \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2f909c0f4..8baa767ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __test__/_temp +_temp/ lib/ node_modules/ \ No newline at end of file diff --git a/.licenses/npm/call-bind.dep.yml b/.licenses/npm/call-bind.dep.yml new file mode 100644 index 000000000..9edb85b96 --- /dev/null +++ b/.licenses/npm/call-bind.dep.yml @@ -0,0 +1,32 @@ +--- +name: call-bind +version: 1.0.2 +type: npm +summary: Robustly `.call.bind()` a function +homepage: https://github.com/ljharb/call-bind#readme +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2020 Jordan Harband + + 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. +notices: [] diff --git a/.licenses/npm/function-bind.dep.yml b/.licenses/npm/function-bind.dep.yml new file mode 100644 index 000000000..54b932825 --- /dev/null +++ b/.licenses/npm/function-bind.dep.yml @@ -0,0 +1,31 @@ +--- +name: function-bind +version: 1.1.1 +type: npm +summary: Implementation of Function.prototype.bind +homepage: https://github.com/Raynos/function-bind +license: mit +licenses: +- sources: LICENSE + text: |+ + Copyright (c) 2013 Raynos. + + 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. + +notices: [] diff --git a/.licenses/npm/get-intrinsic.dep.yml b/.licenses/npm/get-intrinsic.dep.yml new file mode 100644 index 000000000..e9584f146 --- /dev/null +++ b/.licenses/npm/get-intrinsic.dep.yml @@ -0,0 +1,33 @@ +--- +name: get-intrinsic +version: 1.1.1 +type: npm +summary: Get and robustly cache all JS language-level intrinsics at first require + time +homepage: https://github.com/ljharb/get-intrinsic#readme +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2020 Jordan Harband + + 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. +notices: [] diff --git a/.licenses/npm/has-symbols.dep.yml b/.licenses/npm/has-symbols.dep.yml new file mode 100644 index 000000000..801de4957 --- /dev/null +++ b/.licenses/npm/has-symbols.dep.yml @@ -0,0 +1,32 @@ +--- +name: has-symbols +version: 1.0.2 +type: npm +summary: Determine if the JS environment has Symbol support. Supports spec, or shams. +homepage: https://github.com/inspect-js/has-symbols#readme +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2016 Jordan Harband + + 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. +notices: [] diff --git a/.licenses/npm/has.dep.yml b/.licenses/npm/has.dep.yml new file mode 100644 index 000000000..64d1ef707 --- /dev/null +++ b/.licenses/npm/has.dep.yml @@ -0,0 +1,33 @@ +--- +name: has +version: 1.0.3 +type: npm +summary: Object.prototype.hasOwnProperty.call shortcut +homepage: https://github.com/tarruda/has +license: mit +licenses: +- sources: LICENSE-MIT + text: | + Copyright (c) 2013 Thiago de Arruda + + 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. +notices: [] diff --git a/.licenses/npm/node-fetch.dep.yml b/.licenses/npm/node-fetch.dep.yml index 109c6d07b..938f08995 100644 --- a/.licenses/npm/node-fetch.dep.yml +++ b/.licenses/npm/node-fetch.dep.yml @@ -1,6 +1,6 @@ --- name: node-fetch -version: 2.6.0 +version: 2.6.5 type: npm summary: A light-weight module that brings window.fetch to node.js homepage: https://github.com/bitinn/node-fetch @@ -42,6 +42,10 @@ licenses: [codecov-url]: https://codecov.io/gh/bitinn/node-fetch [install-size-image]: https://flat.badgen.net/packagephobia/install/node-fetch [install-size-url]: https://packagephobia.now.sh/result?p=node-fetch + [discord-image]: https://img.shields.io/discord/619915844268326952?color=%237289DA&label=Discord&style=flat-square + [discord-url]: https://discord.gg/Zxbndcm + [opencollective-image]: https://opencollective.com/node-fetch/backers.svg + [opencollective-url]: https://opencollective.com/node-fetch [whatwg-fetch]: https://fetch.spec.whatwg.org/ [response-init]: https://fetch.spec.whatwg.org/#responseinit [node-readable]: https://nodejs.org/api/stream.html#stream_readable_streams diff --git a/.licenses/npm/object-inspect.dep.yml b/.licenses/npm/object-inspect.dep.yml new file mode 100644 index 000000000..9bcc9cbf8 --- /dev/null +++ b/.licenses/npm/object-inspect.dep.yml @@ -0,0 +1,51 @@ +--- +name: object-inspect +version: 1.11.0 +type: npm +summary: string representations of objects in node and the browser +homepage: https://github.com/inspect-js/object-inspect +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2013 James Halliday + + 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. +- sources: readme.markdown + text: |- + MIT + + [1]: https://npmjs.org/package/object-inspect + [2]: https://versionbadg.es/inspect-js/object-inspect.svg + [5]: https://david-dm.org/inspect-js/object-inspect.svg + [6]: https://david-dm.org/inspect-js/object-inspect + [7]: https://david-dm.org/inspect-js/object-inspect/dev-status.svg + [8]: https://david-dm.org/inspect-js/object-inspect#info=devDependencies + [11]: https://nodei.co/npm/object-inspect.png?downloads=true&stars=true + [license-image]: https://img.shields.io/npm/l/object-inspect.svg + [license-url]: LICENSE + [downloads-image]: https://img.shields.io/npm/dm/object-inspect.svg + [downloads-url]: https://npm-stat.com/charts.html?package=object-inspect + [codecov-image]: https://codecov.io/gh/inspect-js/object-inspect/branch/main/graphs/badge.svg + [codecov-url]: https://app.codecov.io/gh/inspect-js/object-inspect/ + [actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/object-inspect + [actions-url]: https://github.com/inspect-js/object-inspect/actions +notices: [] diff --git a/.licenses/npm/qs.dep.yml b/.licenses/npm/qs.dep.yml new file mode 100644 index 000000000..2d4aded70 --- /dev/null +++ b/.licenses/npm/qs.dep.yml @@ -0,0 +1,40 @@ +--- +name: qs +version: 6.10.1 +type: npm +summary: A querystring parser that supports nesting and arrays, with a depth limit +homepage: https://github.com/ljharb/qs +license: bsd-3-clause +licenses: +- sources: LICENSE.md + text: | + BSD 3-Clause License + + Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors) + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +notices: [] diff --git a/.licenses/npm/side-channel.dep.yml b/.licenses/npm/side-channel.dep.yml new file mode 100644 index 000000000..e341df9fd --- /dev/null +++ b/.licenses/npm/side-channel.dep.yml @@ -0,0 +1,32 @@ +--- +name: side-channel +version: 1.0.4 +type: npm +summary: Store information about any JS value in a side channel. Uses WeakMap if available. +homepage: https://github.com/ljharb/side-channel#readme +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2019 Jordan Harband + + 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. +notices: [] diff --git a/.licenses/npm/tr46.dep.yml b/.licenses/npm/tr46.dep.yml new file mode 100644 index 000000000..3bacc6ec4 --- /dev/null +++ b/.licenses/npm/tr46.dep.yml @@ -0,0 +1,30 @@ +--- +name: tr46 +version: 0.0.3 +type: npm +summary: An implementation of the Unicode TR46 spec +homepage: https://github.com/Sebmaster/tr46.js#readme +license: mit +licenses: +- sources: Auto-generated MIT license text + text: | + 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. +notices: [] diff --git a/.licenses/npm/tunnel-0.0.6.dep.yml b/.licenses/npm/tunnel.dep.yml similarity index 100% rename from .licenses/npm/tunnel-0.0.6.dep.yml rename to .licenses/npm/tunnel.dep.yml diff --git a/.licenses/npm/typed-rest-client.dep.yml b/.licenses/npm/typed-rest-client.dep.yml index 7076df454..c90980cdb 100644 --- a/.licenses/npm/typed-rest-client.dep.yml +++ b/.licenses/npm/typed-rest-client.dep.yml @@ -1,6 +1,6 @@ --- name: typed-rest-client -version: 1.5.0 +version: 1.8.6 type: npm summary: Node Rest and Http Clients for use with TypeScript homepage: https://github.com/Microsoft/typed-rest-client#readme @@ -29,6 +29,24 @@ licenses: 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. + + + /* Node-SMB/ntlm + * https://github.com/Node-SMB/ntlm + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * Copyright (C) 2012 Joshua M. Clulow + */ notices: - sources: ThirdPartyNotice.txt text: "\nTHIRD-PARTY SOFTWARE NOTICES AND INFORMATION\nDo Not Translate or Localize\n\nThis diff --git a/.licenses/npm/underscore.dep.yml b/.licenses/npm/underscore.dep.yml index 7171cc668..0324c6671 100644 --- a/.licenses/npm/underscore.dep.yml +++ b/.licenses/npm/underscore.dep.yml @@ -1,15 +1,14 @@ --- name: underscore -version: 1.8.3 +version: 1.13.1 type: npm summary: JavaScript's functional programming helper library. -homepage: http://underscorejs.org +homepage: https://underscorejs.org license: mit licenses: - sources: LICENSE text: | - Copyright (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative - Reporters & Editors + Copyright (c) 2009-2021 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/.licenses/npm/webidl-conversions.dep.yml b/.licenses/npm/webidl-conversions.dep.yml new file mode 100644 index 000000000..48c1f2272 --- /dev/null +++ b/.licenses/npm/webidl-conversions.dep.yml @@ -0,0 +1,23 @@ +--- +name: webidl-conversions +version: 3.0.1 +type: npm +summary: Implements the WebIDL algorithms for converting to and from JavaScript values +homepage: https://github.com/jsdom/webidl-conversions#readme +license: bsd-2-clause +licenses: +- sources: LICENSE.md + text: | + # The BSD 2-Clause License + + Copyright (c) 2014, Domenic Denicola + All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +notices: [] diff --git a/.licenses/npm/tunnel-0.0.4.dep.yml b/.licenses/npm/whatwg-url.dep.yml similarity index 78% rename from .licenses/npm/tunnel-0.0.4.dep.yml rename to .licenses/npm/whatwg-url.dep.yml index ec46939d6..bca799ccc 100644 --- a/.licenses/npm/tunnel-0.0.4.dep.yml +++ b/.licenses/npm/whatwg-url.dep.yml @@ -1,16 +1,16 @@ --- -name: tunnel -version: 0.0.4 +name: whatwg-url +version: 5.0.0 type: npm -summary: Node HTTP/HTTPS Agents for tunneling proxies -homepage: https://github.com/koichik/node-tunnel/ +summary: An implementation of the WHATWG URL Standard's URL API and parsing machinery +homepage: https://github.com/jsdom/whatwg-url#readme license: mit licenses: -- sources: LICENSE +- sources: LICENSE.txt text: | The MIT License (MIT) - Copyright (c) 2012 Koichi Kobayashi + Copyright (c) 2015–2016 Sebastian Mayr Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -29,7 +29,4 @@ licenses: 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. -- sources: README.md - text: Licensed under the [MIT](https://github.com/koichik/node-tunnel/blob/master/LICENSE) - license. notices: [] diff --git a/package.json b/package.json index 5909be772..823ff582c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "format": "prettier --write '**/*.ts'", "format-check": "prettier --check '**/*.ts'", "lint": "eslint src/**/*.ts", - "test": "jest" + "test": "jest", + "licensed-check": "src/misc/licensed-check.sh", + "licensed-generate": "src/misc/licensed-generate.sh" }, "repository": { "type": "git", diff --git a/src/misc/licensed-check.sh b/src/misc/licensed-check.sh new file mode 100755 index 000000000..f5066fd55 --- /dev/null +++ b/src/misc/licensed-check.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +src/misc/licensed-download.sh + +echo 'Running: licensed cached' +_temp/licensed-3.3.1/licensed status \ No newline at end of file diff --git a/src/misc/licensed-download.sh b/src/misc/licensed-download.sh new file mode 100755 index 000000000..192091e0a --- /dev/null +++ b/src/misc/licensed-download.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -e + +if [ ! -f _temp/licensed-3.3.1.done ]; then + echo 'Clearing temp' + rm -rf _temp/licensed-3.3.1 || true + + echo 'Downloading licensed' + mkdir -p _temp/licensed-3.3.1 + pushd _temp/licensed-3.3.1 + if [[ "$OSTYPE" == "darwin"* ]]; then + curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.3.1/licensed-3.3.1-darwin-x64.tar.gz + else + curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.3.1/licensed-3.3.1-linux-x64.tar.gz + fi + + echo 'Extracting licenesed' + tar -xzf licensed.tar.gz + popd + touch _temp/licensed-3.3.1.done +else + echo 'Licensed already downloaded' +fi diff --git a/src/misc/licensed-generate.sh b/src/misc/licensed-generate.sh new file mode 100755 index 000000000..e66e03b3c --- /dev/null +++ b/src/misc/licensed-generate.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +src/misc/licensed-download.sh + +echo 'Running: licensed cached' +_temp/licensed-3.3.1/licensed cache \ No newline at end of file