@zowe/cli 8.36.0 → 8.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/daemon/DaemonClient.d.ts.map +1 -1
- package/lib/daemon/DaemonClient.js +3 -0
- package/lib/daemon/DaemonClient.js.map +1 -1
- package/lib/zosfiles/-strings-/en.d.ts +2 -0
- package/lib/zosfiles/-strings-/en.d.ts.map +1 -1
- package/lib/zosfiles/-strings-/en.js +5 -1
- package/lib/zosfiles/-strings-/en.js.map +1 -1
- package/lib/zosfiles/ZosFiles.options.d.ts.map +1 -1
- package/lib/zosfiles/ZosFiles.options.js +3 -1
- package/lib/zosfiles/ZosFiles.options.js.map +1 -1
- package/lib/zosfiles/create/Create.utils.d.ts.map +1 -1
- package/lib/zosfiles/create/Create.utils.js +3 -1
- package/lib/zosfiles/create/Create.utils.js.map +1 -1
- package/lib/zosfiles/create/ussDir/ussDir.handler.d.ts.map +1 -1
- package/lib/zosfiles/create/ussDir/ussDir.handler.js +5 -1
- package/lib/zosfiles/create/ussDir/ussDir.handler.js.map +1 -1
- package/lib/zosfiles/create/ussFile/ussFile.handler.d.ts.map +1 -1
- package/lib/zosfiles/create/ussFile/ussFile.handler.js +5 -1
- package/lib/zosfiles/create/ussFile/ussFile.handler.js.map +1 -1
- package/lib/zosfiles/create/vsam/vsam.handler.d.ts.map +1 -1
- package/lib/zosfiles/create/vsam/vsam.handler.js +3 -1
- package/lib/zosfiles/create/vsam/vsam.handler.js.map +1 -1
- package/lib/zosfiles/create/zfs/zfs.handler.d.ts.map +1 -1
- package/lib/zosfiles/create/zfs/zfs.handler.js +3 -1
- package/lib/zosfiles/create/zfs/zfs.handler.js.map +1 -1
- package/lib/zosfiles/delete/ds/Ds.handler.d.ts.map +1 -1
- package/lib/zosfiles/delete/ds/Ds.handler.js +4 -1
- package/lib/zosfiles/delete/ds/Ds.handler.js.map +1 -1
- package/lib/zosfiles/delete/uss/Uss.handler.d.ts.map +1 -1
- package/lib/zosfiles/delete/uss/Uss.handler.js +5 -1
- package/lib/zosfiles/delete/uss/Uss.handler.js.map +1 -1
- package/lib/zosfiles/delete/vsam/Vsam.handler.d.ts.map +1 -1
- package/lib/zosfiles/delete/vsam/Vsam.handler.js +3 -1
- package/lib/zosfiles/delete/vsam/Vsam.handler.js.map +1 -1
- package/lib/zosfiles/delete/zfs/zfs.handler.d.ts.map +1 -1
- package/lib/zosfiles/delete/zfs/zfs.handler.js +3 -1
- package/lib/zosfiles/delete/zfs/zfs.handler.js.map +1 -1
- package/lib/zosfiles/download/am/AllMembers.handler.d.ts.map +1 -1
- package/lib/zosfiles/download/am/AllMembers.handler.js +3 -1
- package/lib/zosfiles/download/am/AllMembers.handler.js.map +1 -1
- package/lib/zosfiles/download/amm/AllMembersMatching.handler.d.ts.map +1 -1
- package/lib/zosfiles/download/amm/AllMembersMatching.handler.js +2 -0
- package/lib/zosfiles/download/amm/AllMembersMatching.handler.js.map +1 -1
- package/lib/zosfiles/download/ds/Dataset.handler.d.ts.map +1 -1
- package/lib/zosfiles/download/ds/Dataset.handler.js +3 -1
- package/lib/zosfiles/download/ds/Dataset.handler.js.map +1 -1
- package/lib/zosfiles/download/dsm/DataSetMatching.handler.d.ts.map +1 -1
- package/lib/zosfiles/download/dsm/DataSetMatching.handler.js +6 -2
- package/lib/zosfiles/download/dsm/DataSetMatching.handler.js.map +1 -1
- package/lib/zosfiles/download/uss/UssFile.handler.d.ts.map +1 -1
- package/lib/zosfiles/download/uss/UssFile.handler.js +2 -0
- package/lib/zosfiles/download/uss/UssFile.handler.js.map +1 -1
- package/lib/zosfiles/download/ussdir/UssDir.handler.d.ts.map +1 -1
- package/lib/zosfiles/download/ussdir/UssDir.handler.js +6 -2
- package/lib/zosfiles/download/ussdir/UssDir.handler.js.map +1 -1
- package/lib/zosfiles/edit/Edit.utils.d.ts +2 -2
- package/lib/zosfiles/edit/Edit.utils.d.ts.map +1 -1
- package/lib/zosfiles/edit/Edit.utils.js +10 -10
- package/lib/zosfiles/edit/Edit.utils.js.map +1 -1
- package/lib/zosfiles/invoke/amsFile/AmsFile.handler.d.ts.map +1 -1
- package/lib/zosfiles/invoke/amsFile/AmsFile.handler.js +5 -1
- package/lib/zosfiles/invoke/amsFile/AmsFile.handler.js.map +1 -1
- package/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.d.ts.map +1 -1
- package/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js +5 -1
- package/lib/zosfiles/invoke/amsStatements/AmsStatements.handler.js.map +1 -1
- package/lib/zosfiles/list/alias/Alias.handler.d.ts.map +1 -1
- package/lib/zosfiles/list/alias/Alias.handler.js +3 -1
- package/lib/zosfiles/list/alias/Alias.handler.js.map +1 -1
- package/lib/zosfiles/list/am/AllMembers.handler.d.ts.map +1 -1
- package/lib/zosfiles/list/am/AllMembers.handler.js +3 -1
- package/lib/zosfiles/list/am/AllMembers.handler.js.map +1 -1
- package/lib/zosfiles/list/ds/DataSet.handler.d.ts.map +1 -1
- package/lib/zosfiles/list/ds/DataSet.handler.js +3 -1
- package/lib/zosfiles/list/ds/DataSet.handler.js.map +1 -1
- package/lib/zosfiles/list/fs/Fs.handler.d.ts.map +1 -1
- package/lib/zosfiles/list/fs/Fs.handler.js +6 -2
- package/lib/zosfiles/list/fs/Fs.handler.js.map +1 -1
- package/lib/zosfiles/list/uss/UssFile.handler.d.ts.map +1 -1
- package/lib/zosfiles/list/uss/UssFile.handler.js +3 -1
- package/lib/zosfiles/list/uss/UssFile.handler.js.map +1 -1
- package/lib/zosfiles/mount/fs/fs.handler.d.ts.map +1 -1
- package/lib/zosfiles/mount/fs/fs.handler.js +3 -1
- package/lib/zosfiles/mount/fs/fs.handler.js.map +1 -1
- package/lib/zosfiles/rename/ds/Ds.handler.d.ts.map +1 -1
- package/lib/zosfiles/rename/ds/Ds.handler.js +4 -1
- package/lib/zosfiles/rename/ds/Ds.handler.js.map +1 -1
- package/lib/zosfiles/rename/dsm/Dsm.handler.d.ts.map +1 -1
- package/lib/zosfiles/rename/dsm/Dsm.handler.js +4 -1
- package/lib/zosfiles/rename/dsm/Dsm.handler.js.map +1 -1
- package/lib/zosfiles/search/ds/DataSets.handler.d.ts.map +1 -1
- package/lib/zosfiles/search/ds/DataSets.handler.js +10 -2
- package/lib/zosfiles/search/ds/DataSets.handler.js.map +1 -1
- package/lib/zosfiles/upload/dtp/DirToPds.handler.d.ts.map +1 -1
- package/lib/zosfiles/upload/dtp/DirToPds.handler.js +3 -1
- package/lib/zosfiles/upload/dtp/DirToPds.handler.js.map +1 -1
- package/lib/zosfiles/upload/dtu/DirToUSSDir.handler.d.ts.map +1 -1
- package/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js +3 -1
- package/lib/zosfiles/upload/dtu/DirToUSSDir.handler.js.map +1 -1
- package/lib/zosfiles/upload/ftds/FileToDataSet.handler.d.ts.map +1 -1
- package/lib/zosfiles/upload/ftds/FileToDataSet.handler.js +3 -1
- package/lib/zosfiles/upload/ftds/FileToDataSet.handler.js.map +1 -1
- package/lib/zosfiles/upload/ftu/FileToUSS.handler.d.ts.map +1 -1
- package/lib/zosfiles/upload/ftu/FileToUSS.handler.js +3 -1
- package/lib/zosfiles/upload/ftu/FileToUSS.handler.js.map +1 -1
- package/lib/zosfiles/upload/stds/StdinToDataSet.handler.d.ts.map +1 -1
- package/lib/zosfiles/upload/stds/StdinToDataSet.handler.js +3 -1
- package/lib/zosfiles/upload/stds/StdinToDataSet.handler.js.map +1 -1
- package/lib/zosfiles/view/ds/Dataset.handler.d.ts.map +1 -1
- package/lib/zosfiles/view/ds/Dataset.handler.js +3 -1
- package/lib/zosfiles/view/ds/Dataset.handler.js.map +1 -1
- package/lib/zosfiles/view/uss/USSFile.handler.d.ts.map +1 -1
- package/lib/zosfiles/view/uss/USSFile.handler.js +3 -1
- package/lib/zosfiles/view/uss/USSFile.handler.js.map +1 -1
- package/node_modules/@zowe/core-for-zowe-sdk/lib/rest/ZosmfHeaders.d.ts +14 -0
- package/node_modules/@zowe/core-for-zowe-sdk/lib/rest/ZosmfHeaders.d.ts.map +1 -1
- package/node_modules/@zowe/core-for-zowe-sdk/lib/rest/ZosmfHeaders.js +14 -0
- package/node_modules/@zowe/core-for-zowe-sdk/lib/rest/ZosmfHeaders.js.map +1 -1
- package/node_modules/@zowe/core-for-zowe-sdk/package.json +3 -3
- package/node_modules/@zowe/imperative/lib/config/src/ConfigSchema.d.ts.map +1 -1
- package/node_modules/@zowe/imperative/lib/config/src/ConfigSchema.js +1 -0
- package/node_modules/@zowe/imperative/lib/config/src/ConfigSchema.js.map +1 -1
- package/node_modules/@zowe/imperative/lib/logger/src/LoggerConfigBuilder.d.ts +1 -0
- package/node_modules/@zowe/imperative/lib/logger/src/LoggerConfigBuilder.d.ts.map +1 -1
- package/node_modules/@zowe/imperative/lib/logger/src/LoggerConfigBuilder.js +2 -0
- package/node_modules/@zowe/imperative/lib/logger/src/LoggerConfigBuilder.js.map +1 -1
- package/node_modules/@zowe/imperative/lib/logger/src/log4jsToWinston.d.ts +1 -0
- package/node_modules/@zowe/imperative/lib/logger/src/log4jsToWinston.d.ts.map +1 -1
- package/node_modules/@zowe/imperative/lib/logger/src/log4jsToWinston.js +11 -3
- package/node_modules/@zowe/imperative/lib/logger/src/log4jsToWinston.js.map +1 -1
- package/node_modules/@zowe/imperative/lib/utilities/src/TextUtils.d.ts.map +1 -1
- package/node_modules/@zowe/imperative/lib/utilities/src/TextUtils.js +25 -0
- package/node_modules/@zowe/imperative/lib/utilities/src/TextUtils.js.map +1 -1
- package/node_modules/@zowe/imperative/package.json +3 -3
- package/node_modules/@zowe/imperative/web-help/package-lock.json +62 -62
- package/node_modules/@zowe/provisioning-for-zowe-sdk/package.json +4 -4
- package/node_modules/@zowe/secrets-for-zowe-sdk/README.md +70 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/package.json +1 -1
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.darwin-arm64.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.darwin-x64.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm-gnueabihf.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-arm64-gnu.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-ia32-gnu.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.linux-x64-gnu.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-arm64-msvc.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-ia32-msvc.node +0 -0
- package/node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/keyring.win32-x64-msvc.node +0 -0
- package/node_modules/@zowe/zos-console-for-zowe-sdk/package.json +4 -4
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/doc/IZosFilesOptions.d.ts +12 -0
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/doc/IZosFilesOptions.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/copy/Copy.js +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/copy/Copy.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/create/Create.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/create/Create.js +18 -3
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/create/Create.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/delete/Delete.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/delete/Delete.js +7 -3
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/delete/Delete.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/download/Download.js +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/download/Download.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/invoke/Invoke.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/invoke/Invoke.js +2 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/invoke/Invoke.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/list/List.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/list/List.js +6 -5
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/list/List.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/mount/Mount.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/mount/Mount.js +6 -0
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/mount/Mount.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/rename/Rename.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/rename/Rename.js +2 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/rename/Rename.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/unmount/Unmount.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/unmount/Unmount.js +3 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/unmount/Unmount.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/upload/Upload.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/upload/Upload.js +5 -5
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/upload/Upload.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/utilities/Utilities.d.ts +4 -4
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/utilities/Utilities.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/utilities/Utilities.js +10 -33
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/methods/utilities/Utilities.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/utils/ZosFilesUtils.d.ts +7 -0
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/utils/ZosFilesUtils.d.ts.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/utils/ZosFilesUtils.js +16 -0
- package/node_modules/@zowe/zos-files-for-zowe-sdk/lib/utils/ZosFilesUtils.js.map +1 -1
- package/node_modules/@zowe/zos-files-for-zowe-sdk/package.json +5 -5
- package/node_modules/@zowe/zos-jobs-for-zowe-sdk/package.json +5 -5
- package/node_modules/@zowe/zos-logs-for-zowe-sdk/package.json +4 -4
- package/node_modules/@zowe/zos-tso-for-zowe-sdk/package.json +5 -5
- package/node_modules/@zowe/zos-uss-for-zowe-sdk/package.json +3 -3
- package/node_modules/@zowe/zos-workflows-for-zowe-sdk/package.json +5 -5
- package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.constants.d.ts.map +1 -1
- package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.constants.js +21 -0
- package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.constants.js.map +1 -1
- package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.profile.d.ts.map +1 -1
- package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.profile.js +8 -0
- package/node_modules/@zowe/zosmf-for-zowe-sdk/lib/constants/Zosmf.profile.js.map +1 -1
- package/node_modules/@zowe/zosmf-for-zowe-sdk/package.json +4 -4
- package/node_modules/js-yaml/dist/js-yaml.js +11 -3
- package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.min.js +1 -1
- package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
- package/node_modules/js-yaml/dist/js-yaml.mjs +11 -3
- package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
- package/node_modules/js-yaml/lib/loader.js +16 -3
- package/node_modules/js-yaml/package.json +1 -1
- package/node_modules/sanitize-html/README.md +13 -0
- package/node_modules/sanitize-html/index.js +86 -12
- package/node_modules/sanitize-html/node_modules/dom-serializer/LICENSE +7 -0
- package/node_modules/{dom-serializer → sanitize-html/node_modules/dom-serializer}/README.md +14 -8
- package/node_modules/sanitize-html/node_modules/dom-serializer/dist/foreign-names.d.ts +11 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/dist/foreign-names.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/dist/foreign-names.js +15 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/dist/foreign-names.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/dist/index.d.ts +72 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/dist/index.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/dist/index.js +173 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/dist/index.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/package.json +69 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/src/foreign-names.ts +19 -0
- package/node_modules/sanitize-html/node_modules/dom-serializer/src/index.ts +315 -0
- package/node_modules/{domelementtype/lib → sanitize-html/node_modules/domelementtype/dist}/index.d.ts +12 -12
- package/node_modules/sanitize-html/node_modules/domelementtype/dist/index.d.ts.map +1 -0
- package/node_modules/{domelementtype/lib/esm → sanitize-html/node_modules/domelementtype/dist}/index.js +15 -6
- package/node_modules/sanitize-html/node_modules/domelementtype/package.json +59 -0
- package/node_modules/{domhandler/lib → sanitize-html/node_modules/domhandler/dist}/index.d.ts +9 -6
- package/node_modules/sanitize-html/node_modules/domhandler/dist/index.d.ts.map +1 -0
- package/node_modules/{domhandler/lib/esm → sanitize-html/node_modules/domhandler/dist}/index.js +34 -25
- package/node_modules/{domhandler/lib → sanitize-html/node_modules/domhandler/dist}/node.d.ts +34 -15
- package/node_modules/sanitize-html/node_modules/domhandler/dist/node.d.ts.map +1 -0
- package/node_modules/{domhandler/lib/esm → sanitize-html/node_modules/domhandler/dist}/node.js +81 -60
- package/node_modules/sanitize-html/node_modules/domhandler/package.json +65 -0
- package/node_modules/{domhandler → sanitize-html/node_modules/domhandler}/readme.md +1 -7
- package/node_modules/{domutils/lib → sanitize-html/node_modules/domutils/dist}/feeds.d.ts +2 -2
- package/node_modules/sanitize-html/node_modules/domutils/dist/feeds.d.ts.map +1 -0
- package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/feeds.js +22 -25
- package/node_modules/sanitize-html/node_modules/domutils/dist/feeds.js.map +1 -0
- package/node_modules/{domutils/lib → sanitize-html/node_modules/domutils/dist}/helpers.d.ts +1 -1
- package/node_modules/sanitize-html/node_modules/domutils/dist/helpers.d.ts.map +1 -0
- package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/helpers.js +16 -16
- package/node_modules/sanitize-html/node_modules/domutils/dist/helpers.js.map +1 -0
- package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/index.d.ts +5 -7
- package/node_modules/sanitize-html/node_modules/domutils/dist/index.d.ts.map +1 -0
- package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/index.js +5 -7
- package/node_modules/sanitize-html/node_modules/domutils/dist/index.js.map +1 -0
- package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/legacy.d.ts +1 -1
- package/node_modules/sanitize-html/node_modules/domutils/dist/legacy.d.ts.map +1 -0
- package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/legacy.js +15 -15
- package/node_modules/sanitize-html/node_modules/domutils/dist/legacy.js.map +1 -0
- package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/manipulation.d.ts +9 -9
- package/node_modules/sanitize-html/node_modules/domutils/dist/manipulation.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/domutils/dist/manipulation.js +138 -0
- package/node_modules/sanitize-html/node_modules/domutils/dist/manipulation.js.map +1 -0
- package/node_modules/{domutils/lib → sanitize-html/node_modules/domutils/dist}/querying.d.ts +6 -16
- package/node_modules/sanitize-html/node_modules/domutils/dist/querying.d.ts.map +1 -0
- package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/querying.js +13 -26
- package/node_modules/sanitize-html/node_modules/domutils/dist/querying.js.map +1 -0
- package/node_modules/{domutils/lib → sanitize-html/node_modules/domutils/dist}/stringify.d.ts +2 -2
- package/node_modules/sanitize-html/node_modules/domutils/dist/stringify.d.ts.map +1 -0
- package/node_modules/{domutils/lib/esm → sanitize-html/node_modules/domutils/dist}/stringify.js +1 -1
- package/node_modules/sanitize-html/node_modules/domutils/dist/stringify.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/domutils/dist/traversal.d.ts +74 -0
- package/node_modules/sanitize-html/node_modules/domutils/dist/traversal.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/domutils/dist/traversal.js +105 -0
- package/node_modules/sanitize-html/node_modules/domutils/dist/traversal.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/domutils/package.json +69 -0
- package/node_modules/{domutils → sanitize-html/node_modules/domutils}/readme.md +0 -6
- package/node_modules/sanitize-html/node_modules/domutils/src/__snapshots__/feeds.spec.ts.snap +103 -0
- package/node_modules/sanitize-html/node_modules/domutils/src/feeds.ts +301 -0
- package/node_modules/{domutils/lib/helpers.js → sanitize-html/node_modules/domutils/src/helpers.ts} +55 -43
- package/node_modules/{domutils/lib/index.d.ts → sanitize-html/node_modules/domutils/src/index.ts} +5 -8
- package/node_modules/sanitize-html/node_modules/domutils/src/legacy.ts +224 -0
- package/node_modules/sanitize-html/node_modules/domutils/src/manipulation.ts +156 -0
- package/node_modules/{domutils/lib/querying.js → sanitize-html/node_modules/domutils/src/querying.ts} +77 -60
- package/node_modules/sanitize-html/node_modules/domutils/src/stringify.ts +90 -0
- package/node_modules/sanitize-html/node_modules/domutils/src/traversal.ts +132 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/decode-codepoint.d.ts +28 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/decode-codepoint.js +61 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/decode-codepoint.js.map +1 -0
- package/node_modules/{htmlparser2/node_modules/entities/dist/commonjs → sanitize-html/node_modules/entities/dist}/decode.d.ts +66 -44
- package/node_modules/sanitize-html/node_modules/entities/dist/decode.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/decode.js +1132 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/decode.js.map +1 -0
- package/node_modules/{htmlparser2/node_modules/entities/dist/commonjs → sanitize-html/node_modules/entities/dist}/encode.d.ts +4 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/encode.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/encode.js +295 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/encode.js.map +1 -0
- package/node_modules/{htmlparser2/node_modules/entities/dist/commonjs → sanitize-html/node_modules/entities/dist}/escape.d.ts +23 -9
- package/node_modules/sanitize-html/node_modules/entities/dist/escape.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/escape.js +172 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/escape.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-html.js +5 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-xml.js +7 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/encode-html.d.ts +3 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/encode-html.js +3 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/generated/encode-html.js.map +1 -0
- package/node_modules/{htmlparser2/node_modules/entities/dist/commonjs → sanitize-html/node_modules/entities/dist}/index.d.ts +11 -18
- package/node_modules/sanitize-html/node_modules/entities/dist/index.d.ts.map +1 -0
- package/node_modules/{htmlparser2/node_modules/entities/dist/esm → sanitize-html/node_modules/entities/dist}/index.js +9 -29
- package/node_modules/sanitize-html/node_modules/entities/dist/index.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/internal/bin-trie-flags.d.ts +48 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/internal/bin-trie-flags.js +49 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/internal/decode-shared.d.ts +38 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/internal/decode-shared.js +195 -0
- package/node_modules/sanitize-html/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/entities/package.json +83 -0
- package/node_modules/{htmlparser2 → sanitize-html}/node_modules/entities/readme.md +4 -16
- package/node_modules/sanitize-html/node_modules/entities/src/decode-codepoint.ts +69 -0
- package/node_modules/sanitize-html/node_modules/entities/src/decode.ts +1368 -0
- package/node_modules/sanitize-html/node_modules/entities/src/encode.ts +337 -0
- package/node_modules/sanitize-html/node_modules/entities/src/escape.ts +187 -0
- package/node_modules/sanitize-html/node_modules/entities/src/generated/decode-data-html.ts +12 -0
- package/node_modules/sanitize-html/node_modules/entities/src/generated/decode-data-xml.ts +7 -0
- package/node_modules/sanitize-html/node_modules/entities/src/generated/encode-html.ts +3 -0
- package/node_modules/{htmlparser2 → sanitize-html}/node_modules/entities/src/index.ts +14 -41
- package/node_modules/sanitize-html/node_modules/entities/src/internal/bin-trie-flags.ts +47 -0
- package/node_modules/sanitize-html/node_modules/entities/src/internal/decode-shared.ts +209 -0
- package/node_modules/sanitize-html/node_modules/htmlparser2/README.md +257 -0
- package/node_modules/{htmlparser2/dist/esm → sanitize-html/node_modules/htmlparser2/dist}/Parser.d.ts +97 -38
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Parser.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Parser.js +644 -0
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Parser.js.map +1 -0
- package/node_modules/{htmlparser2/dist/commonjs → sanitize-html/node_modules/htmlparser2/dist}/Tokenizer.d.ts +75 -7
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Tokenizer.d.ts.map +1 -0
- package/node_modules/{htmlparser2/dist/esm → sanitize-html/node_modules/htmlparser2/dist}/Tokenizer.js +434 -179
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/Tokenizer.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WebWritableStream.d.ts +24 -0
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WebWritableStream.d.ts.map +1 -0
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WebWritableStream.js +44 -0
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WebWritableStream.js.map +1 -0
- package/node_modules/{htmlparser2/dist/commonjs → sanitize-html/node_modules/htmlparser2/dist}/WritableStream.d.ts +1 -2
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WritableStream.d.ts.map +1 -0
- package/node_modules/{htmlparser2/dist/esm → sanitize-html/node_modules/htmlparser2/dist}/WritableStream.js +3 -3
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/WritableStream.js.map +1 -0
- package/node_modules/{htmlparser2/dist/commonjs → sanitize-html/node_modules/htmlparser2/dist}/index.d.ts +6 -26
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/index.d.ts.map +1 -0
- package/node_modules/{htmlparser2/dist/esm → sanitize-html/node_modules/htmlparser2/dist}/index.js +2 -30
- package/node_modules/sanitize-html/node_modules/htmlparser2/dist/index.js.map +1 -0
- package/node_modules/sanitize-html/node_modules/htmlparser2/package.json +86 -0
- package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/src/Parser.ts +260 -100
- package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/src/Tokenizer.ts +438 -165
- package/node_modules/sanitize-html/node_modules/htmlparser2/src/WebWritableStream.ts +47 -0
- package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/src/WritableStream.ts +1 -2
- package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/src/index.ts +14 -43
- package/node_modules/sanitize-html/package.json +5 -2
- package/package.json +15 -15
- package/scripts/validateSecretsPrebuild.js +231 -0
- package/node_modules/dom-serializer/LICENSE +0 -11
- package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts +0 -3
- package/node_modules/dom-serializer/lib/esm/foreignNames.d.ts.map +0 -1
- package/node_modules/dom-serializer/lib/esm/foreignNames.js +0 -100
- package/node_modules/dom-serializer/lib/esm/index.d.ts +0 -52
- package/node_modules/dom-serializer/lib/esm/index.d.ts.map +0 -1
- package/node_modules/dom-serializer/lib/esm/index.js +0 -190
- package/node_modules/dom-serializer/lib/esm/package.json +0 -1
- package/node_modules/dom-serializer/lib/foreignNames.d.ts +0 -3
- package/node_modules/dom-serializer/lib/foreignNames.d.ts.map +0 -1
- package/node_modules/dom-serializer/lib/foreignNames.js +0 -103
- package/node_modules/dom-serializer/lib/index.d.ts +0 -52
- package/node_modules/dom-serializer/lib/index.d.ts.map +0 -1
- package/node_modules/dom-serializer/lib/index.js +0 -229
- package/node_modules/dom-serializer/package.json +0 -69
- package/node_modules/domelementtype/lib/esm/index.d.ts +0 -48
- package/node_modules/domelementtype/lib/esm/index.d.ts.map +0 -1
- package/node_modules/domelementtype/lib/esm/package.json +0 -1
- package/node_modules/domelementtype/lib/index.d.ts.map +0 -1
- package/node_modules/domelementtype/lib/index.js +0 -55
- package/node_modules/domelementtype/package.json +0 -54
- package/node_modules/domhandler/lib/esm/index.d.ts +0 -76
- package/node_modules/domhandler/lib/esm/index.d.ts.map +0 -1
- package/node_modules/domhandler/lib/esm/node.d.ts +0 -245
- package/node_modules/domhandler/lib/esm/node.d.ts.map +0 -1
- package/node_modules/domhandler/lib/esm/package.json +0 -1
- package/node_modules/domhandler/lib/index.d.ts.map +0 -1
- package/node_modules/domhandler/lib/index.js +0 -165
- package/node_modules/domhandler/lib/node.d.ts.map +0 -1
- package/node_modules/domhandler/lib/node.js +0 -474
- package/node_modules/domhandler/package.json +0 -73
- package/node_modules/domutils/lib/esm/feeds.d.ts +0 -71
- package/node_modules/domutils/lib/esm/feeds.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/feeds.js.map +0 -1
- package/node_modules/domutils/lib/esm/helpers.d.ts +0 -59
- package/node_modules/domutils/lib/esm/helpers.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/helpers.js.map +0 -1
- package/node_modules/domutils/lib/esm/index.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/index.js.map +0 -1
- package/node_modules/domutils/lib/esm/legacy.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/legacy.js.map +0 -1
- package/node_modules/domutils/lib/esm/manipulation.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/manipulation.js +0 -134
- package/node_modules/domutils/lib/esm/manipulation.js.map +0 -1
- package/node_modules/domutils/lib/esm/package.json +0 -1
- package/node_modules/domutils/lib/esm/querying.d.ts +0 -64
- package/node_modules/domutils/lib/esm/querying.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/querying.js.map +0 -1
- package/node_modules/domutils/lib/esm/stringify.d.ts +0 -46
- package/node_modules/domutils/lib/esm/stringify.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/stringify.js.map +0 -1
- package/node_modules/domutils/lib/esm/traversal.d.ts +0 -67
- package/node_modules/domutils/lib/esm/traversal.d.ts.map +0 -1
- package/node_modules/domutils/lib/esm/traversal.js +0 -112
- package/node_modules/domutils/lib/esm/traversal.js.map +0 -1
- package/node_modules/domutils/lib/feeds.d.ts.map +0 -1
- package/node_modules/domutils/lib/feeds.js +0 -190
- package/node_modules/domutils/lib/feeds.js.map +0 -1
- package/node_modules/domutils/lib/helpers.d.ts.map +0 -1
- package/node_modules/domutils/lib/helpers.js.map +0 -1
- package/node_modules/domutils/lib/index.d.ts.map +0 -1
- package/node_modules/domutils/lib/index.js +0 -33
- package/node_modules/domutils/lib/index.js.map +0 -1
- package/node_modules/domutils/lib/legacy.d.ts +0 -79
- package/node_modules/domutils/lib/legacy.d.ts.map +0 -1
- package/node_modules/domutils/lib/legacy.js +0 -168
- package/node_modules/domutils/lib/legacy.js.map +0 -1
- package/node_modules/domutils/lib/manipulation.d.ts +0 -49
- package/node_modules/domutils/lib/manipulation.d.ts.map +0 -1
- package/node_modules/domutils/lib/manipulation.js +0 -142
- package/node_modules/domutils/lib/manipulation.js.map +0 -1
- package/node_modules/domutils/lib/querying.d.ts.map +0 -1
- package/node_modules/domutils/lib/querying.js.map +0 -1
- package/node_modules/domutils/lib/stringify.d.ts.map +0 -1
- package/node_modules/domutils/lib/stringify.js +0 -91
- package/node_modules/domutils/lib/stringify.js.map +0 -1
- package/node_modules/domutils/lib/traversal.d.ts +0 -67
- package/node_modules/domutils/lib/traversal.d.ts.map +0 -1
- package/node_modules/domutils/lib/traversal.js +0 -125
- package/node_modules/domutils/lib/traversal.js.map +0 -1
- package/node_modules/domutils/package.json +0 -79
- package/node_modules/htmlparser2/README.md +0 -171
- package/node_modules/htmlparser2/WritableStream.js +0 -3
- package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts +0 -198
- package/node_modules/htmlparser2/dist/commonjs/Parser.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/Parser.js +0 -527
- package/node_modules/htmlparser2/dist/commonjs/Parser.js.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js +0 -805
- package/node_modules/htmlparser2/dist/commonjs/Tokenizer.js.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.js +0 -36
- package/node_modules/htmlparser2/dist/commonjs/WritableStream.js.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/index.js +0 -123
- package/node_modules/htmlparser2/dist/commonjs/index.js.map +0 -1
- package/node_modules/htmlparser2/dist/commonjs/package.json +0 -3
- package/node_modules/htmlparser2/dist/esm/Parser.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/esm/Parser.js +0 -490
- package/node_modules/htmlparser2/dist/esm/Parser.js.map +0 -1
- package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts +0 -126
- package/node_modules/htmlparser2/dist/esm/Tokenizer.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/esm/Tokenizer.js.map +0 -1
- package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts +0 -15
- package/node_modules/htmlparser2/dist/esm/WritableStream.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/esm/WritableStream.js.map +0 -1
- package/node_modules/htmlparser2/dist/esm/index.d.ts +0 -54
- package/node_modules/htmlparser2/dist/esm/index.d.ts.map +0 -1
- package/node_modules/htmlparser2/dist/esm/index.js.map +0 -1
- package/node_modules/htmlparser2/dist/esm/package.json +0 -3
- package/node_modules/htmlparser2/node_modules/entities/decode.d.ts +0 -3
- package/node_modules/htmlparser2/node_modules/entities/decode.js +0 -3
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts +0 -19
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +0 -568
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js +0 -92
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/encode.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js +0 -138
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/escape.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-html.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/decode-data-xml.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts +0 -3
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js +0 -14
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/generated/encode-html.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js +0 -131
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/index.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts +0 -17
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/decode-shared.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts +0 -32
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js +0 -94
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/internal/encode-shared.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/commonjs/package.json +0 -3
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts +0 -19
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js +0 -72
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode-codepoint.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts +0 -205
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js +0 -554
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/decode.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts +0 -22
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js +0 -88
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/encode.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts +0 -46
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js +0 -134
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/escape.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js +0 -4
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-html.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js +0 -4
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/decode-data-xml.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts +0 -3
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js +0 -11
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/generated/encode-html.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts +0 -96
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/index.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts +0 -17
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.js +0 -18
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/bin-trie-flags.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts +0 -2
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js +0 -28
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/decode-shared.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts +0 -32
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.d.ts.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js +0 -91
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/internal/encode-shared.js.map +0 -1
- package/node_modules/htmlparser2/node_modules/entities/dist/esm/package.json +0 -3
- package/node_modules/htmlparser2/node_modules/entities/escape.d.ts +0 -3
- package/node_modules/htmlparser2/node_modules/entities/escape.js +0 -3
- package/node_modules/htmlparser2/node_modules/entities/package.json +0 -120
- package/node_modules/htmlparser2/node_modules/entities/src/decode-codepoint.ts +0 -81
- package/node_modules/htmlparser2/node_modules/entities/src/decode.ts +0 -685
- package/node_modules/htmlparser2/node_modules/entities/src/encode.ts +0 -93
- package/node_modules/htmlparser2/node_modules/entities/src/escape.ts +0 -161
- package/node_modules/htmlparser2/node_modules/entities/src/generated/.eslintrc.json +0 -10
- package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-html.ts +0 -6
- package/node_modules/htmlparser2/node_modules/entities/src/generated/decode-data-xml.ts +0 -6
- package/node_modules/htmlparser2/node_modules/entities/src/generated/encode-html.ts +0 -17
- package/node_modules/htmlparser2/node_modules/entities/src/internal/bin-trie-flags.ts +0 -16
- package/node_modules/htmlparser2/node_modules/entities/src/internal/decode-shared.ts +0 -30
- package/node_modules/htmlparser2/node_modules/entities/src/internal/encode-shared.ts +0 -121
- package/node_modules/htmlparser2/package.json +0 -113
- /package/node_modules/{domelementtype → sanitize-html/node_modules/domelementtype}/LICENSE +0 -0
- /package/node_modules/{domelementtype → sanitize-html/node_modules/domelementtype}/readme.md +0 -0
- /package/node_modules/{domhandler → sanitize-html/node_modules/domhandler}/LICENSE +0 -0
- /package/node_modules/{domutils → sanitize-html/node_modules/domutils}/LICENSE +0 -0
- /package/node_modules/{htmlparser2 → sanitize-html}/node_modules/entities/LICENSE +0 -0
- /package/node_modules/{htmlparser2 → sanitize-html/node_modules/htmlparser2}/LICENSE +0 -0
package/node_modules/{domhandler/lib → sanitize-html/node_modules/domhandler/dist}/node.d.ts
RENAMED
|
@@ -17,9 +17,18 @@ interface TagSourceCodeLocation extends SourceCodeLocation {
|
|
|
17
17
|
startTag?: SourceCodeLocation;
|
|
18
18
|
endTag?: SourceCodeLocation;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
/**
|
|
21
|
+
* A node that can have children.
|
|
22
|
+
*/
|
|
23
|
+
export type ParentNode = Document | Element | CDATA;
|
|
24
|
+
/**
|
|
25
|
+
* A node that can have a parent.
|
|
26
|
+
*/
|
|
27
|
+
export type ChildNode = Text | Comment | ProcessingInstruction | Element | CDATA | Document;
|
|
28
|
+
/**
|
|
29
|
+
* Any node in the DOM tree.
|
|
30
|
+
*/
|
|
31
|
+
export type AnyNode = ParentNode | ChildNode;
|
|
23
32
|
/**
|
|
24
33
|
* This object will be used as the prototype for Nodes when creating a
|
|
25
34
|
* DOM-Level-1-compliant structure.
|
|
@@ -59,7 +68,7 @@ export declare abstract class Node {
|
|
|
59
68
|
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
60
69
|
*/
|
|
61
70
|
get previousSibling(): ChildNode | null;
|
|
62
|
-
set previousSibling(
|
|
71
|
+
set previousSibling(previous: ChildNode | null);
|
|
63
72
|
/**
|
|
64
73
|
* Same as {@link next}.
|
|
65
74
|
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
@@ -68,7 +77,6 @@ export declare abstract class Node {
|
|
|
68
77
|
set nextSibling(next: ChildNode | null);
|
|
69
78
|
/**
|
|
70
79
|
* Clone this node, and optionally its children.
|
|
71
|
-
*
|
|
72
80
|
* @param recursive Clone child nodes as well.
|
|
73
81
|
* @returns A clone of the node.
|
|
74
82
|
*/
|
|
@@ -108,8 +116,8 @@ export declare class Comment extends DataNode {
|
|
|
108
116
|
* Processing instructions, including doc types.
|
|
109
117
|
*/
|
|
110
118
|
export declare class ProcessingInstruction extends DataNode {
|
|
111
|
-
name: string;
|
|
112
119
|
type: ElementType.Directive;
|
|
120
|
+
name: string;
|
|
113
121
|
constructor(name: string, data: string);
|
|
114
122
|
get nodeType(): 1;
|
|
115
123
|
/** If this is a doctype, the document type name (parse5 only). */
|
|
@@ -120,7 +128,7 @@ export declare class ProcessingInstruction extends DataNode {
|
|
|
120
128
|
"x-systemId"?: string;
|
|
121
129
|
}
|
|
122
130
|
/**
|
|
123
|
-
* A
|
|
131
|
+
* A node that can have children.
|
|
124
132
|
*/
|
|
125
133
|
export declare abstract class NodeWithChildren extends Node {
|
|
126
134
|
children: ChildNode[];
|
|
@@ -139,6 +147,9 @@ export declare abstract class NodeWithChildren extends Node {
|
|
|
139
147
|
get childNodes(): ChildNode[];
|
|
140
148
|
set childNodes(children: ChildNode[]);
|
|
141
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* CDATA nodes.
|
|
152
|
+
*/
|
|
142
153
|
export declare class CDATA extends NodeWithChildren {
|
|
143
154
|
type: ElementType.CDATA;
|
|
144
155
|
get nodeType(): 4;
|
|
@@ -174,6 +185,7 @@ export declare class Element extends NodeWithChildren {
|
|
|
174
185
|
* @param name Name of the tag, eg. `div`, `span`.
|
|
175
186
|
* @param attribs Object mapping attribute names to attribute values.
|
|
176
187
|
* @param children Children of the node.
|
|
188
|
+
* @param type Node type used for the new node instance.
|
|
177
189
|
*/
|
|
178
190
|
constructor(name: string, attribs: {
|
|
179
191
|
[name: string]: string;
|
|
@@ -200,43 +212,50 @@ export declare class Element extends NodeWithChildren {
|
|
|
200
212
|
"x-attribsPrefix"?: Record<string, string>;
|
|
201
213
|
}
|
|
202
214
|
/**
|
|
215
|
+
* Checks if `node` is an element node.
|
|
203
216
|
* @param node Node to check.
|
|
204
|
-
* @returns `true` if the node is
|
|
217
|
+
* @returns `true` if the node is an element node.
|
|
205
218
|
*/
|
|
206
219
|
export declare function isTag(node: Node): node is Element;
|
|
207
220
|
/**
|
|
221
|
+
* Checks if `node` is a CDATA node.
|
|
208
222
|
* @param node Node to check.
|
|
209
|
-
* @returns `true` if the node
|
|
223
|
+
* @returns `true` if the node is a CDATA node.
|
|
210
224
|
*/
|
|
211
225
|
export declare function isCDATA(node: Node): node is CDATA;
|
|
212
226
|
/**
|
|
227
|
+
* Checks if `node` is a text node.
|
|
213
228
|
* @param node Node to check.
|
|
214
|
-
* @returns `true` if the node
|
|
229
|
+
* @returns `true` if the node is a text node.
|
|
215
230
|
*/
|
|
216
231
|
export declare function isText(node: Node): node is Text;
|
|
217
232
|
/**
|
|
233
|
+
* Checks if `node` is a comment node.
|
|
218
234
|
* @param node Node to check.
|
|
219
|
-
* @returns `true` if the node
|
|
235
|
+
* @returns `true` if the node is a comment node.
|
|
220
236
|
*/
|
|
221
237
|
export declare function isComment(node: Node): node is Comment;
|
|
222
238
|
/**
|
|
239
|
+
* Checks if `node` is a directive node.
|
|
223
240
|
* @param node Node to check.
|
|
224
|
-
* @returns `true` if the node
|
|
241
|
+
* @returns `true` if the node is a directive node.
|
|
225
242
|
*/
|
|
226
243
|
export declare function isDirective(node: Node): node is ProcessingInstruction;
|
|
227
244
|
/**
|
|
245
|
+
* Checks if `node` is a document node.
|
|
228
246
|
* @param node Node to check.
|
|
229
|
-
* @returns `true` if the node
|
|
247
|
+
* @returns `true` if the node is a document node.
|
|
230
248
|
*/
|
|
231
249
|
export declare function isDocument(node: Node): node is Document;
|
|
232
250
|
/**
|
|
251
|
+
* Checks if `node` has children.
|
|
233
252
|
* @param node Node to check.
|
|
234
|
-
* @returns `true` if the node has children
|
|
253
|
+
* @returns `true` if the node has children.
|
|
235
254
|
*/
|
|
236
255
|
export declare function hasChildren(node: Node): node is ParentNode;
|
|
237
256
|
/**
|
|
238
257
|
* Clone a node, and optionally its children.
|
|
239
|
-
*
|
|
258
|
+
* @param node Node to clone.
|
|
240
259
|
* @param recursive Clone child nodes as well.
|
|
241
260
|
* @returns A clone of the node.
|
|
242
261
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"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"}
|
package/node_modules/{domhandler/lib/esm → sanitize-html/node_modules/domhandler/dist}/node.js
RENAMED
|
@@ -4,18 +4,16 @@ import { ElementType, isTag as isTagRaw } from "domelementtype";
|
|
|
4
4
|
* DOM-Level-1-compliant structure.
|
|
5
5
|
*/
|
|
6
6
|
export class Node {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
this.endIndex = null;
|
|
18
|
-
}
|
|
7
|
+
/** Parent of the node */
|
|
8
|
+
parent = null;
|
|
9
|
+
/** Previous sibling */
|
|
10
|
+
prev = null;
|
|
11
|
+
/** Next sibling */
|
|
12
|
+
next = null;
|
|
13
|
+
/** The start index of the node. Requires `withStartIndices` on the handler to be `true. */
|
|
14
|
+
startIndex = null;
|
|
15
|
+
/** The end index of the node. Requires `withEndIndices` on the handler to be `true. */
|
|
16
|
+
endIndex = null;
|
|
19
17
|
// Read-write aliases for properties
|
|
20
18
|
/**
|
|
21
19
|
* Same as {@link parent}.
|
|
@@ -34,8 +32,8 @@ export class Node {
|
|
|
34
32
|
get previousSibling() {
|
|
35
33
|
return this.prev;
|
|
36
34
|
}
|
|
37
|
-
set previousSibling(
|
|
38
|
-
this.prev =
|
|
35
|
+
set previousSibling(previous) {
|
|
36
|
+
this.prev = previous;
|
|
39
37
|
}
|
|
40
38
|
/**
|
|
41
39
|
* Same as {@link next}.
|
|
@@ -49,7 +47,6 @@ export class Node {
|
|
|
49
47
|
}
|
|
50
48
|
/**
|
|
51
49
|
* Clone this node, and optionally its children.
|
|
52
|
-
*
|
|
53
50
|
* @param recursive Clone child nodes as well.
|
|
54
51
|
* @returns A clone of the node.
|
|
55
52
|
*/
|
|
@@ -61,6 +58,7 @@ export class Node {
|
|
|
61
58
|
* A node that contains some data.
|
|
62
59
|
*/
|
|
63
60
|
export class DataNode extends Node {
|
|
61
|
+
data;
|
|
64
62
|
/**
|
|
65
63
|
* @param data The content of the data node
|
|
66
64
|
*/
|
|
@@ -83,10 +81,7 @@ export class DataNode extends Node {
|
|
|
83
81
|
* Text within the document.
|
|
84
82
|
*/
|
|
85
83
|
export class Text extends DataNode {
|
|
86
|
-
|
|
87
|
-
super(...arguments);
|
|
88
|
-
this.type = ElementType.Text;
|
|
89
|
-
}
|
|
84
|
+
type = ElementType.Text;
|
|
90
85
|
get nodeType() {
|
|
91
86
|
return 3;
|
|
92
87
|
}
|
|
@@ -95,10 +90,7 @@ export class Text extends DataNode {
|
|
|
95
90
|
* Comments within the document.
|
|
96
91
|
*/
|
|
97
92
|
export class Comment extends DataNode {
|
|
98
|
-
|
|
99
|
-
super(...arguments);
|
|
100
|
-
this.type = ElementType.Comment;
|
|
101
|
-
}
|
|
93
|
+
type = ElementType.Comment;
|
|
102
94
|
get nodeType() {
|
|
103
95
|
return 8;
|
|
104
96
|
}
|
|
@@ -107,19 +99,27 @@ export class Comment extends DataNode {
|
|
|
107
99
|
* Processing instructions, including doc types.
|
|
108
100
|
*/
|
|
109
101
|
export class ProcessingInstruction extends DataNode {
|
|
102
|
+
type = ElementType.Directive;
|
|
103
|
+
name;
|
|
110
104
|
constructor(name, data) {
|
|
111
105
|
super(data);
|
|
112
106
|
this.name = name;
|
|
113
|
-
this.type = ElementType.Directive;
|
|
114
107
|
}
|
|
115
108
|
get nodeType() {
|
|
116
109
|
return 1;
|
|
117
110
|
}
|
|
111
|
+
/** If this is a doctype, the document type name (parse5 only). */
|
|
112
|
+
"x-name";
|
|
113
|
+
/** If this is a doctype, the document type public identifier (parse5 only). */
|
|
114
|
+
"x-publicId";
|
|
115
|
+
/** If this is a doctype, the document type system identifier (parse5 only). */
|
|
116
|
+
"x-systemId";
|
|
118
117
|
}
|
|
119
118
|
/**
|
|
120
|
-
* A
|
|
119
|
+
* A node that can have children.
|
|
121
120
|
*/
|
|
122
121
|
export class NodeWithChildren extends Node {
|
|
122
|
+
children;
|
|
123
123
|
/**
|
|
124
124
|
* @param children Children of the node. Only certain node types can have children.
|
|
125
125
|
*/
|
|
@@ -130,8 +130,7 @@ export class NodeWithChildren extends Node {
|
|
|
130
130
|
// Aliases
|
|
131
131
|
/** First child of the node. */
|
|
132
132
|
get firstChild() {
|
|
133
|
-
|
|
134
|
-
return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;
|
|
133
|
+
return this.children[0] ?? null;
|
|
135
134
|
}
|
|
136
135
|
/** Last child of the node. */
|
|
137
136
|
get lastChild() {
|
|
@@ -150,11 +149,11 @@ export class NodeWithChildren extends Node {
|
|
|
150
149
|
this.children = children;
|
|
151
150
|
}
|
|
152
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* CDATA nodes.
|
|
154
|
+
*/
|
|
153
155
|
export class CDATA extends NodeWithChildren {
|
|
154
|
-
|
|
155
|
-
super(...arguments);
|
|
156
|
-
this.type = ElementType.CDATA;
|
|
157
|
-
}
|
|
156
|
+
type = ElementType.CDATA;
|
|
158
157
|
get nodeType() {
|
|
159
158
|
return 4;
|
|
160
159
|
}
|
|
@@ -163,10 +162,7 @@ export class CDATA extends NodeWithChildren {
|
|
|
163
162
|
* The root node of the document.
|
|
164
163
|
*/
|
|
165
164
|
export class Document extends NodeWithChildren {
|
|
166
|
-
|
|
167
|
-
super(...arguments);
|
|
168
|
-
this.type = ElementType.Root;
|
|
169
|
-
}
|
|
165
|
+
type = ElementType.Root;
|
|
170
166
|
get nodeType() {
|
|
171
167
|
return 9;
|
|
172
168
|
}
|
|
@@ -175,10 +171,14 @@ export class Document extends NodeWithChildren {
|
|
|
175
171
|
* An element within the DOM.
|
|
176
172
|
*/
|
|
177
173
|
export class Element extends NodeWithChildren {
|
|
174
|
+
name;
|
|
175
|
+
attribs;
|
|
176
|
+
type;
|
|
178
177
|
/**
|
|
179
178
|
* @param name Name of the tag, eg. `div`, `span`.
|
|
180
179
|
* @param attribs Object mapping attribute names to attribute values.
|
|
181
180
|
* @param children Children of the node.
|
|
181
|
+
* @param type Node type used for the new node instance.
|
|
182
182
|
*/
|
|
183
183
|
constructor(name, attribs, children = [], type = name === "script"
|
|
184
184
|
? ElementType.Script
|
|
@@ -205,69 +205,79 @@ export class Element extends NodeWithChildren {
|
|
|
205
205
|
this.name = name;
|
|
206
206
|
}
|
|
207
207
|
get attributes() {
|
|
208
|
-
return Object.keys(this.attribs).map((name) => {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
208
|
+
return Object.keys(this.attribs).map((name) => ({
|
|
209
|
+
name,
|
|
210
|
+
value: this.attribs[name],
|
|
211
|
+
namespace: this["x-attribsNamespace"]?.[name],
|
|
212
|
+
prefix: this["x-attribsPrefix"]?.[name],
|
|
213
|
+
}));
|
|
214
|
+
}
|
|
215
|
+
/** Element namespace (parse5 only). */
|
|
216
|
+
namespace;
|
|
217
|
+
/** Element attribute namespaces (parse5 only). */
|
|
218
|
+
"x-attribsNamespace";
|
|
219
|
+
/** Element attribute namespace-related prefixes (parse5 only). */
|
|
220
|
+
"x-attribsPrefix";
|
|
218
221
|
}
|
|
219
222
|
/**
|
|
223
|
+
* Checks if `node` is an element node.
|
|
220
224
|
* @param node Node to check.
|
|
221
|
-
* @returns `true` if the node is
|
|
225
|
+
* @returns `true` if the node is an element node.
|
|
222
226
|
*/
|
|
223
227
|
export function isTag(node) {
|
|
224
228
|
return isTagRaw(node);
|
|
225
229
|
}
|
|
226
230
|
/**
|
|
231
|
+
* Checks if `node` is a CDATA node.
|
|
227
232
|
* @param node Node to check.
|
|
228
|
-
* @returns `true` if the node
|
|
233
|
+
* @returns `true` if the node is a CDATA node.
|
|
229
234
|
*/
|
|
230
235
|
export function isCDATA(node) {
|
|
231
236
|
return node.type === ElementType.CDATA;
|
|
232
237
|
}
|
|
233
238
|
/**
|
|
239
|
+
* Checks if `node` is a text node.
|
|
234
240
|
* @param node Node to check.
|
|
235
|
-
* @returns `true` if the node
|
|
241
|
+
* @returns `true` if the node is a text node.
|
|
236
242
|
*/
|
|
237
243
|
export function isText(node) {
|
|
238
244
|
return node.type === ElementType.Text;
|
|
239
245
|
}
|
|
240
246
|
/**
|
|
247
|
+
* Checks if `node` is a comment node.
|
|
241
248
|
* @param node Node to check.
|
|
242
|
-
* @returns `true` if the node
|
|
249
|
+
* @returns `true` if the node is a comment node.
|
|
243
250
|
*/
|
|
244
251
|
export function isComment(node) {
|
|
245
252
|
return node.type === ElementType.Comment;
|
|
246
253
|
}
|
|
247
254
|
/**
|
|
255
|
+
* Checks if `node` is a directive node.
|
|
248
256
|
* @param node Node to check.
|
|
249
|
-
* @returns `true` if the node
|
|
257
|
+
* @returns `true` if the node is a directive node.
|
|
250
258
|
*/
|
|
251
259
|
export function isDirective(node) {
|
|
252
260
|
return node.type === ElementType.Directive;
|
|
253
261
|
}
|
|
254
262
|
/**
|
|
263
|
+
* Checks if `node` is a document node.
|
|
255
264
|
* @param node Node to check.
|
|
256
|
-
* @returns `true` if the node
|
|
265
|
+
* @returns `true` if the node is a document node.
|
|
257
266
|
*/
|
|
258
267
|
export function isDocument(node) {
|
|
259
268
|
return node.type === ElementType.Root;
|
|
260
269
|
}
|
|
261
270
|
/**
|
|
271
|
+
* Checks if `node` has children.
|
|
262
272
|
* @param node Node to check.
|
|
263
|
-
* @returns `true` if the node has children
|
|
273
|
+
* @returns `true` if the node has children.
|
|
264
274
|
*/
|
|
265
275
|
export function hasChildren(node) {
|
|
266
|
-
return Object.
|
|
276
|
+
return Object.hasOwn(node, "children");
|
|
267
277
|
}
|
|
268
278
|
/**
|
|
269
279
|
* Clone a node, and optionally its children.
|
|
270
|
-
*
|
|
280
|
+
* @param node Node to clone.
|
|
271
281
|
* @param recursive Clone child nodes as well.
|
|
272
282
|
* @returns A clone of the node.
|
|
273
283
|
*/
|
|
@@ -282,7 +292,9 @@ export function cloneNode(node, recursive = false) {
|
|
|
282
292
|
else if (isTag(node)) {
|
|
283
293
|
const children = recursive ? cloneChildren(node.children) : [];
|
|
284
294
|
const clone = new Element(node.name, { ...node.attribs }, children);
|
|
285
|
-
|
|
295
|
+
for (const child of children) {
|
|
296
|
+
child.parent = clone;
|
|
297
|
+
}
|
|
286
298
|
if (node.namespace != null) {
|
|
287
299
|
clone.namespace = node.namespace;
|
|
288
300
|
}
|
|
@@ -297,13 +309,17 @@ export function cloneNode(node, recursive = false) {
|
|
|
297
309
|
else if (isCDATA(node)) {
|
|
298
310
|
const children = recursive ? cloneChildren(node.children) : [];
|
|
299
311
|
const clone = new CDATA(children);
|
|
300
|
-
|
|
312
|
+
for (const child of children) {
|
|
313
|
+
child.parent = clone;
|
|
314
|
+
}
|
|
301
315
|
result = clone;
|
|
302
316
|
}
|
|
303
317
|
else if (isDocument(node)) {
|
|
304
318
|
const children = recursive ? cloneChildren(node.children) : [];
|
|
305
319
|
const clone = new Document(children);
|
|
306
|
-
|
|
320
|
+
for (const child of children) {
|
|
321
|
+
child.parent = clone;
|
|
322
|
+
}
|
|
307
323
|
if (node["x-mode"]) {
|
|
308
324
|
clone["x-mode"] = node["x-mode"];
|
|
309
325
|
}
|
|
@@ -328,11 +344,16 @@ export function cloneNode(node, recursive = false) {
|
|
|
328
344
|
}
|
|
329
345
|
return result;
|
|
330
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Clone a list of child nodes.
|
|
349
|
+
* @param childs The child nodes to clone.
|
|
350
|
+
* @returns A list of cloned child nodes.
|
|
351
|
+
*/
|
|
331
352
|
function cloneChildren(childs) {
|
|
332
353
|
const children = childs.map((child) => cloneNode(child, true));
|
|
333
|
-
for (let
|
|
334
|
-
children[
|
|
335
|
-
children[
|
|
354
|
+
for (let index = 1; index < children.length; index++) {
|
|
355
|
+
children[index].prev = children[index - 1];
|
|
356
|
+
children[index - 1].next = children[index];
|
|
336
357
|
}
|
|
337
358
|
return children;
|
|
338
359
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "domhandler",
|
|
4
|
+
"version": "6.0.1",
|
|
5
|
+
"description": "Handler for htmlparser2 that turns pages into a dom",
|
|
6
|
+
"author": "Felix Boehm <me@feedic.com>",
|
|
7
|
+
"funding": {
|
|
8
|
+
"type": "github",
|
|
9
|
+
"url": "https://github.com/fb55/domhandler?sponsor=1"
|
|
10
|
+
},
|
|
11
|
+
"license": "BSD-2-Clause",
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc",
|
|
26
|
+
"build:docs": "typedoc --hideGenerator --plugin typedoc-plugin-missing-exports src/index.ts",
|
|
27
|
+
"format": "npm run format:es && npm run format:biome",
|
|
28
|
+
"format:biome": "biome check --write .",
|
|
29
|
+
"format:es": "npm run lint:es -- --fix",
|
|
30
|
+
"lint": "npm run lint:es && npm run lint:biome",
|
|
31
|
+
"lint:biome": "biome check .",
|
|
32
|
+
"lint:es": "eslint .",
|
|
33
|
+
"prepublishOnly": "npm run build",
|
|
34
|
+
"test": "npm run test:vi && npm run lint",
|
|
35
|
+
"test:vi": "vitest run"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git://github.com/fb55/domhandler.git"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"dom",
|
|
43
|
+
"htmlparser2"
|
|
44
|
+
],
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=20.19.0"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"domelementtype": "^3.0.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@biomejs/biome": "^2.4.7",
|
|
53
|
+
"@eslint/compat": "^2.0.3",
|
|
54
|
+
"@feedic/eslint-config": "^0.3.1",
|
|
55
|
+
"@types/node": "^25.5.0",
|
|
56
|
+
"eslint": "^10.0.3",
|
|
57
|
+
"eslint-config-biome": "^2.1.3",
|
|
58
|
+
"htmlparser2": "^10.1.0",
|
|
59
|
+
"typedoc": "^0.27.9",
|
|
60
|
+
"typedoc-plugin-missing-exports": "^3.1.0",
|
|
61
|
+
"typescript": "^5.8.3",
|
|
62
|
+
"typescript-eslint": "^8.57.1",
|
|
63
|
+
"vitest": "^4.0.18"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# domhandler [](https://github.com/fb55/domhandler/actions/workflows/nodejs-test.yml)
|
|
2
2
|
|
|
3
3
|
The DOM handler creates a tree containing all nodes of a page.
|
|
4
4
|
The tree can be manipulated using the [domutils](https://github.com/fb55/domutils)
|
|
@@ -84,9 +84,3 @@ License: BSD-2-Clause
|
|
|
84
84
|
|
|
85
85
|
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security).
|
|
86
86
|
Tidelift will coordinate the fix and disclosure.
|
|
87
|
-
|
|
88
|
-
## `domhandler` for enterprise
|
|
89
|
-
|
|
90
|
-
Available as part of the Tidelift Subscription
|
|
91
|
-
|
|
92
|
-
The maintainers of `domhandler` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-domhandler?utm_source=npm-domhandler&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
@@ -64,8 +64,8 @@ export interface Feed {
|
|
|
64
64
|
* Get the feed object from the root of a DOM tree.
|
|
65
65
|
*
|
|
66
66
|
* @category Feeds
|
|
67
|
-
* @param
|
|
67
|
+
* @param document The DOM to extract the feed from.
|
|
68
68
|
* @returns The feed.
|
|
69
69
|
*/
|
|
70
|
-
export declare function getFeed(
|
|
70
|
+
export declare function getFeed(document: AnyNode[]): Feed | null;
|
|
71
71
|
//# sourceMappingURL=feeds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feeds.d.ts","sourceRoot":"","sources":["../src/feeds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAW,MAAM,YAAY,CAAC;AAInD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GACzB,OAAO,GACP,OAAO,GACP,OAAO,GACP,UAAU,GACV,YAAY,CAAC;AAEnB;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACxC,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,KAAK,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACrB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,GAAG,IAAI,CAQxD"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { textContent } from "./stringify.js";
|
|
2
1
|
import { getElementsByTagName } from "./legacy.js";
|
|
2
|
+
import { textContent } from "./stringify.js";
|
|
3
3
|
/**
|
|
4
4
|
* Get the feed object from the root of a DOM tree.
|
|
5
5
|
*
|
|
6
6
|
* @category Feeds
|
|
7
|
-
* @param
|
|
7
|
+
* @param document The DOM to extract the feed from.
|
|
8
8
|
* @returns The feed.
|
|
9
9
|
*/
|
|
10
|
-
export function getFeed(
|
|
11
|
-
const feedRoot = getOneElement(isValidFeed,
|
|
12
|
-
return
|
|
13
|
-
?
|
|
14
|
-
: feedRoot.name === "feed"
|
|
10
|
+
export function getFeed(document) {
|
|
11
|
+
const feedRoot = getOneElement(isValidFeed, document);
|
|
12
|
+
return feedRoot
|
|
13
|
+
? feedRoot.name === "feed"
|
|
15
14
|
? getAtomFeed(feedRoot)
|
|
16
|
-
: getRssFeed(feedRoot)
|
|
15
|
+
: getRssFeed(feedRoot)
|
|
16
|
+
: null;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Parse an Atom feed.
|
|
@@ -22,17 +22,15 @@ export function getFeed(doc) {
|
|
|
22
22
|
* @returns The parsed feed.
|
|
23
23
|
*/
|
|
24
24
|
function getAtomFeed(feedRoot) {
|
|
25
|
-
var _a;
|
|
26
25
|
const childs = feedRoot.children;
|
|
27
26
|
const feed = {
|
|
28
27
|
type: "atom",
|
|
29
28
|
items: getElementsByTagName("entry", childs).map((item) => {
|
|
30
|
-
var _a;
|
|
31
29
|
const { children } = item;
|
|
32
30
|
const entry = { media: getMediaElements(children) };
|
|
33
31
|
addConditionally(entry, "id", "id", children);
|
|
34
32
|
addConditionally(entry, "title", "title", children);
|
|
35
|
-
const href =
|
|
33
|
+
const href = getOneElement("link", children)?.attribs["href"];
|
|
36
34
|
if (href) {
|
|
37
35
|
entry.link = href;
|
|
38
36
|
}
|
|
@@ -49,7 +47,7 @@ function getAtomFeed(feedRoot) {
|
|
|
49
47
|
};
|
|
50
48
|
addConditionally(feed, "id", "id", childs);
|
|
51
49
|
addConditionally(feed, "title", "title", childs);
|
|
52
|
-
const href =
|
|
50
|
+
const href = getOneElement("link", childs)?.attribs["href"];
|
|
53
51
|
if (href) {
|
|
54
52
|
feed.link = href;
|
|
55
53
|
}
|
|
@@ -68,8 +66,7 @@ function getAtomFeed(feedRoot) {
|
|
|
68
66
|
* @returns The parsed feed.
|
|
69
67
|
*/
|
|
70
68
|
function getRssFeed(feedRoot) {
|
|
71
|
-
|
|
72
|
-
const childs = (_b = (_a = getOneElement("channel", feedRoot.children)) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : [];
|
|
69
|
+
const childs = getOneElement("channel", feedRoot.children)?.children ?? [];
|
|
73
70
|
const feed = {
|
|
74
71
|
type: feedRoot.name.substr(0, 3),
|
|
75
72
|
id: "",
|
|
@@ -114,8 +111,8 @@ const MEDIA_KEYS_INT = [
|
|
|
114
111
|
* @returns Media elements.
|
|
115
112
|
*/
|
|
116
113
|
function getMediaElements(where) {
|
|
117
|
-
return getElementsByTagName("media:content", where).map((
|
|
118
|
-
const { attribs } =
|
|
114
|
+
return getElementsByTagName("media:content", where).map((element) => {
|
|
115
|
+
const { attribs } = element;
|
|
119
116
|
const media = {
|
|
120
117
|
medium: attribs["medium"],
|
|
121
118
|
isDefault: !!attribs["isDefault"],
|
|
@@ -127,7 +124,7 @@ function getMediaElements(where) {
|
|
|
127
124
|
}
|
|
128
125
|
for (const attrib of MEDIA_KEYS_INT) {
|
|
129
126
|
if (attribs[attrib]) {
|
|
130
|
-
media[attrib] = parseInt(attribs[attrib], 10);
|
|
127
|
+
media[attrib] = Number.parseInt(attribs[attrib], 10);
|
|
131
128
|
}
|
|
132
129
|
}
|
|
133
130
|
if (attribs["expression"]) {
|
|
@@ -160,16 +157,16 @@ function fetch(tagName, where, recurse = false) {
|
|
|
160
157
|
/**
|
|
161
158
|
* Adds a property to an object if it has a value.
|
|
162
159
|
*
|
|
163
|
-
* @param
|
|
164
|
-
* @param
|
|
165
|
-
* @param tagName Tag name that contains the conditionally added property
|
|
166
|
-
* @param where Element to search for the property
|
|
160
|
+
* @param object Object to be extended.
|
|
161
|
+
* @param property Property name.
|
|
162
|
+
* @param tagName Tag name that contains the conditionally added property.
|
|
163
|
+
* @param where Element to search for the property.
|
|
167
164
|
* @param recurse Whether to recurse into child nodes.
|
|
168
165
|
*/
|
|
169
|
-
function addConditionally(
|
|
170
|
-
const
|
|
171
|
-
if (
|
|
172
|
-
|
|
166
|
+
function addConditionally(object, property, tagName, where, recurse = false) {
|
|
167
|
+
const value = fetch(tagName, where, recurse);
|
|
168
|
+
if (value)
|
|
169
|
+
object[property] = value;
|
|
173
170
|
}
|
|
174
171
|
/**
|
|
175
172
|
* Checks if an element is a feed root node.
|