aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rwxr-xr-xbinary-install-1.6.0.sh (renamed from binary-install-1.5.1.sh)65
-rw-r--r--licenses-1.6.0.txt (renamed from licenses.txt)189
-rw-r--r--licenses.js197
-rw-r--r--package.json1
5 files changed, 336 insertions, 122 deletions
diff --git a/README.md b/README.md
index 512c713..3dd918a 100644
--- a/README.md
+++ b/README.md
@@ -63,13 +63,13 @@ The binary installer installs patchfoo to run as a standalone process. It bundle
This installs a single executable file "patchfoo" on your system, with an embedded Node.js.
-Install patchfoo v1.5.1 binary for linux-{x64,armv7,arm64,x86} or macos-x64:
+Install patchfoo v1.6.0 binary for linux-{x64,armv7,arm64,x86} or macos-x64:
```sh
-curl 'http://localhost:8989/blobs/get/&qmhp9n9eM4GMk4nm9XmCuXzgsJTeQbNhVHRUjgDYs4w=.sha256' | sh
+curl 'http://localhost:8989/blobs/get/&gepauvmWgqFSfXz1Oa9H5sgDB5PIO72L4ffBqTlbc4A=.sha256' | sh
```
-[Licenses for patchfoo v1.5.1 binary release](&MIPxJWgw33j7u9CvIOUxbPlkzw3UF0LjOePlLUxVY8s=.sha256)
+[Licenses for patchfoo v1.6.0 binary release](&OyUSl1n50NUxuXGbV+zp38lT+Dt+sxA+lPReLnNQ4Bc=.sha256)
### Install from source
diff --git a/binary-install-1.5.1.sh b/binary-install-1.6.0.sh
index a6fed1e..fb950bd 100755
--- a/binary-install-1.5.1.sh
+++ b/binary-install-1.6.0.sh
@@ -15,10 +15,9 @@ case "$system" in
'&u7VGC7ZGAPmWVdOK4TrPUy8aZJdEEIdEhZCKiZr+sww=.sha256';;
Linux\ aarch64) set -- \
- '&Jc9/FPgceGCuFXuNqwKKGZ8L473eROk+hC77/ASoJXo=.sha256' \
- '&PNIHuOe1UQbXlYQEeUSjWaqed89Ofnm/9rvRKn2UZx8=.sha256' \
- '&qHjyUv4KXapV9Ov18Dpe8JE2m+HADwa4renY5s/s4yA=.sha256' \
- '&V8nCNHM+qehWik635M3eOECGjJCdFlCmT26tFZPSeyc=.sha256';;
+ '&YipJtv476bRmvbTinajIqj9s61h7/ltqwYpANup3Kb0=.sha256' \
+ '&2Sy49KEmcNoLSOTUoqE6ZAA1qABRvEzpJlQijt5f3Mk=.sha256' \
+ '&q4Fv+iiL+px4GIr0Zpwk1MFf1/DlT/5smU2ErpxQMp0=.sha256';;
Linux\ i686) set -- \
'&irNubuQ8WiKiRqurQa/jg1bs31Y28WOn1qfX7Ht2D34=.sha256' \
@@ -48,14 +47,14 @@ exec 3<<EOF
],
"payloadBlobs": [
{
- "link": "&QgahmPYImelvhuCkBlpGwAIAYz0n6Wf5saxhC443bcw=.sha256",
- "size": 2006279
+ "link": "&l2ZcJ6A5MqgbX0JXkVRBBU2dgBdDnM47tJImpF+bOk8=.sha256",
+ "size": 2052334
}
],
"vfsBlobs": [
{
- "link": "&5FR5YRjuivUISmFAgUFjCwNyPEQtKCPgvODy1MjN0ro=.sha256",
- "size": 170580
+ "link": "&CDhy5HTLjEpbzxzM5GbYLwRvBBs5sUhOjitYcADoIwo=.sha256",
+ "size": 172228
}
],
"binName": "patchfoo",
@@ -66,70 +65,70 @@ exec 3<<EOF
"linux-x64": {
"/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-x64/libsodium.so.23": [
{
- "link": "&xkfpCir6wO2O+H+5fX4yUDglEO9BSENzsDAsEU8jn0w=.sha256",
- "size": 350840
+ "link": "&NZls/6/XCnKGgR8G7VYp/HREnqcdzRo1UKzUjA5EUPc=.sha256",
+ "size": 359032
}
],
- "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-x64/node.abi72.node": [
+ "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-x64/node.napi.node": [
{
- "link": "&jmU1pe8u2k8T7RorVuVranTiHRDU0slhOle4FaslkWE=.sha256",
- "size": 258696
+ "link": "&o5lfdscfDSox8T4tGovJ4LRtuoB/OZQUf/tmp6pxbq0=.sha256",
+ "size": 237040
}
]
},
"linux-arm": {
"/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-arm/libsodium.so.23": [
{
- "link": "&RQlPII/l+Wi+RRfhZhGHUHy4oBHAdza+fpKR0X6r7ZY=.sha256",
- "size": 316988
+ "link": "&WDmqytxRg6+8feJmaYQmj557uyL0pdH9a7fS7tMK81I=.sha256",
+ "size": 271860
}
],
- "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-arm/node.abi72.node": [
+ "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-arm/node.napi.node": [
{
- "link": "&o4YuWR2yE6UgTYkMhKYu7sv9LC9aJCD3dnCw0rDvOyo=.sha256",
- "size": 208092
+ "link": "&5zQDiOhdAvDhpJ3kqW61EjF5ahAszqOksA/sslmDq/0=.sha256",
+ "size": 236068
}
]
},
"linux-arm64": {
"/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-arm64/libsodium.so.23": [
{
- "link": "&yd3bUP7LOKp0bupg1uVdcrG76pHgNQQZwXKZr39aLIY=.sha256",
- "size": 186456
+ "link": "&n3I5o8LPUEXuymEkEEhVlMAr6gUDL2geyXadZ2FyTH0=.sha256",
+ "size": 202904
}
],
- "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-arm64/node.abi72.node": [
+ "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-arm64/node.napi.node": [
{
- "link": "&CU0SgLTi6yDE/cu0FHwTyNdV8YcGI6SkPwDLMk7rO80=.sha256",
- "size": 262552
+ "link": "&k2m6kezfzS63pB95QsnebTVMM7zhebPC+sNlryq2iPc=.sha256",
+ "size": 216320
}
]
},
"linux-ia32": {
"/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-ia32/libsodium.so.23": [
{
- "link": "&OJ3FP9WsuTfVWqRZxTALEs+2ySz5GD9FI4p7WqzeYok=.sha256",
- "size": 427400
+ "link": "&lWEU2O5wovfATth0ubNU6q9avv02ohJGhXyhcBmaDls=.sha256",
+ "size": 435696
}
],
- "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-ia32/node.abi72.node": [
+ "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/linux-ia32/node.napi.node": [
{
- "link": "&T/ypp7mNF7nJILu6hPgvRJ5hkw87ljeEHKEzl/EUXdc=.sha256",
- "size": 268932
+ "link": "&YT33d/f0xwvHDouy58Y+PoIzrMjUSeuEuB24vYwTaJ8=.sha256",
+ "size": 210972
}
]
},
"darwin-x64": {
"/snapshot/patchfoo/node_modules/sodium-native/prebuilds/darwin-x64/libsodium.dylib": [
{
- "link": "&OwrqYgZTxwX7Atiw82wg7kl7nERCnY76BPsO7RuEiD4=.sha256",
- "size": 395136
+ "link": "&C9yYrmAyE5sRSn/clYUk8oQWPd2H8duE99xGwiNv+ac=.sha256",
+ "size": 413328
}
],
- "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/darwin-x64/node.abi72.node": [
+ "/snapshot/patchfoo/node_modules/sodium-native/prebuilds/darwin-x64/node.napi.node": [
{
- "link": "&C8jvyOk2eRXuuYmqyKBNh1BKfIIyMchfk3x2m1L/7uc=.sha256",
- "size": 214848
+ "link": "&ypNp9SnCsVyCsp0pccKf3Oc2hGgt1xCxylKF8ki3Jmw=.sha256",
+ "size": 200692
}
]
}
diff --git a/licenses.txt b/licenses-1.6.0.txt
index 610bae4..5dc4993 100644
--- a/licenses.txt
+++ b/licenses-1.6.0.txt
@@ -2,45 +2,50 @@ Licenses for software packages included in patchfoo binary release
- MIT
+ - @types/node@14.14.8 Copyright (c) Microsoft Corporation.
+ - @types/rdf-js@4.0.0 Copyright (c) Microsoft Corporation.
- ansi-regex@2.1.1 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- ansi-regex@3.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- argparse@1.0.10 Copyright (C) 2012 by Vitaly Puzrin
- - async@2.6.3 Copyright (c) 2010-2018 Caolan McMahon
+ - async@2.6.1 Copyright (c) 2010-2018 Caolan McMahon
- balanced-match@1.0.0 Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
- - binary@0.3.0 2010-2012 James Halliday, 2011 Stefan Thomas, 2011 Stéphan Kochen
+ - binary@0.3.0 2010-2012 James Halliday and contributors
- bl@1.2.2 Copyright (c) 2013-2016 bl contributors.
- brace-expansion@1.1.11 Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
- browser-split@0.0.0 Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> . Copyright 2007-2012 Steven Levithan <stevenlevithan.com>
- buffer-alloc-unsafe@1.1.0 Copyright (c) 2016, 2018 Linus Unnebäck
- buffer-alloc@1.2.0 Copyright (c) 2016, 2018 Linus Unnebäck
- buffer-fill@1.0.0 Copyright (c) 2016, 2018 Linus Unnebäck
- - buffers@0.1.1 2011-2012 James Halliday. 2011 David Björklund, Nathan Rajlich, Stefan Thomas
+ - buffers@0.1.1 2011-2012 James Halliday and contributors
+ - builtin-modules@1.1.1 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- busboy@0.2.14 Copyright Brian White. All rights reserved.
- camelcase@4.1.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- chainsaw@0.1.0 Copyright 2010 James Halliday (mail@substack.net)
- chloride-test@1.2.4 Copyright (c) 2016 Dominic Tarr
- - chloride@2.2.10 Copyright (c) 2015 Dominic Tarr
+ - chloride@2.3.0 Copyright (c) 2015 Dominic Tarr
- class-list@0.1.1 Copyright (c) 2012 Raynos.
- code-point-at@1.1.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- - colors@1.2.1 Original Library - Copyright (c) Marak Squires
- Additional Functionality - Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- - commander@2.20.3 Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
+ - colors@1.2.1 Original Library - Copyright (c) Marak Squires. Additional Functionality - Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+ - commander@2.19.0 Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
- concat-map@0.0.1 2012, 2014 James Halliday
- core-util-is@1.0.2 Copyright Node.js contributors. All rights reserved.
- cross-spawn@5.1.0 Copyright (c) 2014 IndigoUnited
+ - debug@4.3.1 Copyright (c) 2014 TJ Holowaychuk <tj@vision-media.ca>
- decamelize@1.2.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+ - deep-extend@0.6.1 Copyright (c) 2013-2018, Viacheslav Lotsmanov
- dicer@0.2.5 Copyright Brian White. All rights reserved.
- discontinuous-range@1.0.0 Copyright (c) 2014 David Tudury
- emoji-regex@8.0.0 Copyright Mathias Bynens <https://mathiasbynens.be/>
- end-of-stream@1.4.1 Copyright (c) 2014 Mathias Buus
- error-ex@1.3.2 Copyright (c) 2015 JD Ballard
- execa@0.7.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+ - explain-error@1.0.4 Copyright (c) 2014 Dominic Tarr
- find-up@2.1.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- fs-constants@1.0.0 Copyright (c) 2018 Mathias Buus
- get-stream@3.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- hashlru@2.3.0 Copyright (c) 2016 'Dominic Tarr'
- hashtag-regex@2.1.0 Copyright Mathias Bynens <https://mathiasbynens.be/>
- - html-element@2.3.1 Copyright (c) 2013 Ayman Mackouly.
+ - html-element@2.2.0 Copyright (c) 2013 Ayman Mackouly.
- human-time@0.0.1 2014, 2015, 2018 Dave Eddy
- hyperscript@2.0.2 Copyright (c) 2012 'Dominic Tarr'
- increment-buffer@1.0.1 Copyright (c) 2015 Dominic Tarr
@@ -48,12 +53,13 @@ Licenses for software packages included in patchfoo binary release
- invert-kv@1.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
- ip@1.1.5 Copyright Fedor Indutny, 2012.
- is-arrayish@0.2.1 Copyright (c) 2015 JD Ballard
+ - is-builtin-module@1.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- is-canonical-base64@1.1.1 Copyright (c) 2018 Dominic Tarr
- is-electron@2.2.0 Copyright (c) 2016-2018 Cheton Wu
- is-fullwidth-code-point@1.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- is-fullwidth-code-point@2.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- is-stream@1.1.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- - is-valid-domain@0.0.14 Copyright (C) 2014 Miguel Mota
+ - is-valid-domain@0.0.5 Copyright (C) 2014 Miguel Mota
- isarray@0.0.1 Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
- isarray@1.0.0 Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
- jpeg-autorotate@3.1.0 Copyright (c) 2016 Johan Satgé
@@ -62,8 +68,9 @@ Licenses for software packages included in patchfoo binary release
- linkify-it@2.2.0 Copyright (c) 2015 Vitaly Puzrin.
- load-json-file@2.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- locate-path@2.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+ - lodash.get@4.4.2 Copyright jQuery Foundation and other contributors <https://jquery.org/>
- lodash.toarray@4.4.0 Copyright jQuery Foundation and other contributors <https://jquery.org/>
- - lodash@4.17.15 Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
+ - lodash@4.17.10 Copyright JS Foundation and other contributors <https://js.foundation/>
- looper@3.0.0 Copyright (c) 2013 Dominic Tarr
- looper@4.0.0 Copyright (c) 2013 Dominic Tarr
- markdown-it-emoji@1.4.0 Copyright (c) 2014 Vitaly Puzrin.
@@ -72,28 +79,38 @@ Licenses for software packages included in patchfoo binary release
- match-stream@0.0.2 Copyright (c) 2013 Evan Oxfeld
- mdurl@1.0.1 Copyright (c) 2015 Vitaly Puzrin, Alex Kocharin.*
- mem@1.1.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- - mime-db@1.44.0 Copyright (c) 2014 Jonathan Ong me@jongleberry.com
- - mime-types@2.1.27 Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>. Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
+ - mime-db@1.33.0 Copyright (c) 2014 Jonathan Ong me@jongleberry.com
+ - mime-types@2.1.18 Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>. Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
- mimic-fn@1.2.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+ - minimist@0.0.8 2013-2014 James Halliday and contributors
- minimist@1.2.5 2013-2015 James Halliday and contributors
- - mkdirp@0.5.5 Copyright 2010 James Halliday (mail@substack.net)
+ - mkdirp@0.5.1 Copyright 2010 James Halliday (mail@substack.net)
+ - ms@2.1.2 Copyright (c) 2016 Zeit, Inc.
- multicb@1.2.2 Copyright (c) 2018 Paul Frazee
- multiserver-address@1.0.1 Copyright (c) 2018 Dominic Tarr
- - nearley@2.19.3 Copyright (c) 2014, 2015, 2016, 2017, 2018, 2019 Kartik Chandra, Tim Radvan
+ - multiserver-scopes@1.0.0 2018 Jan Bölsche
+ - multiserver@3.6.0 Copyright (c) 2016 'Dominic Tarr'
+ - muxrpc@6.5.0 Copyright (c) 2014 Dominic Tarr
+ - nearley@2.16.0 Copyright (c) 2014, 2015, 2016, 2017 Hardmath123
- node-emoji@1.10.0 Copyright (c) 2014 Daniel Bugl
+ - node-gyp-build@4.2.2 Copyright (c) 2017 Mathias Buus
+ - non-private-ip@1.4.4 Copyright (c) 2014 Dominic Tarr
- npm-run-path@2.0.2 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- number-is-nan@1.0.1 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+ - options@0.0.6 Copyright (c) 2012 Einar Otto Stangvik <einaros@gmail.com>
+ - os-homedir@1.0.2 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- os-locale@2.1.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- over@0.0.5 Copyright (c) 2012 Near Infinity Corporation
- p-finally@1.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- p-limit@1.3.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- p-locate@2.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- p-try@1.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+ - packet-stream-codec@1.1.2 Copyright (c) 2015 Dominic Tarr
+ - packet-stream@2.0.5 Copyright (c) 2014 Dominic Tarr
- parse-json@2.2.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- path-exists@3.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- path-is-absolute@1.0.1 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- path-key@2.0.1 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- - path-parse@1.0.6 Copyright (c) 2015 Javier Blanco
- path-type@2.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- piexifjs@1.0.4 Copyright (c) 2014 Hiroaki Matoba
- pify@2.3.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
@@ -105,61 +122,75 @@ Licenses for software packages included in patchfoo binary release
- pull-defer@0.2.3 Copyright (c) 2014 Dominic Tarr
- pull-file@1.1.0 Copyright (c) 2014 Damon Oehlman <damon.oehlman@gmail.com>
- pull-git-packidx-parser@1.0.0 © 2013 Chris Dickinson, 2016 Charles Lehner
+ - pull-goodbye@0.0.2 Copyright (c) 2014 Dominic Tarr
+ - pull-handshake@1.1.4 Copyright (c) 2014 Dominic Tarr
- pull-hyperscript@0.2.2 © 2016 mix irving, Matt McKegg, cel
- pull-identify-filetype@1.1.0 2015 Paul Frazee
- - pull-many@1.0.9 Copyright (c) 2014 Dominic Tarr
+ - pull-many@1.0.8 Copyright (c) 2014 Dominic Tarr
+ - pull-pair@1.1.0 Copyright (c) 2013 Dominic Tarr
- pull-paramap@1.2.2 Copyright (c) 2013 Dominic Tarr
+ - pull-pushable@2.2.0 Copyright (c) 2013 Dominic Tarr
- pull-reader@1.3.1 Copyright (c) 2015 Dominic Tarr
- - pull-split@0.2.1 Copyright (c) 2013 Dominic Tarr
+ - pull-split@0.2.0 Copyright (c) 2013 Dominic Tarr
- pull-stream@2.28.4 Copyright (c) 2013 Dominic Tarr
+ - pull-stream@3.5.0 Copyright (c) 2013 Dominic Tarr
- pull-stream@3.6.14 Copyright (c) 2013 Dominic Tarr
- pull-stream@3.6.9 Copyright (c) 2013 Dominic Tarr
- pull-through@1.0.18 Copyright (c) 2013 Dominic Tarr
- pull-utf8-decoder@1.0.2 Copyright (c) 2013 Dominic Tarr
- pullstream@0.4.1 Copyright (c) 2012 - 2013 Near Infinity Corporation
- randexp@0.4.6 Copyright (C) 2011 by Roly Fentanes
+ - rdf-data-factory@1.0.4 Copyright © 2020 - now Ruben Taelman
- read-pkg-up@2.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- read-pkg@2.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- - readable-stream@1.0.34 Copyright Joyent, Inc. and other Node contributors. All rights reserved.
- - readable-stream@1.1.14 Copyright Joyent, Inc. and other Node contributors. All rights reserved.
- - readable-stream@2.3.6 Node.js license
+ - readable-stream@1.0.34 Copyright Joyent, Inc. and other Node contributors.
+ - readable-stream@1.1.14 Copyright Joyent, Inc. and other Node contributors.
+ - readable-stream@2.3.6 Copyright Joyent, Inc. and other Node contributors. All rights reserved.
+ - relative-url@1.0.2 Copyright (c) 2016 'Dominic Tarr'
- require-directory@2.1.1 Copyright (c) 2011 Troy Goode <troygoode@gmail.com>
- - resolve@1.17.0 Copyright (c) 2012 James Halliday
- ret@0.1.15 Copyright (C) 2011 by Roly Fentanes
- safe-buffer@5.1.2 Copyright (c) Feross Aboukhadijeh
- - safe-buffer@5.2.1 Copyright (c) Feross Aboukhadijeh
+ - secret-handshake@1.1.20 Copyright (c) 2015 Dominic Tarr
+ - separator-escape@0.0.0 Copyright (c) 2016 'Dominic Tarr'
- setimmediate@1.0.5 Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola
- shebang-command@1.2.0 Copyright (c) Kevin Martensson <kevinmartensson@gmail.com> (github.com/kevva)
- shebang-regex@1.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- slice-stream@1.0.0 Copyright (c) 2013 Evan Oxfeld
+ - smart-buffer@4.1.0 Copyright (c) 2013-2017 Josh Glazebrook
+ - socks@2.5.0 Copyright (c) 2013 Josh Glazebrook
- sodium-browserify-tweetnacl@0.2.6 Copyright (c) 2016 Dominic Tarr
- sodium-browserify@1.3.0 Copyright (c) 2015 Dominic Tarr
- - sodium-chloride@1.1.0 Copyright (c) 2017 'Dominic Tarr'
- - sodium-native@2.4.6 Copyright (c) 2016 Mathias Buus and Emil Bay
- - spdx-expression-parse@3.0.1 Copyright (c) 2015 Kyle E. Mitchell & other authors listed in AUTHORS
+ - sodium-chloride@1.1.2 Copyright (c) 2017 'Dominic Tarr'
+ - sodium-native@3.2.0 Copyright (c) 2016 Mathias Buus and Emil Bay
+ - sparqljs@3.2.0 Copyright ©2014 Ruben Verborgh
+ - spdx-expression-parse@3.0.0 Copyright (c) 2015 Kyle E. Mitchell & other authors listed in AUTHORS
- split-buffer@1.0.0 Copyright (c) 2015 Dominic Tarr
+ - ssb-client@4.9.0 Copyright 2015-2020 Paul Frazee and Dominic Tarr, and contributors
+ - ssb-config@3.4.4 Copyright (c) 2015 Dominic Tarr
+ - ssb-keys@7.2.2 2014-2015 Paul Frazee, 2014-2020 Dominic Tarr and contributors
- ssb-markdown@6.0.0 Copyright (c) 2016 Dominic Tarr
- - ssb-marked@0.7.2 Copyright (c) 2011-2014, Christopher Jeffrey (https://github.com/chjj/)
- - ssb-mentions@0.5.0 Copyright (c) 2016 Dominic Tarr
- - ssb-ref@2.14.0 Copyright (c) 2015 Dominic Tarr
- - ssb-sort@1.1.3 Copyright (c) 2016 Dominic Tarr
+ - ssb-ref@2.13.9 Copyright (c) 2015 Dominic Tarr
+ - ssb-sort@1.1.0 Copyright (c) 2016 Dominic Tarr
- stream-to-pull-stream@1.7.2 Copyright (c) 2013 Dominic Tarr
- - stream-to-pull-stream@1.7.3 Copyright (c) 2013 Dominic Tarr
- streamsearch@0.1.2 Copyright Brian White. All rights reserved.
- string-width@1.0.2 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- string-width@2.1.1 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- string_decoder@0.10.31 Copyright Joyent, Inc. and other Node contributors.
- - string_decoder@1.1.1 Node.js license
+ - string_decoder@1.1.1 Copyright Node.js contributors. All rights reserved.
- strip-ansi@3.0.1 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- strip-ansi@4.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- strip-bom@3.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- strip-eof@1.0.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+ - strip-json-comments@2.0.1 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
- tar-stream@1.6.1 Copyright (c) 2014 Mathias Buus
- to-buffer@1.1.1 Copyright (c) 2016 Mathias Buus
+ - traverse@0.3.9 Copyright 2010 James Halliday (mail@substack.net)
- uc.micro@1.0.6 Copyright Mathias Bynens <https://mathiasbynens.be/>
+ - ultron@1.0.2 Copyright (c) 2015 Unshift.io, Arnout Kazemier, the Contributors.
- unzip@0.1.11 Copyright (c) 2012 - 2013 Near Infinity Corporation
- util-deprecate@1.0.2 Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>
- wrap-ansi@2.1.0 Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
+ - ws@1.1.5 Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
- xtend@4.0.1 Copyright (c) 2012-2014 Raynos.
- yargs@9.0.1 Copyright 2010 James Halliday (mail@substack.net). Modified work Copyright 2014 Contributors (ben@npmjs.com)
@@ -185,6 +216,7 @@ Licenses for software packages included in patchfoo binary release
- Fair
- asyncmemo@1.1.0 Copyright (c) 2016 Charles Lehner
+ - asyncmemo@1.3.0 Copyright (c) 2016 Charles Lehner
- pull-hash@1.0.1 Copyright (c) 2016-2018 cel
- pull-kvdiff@0.0.1 Copyright (c) 2016 Charles Lehner
- pull-paginate@1.0.0 Copyright (c) 2016, 2017 Charles Lehner
@@ -196,42 +228,34 @@ Licenses for software packages included in patchfoo binary release
DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
-- FSFAP
-
- - asyncmemo@1.3.1 Copyright (c) 2016-2020 Charles E. Lehner
-
- Copying and distribution of this file, with or without modification,
- are permitted in any medium without royalty provided the copyright
- notice and this notice are preserved. This file is offered as-is,
- without any warranty.
-
- ISC
- base64-url@2.2.0 Copyright (c) 2014, Joaquim José F. Serafim
- cliui@3.2.0 Copyright (c) 2015, Contributors
- fs.realpath@1.0.0 Copyright (c) Isaac Z. Schlueter and Contributors
- - get-caller-file@1.0.3 Copyright 2018 Stefan Penner
- - glob@7.1.6 Copyright (c) Isaac Z. Schlueter and Contributors
+ - get-caller-file@1.0.2 Copyright 2018 Stefan Penner
+ - glob@7.1.3 Copyright (c) Isaac Z. Schlueter and Contributors
- graceful-fs@3.0.11 Copyright (c) Isaac Z. Schlueter and Contributors
- - graceful-fs@4.2.4 Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors
+ - graceful-fs@4.1.11 Copyright (c) Isaac Z. Schlueter, Ben Noordhuis, and Contributors
- hosted-git-info@2.7.1 Copyright (c) 2015, Rebecca Turner
- inflight@1.0.6 Copyright (c) Isaac Z. Schlueter
- inherits@2.0.3 Copyright (c) Isaac Z. Schlueter
+ - ini@1.3.5 Copyright (c) Isaac Z. Schlueter and Contributors
- isexe@2.0.0 Copyright (c) Isaac Z. Schlueter and Contributors
- - libsodium-wrappers@0.7.6 Copyright (c) 2015-2018. Ahmad Ben Mrad <batikhsouri at gmail dot org>. Frank Denis <j at pureftpd dot org>. Ryan Lester <ryan at cyph dot com>
- - libsodium@0.7.6 Copyright (c) 2015-2018. Ahmad Ben Mrad <batikhsouri at gmail dot org>. Frank Denis <j at pureftpd dot org>. Ryan Lester <ryan at cyph dot com>
- - lru-cache@4.1.5 Copyright (c) Isaac Z. Schlueter and Contributors
+ - libsodium-wrappers@0.7.8 Copyright (c) 2015-2020. Ahmad Ben Mrad <batikhsouri at gmail dot org>. Frank Denis <j at pureftpd dot org>. Ryan Lester <ryan at cyph dot com>
+ - libsodium@0.7.8 Copyright (c) 2015-2020. Ahmad Ben Mrad <batikhsouri at gmail dot org>. Frank Denis <j at pureftpd dot org>. Ryan Lester <ryan at cyph dot com>
+ - lru-cache@4.1.3 Copyright (c) Isaac Z. Schlueter and Contributors
- minimatch@3.0.4 Copyright (c) Isaac Z. Schlueter and Contributors
- natives@1.1.3 Copyright 2018 Isaac Z. Schlueter
- once@1.4.0 Copyright (c) Isaac Z. Schlueter and Contributors
- pseudomap@1.0.2 Copyright (c) Isaac Z. Schlueter and Contributors
- - pull-catch@1.0.1 2016, 2019 Nick Thomas
+ - pull-catch@1.0.0 2016, 2019 Nick Thomas
+ - pull-ws@3.3.2 Copyright (c) 2014-2016 Dominic Tarr, Damon Oehlman and contributors
- require-main-filename@1.0.1 Copyright (c) 2016, Contributors
- - rimraf@2.7.1 Copyright (c) Isaac Z. Schlueter and Contributors
+ - rimraf@2.6.2 Copyright (c) Isaac Z. Schlueter and Contributors
- semver@5.6.0 Copyright (c) Isaac Z. Schlueter and Contributors
- - semver@5.7.1 Copyright (c) Isaac Z. Schlueter and Contributors
- set-blocking@2.0.0 Copyright (c) 2016, Contributors
- - signal-exit@3.0.3 Copyright (c) 2015, Contributors
+ - signal-exit@3.0.2 Copyright (c) 2015, Contributors
- ssb-web-resolver@1.1.2 2018 Stephen Whitmore
- which-module@2.0.0 Copyright (c) 2016, Contributors
- which@1.3.1 Copyright (c) Isaac Z. Schlueter and Contributors
@@ -256,9 +280,10 @@ Licenses for software packages included in patchfoo binary release
- BSD-3-Clause
- diff@3.5.0 Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
+ - highlight.js@9.12.0 Copyright (c) 2006, Ivan Sagalaev. All rights reserved.. Redistribution and use in source and binary forms, with or without. modification, are permitted provided that the following conditions are met:
- highlight.js@9.16.2 Copyright (c) 2006, Ivan Sagalaev.. All rights reserved.
- jpeg-js@0.3.4 Copyright (c) 2014, Eugene Ware. All rights reserved.. . Redistribution and use in source and binary forms, with or without. modification, are permitted provided that the following conditions are met:
- - moo@0.5.1 Copyright (c) 2017, Tim Radvan (tjvr). All rights reserved.
+ - moo@0.4.3 Copyright (c) 2017, Tim Radvan (tjvr). All rights reserved.
- sprintf-js@1.0.3 Copyright (c) 2007-2014, Alexandru Marasteanu <hello [at) alexei (dot] ro>. All rights reserved.
Software License Agreement (BSD License)
@@ -325,7 +350,7 @@ Licenses for software packages included in patchfoo binary release
- BSD-2-Clause
- entities@1.1.2 Copyright (c) Felix Böhm. All rights reserved.
- - normalize-package-data@2.5.0 Copyright (c) Meryn Stol ("Author"). All rights reserved.
+ - normalize-package-data@2.4.0 Copyright (c) Meryn Stol ("Author"). All rights reserved.
All rights reserved.
@@ -372,7 +397,7 @@ Licenses for software packages included in patchfoo binary release
- AGPL-3.0-or-later
- - patchfoo@1.5.1 Copyright (C) 2017-2020 Secure Scuttlebutt Consortium
+ - patchfoo@1.6.0 Copyright (C) 2017-2020 Secure Scuttlebutt Consortium
- ssb-npm-registry@1.10.2 Copyright (C) 2017-2019 Secure Scuttlebutt Consortium
GNU AFFERO GENERAL PUBLIC LICENSE
@@ -1040,11 +1065,32 @@ Licenses for software packages included in patchfoo binary release
- CC0-1.0
- railroad-diagrams@1.0.0 2012-2015 Tab Atkins Jr. (and others)
- - spdx-license-ids@3.0.5 2014-2019 Shinnosuke Watanabe, 2015-2016, 2018-2019 Kyle E. Mitchell, 2015 Simon Josefsson
+ - spdx-license-ids@3.0.0 2014-2018 Shinnosuke Watanabe and contributors
+ - ssb-caps@1.1.0 2015, 2019 Dominic Tarr, Andre Medeiros
Creative Commons - CC0 1.0 Universal
Source: http://creativecommons.org/publicdomain/zero/1.0/
+- (BSD-2-Clause OR MIT OR Apache-2.0)
+
+ - rc@1.2.8 Copyright (c) 2011 Dominic Tarr
+
+ Apache License, Version 2.0
+
+ Copyright (c) 2011 Dominic Tarr
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
- (MIT AND BSD-3-Clause)
- sha.js@2.4.11 Copyright (c) 2013-2018 sha.js contributors
@@ -1099,8 +1145,8 @@ Licenses for software packages included in patchfoo binary release
- Apache-2.0
- - spdx-correct@3.1.1 2015-2018, 2020 Kyle E. Mitchell and contributors
- - validate-npm-package-license@3.0.4 2017-2018, 2020 Kyle E. Mitchell, 2018 Mark Stacey
+ - spdx-correct@3.0.0 2015-2018 Kyle E. Mitchell and contributors
+ - validate-npm-package-license@3.0.4 2017-2018, 2020 Kyle E. Mitchell and contributors
Apache License
@@ -1307,7 +1353,7 @@ Licenses for software packages included in patchfoo binary release
- CC-BY-3.0
- - spdx-exceptions@2.3.0 Copyright © 2010-2015 Linux Foundation and its Contributors
+ - spdx-exceptions@2.1.0 Copyright © 2010-2015 Linux Foundation and its Contributors
Creative Commons Legal Code
@@ -1629,35 +1675,6 @@ Licenses for software packages included in patchfoo binary release
Creative Commons may be contacted at https://creativecommons.org/.
-- MIT*
-
- - traverse@0.3.9 Copyright 2010 James Halliday (mail@substack.net)
-
- Copyright 2010 James Halliday (mail@substack.net)
-
- This project is free software released under the MIT/X11 license:
- http://www.opensource.org/licenses/mit-license.php
-
- Copyright 2010 James Halliday (mail@substack.net)
-
- 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.
-
Node.js is licensed for use as follows:
"""
diff --git a/licenses.js b/licenses.js
new file mode 100644
index 0000000..89cf335
--- /dev/null
+++ b/licenses.js
@@ -0,0 +1,197 @@
+var fs = require('fs')
+
+// Supplement or fix what license-checker finds for copyright notices.
+// If the author(s) claimed copyright, note it here and put a commit id to show it. Otherwise just put their names and years based on examining the source and commit log.
+var copyrightOverrides = {
+ '@types/node@14.14.8': 'Copyright (c) Microsoft Corporation.',
+ '@types/rdf-js@4.0.0': 'Copyright (c) Microsoft Corporation.',
+ 'binary@0.3.0': '2010-2012 James Halliday and contributors',
+ 'bl@1.2.2': 'Copyright (c) 2013-2016 bl contributors.',
+ 'buffer-alloc-unsafe@1.1.0': 'Copyright (c) 2016, 2018 Linus Unnebäck',
+ 'buffer-alloc@1.2.0': 'Copyright (c) 2016, 2018 Linus Unnebäck',
+ 'buffer-fill@1.0.0': 'Copyright (c) 2016, 2018 Linus Unnebäck',
+ 'buffers@0.1.1': '2011-2012 James Halliday and contributors',
+ 'chainsaw@0.1.0': 'Copyright 2010 James Halliday (mail@substack.net)',
+ 'colors@1.2.1': 'Original Library - Copyright (c) Marak Squires. Additional Functionality - Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)',
+ 'concat-map@0.0.1': '2012, 2014 James Halliday',
+ 'ed2curve@0.1.4': '2014,2016 Dmitry Chestnykh',
+ 'emoji-named-characters@1.0.2': '© 2013 Henrik Joreteg, 2014 Luke Karrys, and contributors',
+ 'generate-function@2.0.0': 'Copyright (c) 2014 Mathias Buus', // af11020b5280972156c46876d9779c0e448fdfcb
+ 'get-caller-file@1.0.2': 'Copyright 2018 Stefan Penner',
+ 'git-packidx-parser@1.0.0': 'Copyright 2013 Chris Dickinson',
+ 'human-time@0.0.1': '2014, 2015, 2018 Dave Eddy',
+ 'indexof@0.0.1': '2012 tjholowaychuk',
+ 'invert-kv@1.0.0': 'Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)',
+ 'is-my-ip-valid@1.0.0': 'Copyright (c) 2018 Linus Unnebäck', // 5a9a18540278a8fb0e51543dd79bb407dbe187a0
+ 'kvset@1.0.0': 'Copyright (c) 2016 Charles Lehner', // 66301173fca366fcd05224d0d23678b51c2ed9f6
+ 'minimist@0.0.8': '2013-2014 James Halliday and contributors',
+ 'minimist@1.2.5': '2013-2015 James Halliday and contributors',
+ 'multicb@1.2.2': 'Copyright (c) 2018 Paul Frazee', // a3798da7e8843cc3036ecd7c08ac0056c842ee4c
+ 'multiserver-scopes@1.0.0': '2018 Jan Bölsche',
+ 'nan@2.14.1': 'Copyright (c) 2018 NAN contributors',
+ 'natives@1.1.3': 'Copyright 2018 Isaac Z. Schlueter',
+ 'node-polyglot@1.0.0': '©2012-2014 Airbnb, Inc.', // 4722ccd67f7ac5d72f4f45604b52ad27f51d0402
+ 'process-nextick-args@2.0.0': 'Copyright (c) 2015 Calvin Metcalf',
+ 'pull-block-filter@1.0.0': 'Copyright (c) 2016 Charles Lehner', // 5b01c795e220af444c3e1be42616693803cde4d8
+ 'pull-catch@1.0.0': '2016, 2019 Nick Thomas',
+ 'pull-git-packidx-parser@1.0.0': '© 2013 Chris Dickinson, 2016 Charles Lehner',
+ 'pull-hyperscript@0.2.2': '© 2016 mix irving, Matt McKegg, cel',
+ 'pull-identify-filetype@1.1.0': '2015 Paul Frazee',
+ 'railroad-diagrams@1.0.0': '2012-2015 Tab Atkins Jr. (and others)',
+ 'readable-stream@1.0.34': 'Copyright Joyent, Inc. and other Node contributors.',
+ 'readable-stream@1.1.14': 'Copyright Joyent, Inc. and other Node contributors.',
+ 'readable-stream@2.3.6': 'Copyright Joyent, Inc. and other Node contributors. All rights reserved.',
+ 'sparqljs@3.2.0': 'Copyright ©2014 Ruben Verborgh',
+ 'spdx-correct@3.0.0': '2015-2018 Kyle E. Mitchell and contributors',
+ 'spdx-exceptions@2.1.0': 'Copyright © 2010-2015 Linux Foundation and its Contributors',
+ 'spdx-license-ids@3.0.0': '2014-2018 Shinnosuke Watanabe and contributors',
+ 'ssb-caps@1.1.0': '2015, 2019 Dominic Tarr, Andre Medeiros',
+ 'ssb-client@4.9.0': 'Copyright 2015-2020 Paul Frazee and Dominic Tarr, and contributors',
+ 'ssb-keys@7.2.2': '2014-2015 Paul Frazee, 2014-2020 Dominic Tarr and contributors',
+ 'ssb-msg-schemas@6.3.0': '2015-2016 Paul Frazee. 2015,2017 Dominic Tarr. 2017 mix irving. 2016-2019 other contributors',
+ 'ssb-msgs@5.2.0': '2014-2015 Paul Frazee. 2015 Dominic Tarr',
+ 'ssb-npm-registry@1.10.2': 'Copyright (C) 2017-2019 Secure Scuttlebutt Consortium',
+ 'ssb-web-resolver@1.1.2': '2018 Stephen Whitmore',
+ 'string_decoder@1.1.1': 'Copyright Node.js contributors. All rights reserved.',
+ 'tweetnacl-auth@0.3.1': '2014-2016 Dmitry Chestnykh',
+ 'tweetnacl@0.14.5': '2014-2016 Dmitry Chestnykh',
+ 'tweetnacl@1.0.3': '2014-2020 Dmitry Chestnykh',
+ 'validate-npm-package-license@3.0.4': '2017-2018, 2020 Kyle E. Mitchell and contributors',
+ 'patchfoo@1.6.0': 'Copyright (C) 2017-2020 Secure Scuttlebutt Consortium',
+ 'rc@1.2.8': 'Copyright (c) 2011 Dominic Tarr',
+}
+
+var licenseOverrides = {
+ 'buffers@0.1.1': 'MIT',
+ 'chainsaw@0.1.0': 'MIT',
+ 'ed2curve@0.1.4': 'Unlicense',
+ 'lrucache@1.0.3': 'MIT',
+ 'multicb@1.2.2': 'MIT',
+ 'options@0.0.6': 'MIT',
+ 'sha.js@2.4.5': '(MIT AND BSD-3-Clause)',
+ 'indexof@0.0.1': 'MIT',
+ 'traverse@0.3.9': 'MIT',
+ 'ssb-npm-registry@1.10.2': 'AGPL-3.0-or-later'
+}
+
+var licenseFilenameOverrides = {
+ Unlicense: __dirname + '/node_modules/tweetnacl/LICENSE',
+ 'AGPL-3.0-or-later': __dirname + '/node_modules/ssb-npm-registry/LICENSE',
+ 'MIT': __dirname + '/node_modules/sodium-native/LICENSE',
+ 'CC-BY-3.0': __dirname + '/vendor/cc-by-3.0.txt',
+}
+
+var formLicenses = {
+ '(MIT AND BSD-3-Clause)': true,
+ 'BSD-2-Clause': true,
+ 'BSD-3-Clause': true,
+ ISC: true,
+ MIT: true
+}
+
+var licenseTextOverrides = {
+ FSFAP: `Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved. This file is offered as-is,
+without any warranty.`,
+ 'CC0-1.0': `Creative Commons - CC0 1.0 Universal
+Source: http://creativecommons.org/publicdomain/zero/1.0/`,
+ Fair: `Usage of the works is permitted provided that this instrument is
+retained with the works, so that any entity that uses the works is
+notified of this instrument.
+
+DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.`,
+ 'CC0-1.0': `Creative Commons - CC0 1.0 Universal
+Source: http://creativecommons.org/publicdomain/zero/1.0/`,
+ '(MIT AND Zlib)': `- MIT - all files, except \`/lib/zlib\` folder
+- ZLIB - \`/lib/zlib\` content
+
+zlib license:
+
+(C) 1995-2013 Jean-loup Gailly and Mark Adler
+(C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin
+
+This software is provided 'as-is', without any express or implied
+warranty. In no event will the authors be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.`
+}
+
+function return$1($0, $1) {
+ return $1
+}
+
+var checker = require('license-checker')
+
+checker.init({
+ start: __dirname,
+ production: true,
+ customFormat: {
+ licenses: null,
+ publisher: null,
+ copyright: null,
+ licenseFile: null
+ }
+}, function (err, packages) {
+ if (err) throw err
+
+ var licenses = {}
+ var licensesFilenames = {}
+ var licenseNames = []
+ for (var nameVersion in packages) {
+ var pkg = packages[nameVersion]
+ pkg.nameVersion = nameVersion
+ var license = licenseOverrides[nameVersion] || pkg.licenses
+ var licenseInfo = licenses[license] || (licenses[license] = {pkgs: []})
+ licenseInfo.pkgs.push(pkg)
+ if (!(license in licensesFilenames)) {
+ licensesFilenames[license] = pkg.licenseFile
+ licenseNames.push(license)
+ }
+ }
+ try {
+ var ssbPkgPkgPkg = require('./node_modules/ssb-pkg/package.json')
+ licenses.MIT.pkgs.push({
+ copyright: 'Copyright (c) 2016 Zeit, Inc., 2020 Charles Lehner',
+ nameVersion: 'ssb-pkg@' + ssbPkgPkgPkg.version
+ })
+ } catch(e) {}
+
+ process.stdout.write('Licenses for software packages included in patchfoo binary release\n\n')
+ for (var license in licenses) {
+ var pkgs = licenses[license].pkgs
+ var licenseText = licenseTextOverrides[license]
+ if (!licenseText) {
+ var licenseFilename = licenseFilenameOverrides[license]
+ || licensesFilenames[license]
+ licenseText = fs.readFileSync(licenseFilename, 'utf8')
+ .replace(/\s*$/, '')
+ if (formLicenses[license]) licenseText = licenseText
+ .replace(/(^|\n)\s*(Copyright |©)[^\n]*\n*/, return$1)
+ }
+ process.stdout.write('- ' + license + '\n\n' +
+ pkgs.map(function (pkg) {
+ return ' - ' + pkg.nameVersion + ' ' + (
+ copyrightOverrides[pkg.nameVersion] || pkg.copyright
+ )
+ }).join('\n')
+ .replace(/&lt;/g, '<')
+ .replace(/&gt;/g, '>') + '\n\n' +
+ licenseText.replace(/^/gm, ' ')
+ + '\n\n')
+ }
+
+ fs.createReadStream('/home/cel/src/patchfoo/node-v12.18.1-license.txt').pipe(process.stdout)
+
+})
diff --git a/package.json b/package.json
index 7c63fa1..cb462f0 100644
--- a/package.json
+++ b/package.json
@@ -42,6 +42,7 @@
"unzip": "^0.1.11"
},
"devDependencies": {
+ "license-checker": "^25.0.1",
"ssb-pkg": "*"
},
"pkg": {