@zowe/cli 8.36.1 → 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/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/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
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Module dependencies
|
|
3
|
-
*/
|
|
4
|
-
import * as ElementType from "domelementtype";
|
|
5
|
-
import { encodeXML, escapeAttribute, escapeText } from "entities";
|
|
6
|
-
/**
|
|
7
|
-
* Mixed-case SVG and MathML tags & attributes
|
|
8
|
-
* recognized by the HTML parser.
|
|
9
|
-
*
|
|
10
|
-
* @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign
|
|
11
|
-
*/
|
|
12
|
-
import { elementNames, attributeNames } from "./foreignNames.js";
|
|
13
|
-
const unencodedElements = new Set([
|
|
14
|
-
"style",
|
|
15
|
-
"script",
|
|
16
|
-
"xmp",
|
|
17
|
-
"iframe",
|
|
18
|
-
"noembed",
|
|
19
|
-
"noframes",
|
|
20
|
-
"plaintext",
|
|
21
|
-
"noscript",
|
|
22
|
-
]);
|
|
23
|
-
function replaceQuotes(value) {
|
|
24
|
-
return value.replace(/"/g, """);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Format attributes
|
|
28
|
-
*/
|
|
29
|
-
function formatAttributes(attributes, opts) {
|
|
30
|
-
var _a;
|
|
31
|
-
if (!attributes)
|
|
32
|
-
return;
|
|
33
|
-
const encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false
|
|
34
|
-
? replaceQuotes
|
|
35
|
-
: opts.xmlMode || opts.encodeEntities !== "utf8"
|
|
36
|
-
? encodeXML
|
|
37
|
-
: escapeAttribute;
|
|
38
|
-
return Object.keys(attributes)
|
|
39
|
-
.map((key) => {
|
|
40
|
-
var _a, _b;
|
|
41
|
-
const value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : "";
|
|
42
|
-
if (opts.xmlMode === "foreign") {
|
|
43
|
-
/* Fix up mixed-case attribute names */
|
|
44
|
-
key = (_b = attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;
|
|
45
|
-
}
|
|
46
|
-
if (!opts.emptyAttrs && !opts.xmlMode && value === "") {
|
|
47
|
-
return key;
|
|
48
|
-
}
|
|
49
|
-
return `${key}="${encode(value)}"`;
|
|
50
|
-
})
|
|
51
|
-
.join(" ");
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Self-enclosing tags
|
|
55
|
-
*/
|
|
56
|
-
const singleTag = new Set([
|
|
57
|
-
"area",
|
|
58
|
-
"base",
|
|
59
|
-
"basefont",
|
|
60
|
-
"br",
|
|
61
|
-
"col",
|
|
62
|
-
"command",
|
|
63
|
-
"embed",
|
|
64
|
-
"frame",
|
|
65
|
-
"hr",
|
|
66
|
-
"img",
|
|
67
|
-
"input",
|
|
68
|
-
"isindex",
|
|
69
|
-
"keygen",
|
|
70
|
-
"link",
|
|
71
|
-
"meta",
|
|
72
|
-
"param",
|
|
73
|
-
"source",
|
|
74
|
-
"track",
|
|
75
|
-
"wbr",
|
|
76
|
-
]);
|
|
77
|
-
/**
|
|
78
|
-
* Renders a DOM node or an array of DOM nodes to a string.
|
|
79
|
-
*
|
|
80
|
-
* Can be thought of as the equivalent of the `outerHTML` of the passed node(s).
|
|
81
|
-
*
|
|
82
|
-
* @param node Node to be rendered.
|
|
83
|
-
* @param options Changes serialization behavior
|
|
84
|
-
*/
|
|
85
|
-
export function render(node, options = {}) {
|
|
86
|
-
const nodes = "length" in node ? node : [node];
|
|
87
|
-
let output = "";
|
|
88
|
-
for (let i = 0; i < nodes.length; i++) {
|
|
89
|
-
output += renderNode(nodes[i], options);
|
|
90
|
-
}
|
|
91
|
-
return output;
|
|
92
|
-
}
|
|
93
|
-
export default render;
|
|
94
|
-
function renderNode(node, options) {
|
|
95
|
-
switch (node.type) {
|
|
96
|
-
case ElementType.Root:
|
|
97
|
-
return render(node.children, options);
|
|
98
|
-
// @ts-expect-error We don't use `Doctype` yet
|
|
99
|
-
case ElementType.Doctype:
|
|
100
|
-
case ElementType.Directive:
|
|
101
|
-
return renderDirective(node);
|
|
102
|
-
case ElementType.Comment:
|
|
103
|
-
return renderComment(node);
|
|
104
|
-
case ElementType.CDATA:
|
|
105
|
-
return renderCdata(node);
|
|
106
|
-
case ElementType.Script:
|
|
107
|
-
case ElementType.Style:
|
|
108
|
-
case ElementType.Tag:
|
|
109
|
-
return renderTag(node, options);
|
|
110
|
-
case ElementType.Text:
|
|
111
|
-
return renderText(node, options);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
const foreignModeIntegrationPoints = new Set([
|
|
115
|
-
"mi",
|
|
116
|
-
"mo",
|
|
117
|
-
"mn",
|
|
118
|
-
"ms",
|
|
119
|
-
"mtext",
|
|
120
|
-
"annotation-xml",
|
|
121
|
-
"foreignObject",
|
|
122
|
-
"desc",
|
|
123
|
-
"title",
|
|
124
|
-
]);
|
|
125
|
-
const foreignElements = new Set(["svg", "math"]);
|
|
126
|
-
function renderTag(elem, opts) {
|
|
127
|
-
var _a;
|
|
128
|
-
// Handle SVG / MathML in HTML
|
|
129
|
-
if (opts.xmlMode === "foreign") {
|
|
130
|
-
/* Fix up mixed-case element names */
|
|
131
|
-
elem.name = (_a = elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name;
|
|
132
|
-
/* Exit foreign mode at integration points */
|
|
133
|
-
if (elem.parent &&
|
|
134
|
-
foreignModeIntegrationPoints.has(elem.parent.name)) {
|
|
135
|
-
opts = { ...opts, xmlMode: false };
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
if (!opts.xmlMode && foreignElements.has(elem.name)) {
|
|
139
|
-
opts = { ...opts, xmlMode: "foreign" };
|
|
140
|
-
}
|
|
141
|
-
let tag = `<${elem.name}`;
|
|
142
|
-
const attribs = formatAttributes(elem.attribs, opts);
|
|
143
|
-
if (attribs) {
|
|
144
|
-
tag += ` ${attribs}`;
|
|
145
|
-
}
|
|
146
|
-
if (elem.children.length === 0 &&
|
|
147
|
-
(opts.xmlMode
|
|
148
|
-
? // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags
|
|
149
|
-
opts.selfClosingTags !== false
|
|
150
|
-
: // User explicitly asked for self-closing tags, even in HTML mode
|
|
151
|
-
opts.selfClosingTags && singleTag.has(elem.name))) {
|
|
152
|
-
if (!opts.xmlMode)
|
|
153
|
-
tag += " ";
|
|
154
|
-
tag += "/>";
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
tag += ">";
|
|
158
|
-
if (elem.children.length > 0) {
|
|
159
|
-
tag += render(elem.children, opts);
|
|
160
|
-
}
|
|
161
|
-
if (opts.xmlMode || !singleTag.has(elem.name)) {
|
|
162
|
-
tag += `</${elem.name}>`;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
return tag;
|
|
166
|
-
}
|
|
167
|
-
function renderDirective(elem) {
|
|
168
|
-
return `<${elem.data}>`;
|
|
169
|
-
}
|
|
170
|
-
function renderText(elem, opts) {
|
|
171
|
-
var _a;
|
|
172
|
-
let data = elem.data || "";
|
|
173
|
-
// If entities weren't decoded, no need to encode them back
|
|
174
|
-
if (((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) !== false &&
|
|
175
|
-
!(!opts.xmlMode &&
|
|
176
|
-
elem.parent &&
|
|
177
|
-
unencodedElements.has(elem.parent.name))) {
|
|
178
|
-
data =
|
|
179
|
-
opts.xmlMode || opts.encodeEntities !== "utf8"
|
|
180
|
-
? encodeXML(data)
|
|
181
|
-
: escapeText(data);
|
|
182
|
-
}
|
|
183
|
-
return data;
|
|
184
|
-
}
|
|
185
|
-
function renderCdata(elem) {
|
|
186
|
-
return `<![CDATA[${elem.children[0].data}]]>`;
|
|
187
|
-
}
|
|
188
|
-
function renderComment(elem) {
|
|
189
|
-
return `<!--${elem.data}-->`;
|
|
190
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"module"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"foreignNames.d.ts","sourceRoot":"","sources":["../src/foreignNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,qBAwCxB,CAAC;AACF,eAAO,MAAM,cAAc,qBA8D1B,CAAC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.attributeNames = exports.elementNames = void 0;
|
|
4
|
-
exports.elementNames = new Map([
|
|
5
|
-
"altGlyph",
|
|
6
|
-
"altGlyphDef",
|
|
7
|
-
"altGlyphItem",
|
|
8
|
-
"animateColor",
|
|
9
|
-
"animateMotion",
|
|
10
|
-
"animateTransform",
|
|
11
|
-
"clipPath",
|
|
12
|
-
"feBlend",
|
|
13
|
-
"feColorMatrix",
|
|
14
|
-
"feComponentTransfer",
|
|
15
|
-
"feComposite",
|
|
16
|
-
"feConvolveMatrix",
|
|
17
|
-
"feDiffuseLighting",
|
|
18
|
-
"feDisplacementMap",
|
|
19
|
-
"feDistantLight",
|
|
20
|
-
"feDropShadow",
|
|
21
|
-
"feFlood",
|
|
22
|
-
"feFuncA",
|
|
23
|
-
"feFuncB",
|
|
24
|
-
"feFuncG",
|
|
25
|
-
"feFuncR",
|
|
26
|
-
"feGaussianBlur",
|
|
27
|
-
"feImage",
|
|
28
|
-
"feMerge",
|
|
29
|
-
"feMergeNode",
|
|
30
|
-
"feMorphology",
|
|
31
|
-
"feOffset",
|
|
32
|
-
"fePointLight",
|
|
33
|
-
"feSpecularLighting",
|
|
34
|
-
"feSpotLight",
|
|
35
|
-
"feTile",
|
|
36
|
-
"feTurbulence",
|
|
37
|
-
"foreignObject",
|
|
38
|
-
"glyphRef",
|
|
39
|
-
"linearGradient",
|
|
40
|
-
"radialGradient",
|
|
41
|
-
"textPath",
|
|
42
|
-
].map(function (val) { return [val.toLowerCase(), val]; }));
|
|
43
|
-
exports.attributeNames = new Map([
|
|
44
|
-
"definitionURL",
|
|
45
|
-
"attributeName",
|
|
46
|
-
"attributeType",
|
|
47
|
-
"baseFrequency",
|
|
48
|
-
"baseProfile",
|
|
49
|
-
"calcMode",
|
|
50
|
-
"clipPathUnits",
|
|
51
|
-
"diffuseConstant",
|
|
52
|
-
"edgeMode",
|
|
53
|
-
"filterUnits",
|
|
54
|
-
"glyphRef",
|
|
55
|
-
"gradientTransform",
|
|
56
|
-
"gradientUnits",
|
|
57
|
-
"kernelMatrix",
|
|
58
|
-
"kernelUnitLength",
|
|
59
|
-
"keyPoints",
|
|
60
|
-
"keySplines",
|
|
61
|
-
"keyTimes",
|
|
62
|
-
"lengthAdjust",
|
|
63
|
-
"limitingConeAngle",
|
|
64
|
-
"markerHeight",
|
|
65
|
-
"markerUnits",
|
|
66
|
-
"markerWidth",
|
|
67
|
-
"maskContentUnits",
|
|
68
|
-
"maskUnits",
|
|
69
|
-
"numOctaves",
|
|
70
|
-
"pathLength",
|
|
71
|
-
"patternContentUnits",
|
|
72
|
-
"patternTransform",
|
|
73
|
-
"patternUnits",
|
|
74
|
-
"pointsAtX",
|
|
75
|
-
"pointsAtY",
|
|
76
|
-
"pointsAtZ",
|
|
77
|
-
"preserveAlpha",
|
|
78
|
-
"preserveAspectRatio",
|
|
79
|
-
"primitiveUnits",
|
|
80
|
-
"refX",
|
|
81
|
-
"refY",
|
|
82
|
-
"repeatCount",
|
|
83
|
-
"repeatDur",
|
|
84
|
-
"requiredExtensions",
|
|
85
|
-
"requiredFeatures",
|
|
86
|
-
"specularConstant",
|
|
87
|
-
"specularExponent",
|
|
88
|
-
"spreadMethod",
|
|
89
|
-
"startOffset",
|
|
90
|
-
"stdDeviation",
|
|
91
|
-
"stitchTiles",
|
|
92
|
-
"surfaceScale",
|
|
93
|
-
"systemLanguage",
|
|
94
|
-
"tableValues",
|
|
95
|
-
"targetX",
|
|
96
|
-
"targetY",
|
|
97
|
-
"textLength",
|
|
98
|
-
"viewBox",
|
|
99
|
-
"viewTarget",
|
|
100
|
-
"xChannelSelector",
|
|
101
|
-
"yChannelSelector",
|
|
102
|
-
"zoomAndPan",
|
|
103
|
-
].map(function (val) { return [val.toLowerCase(), val]; }));
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { AnyNode } from "domhandler";
|
|
2
|
-
export interface DomSerializerOptions {
|
|
3
|
-
/**
|
|
4
|
-
* Print an empty attribute's value.
|
|
5
|
-
*
|
|
6
|
-
* @default xmlMode
|
|
7
|
-
* @example With <code>emptyAttrs: false</code>: <code><input checked></code>
|
|
8
|
-
* @example With <code>emptyAttrs: true</code>: <code><input checked=""></code>
|
|
9
|
-
*/
|
|
10
|
-
emptyAttrs?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Print self-closing tags for tags without contents.
|
|
13
|
-
*
|
|
14
|
-
* @default xmlMode
|
|
15
|
-
* @example With <code>selfClosingTags: false</code>: <code><foo></foo></code>
|
|
16
|
-
* @example With <code>selfClosingTags: true</code>: <code><foo /></code>
|
|
17
|
-
*/
|
|
18
|
-
selfClosingTags?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Treat the input as an XML document; enables the `emptyAttrs` and `selfClosingTags` options.
|
|
21
|
-
*
|
|
22
|
-
* If the value is `"foreign"`, it will try to correct mixed-case attribute names.
|
|
23
|
-
*
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
xmlMode?: boolean | "foreign";
|
|
27
|
-
/**
|
|
28
|
-
* Encode characters that are either reserved in HTML or XML.
|
|
29
|
-
*
|
|
30
|
-
* If `xmlMode` is `true` or the value not `'utf8'`, characters outside of the utf8 range will be encoded as well.
|
|
31
|
-
*
|
|
32
|
-
* @default `decodeEntities`
|
|
33
|
-
*/
|
|
34
|
-
encodeEntities?: boolean | "utf8";
|
|
35
|
-
/**
|
|
36
|
-
* Option inherited from parsing; will be used as the default value for `encodeEntities`.
|
|
37
|
-
*
|
|
38
|
-
* @default true
|
|
39
|
-
*/
|
|
40
|
-
decodeEntities?: boolean;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Renders a DOM node or an array of DOM nodes to a string.
|
|
44
|
-
*
|
|
45
|
-
* Can be thought of as the equivalent of the `outerHTML` of the passed node(s).
|
|
46
|
-
*
|
|
47
|
-
* @param node Node to be rendered.
|
|
48
|
-
* @param options Changes serialization behavior
|
|
49
|
-
*/
|
|
50
|
-
export declare function render(node: AnyNode | ArrayLike<AnyNode>, options?: DomSerializerOptions): string;
|
|
51
|
-
export default render;
|
|
52
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,OAAO,EAMR,MAAM,YAAY,CAAC;AAWpB,MAAM,WAAW,oBAAoB;IACnC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AA4ED;;;;;;;GAOG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,EAClC,OAAO,GAAE,oBAAyB,GACjC,MAAM,CAUR;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.render = void 0;
|
|
38
|
-
/*
|
|
39
|
-
* Module dependencies
|
|
40
|
-
*/
|
|
41
|
-
var ElementType = __importStar(require("domelementtype"));
|
|
42
|
-
var entities_1 = require("entities");
|
|
43
|
-
/**
|
|
44
|
-
* Mixed-case SVG and MathML tags & attributes
|
|
45
|
-
* recognized by the HTML parser.
|
|
46
|
-
*
|
|
47
|
-
* @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign
|
|
48
|
-
*/
|
|
49
|
-
var foreignNames_js_1 = require("./foreignNames.js");
|
|
50
|
-
var unencodedElements = new Set([
|
|
51
|
-
"style",
|
|
52
|
-
"script",
|
|
53
|
-
"xmp",
|
|
54
|
-
"iframe",
|
|
55
|
-
"noembed",
|
|
56
|
-
"noframes",
|
|
57
|
-
"plaintext",
|
|
58
|
-
"noscript",
|
|
59
|
-
]);
|
|
60
|
-
function replaceQuotes(value) {
|
|
61
|
-
return value.replace(/"/g, """);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Format attributes
|
|
65
|
-
*/
|
|
66
|
-
function formatAttributes(attributes, opts) {
|
|
67
|
-
var _a;
|
|
68
|
-
if (!attributes)
|
|
69
|
-
return;
|
|
70
|
-
var encode = ((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) === false
|
|
71
|
-
? replaceQuotes
|
|
72
|
-
: opts.xmlMode || opts.encodeEntities !== "utf8"
|
|
73
|
-
? entities_1.encodeXML
|
|
74
|
-
: entities_1.escapeAttribute;
|
|
75
|
-
return Object.keys(attributes)
|
|
76
|
-
.map(function (key) {
|
|
77
|
-
var _a, _b;
|
|
78
|
-
var value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : "";
|
|
79
|
-
if (opts.xmlMode === "foreign") {
|
|
80
|
-
/* Fix up mixed-case attribute names */
|
|
81
|
-
key = (_b = foreignNames_js_1.attributeNames.get(key)) !== null && _b !== void 0 ? _b : key;
|
|
82
|
-
}
|
|
83
|
-
if (!opts.emptyAttrs && !opts.xmlMode && value === "") {
|
|
84
|
-
return key;
|
|
85
|
-
}
|
|
86
|
-
return "".concat(key, "=\"").concat(encode(value), "\"");
|
|
87
|
-
})
|
|
88
|
-
.join(" ");
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Self-enclosing tags
|
|
92
|
-
*/
|
|
93
|
-
var singleTag = new Set([
|
|
94
|
-
"area",
|
|
95
|
-
"base",
|
|
96
|
-
"basefont",
|
|
97
|
-
"br",
|
|
98
|
-
"col",
|
|
99
|
-
"command",
|
|
100
|
-
"embed",
|
|
101
|
-
"frame",
|
|
102
|
-
"hr",
|
|
103
|
-
"img",
|
|
104
|
-
"input",
|
|
105
|
-
"isindex",
|
|
106
|
-
"keygen",
|
|
107
|
-
"link",
|
|
108
|
-
"meta",
|
|
109
|
-
"param",
|
|
110
|
-
"source",
|
|
111
|
-
"track",
|
|
112
|
-
"wbr",
|
|
113
|
-
]);
|
|
114
|
-
/**
|
|
115
|
-
* Renders a DOM node or an array of DOM nodes to a string.
|
|
116
|
-
*
|
|
117
|
-
* Can be thought of as the equivalent of the `outerHTML` of the passed node(s).
|
|
118
|
-
*
|
|
119
|
-
* @param node Node to be rendered.
|
|
120
|
-
* @param options Changes serialization behavior
|
|
121
|
-
*/
|
|
122
|
-
function render(node, options) {
|
|
123
|
-
if (options === void 0) { options = {}; }
|
|
124
|
-
var nodes = "length" in node ? node : [node];
|
|
125
|
-
var output = "";
|
|
126
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
127
|
-
output += renderNode(nodes[i], options);
|
|
128
|
-
}
|
|
129
|
-
return output;
|
|
130
|
-
}
|
|
131
|
-
exports.render = render;
|
|
132
|
-
exports.default = render;
|
|
133
|
-
function renderNode(node, options) {
|
|
134
|
-
switch (node.type) {
|
|
135
|
-
case ElementType.Root:
|
|
136
|
-
return render(node.children, options);
|
|
137
|
-
// @ts-expect-error We don't use `Doctype` yet
|
|
138
|
-
case ElementType.Doctype:
|
|
139
|
-
case ElementType.Directive:
|
|
140
|
-
return renderDirective(node);
|
|
141
|
-
case ElementType.Comment:
|
|
142
|
-
return renderComment(node);
|
|
143
|
-
case ElementType.CDATA:
|
|
144
|
-
return renderCdata(node);
|
|
145
|
-
case ElementType.Script:
|
|
146
|
-
case ElementType.Style:
|
|
147
|
-
case ElementType.Tag:
|
|
148
|
-
return renderTag(node, options);
|
|
149
|
-
case ElementType.Text:
|
|
150
|
-
return renderText(node, options);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
var foreignModeIntegrationPoints = new Set([
|
|
154
|
-
"mi",
|
|
155
|
-
"mo",
|
|
156
|
-
"mn",
|
|
157
|
-
"ms",
|
|
158
|
-
"mtext",
|
|
159
|
-
"annotation-xml",
|
|
160
|
-
"foreignObject",
|
|
161
|
-
"desc",
|
|
162
|
-
"title",
|
|
163
|
-
]);
|
|
164
|
-
var foreignElements = new Set(["svg", "math"]);
|
|
165
|
-
function renderTag(elem, opts) {
|
|
166
|
-
var _a;
|
|
167
|
-
// Handle SVG / MathML in HTML
|
|
168
|
-
if (opts.xmlMode === "foreign") {
|
|
169
|
-
/* Fix up mixed-case element names */
|
|
170
|
-
elem.name = (_a = foreignNames_js_1.elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name;
|
|
171
|
-
/* Exit foreign mode at integration points */
|
|
172
|
-
if (elem.parent &&
|
|
173
|
-
foreignModeIntegrationPoints.has(elem.parent.name)) {
|
|
174
|
-
opts = __assign(__assign({}, opts), { xmlMode: false });
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
if (!opts.xmlMode && foreignElements.has(elem.name)) {
|
|
178
|
-
opts = __assign(__assign({}, opts), { xmlMode: "foreign" });
|
|
179
|
-
}
|
|
180
|
-
var tag = "<".concat(elem.name);
|
|
181
|
-
var attribs = formatAttributes(elem.attribs, opts);
|
|
182
|
-
if (attribs) {
|
|
183
|
-
tag += " ".concat(attribs);
|
|
184
|
-
}
|
|
185
|
-
if (elem.children.length === 0 &&
|
|
186
|
-
(opts.xmlMode
|
|
187
|
-
? // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags
|
|
188
|
-
opts.selfClosingTags !== false
|
|
189
|
-
: // User explicitly asked for self-closing tags, even in HTML mode
|
|
190
|
-
opts.selfClosingTags && singleTag.has(elem.name))) {
|
|
191
|
-
if (!opts.xmlMode)
|
|
192
|
-
tag += " ";
|
|
193
|
-
tag += "/>";
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
tag += ">";
|
|
197
|
-
if (elem.children.length > 0) {
|
|
198
|
-
tag += render(elem.children, opts);
|
|
199
|
-
}
|
|
200
|
-
if (opts.xmlMode || !singleTag.has(elem.name)) {
|
|
201
|
-
tag += "</".concat(elem.name, ">");
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
return tag;
|
|
205
|
-
}
|
|
206
|
-
function renderDirective(elem) {
|
|
207
|
-
return "<".concat(elem.data, ">");
|
|
208
|
-
}
|
|
209
|
-
function renderText(elem, opts) {
|
|
210
|
-
var _a;
|
|
211
|
-
var data = elem.data || "";
|
|
212
|
-
// If entities weren't decoded, no need to encode them back
|
|
213
|
-
if (((_a = opts.encodeEntities) !== null && _a !== void 0 ? _a : opts.decodeEntities) !== false &&
|
|
214
|
-
!(!opts.xmlMode &&
|
|
215
|
-
elem.parent &&
|
|
216
|
-
unencodedElements.has(elem.parent.name))) {
|
|
217
|
-
data =
|
|
218
|
-
opts.xmlMode || opts.encodeEntities !== "utf8"
|
|
219
|
-
? (0, entities_1.encodeXML)(data)
|
|
220
|
-
: (0, entities_1.escapeText)(data);
|
|
221
|
-
}
|
|
222
|
-
return data;
|
|
223
|
-
}
|
|
224
|
-
function renderCdata(elem) {
|
|
225
|
-
return "<![CDATA[".concat(elem.children[0].data, "]]>");
|
|
226
|
-
}
|
|
227
|
-
function renderComment(elem) {
|
|
228
|
-
return "<!--".concat(elem.data, "-->");
|
|
229
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dom-serializer",
|
|
3
|
-
"version": "2.0.0",
|
|
4
|
-
"description": "render domhandler DOM nodes to a string",
|
|
5
|
-
"author": "Felix Boehm <me@feedic.com>",
|
|
6
|
-
"sideEffects": false,
|
|
7
|
-
"keywords": [
|
|
8
|
-
"html",
|
|
9
|
-
"xml",
|
|
10
|
-
"render"
|
|
11
|
-
],
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git://github.com/cheeriojs/dom-serializer.git"
|
|
15
|
-
},
|
|
16
|
-
"main": "lib/index.js",
|
|
17
|
-
"types": "lib/index.d.ts",
|
|
18
|
-
"module": "lib/esm/index.js",
|
|
19
|
-
"exports": {
|
|
20
|
-
"require": "./lib/index.js",
|
|
21
|
-
"import": "./lib/esm/index.js"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"lib/**/*"
|
|
25
|
-
],
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"domelementtype": "^2.3.0",
|
|
28
|
-
"domhandler": "^5.0.2",
|
|
29
|
-
"entities": "^4.2.0"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@types/jest": "^27.4.1",
|
|
33
|
-
"@types/node": "^17.0.23",
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
35
|
-
"@typescript-eslint/parser": "^5.18.0",
|
|
36
|
-
"cheerio": "^1.0.0-rc.9",
|
|
37
|
-
"eslint": "^8.12.0",
|
|
38
|
-
"eslint-config-prettier": "^8.5.0",
|
|
39
|
-
"htmlparser2": "^7.2.0",
|
|
40
|
-
"jest": "^27.5.1",
|
|
41
|
-
"prettier": "^2.6.2",
|
|
42
|
-
"ts-jest": "^27.1.4",
|
|
43
|
-
"typescript": "^4.6.3"
|
|
44
|
-
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"test": "npm run test:jest && npm run lint",
|
|
47
|
-
"test:jest": "jest",
|
|
48
|
-
"lint": "npm run lint:es && npm run lint:prettier",
|
|
49
|
-
"lint:es": "eslint --ignore-path .gitignore .",
|
|
50
|
-
"lint:prettier": "npm run prettier -- --check",
|
|
51
|
-
"format": "npm run format:es && npm run format:prettier",
|
|
52
|
-
"format:es": "npm run lint:es -- --fix",
|
|
53
|
-
"format:prettier": "npm run prettier -- --write",
|
|
54
|
-
"prettier": "prettier \"**/*.{ts,md,json,yml}\" --ignore-path .gitignore",
|
|
55
|
-
"build": "npm run build:cjs && npm run build:esm",
|
|
56
|
-
"build:cjs": "tsc",
|
|
57
|
-
"build:esm": "tsc --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
|
|
58
|
-
"prepare": "npm run build"
|
|
59
|
-
},
|
|
60
|
-
"jest": {
|
|
61
|
-
"preset": "ts-jest",
|
|
62
|
-
"testEnvironment": "node",
|
|
63
|
-
"moduleNameMapper": {
|
|
64
|
-
"^(.*)\\.js$": "$1"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"funding": "https://github.com/cheeriojs/dom-serializer?sponsor=1",
|
|
68
|
-
"license": "MIT"
|
|
69
|
-
}
|