18.1.2 carries one fix (2026-10-07): an entitlement licence key whose bracketed block is broken across lines - by an email client, typically - read as invalid and locked the grid. That is this app's key path. The DC licence payload carries `hot_license_key`, and licence.service puts it on `hotTable.licenseKey` for every grid - editor, viewer, viewboxes, stage, multi-dataset, xlmap - so a key pasted with line breaks would lock the editor rather than open it, on 18.1.1. Both packages move together. The licence-checker exclusions pick up the new version too: handsontable and @handsontable/angular-wrapper declare `SEE LICENSE IN LICENSE.txt`, which the checker reports as a custom licence, so every pinned version is listed in excludePackages - 18.1.1 was already there, 18.1.2 is added beside it. Checked: client 603/603, production build green, npm audit --omit=dev clean, licence checker "All packages are licensed properly".
29 lines
1.3 KiB
JavaScript
29 lines
1.3 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;BlueOak-1.0.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/angular-wrapper@18.1.1;@handsontable/angular-wrapper@18.1.2;handsontable@^16.0.1;handsontable@16.2.0;handsontable@17.1.0;handsontable@18.0.0;handsontable@18.1.1;handsontable@18.1.2;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))
|