Bump handsontable and @handsontable/angular-wrapper 17.1 -> 18.0 and adapt to its stricter TypeScript-core types: moved handsontable/common and deep walkontable imports to their new public export paths, added explicit generics/casts where getData()/getCellMeta()/getSelected() are now typed unknown/nullable instead of the loose v17 shapes, and updated the AutocompleteEditor override to the new open() signature. Also allowlists @handsontable/angular-wrapper@18.0.0 and handsontable@18.0.0 in licenseChecker.js — both versions report the same non-SPDX "SEE LICENSE IN LICENSE.txt" field that license-checker mis-resolves as a disallowed custom license, same as prior versions.
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
const licenseChecker = require('license-checker')
|
|
|
|
const check = (cwd) => {
|
|
return new Promise((resolve, reject) => {
|
|
licenseChecker.init(
|
|
{
|
|
production: true,
|
|
start: cwd,
|
|
excludePrivatePackages: true,
|
|
onlyAllow:
|
|
'AFLv2.1;Apache 2.0;Apache-2.0;Apache*;Artistic-2.0;0BSD;BSD*;BSD-2-Clause;BSD-3-Clause;CC0-1.0;CC-BY-3.0;CC-BY-4.0;ISC;MIT;MPL-2.0;ODC-By-1.0;Python-2.0;Unlicense;',
|
|
excludePackages:
|
|
'@cds/city@1.1.0;@handsontable/angular-wrapper@16.0.1;@handsontable/angular-wrapper@17.1.0;@handsontable/angular-wrapper@18.0.0;handsontable@^16.0.1;handsontable@16.2.0;handsontable@17.1.0;handsontable@18.0.0;hyperformula@2.7.1;hyperformula@3.0.0;hyperformula@3.1.0;hyperformula@3.2.0;hyperformula@3.3.0;jackspeak@3.4.3;path-scurry@1.11.1;package-json-from-dist@1.0.1;buffers@0.1.1'
|
|
},
|
|
(error, json) => {
|
|
if (error) {
|
|
reject(error)
|
|
} else {
|
|
resolve(json)
|
|
}
|
|
}
|
|
)
|
|
})
|
|
}
|
|
|
|
check(process.cwd(), true)
|
|
.then((res) => console.log('All packages are licensed properly'))
|
|
.catch((err) => console.log('license checker err', err))
|