Skip to content

Commit

Permalink
Update licenses (tslib is 0BSD as of 1.11.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoz committed Apr 16, 2021
1 parent 06f1b97 commit ec60db6
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 40 deletions.
30 changes: 9 additions & 21 deletions licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4984,7 +4984,7 @@ license_category: binary
module: web-console
license_name: MIT License
copyright: Denis Pushkarev
version: 3.3.4
version: 3.10.1
license_file_path: licenses/bin/core-js.MIT

---
Expand Down Expand Up @@ -5162,7 +5162,7 @@ license_category: binary
module: web-console
license_name: MIT License
copyright: Ruben Verborgh
version: 1.13.1
version: 1.13.3
license_file_path: licenses/bin/follow-redirects.MIT

---
Expand Down Expand Up @@ -5491,7 +5491,7 @@ license_category: binary
module: web-console
license_name: MIT License
copyright: Facebook, Inc. and its affiliates.
version: 16.11.0
version: 16.14.0
license_file_path: licenses/bin/react-dom.MIT

---
Expand Down Expand Up @@ -5581,7 +5581,7 @@ license_category: binary
module: web-console
license_name: MIT License
copyright: Facebook, Inc. and its affiliates.
version: 16.11.0
version: 16.14.0
license_file_path: licenses/bin/react.MIT

---
Expand All @@ -5591,7 +5591,7 @@ license_category: binary
module: web-console
license_name: MIT License
copyright: Ben Newman
version: 0.13.3
version: 0.13.7
license_file_path: licenses/bin/regenerator-runtime.MIT

---
Expand Down Expand Up @@ -5631,7 +5631,7 @@ license_category: binary
module: web-console
license_name: MIT License
copyright: Facebook, Inc. and its affiliates.
version: 0.17.0
version: 0.19.1
license_file_path: licenses/bin/scheduler.MIT

---
Expand Down Expand Up @@ -5669,22 +5669,10 @@ license_file_path: licenses/bin/toggle-selection.MIT
name: "tslib"
license_category: binary
module: web-console
license_name: Apache License version 2.0
license_name: Zero-Clause BSD
copyright: Microsoft Corp.
version: 1.10.0
notice: |
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
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
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
version: 1.13.0
license_file_path: licenses/bin/tslib.0BSD

---

Expand Down
2 changes: 1 addition & 1 deletion licenses/bin/core-js.MIT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014-2019 Denis Pushkarev
Copyright (c) 2014-2021 Denis Pushkarev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 12 additions & 0 deletions licenses/bin/tslib.0BSD
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

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.
27 changes: 9 additions & 18 deletions web-console/script/licenses
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,7 @@ const START_MARKER_LINE = '# Web console modules start';
const END_MARKER_LINE = '# Web console modules end';
const SEPARATOR = '\n\n---\n\n';

const extraLinesForLib = {
tslib: `notice: |
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
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
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */`
}
const extraLinesForLib = {};

const extraPackages = {
// This is a OSS font so it is not listed by the npm scraper but we still want to attribute it so pretend to inject it
Expand All @@ -49,8 +35,8 @@ const extraPackages = {
repository: 'https://github.com/google/fonts/tree/master/apache/opensans',
publisher: 'Google',
url: 'https://fonts.google.com/specimen/Open+Sans',
}
}
},
};

function injectConsoleLicenses(consoleLicenses) {
const text = fs.readFileSync(LICENSES_FILE, 'utf-8');
Expand Down Expand Up @@ -96,7 +82,7 @@ checker.init(
start: '.',
production: true,
},
function(err, packages) {
function (err, packages) {
if (err) {
console.log('err', err);
return;
Expand Down Expand Up @@ -138,6 +124,11 @@ checker.init(
licenseExt = 'BSD3';
break;

case '0BSD':
properLicenseName = 'Zero-Clause BSD';
licenseExt = '0BSD';
break;

default:
throw new Error(`Unknown license '${licenses}' in ${p}`);
}
Expand Down

0 comments on commit ec60db6

Please sign in to comment.