@pnp/cli-microsoft365 5.0.0-beta.fe151d6 → 5.1.0-beta.c8f5fd7
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/.devcontainer/devcontainer.json +13 -2
- package/.eslintrc.js +3 -0
- package/.mocharc.json +9 -0
- package/README.md +3 -3
- package/dist/Auth.js +22 -9
- package/dist/Command.js +1 -1
- package/dist/api.d.ts +13 -0
- package/dist/api.js +17 -0
- package/dist/appInsights.js +3 -2
- package/dist/cli/Cli.js +59 -12
- package/dist/m365/aad/commands/app/app-add.js +54 -18
- package/dist/m365/aad/commands/app/app-delete.js +123 -0
- package/dist/m365/aad/commands/app/app-get.js +142 -0
- package/dist/m365/aad/commands/app/app-role-delete.js +2 -2
- package/dist/m365/aad/commands/app/app-role-list.js +6 -5
- package/dist/m365/aad/commands/app/app-set.js +98 -3
- package/dist/m365/aad/commands/approleassignment/approleassignment-add.js +4 -4
- package/dist/m365/aad/commands/approleassignment/approleassignment-list.js +3 -3
- package/dist/m365/aad/commands/approleassignment/approleassignment-remove.js +4 -4
- package/dist/m365/aad/commands/group/group-list.js +55 -0
- package/dist/m365/aad/commands/groupsetting/groupsetting-add.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-get.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-list.js +7 -6
- package/dist/m365/aad/commands/groupsetting/groupsetting-remove.js +2 -2
- package/dist/m365/aad/commands/groupsetting/groupsetting-set.js +2 -2
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-get.js +8 -8
- package/dist/m365/aad/commands/groupsettingtemplate/groupsettingtemplate-list.js +7 -6
- package/dist/m365/{spo/commands/site/SpoOperation.js → aad/commands/o365group/GroupExtended.js} +1 -1
- package/dist/m365/aad/commands/o365group/o365group-add.js +41 -3
- package/dist/m365/aad/commands/o365group/o365group-conversation-list.js +41 -0
- package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +87 -0
- package/dist/m365/aad/commands/o365group/o365group-get.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-list.js +15 -12
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-clear.js +8 -7
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-list.js +7 -6
- package/dist/m365/aad/commands/o365group/o365group-recyclebinitem-restore.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-remove.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-renew.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-set.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-teamify.js +2 -2
- package/dist/m365/aad/commands/o365group/o365group-user-add.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-user-list.js +21 -15
- package/dist/m365/aad/commands/o365group/o365group-user-remove.js +3 -3
- package/dist/m365/aad/commands/o365group/o365group-user-set.js +23 -17
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-add.js +3 -3
- package/dist/m365/aad/commands/oauth2grant/oauth2grant-list.js +2 -2
- package/dist/m365/aad/commands/sp/sp-add.js +3 -3
- package/dist/m365/aad/commands/sp/sp-get.js +3 -3
- package/dist/m365/aad/commands/user/user-get.js +35 -8
- package/dist/m365/aad/commands/user/user-hibp.js +67 -0
- package/dist/m365/aad/commands/user/user-list.js +14 -10
- package/dist/m365/aad/commands/user/user-password-validate.js +42 -0
- package/dist/m365/aad/commands/user/user-set.js +2 -2
- package/dist/m365/aad/commands.js +7 -0
- package/dist/m365/app/commands/permission/permission-list.js +266 -0
- package/dist/m365/app/commands.js +7 -0
- package/dist/m365/base/AppCommand.js +76 -0
- package/dist/m365/base/SpoCommand.js +0 -260
- package/dist/m365/cli/commands/cli-doctor.js +4 -2
- package/dist/m365/cli/commands/config/config-set.js +5 -1
- package/dist/m365/commands/status.js +3 -3
- package/dist/m365/file/commands/file-add.js +3 -3
- package/dist/m365/file/commands/file-list.js +14 -12
- package/dist/m365/flow/commands/flow-export.js +2 -2
- package/dist/m365/flow/commands/flow-get.js +2 -2
- package/dist/m365/flow/commands/flow-remove.js +2 -2
- package/dist/m365/flow/commands/run/run-cancel.js +2 -2
- package/dist/m365/flow/commands/run/run-resubmit.js +2 -2
- package/dist/m365/graph/commands/schemaextension/schemaextension-add.js +2 -2
- package/dist/m365/graph/commands/schemaextension/schemaextension-list.js +2 -2
- package/dist/m365/graph/commands/schemaextension/schemaextension-set.js +2 -2
- package/dist/m365/graph/commands/subscription/subscription-add.js +2 -2
- package/dist/m365/onedrive/commands/onedrive-list.js +3 -2
- package/dist/m365/outlook/commands/message/message-list.js +6 -5
- package/dist/m365/outlook/commands/room/room-list.js +44 -0
- package/dist/m365/outlook/commands/roomlist/roomlist-list.js +26 -0
- package/dist/m365/outlook/commands.js +2 -0
- package/dist/m365/pa/cds-project-mutator.js +1 -1
- package/dist/m365/pa/commands/app/app-get.js +2 -2
- package/dist/m365/pa/commands/app/app-list.js +28 -1
- package/dist/m365/pa/commands/app/app-remove.js +2 -2
- package/dist/m365/pa/commands/pcf/pcf-init.js +4 -4
- package/dist/m365/pa/commands/solution/solution-init.js +2 -2
- package/dist/m365/{base/AzmgmtResponse.js → planner/AppliedCategories.js} +1 -1
- package/dist/m365/planner/commands/bucket/bucket-add.js +2 -2
- package/dist/m365/planner/commands/bucket/bucket-list.js +7 -7
- package/dist/m365/planner/commands/plan/plan-add.js +2 -2
- package/dist/m365/planner/commands/plan/plan-details-get.js +134 -0
- package/dist/m365/planner/commands/plan/plan-get.js +7 -7
- package/dist/m365/planner/commands/plan/plan-list.js +2 -2
- package/dist/m365/planner/commands/task/task-add.js +288 -0
- package/dist/m365/planner/commands/task/task-details-get.js +39 -0
- package/dist/m365/planner/commands/task/task-get.js +37 -0
- package/dist/m365/planner/commands/task/task-list.js +46 -16
- package/dist/m365/planner/commands/task/task-set.js +357 -0
- package/dist/m365/planner/commands.js +6 -1
- package/dist/m365/search/commands/externalconnection/externalconnection-add.js +99 -0
- package/dist/m365/search/commands.js +7 -0
- package/dist/m365/spfx/commands/package/package-generate.js +4 -4
- package/dist/m365/spfx/commands/project/base-project-command.js +18 -19
- package/dist/m365/spfx/commands/project/project-upgrade/index.js +0 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001005_DEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001006_DEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001008_DEP_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001009_DEP_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001015_DEP_types_react_addons_shallow_compare.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001016_DEP_types_react_addons_update.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001017_DEP_types_react_addons_update.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001019_DEP_knockout.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001020_DEP_types_knockout.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002015_DEVDEP_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002016_DEVDEP_types_react_dom.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006005_CFG_PS_metadata.js +63 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +60 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014008_CODE_launch_hostedWorkbench_type.js +62 -0
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN020001_RES_types_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022001_SCSS_remove_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022002_SCSS_add_fabric_react.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.14.0.js +59 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +2 -1
- package/dist/m365/spfx/commands/spfx-doctor.js +25 -6
- package/dist/m365/spo/commands/app/app-add.js +3 -2
- package/dist/m365/spo/commands/app/app-deploy.js +4 -4
- package/dist/m365/spo/commands/app/app-get.js +4 -4
- package/dist/m365/spo/commands/app/app-install.js +3 -3
- package/dist/m365/spo/commands/app/app-instance-list.js +2 -1
- package/dist/m365/spo/commands/app/app-list.js +3 -2
- package/dist/m365/spo/commands/app/app-remove.js +4 -5
- package/dist/m365/spo/commands/app/app-retract.js +4 -5
- package/dist/m365/spo/commands/app/app-uninstall.js +3 -3
- package/dist/m365/spo/commands/app/app-upgrade.js +3 -3
- package/dist/m365/spo/commands/apppage/apppage-add.js +2 -2
- package/dist/m365/spo/commands/apppage/apppage-set.js +2 -2
- package/dist/m365/spo/commands/cdn/cdn-get.js +4 -3
- package/dist/m365/spo/commands/cdn/cdn-origin-add.js +5 -5
- package/dist/m365/spo/commands/cdn/cdn-origin-list.js +4 -3
- package/dist/m365/spo/commands/cdn/cdn-origin-remove.js +5 -5
- package/dist/m365/spo/commands/cdn/cdn-policy-list.js +4 -3
- package/dist/m365/spo/commands/cdn/cdn-policy-set.js +5 -5
- package/dist/m365/spo/commands/cdn/cdn-set.js +3 -2
- package/dist/m365/spo/commands/contenttype/contenttype-add.js +6 -6
- package/dist/m365/spo/commands/contenttype/contenttype-field-remove.js +6 -6
- package/dist/m365/spo/commands/contenttype/contenttype-field-set.js +6 -6
- package/dist/m365/spo/commands/contenttype/contenttype-get.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-list.js +2 -1
- package/dist/m365/spo/commands/contenttype/contenttype-remove.js +2 -1
- package/dist/m365/spo/commands/contenttypehub/contenttypehub-get.js +3 -2
- package/dist/m365/spo/commands/customaction/customaction-add.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-clear.js +2 -1
- package/dist/m365/spo/commands/customaction/customaction-get.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-list.js +2 -1
- package/dist/m365/spo/commands/customaction/customaction-remove.js +3 -3
- package/dist/m365/spo/commands/customaction/customaction-set.js +4 -4
- package/dist/m365/spo/commands/externaluser/externaluser-list.js +6 -6
- package/dist/m365/spo/commands/feature/feature-enable.js +2 -1
- package/dist/m365/spo/commands/feature/feature-list.js +2 -1
- package/dist/m365/spo/commands/field/field-add.js +3 -2
- package/dist/m365/spo/commands/field/field-get.js +5 -5
- package/dist/m365/spo/commands/field/field-remove.js +5 -5
- package/dist/m365/spo/commands/field/field-set.js +10 -10
- package/dist/m365/spo/commands/file/file-add.js +5 -7
- package/dist/m365/spo/commands/file/file-checkin.js +3 -3
- package/dist/m365/spo/commands/file/file-checkout.js +3 -3
- package/dist/m365/spo/commands/file/file-copy.js +18 -7
- package/dist/m365/spo/commands/file/file-get.js +3 -3
- package/dist/m365/spo/commands/file/file-list.js +3 -3
- package/dist/m365/spo/commands/file/file-move.js +18 -7
- package/dist/m365/spo/commands/file/file-remove.js +3 -3
- package/dist/m365/spo/commands/file/file-sharinginfo-get.js +3 -3
- package/dist/m365/spo/commands/folder/folder-add.js +3 -3
- package/dist/m365/spo/commands/folder/folder-copy.js +16 -5
- package/dist/m365/spo/commands/folder/folder-get.js +3 -3
- package/dist/m365/spo/commands/folder/folder-list.js +3 -3
- package/dist/m365/spo/commands/folder/folder-move.js +16 -5
- package/dist/m365/spo/commands/folder/folder-remove.js +3 -3
- package/dist/m365/spo/commands/folder/folder-rename.js +6 -8
- package/dist/m365/spo/commands/group/group-get.js +2 -1
- package/dist/m365/spo/commands/group/group-list.js +2 -1
- package/dist/m365/spo/commands/group/group-remove.js +2 -1
- package/dist/m365/spo/commands/group/group-user-add.js +76 -17
- package/dist/m365/spo/commands/group/group-user-list.js +2 -1
- package/dist/m365/spo/commands/group/group-user-remove.js +101 -0
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-get.js +2 -1
- package/dist/m365/spo/commands/hidedefaultthemes/hidedefaultthemes-set.js +2 -1
- package/dist/m365/spo/commands/homesite/homesite-get.js +2 -1
- package/dist/m365/spo/commands/homesite/homesite-remove.js +3 -2
- package/dist/m365/spo/commands/homesite/homesite-set.js +5 -5
- package/dist/m365/spo/commands/hubsite/hubsite-connect.js +4 -4
- package/dist/m365/spo/commands/hubsite/hubsite-data-get.js +2 -1
- package/dist/m365/spo/commands/hubsite/hubsite-disconnect.js +3 -2
- package/dist/m365/spo/commands/hubsite/hubsite-get.js +3 -3
- package/dist/m365/spo/commands/hubsite/hubsite-list.js +2 -1
- package/dist/m365/spo/commands/hubsite/hubsite-register.js +3 -2
- package/dist/m365/spo/commands/hubsite/hubsite-rights-grant.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-rights-revoke.js +6 -6
- package/dist/m365/spo/commands/hubsite/hubsite-set.js +8 -8
- package/dist/m365/spo/commands/hubsite/hubsite-theme-sync.js +2 -1
- package/dist/m365/spo/commands/hubsite/hubsite-unregister.js +3 -2
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-get.js +3 -2
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-remove.js +3 -2
- package/dist/m365/spo/commands/knowledgehub/knowledgehub-set.js +5 -5
- package/dist/m365/spo/commands/list/list-add.js +5 -5
- package/dist/m365/spo/commands/list/list-contenttype-add.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-default-set.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-list.js +3 -3
- package/dist/m365/spo/commands/list/list-contenttype-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-get.js +3 -3
- package/dist/m365/spo/commands/list/list-label-get.js +4 -4
- package/dist/m365/spo/commands/list/list-label-set.js +5 -5
- package/dist/m365/spo/commands/list/list-list.js +2 -1
- package/dist/m365/spo/commands/list/list-remove.js +3 -3
- package/dist/m365/spo/commands/list/list-set.js +6 -6
- package/dist/m365/spo/commands/list/list-sitescript-get.js +4 -4
- package/dist/m365/spo/commands/list/list-view-field-add.js +5 -5
- package/dist/m365/spo/commands/list/list-view-field-remove.js +5 -5
- package/dist/m365/spo/commands/list/list-view-field-set.js +5 -5
- package/dist/m365/spo/commands/list/list-view-get.js +5 -5
- package/dist/m365/spo/commands/list/list-view-list.js +3 -3
- package/dist/m365/spo/commands/list/list-view-remove.js +4 -4
- package/dist/m365/spo/commands/list/list-view-set.js +5 -5
- package/dist/m365/spo/commands/list/list-webhook-add.js +3 -3
- package/dist/m365/spo/commands/list/list-webhook-get.js +4 -4
- package/dist/m365/spo/commands/list/list-webhook-list.js +4 -4
- package/dist/m365/spo/commands/list/list-webhook-remove.js +4 -4
- package/dist/m365/spo/commands/list/list-webhook-set.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-add.js +5 -7
- package/dist/m365/spo/commands/listitem/listitem-attachment-list.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-get.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-isrecord.js +5 -7
- package/dist/m365/spo/commands/listitem/listitem-list.js +4 -4
- package/dist/m365/spo/commands/listitem/listitem-record-declare.js +6 -8
- package/dist/m365/spo/commands/listitem/listitem-record-undeclare.js +5 -7
- package/dist/m365/spo/commands/listitem/listitem-remove.js +3 -3
- package/dist/m365/spo/commands/listitem/listitem-set.js +4 -4
- package/dist/m365/spo/commands/mail/mail-send.js +2 -1
- package/dist/m365/spo/commands/navigation/navigation-node-add.js +2 -1
- package/dist/m365/spo/commands/navigation/navigation-node-list.js +2 -1
- package/dist/m365/spo/commands/navigation/navigation-node-remove.js +3 -2
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-add.js +5 -4
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-list.js +3 -2
- package/dist/m365/spo/commands/orgassetslibrary/orgassetslibrary-remove.js +3 -2
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-list.js +3 -2
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-remove.js +5 -5
- package/dist/m365/spo/commands/orgnewssite/orgnewssite-set.js +5 -5
- package/dist/m365/spo/commands/page/Page.js +2 -2
- package/dist/m365/spo/commands/page/page-add.js +4 -4
- package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +3 -3
- package/dist/m365/spo/commands/page/page-column-get.js +2 -1
- package/dist/m365/spo/commands/page/page-column-list.js +2 -1
- package/dist/m365/spo/commands/page/page-control-get.js +3 -3
- package/dist/m365/spo/commands/page/page-control-list.js +2 -1
- package/dist/m365/spo/commands/page/page-control-set.js +3 -3
- package/dist/m365/spo/commands/page/page-copy.js +2 -1
- package/dist/m365/spo/commands/page/page-get.js +3 -3
- package/dist/m365/spo/commands/page/page-header-set.js +2 -1
- package/dist/m365/spo/commands/page/page-list.js +2 -1
- package/dist/m365/spo/commands/page/page-remove.js +4 -4
- package/dist/m365/spo/commands/page/page-section-add.js +2 -1
- package/dist/m365/spo/commands/page/page-section-get.js +2 -1
- package/dist/m365/spo/commands/page/page-section-list.js +2 -1
- package/dist/m365/spo/commands/page/page-set.js +4 -4
- package/dist/m365/spo/commands/page/page-template-list.js +2 -1
- package/dist/m365/spo/commands/page/page-text-add.js +4 -4
- package/dist/m365/spo/commands/propertybag/propertybag-base.js +4 -4
- package/dist/m365/spo/commands/propertybag/propertybag-get.js +4 -6
- package/dist/m365/spo/commands/propertybag/propertybag-list.js +4 -6
- package/dist/m365/spo/commands/propertybag/propertybag-remove.js +6 -9
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +8 -10
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-add.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-list.js +3 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-grant-revoke.js +4 -4
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-approve.js +5 -5
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-deny.js +5 -5
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-permissionrequest-list.js +3 -2
- package/dist/m365/spo/commands/serviceprincipal/serviceprincipal-set.js +3 -2
- package/dist/m365/spo/commands/site/site-add.js +36 -16
- package/dist/m365/spo/commands/site/site-appcatalog-add.js +5 -5
- package/dist/m365/spo/commands/site/site-appcatalog-remove.js +5 -5
- package/dist/m365/spo/commands/site/site-apppermission-add.js +3 -4
- package/dist/m365/spo/commands/site/site-apppermission-get.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-list.js +2 -2
- package/dist/m365/spo/commands/site/site-apppermission-remove.js +3 -4
- package/dist/m365/spo/commands/site/site-apppermission-set.js +3 -4
- package/dist/m365/spo/commands/site/site-chrome-set.js +2 -1
- package/dist/m365/spo/commands/site/site-classic-add.js +33 -13
- package/dist/m365/spo/commands/site/site-classic-list.js +4 -4
- package/dist/m365/spo/commands/site/site-classic-set.js +33 -13
- package/dist/m365/spo/commands/site/site-commsite-enable.js +6 -6
- package/dist/m365/spo/commands/site/site-ensure.js +3 -2
- package/dist/m365/spo/commands/site/site-get.js +2 -1
- package/dist/m365/spo/commands/site/site-groupify.js +2 -1
- package/dist/m365/spo/commands/site/site-inplacerecordsmanagement-set.js +3 -3
- package/dist/m365/spo/commands/site/site-list.js +4 -4
- package/dist/m365/spo/commands/site/site-recyclebinitem-list.js +77 -0
- package/dist/m365/spo/commands/site/site-remove.js +34 -14
- package/dist/m365/spo/commands/site/site-rename.js +3 -2
- package/dist/m365/spo/commands/site/site-set.js +12 -12
- package/dist/m365/spo/commands/sitedesign/sitedesign-add.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-apply.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-get.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-list.js +2 -1
- package/dist/m365/spo/commands/sitedesign/sitedesign-remove.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-grant.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-list.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-rights-revoke.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-list.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-run-status-get.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-set.js +4 -4
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-get.js +3 -3
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-list.js +2 -1
- package/dist/m365/spo/commands/sitedesign/sitedesign-task-remove.js +3 -3
- package/dist/m365/spo/commands/sitescript/sitescript-add.js +3 -2
- package/dist/m365/spo/commands/sitescript/sitescript-get.js +4 -4
- package/dist/m365/spo/commands/sitescript/sitescript-list.js +3 -2
- package/dist/m365/spo/commands/sitescript/sitescript-remove.js +4 -4
- package/dist/m365/spo/commands/sitescript/sitescript-set.js +4 -4
- package/dist/m365/spo/commands/spo-search.js +4 -4
- package/dist/m365/spo/commands/spo-set.js +2 -1
- package/dist/m365/spo/commands/storageentity/storageentity-get.js +2 -1
- package/dist/m365/spo/commands/storageentity/storageentity-list.js +2 -1
- package/dist/m365/spo/commands/storageentity/storageentity-remove.js +5 -5
- package/dist/m365/spo/commands/storageentity/storageentity-set.js +5 -5
- package/dist/m365/spo/commands/tenant/tenant-appcatalog-add.js +2 -1
- package/dist/m365/spo/commands/tenant/tenant-appcatalogurl-get.js +2 -1
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-list.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-remove.js +16 -6
- package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +16 -6
- package/dist/m365/spo/commands/tenant/tenant-settings-list.js +3 -2
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +5 -5
- package/dist/m365/spo/commands/term/term-add.js +13 -13
- package/dist/m365/spo/commands/term/term-get.js +9 -9
- package/dist/m365/spo/commands/term/term-group-add.js +6 -6
- package/dist/m365/spo/commands/term/term-group-get.js +5 -5
- package/dist/m365/spo/commands/term/term-group-list.js +3 -2
- package/dist/m365/spo/commands/term/term-list.js +7 -7
- package/dist/m365/spo/commands/term/term-set-add.js +9 -9
- package/dist/m365/spo/commands/term/term-set-get.js +7 -7
- package/dist/m365/spo/commands/term/term-set-list.js +5 -5
- package/dist/m365/spo/commands/theme/theme-apply.js +5 -5
- package/dist/m365/spo/commands/theme/theme-get.js +4 -4
- package/dist/m365/spo/commands/theme/theme-list.js +2 -1
- package/dist/m365/spo/commands/theme/theme-remove.js +2 -1
- package/dist/m365/spo/commands/theme/theme-set.js +5 -5
- package/dist/m365/spo/commands/user/user-get.js +2 -1
- package/dist/m365/spo/commands/user/user-list.js +2 -1
- package/dist/m365/spo/commands/user/user-remove.js +2 -1
- package/dist/m365/spo/commands/userprofile/userprofile-get.js +3 -3
- package/dist/m365/spo/commands/userprofile/userprofile-set.js +3 -2
- package/dist/m365/spo/commands/web/web-add.js +4 -3
- package/dist/m365/spo/commands/web/web-clientsidewebpart-list.js +2 -1
- package/dist/m365/spo/commands/web/web-get.js +2 -1
- package/dist/m365/spo/commands/web/web-installedlanguage-list.js +49 -0
- package/dist/m365/spo/commands/web/web-list.js +2 -1
- package/dist/m365/spo/commands/web/web-reindex.js +10 -11
- package/dist/m365/spo/commands/web/web-remove.js +2 -1
- package/dist/m365/spo/commands/web/web-set.js +2 -1
- package/dist/m365/spo/commands.js +3 -0
- package/dist/m365/teams/commands/app/app-install.js +77 -23
- package/dist/m365/teams/commands/app/app-list.js +17 -14
- package/dist/m365/teams/commands/app/app-remove.js +2 -2
- package/dist/m365/teams/commands/app/app-uninstall.js +2 -2
- package/dist/m365/teams/commands/app/app-update.js +55 -13
- package/dist/m365/teams/commands/channel/channel-add.js +2 -2
- package/dist/m365/teams/commands/channel/channel-get.js +32 -10
- package/dist/m365/teams/commands/channel/channel-list.js +7 -8
- package/dist/m365/teams/commands/channel/channel-remove.js +3 -3
- package/dist/m365/teams/commands/channel/channel-set.js +2 -2
- package/dist/m365/teams/commands/chat/chat-list.js +44 -0
- package/dist/m365/teams/commands/chat/chat-member-list.js +42 -0
- package/dist/m365/teams/commands/chat/chat-message-list.js +60 -0
- package/dist/m365/teams/commands/chat/chat-message-send.js +225 -0
- package/dist/m365/teams/commands/conversationmember/conversationmember-add.js +3 -3
- package/dist/m365/teams/commands/conversationmember/conversationmember-list.js +9 -9
- package/dist/m365/teams/commands/funsettings/funsettings-list.js +2 -2
- package/dist/m365/teams/commands/funsettings/funsettings-set.js +2 -2
- package/dist/m365/teams/commands/guestsettings/guestsettings-list.js +2 -2
- package/dist/m365/teams/commands/guestsettings/guestsettings-set.js +2 -2
- package/dist/m365/teams/commands/membersettings/membersettings-list.js +2 -2
- package/dist/m365/teams/commands/membersettings/membersettings-set.js +2 -2
- package/dist/m365/teams/commands/message/message-get.js +4 -4
- package/dist/m365/teams/commands/message/message-list.js +12 -12
- package/dist/m365/teams/commands/message/message-reply-list.js +10 -10
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-list.js +2 -2
- package/dist/m365/teams/commands/messagingsettings/messagingsettings-set.js +3 -3
- package/dist/m365/teams/commands/report/report-directroutingcalls.js +3 -3
- package/dist/m365/teams/commands/report/report-pstncalls.js +3 -3
- package/dist/m365/teams/commands/tab/tab-add.js +5 -5
- package/dist/m365/teams/commands/tab/tab-get.js +13 -10
- package/dist/m365/teams/commands/tab/tab-list.js +10 -10
- package/dist/m365/teams/commands/tab/tab-remove.js +4 -4
- package/dist/m365/teams/commands/team/team-archive.js +2 -2
- package/dist/m365/teams/commands/team/team-clone.js +2 -2
- package/dist/m365/teams/commands/team/team-get.js +2 -2
- package/dist/m365/teams/commands/team/team-list.js +10 -12
- package/dist/m365/teams/commands/team/team-remove.js +2 -2
- package/dist/m365/teams/commands/team/team-set.js +2 -2
- package/dist/m365/teams/commands/team/team-unarchive.js +2 -2
- package/dist/m365/teams/commands/user/user-app-add.js +3 -3
- package/dist/m365/teams/commands/user/user-app-list.js +10 -10
- package/dist/m365/teams/commands/user/user-app-remove.js +2 -2
- package/dist/m365/teams/commands/user/user-list.js +14 -8
- package/dist/m365/teams/commands.js +4 -0
- package/dist/m365/tenant/commands/auditlog/auditlog-report.js +2 -2
- package/dist/m365/tenant/commands/id/id-get.js +2 -2
- package/dist/m365/tenant/commands/report/report-office365activationcounts.js +2 -2
- package/dist/m365/tenant/commands/report/report-office365activationsusercounts.js +2 -2
- package/dist/m365/tenant/commands/report/report-office365activationsuserdetail.js +2 -2
- package/dist/m365/tenant/commands/service/service-list.js +2 -2
- package/dist/m365/tenant/commands/service/service-message-list.js +2 -2
- package/dist/m365/tenant/commands/service/service-report-historicalservicestatus.js +2 -2
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-get.js +57 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-health-list.js +56 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-get.js +39 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-healthissue-list.js +39 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-get.js +51 -0
- package/dist/m365/tenant/commands/serviceannouncement/serviceannouncement-message-list.js +39 -0
- package/dist/m365/tenant/commands/status/status-list.js +2 -2
- package/dist/m365/tenant/commands.js +6 -0
- package/dist/m365/todo/commands/list/list-list.js +7 -6
- package/dist/m365/todo/commands/task/task-list.js +7 -6
- package/dist/request.js +11 -6
- package/dist/settingsNames.js +7 -0
- package/dist/utils/accessToken.js +44 -0
- package/dist/utils/formatting.js +66 -0
- package/dist/utils/fsUtil.js +36 -0
- package/dist/utils/index.js +22 -0
- package/dist/utils/odata.js +37 -0
- package/dist/utils/sinonUtil.js +19 -0
- package/dist/{m365/spfx/commands/project/project-upgrade/Utils.js → utils/spfx.js} +7 -19
- package/dist/utils/spo.js +432 -0
- package/dist/utils/urlUtil.js +174 -0
- package/dist/utils/validation.js +310 -0
- package/docs/docs/cmd/_global.md +2 -2
- package/docs/docs/cmd/aad/app/app-delete.md +51 -0
- package/docs/docs/cmd/aad/app/app-get.md +59 -0
- package/docs/docs/cmd/aad/app/app-set.md +21 -0
- package/docs/docs/cmd/aad/group/group-list.md +30 -0
- package/docs/docs/cmd/aad/o365group/o365group-add.md +42 -6
- package/docs/docs/cmd/aad/o365group/o365group-conversation-list.md +24 -0
- package/docs/docs/cmd/aad/o365group/o365group-conversation-post-list.md +36 -0
- package/docs/docs/cmd/aad/user/user-get.md +13 -4
- package/docs/docs/cmd/aad/user/user-hibp.md +46 -0
- package/docs/docs/cmd/aad/user/user-list.md +9 -0
- package/docs/docs/cmd/aad/user/user-password-validate.md +29 -0
- package/docs/docs/cmd/app/permission/permission-list.md +36 -0
- package/docs/docs/cmd/outlook/room/room-list.md +30 -0
- package/docs/docs/cmd/outlook/roomlist/roomlist-list.md +21 -0
- package/docs/docs/cmd/pa/app/app-list.md +17 -1
- package/docs/docs/cmd/planner/plan/plan-details-get.md +45 -0
- package/docs/docs/cmd/planner/task/task-add.md +78 -0
- package/docs/docs/cmd/planner/task/task-details-get.md +24 -0
- package/docs/docs/cmd/planner/task/task-get.md +29 -0
- package/docs/docs/cmd/planner/task/task-list.md +5 -0
- package/docs/docs/cmd/planner/task/task-set.md +99 -0
- package/docs/docs/cmd/search/externalconnection/externalconnection-add.md +43 -0
- package/docs/docs/cmd/spfx/project/project-externalize.md +1 -1
- package/docs/docs/cmd/spfx/project/project-rename.md +1 -1
- package/docs/docs/cmd/spfx/project/project-upgrade.md +8 -8
- package/docs/docs/cmd/spfx/spfx-doctor.md +1 -1
- package/docs/docs/cmd/spo/group/group-user-add.md +28 -6
- package/docs/docs/cmd/spo/group/group-user-remove.md +39 -0
- package/docs/docs/cmd/spo/site/site-recyclebinitem-list.md +40 -0
- package/docs/docs/cmd/spo/web/web-installedlanguage-list.md +24 -0
- package/docs/docs/cmd/teams/app/app-install.md +22 -4
- package/docs/docs/cmd/teams/app/app-update.md +12 -3
- package/docs/docs/cmd/teams/channel/channel-get.md +11 -2
- package/docs/docs/cmd/teams/chat/chat-list.md +30 -0
- package/docs/docs/cmd/teams/chat/chat-member-list.md +24 -0
- package/docs/docs/cmd/teams/chat/chat-message-list.md +24 -0
- package/docs/docs/cmd/teams/chat/chat-message-send.md +55 -0
- package/docs/docs/cmd/teams/message/message-get.md +0 -3
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-get.md +33 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-health-list.md +30 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-get.md +24 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-healthissue-list.md +34 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-get.md +28 -0
- package/docs/docs/cmd/tenant/serviceannouncement/serviceannouncement-message-list.md +34 -0
- package/npm-shrinkwrap.json +1329 -1499
- package/package.json +39 -27
- package/dist/Utils.js +0 -568
- package/dist/m365/aad/commands/o365group/Group.js +0 -3
- package/dist/m365/aad/commands/o365group/GroupUser.js +0 -3
- package/dist/m365/base/AadCommand.js +0 -10
- package/dist/m365/base/GraphItemsListCommand.js +0 -46
- package/dist/m365/base/GraphResponse.js +0 -3
- package/dist/m365/base/GraphResponseError.js +0 -3
- package/dist/m365/spo/ClientSvc.js +0 -128
- package/dist/m365/spo/FolderExtensions.js +0 -101
- package/dist/m365/spo/spo.js +0 -3
|
@@ -3,10 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BaseProjectCommand = void 0;
|
|
4
4
|
const fs = require("fs");
|
|
5
5
|
const path = require("path");
|
|
6
|
-
const
|
|
6
|
+
const utils_1 = require("../../../../utils");
|
|
7
7
|
const AnonymousCommand_1 = require("../../../base/AnonymousCommand");
|
|
8
8
|
const model_1 = require("./model");
|
|
9
|
-
const project_upgrade_1 = require("./project-upgrade/");
|
|
10
9
|
class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
11
10
|
constructor() {
|
|
12
11
|
super(...arguments);
|
|
@@ -37,7 +36,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
37
36
|
const configJsonPath = path.join(projectRootPath, 'config/config.json');
|
|
38
37
|
if (fs.existsSync(configJsonPath)) {
|
|
39
38
|
try {
|
|
40
|
-
const source =
|
|
39
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(configJsonPath, 'utf-8'));
|
|
41
40
|
project.configJson = JSON.parse(source);
|
|
42
41
|
project.configJson.source = source;
|
|
43
42
|
}
|
|
@@ -46,7 +45,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
46
45
|
const copyAssetsJsonPath = path.join(projectRootPath, 'config/copy-assets.json');
|
|
47
46
|
if (fs.existsSync(copyAssetsJsonPath)) {
|
|
48
47
|
try {
|
|
49
|
-
const source =
|
|
48
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(copyAssetsJsonPath, 'utf-8'));
|
|
50
49
|
project.copyAssetsJson = JSON.parse(source);
|
|
51
50
|
project.copyAssetsJson.source = source;
|
|
52
51
|
}
|
|
@@ -55,7 +54,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
55
54
|
const deployAzureStorageJsonPath = path.join(projectRootPath, 'config/deploy-azure-storage.json');
|
|
56
55
|
if (fs.existsSync(deployAzureStorageJsonPath)) {
|
|
57
56
|
try {
|
|
58
|
-
const source =
|
|
57
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(deployAzureStorageJsonPath, 'utf-8'));
|
|
59
58
|
project.deployAzureStorageJson = JSON.parse(source);
|
|
60
59
|
project.deployAzureStorageJson.source = source;
|
|
61
60
|
}
|
|
@@ -64,7 +63,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
64
63
|
const packageJsonPath = path.join(projectRootPath, 'package.json');
|
|
65
64
|
if (fs.existsSync(packageJsonPath)) {
|
|
66
65
|
try {
|
|
67
|
-
const source =
|
|
66
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
68
67
|
project.packageJson = JSON.parse(source);
|
|
69
68
|
project.packageJson.source = source;
|
|
70
69
|
}
|
|
@@ -73,7 +72,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
73
72
|
const packageSolutionJsonPath = path.join(projectRootPath, 'config/package-solution.json');
|
|
74
73
|
if (fs.existsSync(packageSolutionJsonPath)) {
|
|
75
74
|
try {
|
|
76
|
-
const source =
|
|
75
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(packageSolutionJsonPath, 'utf-8'));
|
|
77
76
|
project.packageSolutionJson = JSON.parse(source);
|
|
78
77
|
project.packageSolutionJson.source = source;
|
|
79
78
|
}
|
|
@@ -82,7 +81,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
82
81
|
const serveJsonPath = path.join(projectRootPath, 'config/serve.json');
|
|
83
82
|
if (fs.existsSync(serveJsonPath)) {
|
|
84
83
|
try {
|
|
85
|
-
const source =
|
|
84
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(serveJsonPath, 'utf-8'));
|
|
86
85
|
project.serveJson = JSON.parse(source);
|
|
87
86
|
project.serveJson.source = source;
|
|
88
87
|
}
|
|
@@ -91,7 +90,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
91
90
|
const tsConfigJsonPath = path.join(projectRootPath, 'tsconfig.json');
|
|
92
91
|
if (fs.existsSync(tsConfigJsonPath)) {
|
|
93
92
|
try {
|
|
94
|
-
const source =
|
|
93
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(tsConfigJsonPath, 'utf-8'));
|
|
95
94
|
project.tsConfigJson = JSON.parse(source);
|
|
96
95
|
project.tsConfigJson.source = source;
|
|
97
96
|
}
|
|
@@ -100,7 +99,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
100
99
|
const tsLintJsonPath = path.join(projectRootPath, 'config/tslint.json');
|
|
101
100
|
if (fs.existsSync(tsLintJsonPath)) {
|
|
102
101
|
try {
|
|
103
|
-
const source =
|
|
102
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(tsLintJsonPath, 'utf-8'));
|
|
104
103
|
project.tsLintJson = JSON.parse(source);
|
|
105
104
|
project.tsLintJson.source = source;
|
|
106
105
|
}
|
|
@@ -109,7 +108,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
109
108
|
const tsLintJsonRootPath = path.join(projectRootPath, 'tslint.json');
|
|
110
109
|
if (fs.existsSync(tsLintJsonRootPath)) {
|
|
111
110
|
try {
|
|
112
|
-
const source =
|
|
111
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(tsLintJsonRootPath, 'utf-8'));
|
|
113
112
|
project.tsLintJsonRoot = JSON.parse(source);
|
|
114
113
|
project.tsLintJsonRoot.source = source;
|
|
115
114
|
}
|
|
@@ -118,7 +117,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
118
117
|
const writeManifestJsonPath = path.join(projectRootPath, 'config/write-manifests.json');
|
|
119
118
|
if (fs.existsSync(writeManifestJsonPath)) {
|
|
120
119
|
try {
|
|
121
|
-
const source =
|
|
120
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(writeManifestJsonPath, 'utf-8'));
|
|
122
121
|
project.writeManifestsJson = JSON.parse(source);
|
|
123
122
|
project.writeManifestsJson.source = source;
|
|
124
123
|
}
|
|
@@ -127,7 +126,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
127
126
|
const yoRcJsonPath = path.join(projectRootPath, '.yo-rc.json');
|
|
128
127
|
if (fs.existsSync(yoRcJsonPath)) {
|
|
129
128
|
try {
|
|
130
|
-
const source =
|
|
129
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(yoRcJsonPath, 'utf-8'));
|
|
131
130
|
project.yoRcJson = JSON.parse(source);
|
|
132
131
|
project.yoRcJson.source = source;
|
|
133
132
|
}
|
|
@@ -143,7 +142,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
143
142
|
const vsCodeSettingsPath = path.join(projectRootPath, '.vscode', 'settings.json');
|
|
144
143
|
if (fs.existsSync(vsCodeSettingsPath)) {
|
|
145
144
|
try {
|
|
146
|
-
const source =
|
|
145
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(vsCodeSettingsPath, 'utf-8'));
|
|
147
146
|
project.vsCode.settingsJson = JSON.parse(source);
|
|
148
147
|
project.vsCode.settingsJson.source = source;
|
|
149
148
|
}
|
|
@@ -152,7 +151,7 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
152
151
|
const vsCodeExtensionsPath = path.join(projectRootPath, '.vscode', 'extensions.json');
|
|
153
152
|
if (fs.existsSync(vsCodeExtensionsPath)) {
|
|
154
153
|
try {
|
|
155
|
-
const source =
|
|
154
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(vsCodeExtensionsPath, 'utf-8'));
|
|
156
155
|
project.vsCode.extensionsJson = JSON.parse(source);
|
|
157
156
|
project.vsCode.extensionsJson.source = source;
|
|
158
157
|
}
|
|
@@ -161,17 +160,17 @@ class BaseProjectCommand extends AnonymousCommand_1.default {
|
|
|
161
160
|
const vsCodeLaunchPath = path.join(projectRootPath, '.vscode', 'launch.json');
|
|
162
161
|
if (fs.existsSync(vsCodeLaunchPath)) {
|
|
163
162
|
try {
|
|
164
|
-
const source =
|
|
163
|
+
const source = utils_1.formatting.removeSingleLineComments(fs.readFileSync(vsCodeLaunchPath, 'utf-8'));
|
|
165
164
|
project.vsCode.launchJson = JSON.parse(source);
|
|
166
165
|
project.vsCode.launchJson.source = source;
|
|
167
166
|
}
|
|
168
167
|
catch (_r) { }
|
|
169
168
|
}
|
|
170
|
-
const srcFiles =
|
|
169
|
+
const srcFiles = utils_1.fsUtil.readdirR(path.join(projectRootPath, 'src'));
|
|
171
170
|
const manifestFiles = srcFiles.filter(f => f.endsWith('.manifest.json'));
|
|
172
171
|
const manifests = manifestFiles.map((f) => {
|
|
173
|
-
const manifestStr =
|
|
174
|
-
const manifest =
|
|
172
|
+
const manifestStr = utils_1.formatting.removeSingleLineComments(fs.readFileSync(f, 'utf-8'));
|
|
173
|
+
const manifest = utils_1.formatting.parseJsonWithBom(manifestStr);
|
|
175
174
|
manifest.path = f;
|
|
176
175
|
manifest.source = manifestStr;
|
|
177
176
|
return manifest;
|
|
@@ -16,5 +16,4 @@ __exportStar(require("./Finding"), exports);
|
|
|
16
16
|
__exportStar(require("./FindingToReport"), exports);
|
|
17
17
|
__exportStar(require("./Hash"), exports);
|
|
18
18
|
__exportStar(require("./Occurrence"), exports);
|
|
19
|
-
__exportStar(require("./Utils"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001005_DEP_types_react = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001005_DEP_types_react extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion, add = true) {
|
|
@@ -11,7 +11,7 @@ class FN001005_DEP_types_react extends DependencyRule_1.DependencyRule {
|
|
|
11
11
|
return 'FN001005';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001005_DEP_types_react = FN001005_DEP_types_react;
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001006_DEP_types_react_dom.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001006_DEP_types_react_dom = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001006_DEP_types_react_dom extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion, add = true) {
|
|
@@ -11,7 +11,7 @@ class FN001006_DEP_types_react_dom extends DependencyRule_1.DependencyRule {
|
|
|
11
11
|
return 'FN001006';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001006_DEP_types_react_dom = FN001006_DEP_types_react_dom;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001008_DEP_react = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001008_DEP_react extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion) {
|
|
@@ -11,7 +11,7 @@ class FN001008_DEP_react extends DependencyRule_1.DependencyRule {
|
|
|
11
11
|
return 'FN001008';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001008_DEP_react = FN001008_DEP_react;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001009_DEP_react_dom = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001009_DEP_react_dom extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion) {
|
|
@@ -11,7 +11,7 @@ class FN001009_DEP_react_dom extends DependencyRule_1.DependencyRule {
|
|
|
11
11
|
return 'FN001009';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001009_DEP_react_dom = FN001009_DEP_react_dom;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001015_DEP_types_react_addons_shallow_compare = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001015_DEP_types_react_addons_shallow_compare extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion, add) {
|
|
@@ -11,7 +11,7 @@ class FN001015_DEP_types_react_addons_shallow_compare extends DependencyRule_1.D
|
|
|
11
11
|
return 'FN001015';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001015_DEP_types_react_addons_shallow_compare = FN001015_DEP_types_react_addons_shallow_compare;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001016_DEP_types_react_addons_update = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001016_DEP_types_react_addons_update extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion, add) {
|
|
@@ -11,7 +11,7 @@ class FN001016_DEP_types_react_addons_update extends DependencyRule_1.Dependency
|
|
|
11
11
|
return 'FN001016';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001016_DEP_types_react_addons_update = FN001016_DEP_types_react_addons_update;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001017_DEP_types_react_addons_test_utils = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001017_DEP_types_react_addons_test_utils extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion, add) {
|
|
@@ -11,7 +11,7 @@ class FN001017_DEP_types_react_addons_test_utils extends DependencyRule_1.Depend
|
|
|
11
11
|
return 'FN001017';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001017_DEP_types_react_addons_test_utils = FN001017_DEP_types_react_addons_test_utils;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001019_DEP_knockout = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001019_DEP_knockout extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion) {
|
|
@@ -11,7 +11,7 @@ class FN001019_DEP_knockout extends DependencyRule_1.DependencyRule {
|
|
|
11
11
|
return 'FN001019';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isKnockoutProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001019_DEP_knockout = FN001019_DEP_knockout;
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001020_DEP_types_knockout.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001020_DEP_types_knockout = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001020_DEP_types_knockout extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion) {
|
|
@@ -11,7 +11,7 @@ class FN001020_DEP_types_knockout extends DependencyRule_1.DependencyRule {
|
|
|
11
11
|
return 'FN001020';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isKnockoutProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001020_DEP_types_knockout = FN001020_DEP_types_knockout;
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001022_DEP_office_ui_fabric_react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN001022_DEP_office_ui_fabric_react = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN001022_DEP_office_ui_fabric_react extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion) {
|
|
@@ -11,7 +11,7 @@ class FN001022_DEP_office_ui_fabric_react extends DependencyRule_1.DependencyRul
|
|
|
11
11
|
return 'FN001022';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN001022_DEP_office_ui_fabric_react = FN001022_DEP_office_ui_fabric_react;
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002015_DEVDEP_types_react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN002015_DEVDEP_types_react = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN002015_DEVDEP_types_react extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion) {
|
|
@@ -11,7 +11,7 @@ class FN002015_DEVDEP_types_react extends DependencyRule_1.DependencyRule {
|
|
|
11
11
|
return 'FN002015';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN002015_DEVDEP_types_react = FN002015_DEVDEP_types_react;
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002016_DEVDEP_types_react_dom.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN002016_DEVDEP_types_react_dom = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const DependencyRule_1 = require("./DependencyRule");
|
|
6
6
|
class FN002016_DEVDEP_types_react_dom extends DependencyRule_1.DependencyRule {
|
|
7
7
|
constructor(packageVersion) {
|
|
@@ -11,7 +11,7 @@ class FN002016_DEVDEP_types_react_dom extends DependencyRule_1.DependencyRule {
|
|
|
11
11
|
return 'FN002016';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN002016_DEVDEP_types_react_dom = FN002016_DEVDEP_types_react_dom;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FN006005_CFG_PS_metadata = void 0;
|
|
4
|
+
const JsonRule_1 = require("./JsonRule");
|
|
5
|
+
class FN006005_CFG_PS_metadata extends JsonRule_1.JsonRule {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
get id() {
|
|
10
|
+
return 'FN006005';
|
|
11
|
+
}
|
|
12
|
+
get title() {
|
|
13
|
+
return 'package-solution.json metadata';
|
|
14
|
+
}
|
|
15
|
+
get description() {
|
|
16
|
+
return `In package-solution.json add metadata section`;
|
|
17
|
+
}
|
|
18
|
+
get resolution() {
|
|
19
|
+
return '';
|
|
20
|
+
}
|
|
21
|
+
get resolutionType() {
|
|
22
|
+
return 'json';
|
|
23
|
+
}
|
|
24
|
+
get severity() {
|
|
25
|
+
return 'Required';
|
|
26
|
+
}
|
|
27
|
+
get file() {
|
|
28
|
+
return './config/package-solution.json';
|
|
29
|
+
}
|
|
30
|
+
visit(project, findings) {
|
|
31
|
+
var _a;
|
|
32
|
+
if (!project.packageSolutionJson ||
|
|
33
|
+
!project.packageSolutionJson.solution) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (!project.packageSolutionJson.solution.metadata) {
|
|
37
|
+
const solutionDescription = `${(_a = project.packageJson) === null || _a === void 0 ? void 0 : _a.name} description`;
|
|
38
|
+
const resolution = {
|
|
39
|
+
solution: {
|
|
40
|
+
metadata: {
|
|
41
|
+
shortDescription: {
|
|
42
|
+
default: solutionDescription
|
|
43
|
+
},
|
|
44
|
+
longDescription: {
|
|
45
|
+
default: solutionDescription
|
|
46
|
+
},
|
|
47
|
+
screenshotPaths: [],
|
|
48
|
+
videoUrl: '',
|
|
49
|
+
categories: []
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const node = this.getAstNodeFromFile(project.packageSolutionJson, 'solution');
|
|
54
|
+
this.addFindingWithOccurrences([{
|
|
55
|
+
file: this.file,
|
|
56
|
+
resolution: JSON.stringify(resolution, null, 2),
|
|
57
|
+
position: this.getPositionFromNode(node)
|
|
58
|
+
}], findings);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.FN006005_CFG_PS_metadata = FN006005_CFG_PS_metadata;
|
|
63
|
+
//# sourceMappingURL=FN006005_CFG_PS_metadata.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FN006006_CFG_PS_features = void 0;
|
|
4
|
+
const JsonRule_1 = require("./JsonRule");
|
|
5
|
+
const uuid_1 = require("uuid");
|
|
6
|
+
class FN006006_CFG_PS_features extends JsonRule_1.JsonRule {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
}
|
|
10
|
+
get id() {
|
|
11
|
+
return 'FN006006';
|
|
12
|
+
}
|
|
13
|
+
get title() {
|
|
14
|
+
return 'package-solution.json features';
|
|
15
|
+
}
|
|
16
|
+
get description() {
|
|
17
|
+
return `In package-solution.json add features section`;
|
|
18
|
+
}
|
|
19
|
+
get resolution() {
|
|
20
|
+
return '';
|
|
21
|
+
}
|
|
22
|
+
get resolutionType() {
|
|
23
|
+
return 'json';
|
|
24
|
+
}
|
|
25
|
+
get severity() {
|
|
26
|
+
return 'Required';
|
|
27
|
+
}
|
|
28
|
+
get file() {
|
|
29
|
+
return './config/package-solution.json';
|
|
30
|
+
}
|
|
31
|
+
visit(project, findings) {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
if (!project.packageSolutionJson ||
|
|
34
|
+
!project.packageSolutionJson.solution) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (!project.packageSolutionJson.solution.features) {
|
|
38
|
+
const resolution = {
|
|
39
|
+
solution: {
|
|
40
|
+
features: [
|
|
41
|
+
{
|
|
42
|
+
title: `${(_a = project.packageJson) === null || _a === void 0 ? void 0 : _a.name} Feature`,
|
|
43
|
+
description: `The feature that activates elements of the ${(_b = project.packageJson) === null || _b === void 0 ? void 0 : _b.name} solution.`,
|
|
44
|
+
id: (0, uuid_1.v4)(),
|
|
45
|
+
version: project.packageSolutionJson.solution.version
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const node = this.getAstNodeFromFile(project.packageSolutionJson, 'solution');
|
|
51
|
+
this.addFindingWithOccurrences([{
|
|
52
|
+
file: this.file,
|
|
53
|
+
resolution: JSON.stringify(resolution, null, 2),
|
|
54
|
+
position: this.getPositionFromNode(node)
|
|
55
|
+
}], findings);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.FN006006_CFG_PS_features = FN006006_CFG_PS_features;
|
|
60
|
+
//# sourceMappingURL=FN006006_CFG_PS_features.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FN014008_CODE_launch_hostedWorkbench_type = void 0;
|
|
4
|
+
const path = require("path");
|
|
5
|
+
const JsonRule_1 = require("./JsonRule");
|
|
6
|
+
class FN014008_CODE_launch_hostedWorkbench_type extends JsonRule_1.JsonRule {
|
|
7
|
+
constructor(type) {
|
|
8
|
+
super();
|
|
9
|
+
this.type = type;
|
|
10
|
+
}
|
|
11
|
+
get id() {
|
|
12
|
+
return 'FN014008';
|
|
13
|
+
}
|
|
14
|
+
get title() {
|
|
15
|
+
return 'Hosted workbench type in .vscode/launch.json';
|
|
16
|
+
}
|
|
17
|
+
get description() {
|
|
18
|
+
return `In the .vscode/launch.json file, update the type property for the hosted workbench launch configuration`;
|
|
19
|
+
}
|
|
20
|
+
get resolution() {
|
|
21
|
+
return `{
|
|
22
|
+
"configurations": [
|
|
23
|
+
{
|
|
24
|
+
"type": "${this.type}"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}`;
|
|
28
|
+
}
|
|
29
|
+
get resolutionType() {
|
|
30
|
+
return 'json';
|
|
31
|
+
}
|
|
32
|
+
get severity() {
|
|
33
|
+
return 'Recommended';
|
|
34
|
+
}
|
|
35
|
+
get file() {
|
|
36
|
+
return '.vscode/launch.json';
|
|
37
|
+
}
|
|
38
|
+
visit(project, findings) {
|
|
39
|
+
if (!project.vsCode ||
|
|
40
|
+
!project.vsCode.launchJson ||
|
|
41
|
+
!project.vsCode.launchJson.configurations) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const occurrences = [];
|
|
45
|
+
project.vsCode.launchJson.configurations.forEach((configuration, i) => {
|
|
46
|
+
if (configuration.name === 'Hosted workbench' &&
|
|
47
|
+
configuration.type !== this.type) {
|
|
48
|
+
const node = this.getAstNodeFromFile(project.vsCode.launchJson, `configurations[${i}].url`);
|
|
49
|
+
occurrences.push({
|
|
50
|
+
file: path.relative(project.path, this.file),
|
|
51
|
+
resolution: this.resolution,
|
|
52
|
+
position: this.getPositionFromNode(node)
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
if (occurrences.length > 0) {
|
|
57
|
+
this.addFindingWithOccurrences(occurrences, findings);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.FN014008_CODE_launch_hostedWorkbench_type = FN014008_CODE_launch_hostedWorkbench_type;
|
|
62
|
+
//# sourceMappingURL=FN014008_CODE_launch_hostedWorkbench_type.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN020001_RES_types_react = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const ResolutionRule_1 = require("./ResolutionRule");
|
|
6
6
|
class FN020001_RES_types_react extends ResolutionRule_1.ResolutionRule {
|
|
7
7
|
constructor(packageVersion) {
|
|
@@ -11,7 +11,7 @@ class FN020001_RES_types_react extends ResolutionRule_1.ResolutionRule {
|
|
|
11
11
|
return 'FN020001';
|
|
12
12
|
}
|
|
13
13
|
customCondition(project) {
|
|
14
|
-
return
|
|
14
|
+
return utils_1.spfx.isReactProject(project);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.FN020001_RES_types_react = FN020001_RES_types_react;
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022001_SCSS_remove_fabric_react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN022001_SCSS_remove_fabric_react = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const ScssRule_1 = require("./ScssRule");
|
|
6
6
|
class FN022001_SCSS_remove_fabric_react extends ScssRule_1.ScssRule {
|
|
7
7
|
constructor(importValue) {
|
|
@@ -30,7 +30,7 @@ class FN022001_SCSS_remove_fabric_react extends ScssRule_1.ScssRule {
|
|
|
30
30
|
return '';
|
|
31
31
|
}
|
|
32
32
|
visit(project, findings) {
|
|
33
|
-
if (
|
|
33
|
+
if (utils_1.spfx.isReactProject(project) === false) {
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
if (!project.scssFiles ||
|
package/dist/m365/spfx/commands/project/project-upgrade/rules/FN022002_SCSS_add_fabric_react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FN022002_SCSS_add_fabric_react = void 0;
|
|
4
|
-
const
|
|
4
|
+
const utils_1 = require("../../../../../../utils");
|
|
5
5
|
const ScssRule_1 = require("./ScssRule");
|
|
6
6
|
class FN022002_SCSS_add_fabric_react extends ScssRule_1.ScssRule {
|
|
7
7
|
constructor(importValue, addIfContains) {
|
|
@@ -31,7 +31,7 @@ class FN022002_SCSS_add_fabric_react extends ScssRule_1.ScssRule {
|
|
|
31
31
|
return '';
|
|
32
32
|
}
|
|
33
33
|
visit(project, findings) {
|
|
34
|
-
if (
|
|
34
|
+
if (utils_1.spfx.isReactProject(project) === false) {
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
if (!project.scssFiles ||
|