diff --git a/CHANGELOG.md b/CHANGELOG.md index a6f2aeec..dc12b9bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,226 +1,148 @@ ## [2.2.8](https://github.com/salesforcecli/plugin-trust/compare/2.2.7...2.2.8) (2023-01-15) - ### Bug Fixes -* **deps:** bump @salesforce/sf-plugins-core from 1.20.0 to 1.22.1 ([6abbc10](https://github.com/salesforcecli/plugin-trust/commit/6abbc106cd56fd54c9a043a15ad1b6ab123c7ea2)) - - +- **deps:** bump @salesforce/sf-plugins-core from 1.20.0 to 1.22.1 ([6abbc10](https://github.com/salesforcecli/plugin-trust/commit/6abbc106cd56fd54c9a043a15ad1b6ab123c7ea2)) ## [2.2.7](https://github.com/salesforcecli/plugin-trust/compare/2.2.6...2.2.7) (2023-01-15) - ### Bug Fixes -* **deps:** bump npm from 8.15.1 to 8.19.3 ([1236c6b](https://github.com/salesforcecli/plugin-trust/commit/1236c6bcf4ab73c24c85df4dbd8afeff50a20a19)) - - +- **deps:** bump npm from 8.15.1 to 8.19.3 ([1236c6b](https://github.com/salesforcecli/plugin-trust/commit/1236c6bcf4ab73c24c85df4dbd8afeff50a20a19)) ## [2.2.6](https://github.com/salesforcecli/plugin-trust/compare/2.2.5...2.2.6) (2023-01-08) - ### Bug Fixes -* **deps:** bump json5 from 1.0.1 to 1.0.2 ([4480d4e](https://github.com/salesforcecli/plugin-trust/commit/4480d4ed77359b90596456220431ad7fdcc468f3)) - - +- **deps:** bump json5 from 1.0.1 to 1.0.2 ([4480d4e](https://github.com/salesforcecli/plugin-trust/commit/4480d4ed77359b90596456220431ad7fdcc468f3)) ## [2.2.5](https://github.com/salesforcecli/plugin-trust/compare/2.2.4...2.2.5) (2023-01-07) - ### Bug Fixes -* **deps:** bump @salesforce/core from 3.32.9 to 3.32.12 ([89d9416](https://github.com/salesforcecli/plugin-trust/commit/89d9416e2e6e78bbc97531dbbbd562c648643ec0)) - - +- **deps:** bump @salesforce/core from 3.32.9 to 3.32.12 ([89d9416](https://github.com/salesforcecli/plugin-trust/commit/89d9416e2e6e78bbc97531dbbbd562c648643ec0)) ## [2.2.4](https://github.com/salesforcecli/plugin-trust/compare/2.2.3...2.2.4) (2023-01-01) - ### Bug Fixes -* **deps:** bump got from 11.8.5 to 11.8.6 ([7efb3e6](https://github.com/salesforcecli/plugin-trust/commit/7efb3e653cd56af18d71f2c068ade871dbdba02f)) - - +- **deps:** bump got from 11.8.5 to 11.8.6 ([7efb3e6](https://github.com/salesforcecli/plugin-trust/commit/7efb3e653cd56af18d71f2c068ade871dbdba02f)) ## [2.2.3](https://github.com/salesforcecli/plugin-trust/compare/2.2.2...2.2.3) (2022-12-18) - ### Bug Fixes -* **deps:** bump @oclif/core from 1.21.0 to 1.22.0 ([80b9f19](https://github.com/salesforcecli/plugin-trust/commit/80b9f194593001c7ef02a10063332d5e688ef04d)) - - +- **deps:** bump @oclif/core from 1.21.0 to 1.22.0 ([80b9f19](https://github.com/salesforcecli/plugin-trust/commit/80b9f194593001c7ef02a10063332d5e688ef04d)) ## [2.2.2](https://github.com/salesforcecli/plugin-trust/compare/2.2.1...2.2.2) (2022-12-10) - ### Bug Fixes -* **deps:** bump @salesforce/core from 3.32.8 to 3.32.9 ([dab04d1](https://github.com/salesforcecli/plugin-trust/commit/dab04d1827ce5bde552899172ab8b39611c6f937)) - - +- **deps:** bump @salesforce/core from 3.32.8 to 3.32.9 ([dab04d1](https://github.com/salesforcecli/plugin-trust/commit/dab04d1827ce5bde552899172ab8b39611c6f937)) ## [2.2.1](https://github.com/salesforcecli/plugin-trust/compare/2.2.0...2.2.1) (2022-12-08) - ### Bug Fixes -* **deps:** bump @oclif/core from 1.20.4 to 1.21.0 ([ac64902](https://github.com/salesforcecli/plugin-trust/commit/ac649026352ee3276dcc733dff1ec060251553ce)) - - +- **deps:** bump @oclif/core from 1.20.4 to 1.21.0 ([ac64902](https://github.com/salesforcecli/plugin-trust/commit/ac649026352ee3276dcc733dff1ec060251553ce)) # [2.2.0](https://github.com/salesforcecli/plugin-trust/compare/2.1.0...2.2.0) (2022-12-07) - ### Features -* use sfCommand and testing improvements ([d801eef](https://github.com/salesforcecli/plugin-trust/commit/d801eef40cc5fa8e49820b52e8ed5d6cca02dadc)) - - +- use sfCommand and testing improvements ([d801eef](https://github.com/salesforcecli/plugin-trust/commit/d801eef40cc5fa8e49820b52e8ed5d6cca02dadc)) # [2.1.0](https://github.com/salesforcecli/plugin-trust/compare/2.0.4...2.1.0) (2022-10-06) - ### Features -* use sf-plugins-core for prompt ([#324](https://github.com/salesforcecli/plugin-trust/issues/324)) ([32b4a59](https://github.com/salesforcecli/plugin-trust/commit/32b4a5958812e722167abd4ac81f3afec836f38f)) - - +- use sf-plugins-core for prompt ([#324](https://github.com/salesforcecli/plugin-trust/issues/324)) ([32b4a59](https://github.com/salesforcecli/plugin-trust/commit/32b4a5958812e722167abd4ac81f3afec836f38f)) ## [2.0.4](https://github.com/salesforcecli/plugin-trust/compare/v2.0.3...2.0.4) (2022-09-14) - ### Bug Fixes -* replace old cli-ux imports ([#306](https://github.com/salesforcecli/plugin-trust/issues/306)) ([27bec3f](https://github.com/salesforcecli/plugin-trust/commit/27bec3fc8ed74b93a47ab22d4920e11e7fb9a636)) - - +- replace old cli-ux imports ([#306](https://github.com/salesforcecli/plugin-trust/issues/306)) ([27bec3f](https://github.com/salesforcecli/plugin-trust/commit/27bec3fc8ed74b93a47ab22d4920e11e7fb9a636)) ## [2.0.3](https://github.com/salesforcecli/plugin-trust/compare/v2.0.2...v2.0.3) (2022-08-05) - ### Bug Fixes -* replace `request` with `got` for HTTP calls ([#289](https://github.com/salesforcecli/plugin-trust/issues/289)) ([14e75a5](https://github.com/salesforcecli/plugin-trust/commit/14e75a536c7a6fccda6585fb20ba3a2d04be8389)), closes [#290](https://github.com/salesforcecli/plugin-trust/issues/290) - - +- replace `request` with `got` for HTTP calls ([#289](https://github.com/salesforcecli/plugin-trust/issues/289)) ([14e75a5](https://github.com/salesforcecli/plugin-trust/commit/14e75a536c7a6fccda6585fb20ba3a2d04be8389)), closes [#290](https://github.com/salesforcecli/plugin-trust/issues/290) ## [2.0.2](https://github.com/salesforcecli/plugin-trust/compare/v2.0.1...v2.0.2) (2022-08-03) - ### Bug Fixes -* update help messages ([#287](https://github.com/salesforcecli/plugin-trust/issues/287)) ([1a4c3b8](https://github.com/salesforcecli/plugin-trust/commit/1a4c3b896a19e87726425e215be235b1b6929d01)) - - +- update help messages ([#287](https://github.com/salesforcecli/plugin-trust/issues/287)) ([1a4c3b8](https://github.com/salesforcecli/plugin-trust/commit/1a4c3b896a19e87726425e215be235b1b6929d01)) ## [2.0.1](https://github.com/salesforcecli/plugin-trust/compare/v2.0.0...v2.0.1) (2022-06-08) - ### Bug Fixes -* bump npm to v8 to remove vulnerable json-schema ([#270](https://github.com/salesforcecli/plugin-trust/issues/270)) ([af03a4d](https://github.com/salesforcecli/plugin-trust/commit/af03a4d7075cb51f869807259ad3f951e02caac8)) - - +- bump npm to v8 to remove vulnerable json-schema ([#270](https://github.com/salesforcecli/plugin-trust/issues/270)) ([af03a4d](https://github.com/salesforcecli/plugin-trust/commit/af03a4d7075cb51f869807259ad3f951e02caac8)) # [2.0.0](https://github.com/salesforcecli/plugin-trust/compare/v1.1.0...v2.0.0) (2022-04-20) - - # [1.1.0](https://github.com/salesforcecli/plugin-trust/compare/v1.0.11...v1.1.0) (2021-12-02) - ### Features -* bump deps ([6edb393](https://github.com/salesforcecli/plugin-trust/commit/6edb393b14afb094cfaf8b85e1d95b4f0dd79fbc)) - - +- bump deps ([6edb393](https://github.com/salesforcecli/plugin-trust/commit/6edb393b14afb094cfaf8b85e1d95b4f0dd79fbc)) ## [1.0.11](https://github.com/salesforcecli/plugin-trust/compare/v1.0.10...v1.0.11) (2021-11-03) - ### Bug Fixes -* poll `npm pack` until tarball is available ([#185](https://github.com/salesforcecli/plugin-trust/issues/185)) ([001c1ab](https://github.com/salesforcecli/plugin-trust/commit/001c1ab3c79277bf411bc3e4459396e859e5672c)) - - +- poll `npm pack` until tarball is available ([#185](https://github.com/salesforcecli/plugin-trust/issues/185)) ([001c1ab](https://github.com/salesforcecli/plugin-trust/commit/001c1ab3c79277bf411bc3e4459396e859e5672c)) ## [1.0.10](https://github.com/salesforcecli/plugin-trust/compare/v1.0.9...v1.0.10) (2021-10-12) - ### Bug Fixes -* update dependencies ([094ea03](https://github.com/salesforcecli/plugin-trust/commit/094ea03c1f99333b75008376d8be1494e3a794ea)) - - +- update dependencies ([094ea03](https://github.com/salesforcecli/plugin-trust/commit/094ea03c1f99333b75008376d8be1494e3a794ea)) ## [1.0.9](https://github.com/salesforcecli/plugin-trust/compare/v1.0.8...v1.0.9) (2021-10-12) - - ## [1.0.8](https://github.com/salesforcecli/plugin-trust/compare/v1.0.7...v1.0.8) (2021-09-24) - ### Bug Fixes -* verify fails if node not installed ([#167](https://github.com/salesforcecli/plugin-trust/issues/167)) ([0393b90](https://github.com/salesforcecli/plugin-trust/commit/0393b906a30e8858816625517eda5db69377c178)), closes [#168](https://github.com/salesforcecli/plugin-trust/issues/168) - - +- verify fails if node not installed ([#167](https://github.com/salesforcecli/plugin-trust/issues/167)) ([0393b90](https://github.com/salesforcecli/plugin-trust/commit/0393b906a30e8858816625517eda5db69377c178)), closes [#168](https://github.com/salesforcecli/plugin-trust/issues/168) ## [1.0.7](https://github.com/salesforcecli/plugin-trust/compare/v1.0.6...v1.0.7) (2021-09-17) - ### Bug Fixes -* use tag when getting npm meta ([#165](https://github.com/salesforcecli/plugin-trust/issues/165)) ([e9fe7f2](https://github.com/salesforcecli/plugin-trust/commit/e9fe7f229a716e4685b7cd54ee753c02667bccd8)) - - +- use tag when getting npm meta ([#165](https://github.com/salesforcecli/plugin-trust/issues/165)) ([e9fe7f2](https://github.com/salesforcecli/plugin-trust/commit/e9fe7f229a716e4685b7cd54ee753c02667bccd8)) ## [1.0.6](https://github.com/salesforcecli/plugin-trust/compare/v1.0.5...v1.0.6) (2021-09-10) - ### Bug Fixes -* install plugin-trust as an executable ([#164](https://github.com/salesforcecli/plugin-trust/issues/164)) ([34b293c](https://github.com/salesforcecli/plugin-trust/commit/34b293c1e9276e7653aff41a9fc8e17635ee0a92)) - - +- install plugin-trust as an executable ([#164](https://github.com/salesforcecli/plugin-trust/issues/164)) ([34b293c](https://github.com/salesforcecli/plugin-trust/commit/34b293c1e9276e7653aff41a9fc8e17635ee0a92)) ## [1.0.5](https://github.com/salesforcecli/plugin-trust/compare/v1.0.4...v1.0.5) (2021-09-07) - ### Bug Fixes -* use npm instead of http ([#154](https://github.com/salesforcecli/plugin-trust/issues/154)) ([2bce1f9](https://github.com/salesforcecli/plugin-trust/commit/2bce1f9bd331b75d81f0309bc46962b5c5d19b16)) - - +- use npm instead of http ([#154](https://github.com/salesforcecli/plugin-trust/issues/154)) ([2bce1f9](https://github.com/salesforcecli/plugin-trust/commit/2bce1f9bd331b75d81f0309bc46962b5c5d19b16)) ## [1.0.4](https://github.com/salesforcecli/plugin-trust/compare/v1.0.3...v1.0.4) (2021-05-10) - - ## [1.0.3](https://github.com/salesforcecli/plugin-trust/compare/v1.0.2...v1.0.3) (2021-04-09) - ### Bug Fixes -* leif .yml merge [skip-validate-pr] ([2e6d278](https://github.com/salesforcecli/plugin-trust/commit/2e6d2785cf04497ea87a871564adc68c5a19f6be)) -* leif .yml merge [skip-validate-pr] ([3703564](https://github.com/salesforcecli/plugin-trust/commit/37035649f051b0d42667be7bdf3f878c631d43a9)) - - +- leif .yml merge [skip-validate-pr] ([2e6d278](https://github.com/salesforcecli/plugin-trust/commit/2e6d2785cf04497ea87a871564adc68c5a19f6be)) +- leif .yml merge [skip-validate-pr] ([3703564](https://github.com/salesforcecli/plugin-trust/commit/37035649f051b0d42667be7bdf3f878c631d43a9)) ## [1.0.2](https://github.com/salesforcecli/plugin-trust/compare/v1.0.1...v1.0.2) (2021-01-11) - - ## [1.0.1](https://github.com/salesforcecli/plugin-trust/compare/v1.0.0...v1.0.1) (2020-11-20) - ### Bug Fixes -* add command, test, config/readme housekeeping ([218b596](https://github.com/salesforcecli/plugin-trust/commit/218b5965e4db531d478429abf9e85b3ce5e5f749)) -* code review 1 ([836ecbc](https://github.com/salesforcecli/plugin-trust/commit/836ecbcac86b47d4b9a5b18fcb565c57d71d8295)) -* remove plugins description from package ([10d0de6](https://github.com/salesforcecli/plugin-trust/commit/10d0de6882bcb7519ec8fcfa1d3c687c313cf1c8)) - - - +- add command, test, config/readme housekeeping ([218b596](https://github.com/salesforcecli/plugin-trust/commit/218b5965e4db531d478429abf9e85b3ce5e5f749)) +- code review 1 ([836ecbc](https://github.com/salesforcecli/plugin-trust/commit/836ecbcac86b47d4b9a5b18fcb565c57d71d8295)) +- remove plugins description from package ([10d0de6](https://github.com/salesforcecli/plugin-trust/commit/10d0de6882bcb7519ec8fcfa1d3c687c313cf1c8)) diff --git a/LICENSE.txt b/LICENSE.txt index d1c9164c..f2cee7bb 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2022, Salesforce.com, Inc. +Copyright (c) 2023, Salesforce.com, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/package.json b/package.json index 23c26ab0..ec6d7732 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,11 @@ }, "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { - "@oclif/core": "^1.22.0", + "@oclif/core": "^1.25.0", "@salesforce/core": "^3.32.12", + "@salesforce/plugin-telemetry": "^2.0.5", "@salesforce/sf-plugins-core": "^1.22.1", + "@salesforce/telemetry": "^3.2.13", "got": "^11", "npm": "^8.19.3", "npm-run-path": "^4.0.1", @@ -80,7 +82,8 @@ "hooks": { "plugins:preinstall:verify:signature": [ "./lib/hooks/verifyInstallSignature.js" - ] + ], + "jit_plugin_not_installed": "./lib/hooks/jitPluginInstall.js" }, "devPlugins": [ "@oclif/plugin-help", @@ -122,4 +125,4 @@ "publishConfig": { "access": "public" } -} \ No newline at end of file +} diff --git a/src/hooks/jitPluginInstall.ts b/src/hooks/jitPluginInstall.ts new file mode 100644 index 00000000..ffffb71a --- /dev/null +++ b/src/hooks/jitPluginInstall.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2022, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ +import * as os from 'os'; +import { Hook } from '@oclif/core'; +import { SfError } from '@salesforce/core'; +import { TelemetryGlobal } from '@salesforce/plugin-telemetry/lib/telemetryGlobal'; +import { AppInsights } from '@salesforce/telemetry/lib/appInsights'; + +declare const global: TelemetryGlobal; + +const hook: Hook<'jit_plugin_not_installed'> = async function (opts) { + try { + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call + global.cliTelemetry?.record({ + eventName: 'JIT_INSTALL_STARTED', + type: 'EVENT', + version: opts.config.version, + plugin: opts.command.pluginName, + command: opts.command.id, + }); + + await opts.config.runCommand('plugins:install', [`${opts.command.pluginName}@${opts.pluginVersion}`]); + + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call + global.cliTelemetry?.record({ + eventName: 'JIT_INSTALL_SUCCESS', + type: 'EVENT', + version: opts.config.version, + plugin: opts.command.pluginName, + command: opts.command.id, + }); + } catch (error) { + const err = error as Error; + + // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call + global.cliTelemetry?.record({ + eventName: 'JIT_INSTALL_FAILED', + type: 'EVENT', + message: err.message, + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access + stackTrace: err?.stack?.replace(new RegExp(os.homedir(), 'g'), AppInsights.GDPR_HIDDEN), + version: opts.config.version, + plugin: opts.command.pluginName, + command: opts.command.id, + }); + + throw new SfError(`Could not install ${opts.command.pluginName}`, 'JitPluginInstallError'); + } +}; + +export default hook; diff --git a/yarn.lock b/yarn.lock index 0123a97e..4b327004 100644 --- a/yarn.lock +++ b/yarn.lock @@ -848,10 +848,78 @@ is-wsl "^2.1.1" tslib "^2.3.1" -"@oclif/core@^1.20.3", "@oclif/core@^1.20.4", "@oclif/core@^1.21.0", "@oclif/core@^1.22.0", "@oclif/core@^1.23.0", "@oclif/core@^1.23.1", "@oclif/core@^1.6.3": - version "1.24.0" - resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.24.0.tgz#e94e2f3a1259ebb3cc867d04b12c5bfc31c21f50" - integrity sha512-J41suyV4fLfLcRRySZdtgFYSjIlpYqD90SY01Fm4+ZJUMcfDh/eQAD4sogyYOsIT0bfEzYOyYCjmfHmgcoX5aA== +"@oclif/core@^1.20.3", "@oclif/core@^1.20.4", "@oclif/core@^1.21.0", "@oclif/core@^1.23.0", "@oclif/core@^1.6.3": + version "1.23.1" + resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.23.1.tgz#bebbbc4e02a4c1a4216d64165f892037f8a1e14a" + integrity sha512-nz7wVGesJ1Qg74p1KNKluZpQ3Z042mqdaRlczEI4Xwqj5s9jjdDBCDHNkiGzV4UAKzicVzipNj6qqhyUWKYnaA== + dependencies: + "@oclif/linewrap" "^1.0.0" + "@oclif/screen" "^3.0.3" + ansi-escapes "^4.3.2" + ansi-styles "^4.3.0" + cardinal "^2.1.1" + chalk "^4.1.2" + clean-stack "^3.0.1" + cli-progress "^3.10.0" + debug "^4.3.4" + ejs "^3.1.6" + fs-extra "^9.1.0" + get-package-type "^0.1.0" + globby "^11.1.0" + hyperlinker "^1.0.0" + indent-string "^4.0.0" + is-wsl "^2.2.0" + js-yaml "^3.14.1" + natural-orderby "^2.0.3" + object-treeify "^1.1.33" + password-prompt "^1.1.2" + semver "^7.3.7" + string-width "^4.2.3" + strip-ansi "^6.0.1" + supports-color "^8.1.1" + supports-hyperlinks "^2.2.0" + tslib "^2.4.1" + widest-line "^3.1.0" + wrap-ansi "^7.0.0" + +"@oclif/core@^1.23.1", "@oclif/core@^1.25.0": + version "1.25.0" + resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.25.0.tgz#a3891f903bf211ce1f3c8a05419b686f02c5bbd6" + integrity sha512-vS8L5Uqc5Wuq3zmKVvX5LLcyxhfH2X2q+LG1P6czzkh6k09uLeDaZfwaYPXD7ItM4Vfy+KEctfKiWePeLDnOpg== + dependencies: + "@oclif/linewrap" "^1.0.0" + "@oclif/screen" "^3.0.4" + ansi-escapes "^4.3.2" + ansi-styles "^4.3.0" + cardinal "^2.1.1" + chalk "^4.1.2" + clean-stack "^3.0.1" + cli-progress "^3.10.0" + debug "^4.3.4" + ejs "^3.1.6" + fs-extra "^9.1.0" + get-package-type "^0.1.0" + globby "^11.1.0" + hyperlinker "^1.0.0" + indent-string "^4.0.0" + is-wsl "^2.2.0" + js-yaml "^3.14.1" + natural-orderby "^2.0.3" + object-treeify "^1.1.33" + password-prompt "^1.1.2" + semver "^7.3.7" + string-width "^4.2.3" + strip-ansi "^6.0.1" + supports-color "^8.1.1" + supports-hyperlinks "^2.2.0" + tslib "^2.4.1" + widest-line "^3.1.0" + wrap-ansi "^7.0.0" + +"@oclif/core@^1.8.0": + version "1.23.2" + resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.23.2.tgz#6779f412d787ddc885b507cb00927dae71b641da" + integrity sha512-NdaOaUDTRc6g1yTkOAKiEVOiQhc5CNcWNXa0QF4IS4yTjNqp4DOzgtF9Dwe585nPEKzSbTBiz1wyLOa4qIHSRQ== dependencies: "@oclif/linewrap" "^1.0.0" "@oclif/screen" "^3.0.4" @@ -1140,7 +1208,7 @@ strip-ansi "6.0.1" ts-retry-promise "^0.7.0" -"@salesforce/core@^3.30.9", "@salesforce/core@^3.32.12", "@salesforce/core@^3.8.0": +"@salesforce/core@^3.30.9", "@salesforce/core@^3.32.12", "@salesforce/core@^3.32.2", "@salesforce/core@^3.8.0": version "3.32.12" resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-3.32.12.tgz#853cc5b6a5f95d4896b2d34a40a6042ef9aa6d2c" integrity sha512-27rqSiQWul7b/OkJs19FYDv2M/S4oI4efiGv+6sR7UWv7D7CG1P+0XpgLS3d9xRYF30h98n6VQr4W2a+BWFRvA== @@ -1233,6 +1301,17 @@ mkdirp "^1.0.4" tslib "^2" +"@salesforce/plugin-telemetry@^2.0.5": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@salesforce/plugin-telemetry/-/plugin-telemetry-2.0.5.tgz#214cfdfad8204127836ae315828c9c65c602720e" + integrity sha512-PqxGQPnmao0dx+ZsaorAC9jKVcUIgVaXivOpRAE6QnErF+/QsgcjL9Okh7osyPumDp9hRO1dxo8InNu0KMkLow== + dependencies: + "@oclif/core" "^1.8.0" + "@salesforce/core" "^3.32.2" + "@salesforce/telemetry" "^3.2.5" + debug "^4.3.4" + tslib "^2" + "@salesforce/prettier-config@^0.0.2": version "0.0.2" resolved "https://registry.yarnpkg.com/@salesforce/prettier-config/-/prettier-config-0.0.2.tgz#ded39bf7cb75238edc9db6dd093649111350f8bc" @@ -1243,7 +1322,7 @@ resolved "https://registry.yarnpkg.com/@salesforce/schemas/-/schemas-1.4.0.tgz#7dff427c8059895d8108176047aee600703c82d6" integrity sha512-BJ25uphssN42Zy6kksheFHMTLiR98AAHe/Wxnv0T4dYxtrEbUjSXVAGKZqfewJPFXA4xB5gxC+rQZtfz6xKCFg== -"@salesforce/sf-plugins-core@^1.22.1", "@salesforce/sf-plugins-core@^1.9.0": +"@salesforce/sf-plugins-core@^1.22.1": version "1.22.1" resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-1.22.1.tgz#58c445aa8c72ae7ddd6ec39269ae1d944d059e9b" integrity sha512-UAAi7I753+t9zVJDHMzk81XCsYU5q2kq7aSgFbokdvnnPx45i3NptyaKNCRDeOBxp3eYCuNG6iFZ+xzC+v8cfA== @@ -1255,6 +1334,28 @@ chalk "^4" inquirer "^8.2.5" +"@salesforce/sf-plugins-core@^1.9.0": + version "1.20.0" + resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-1.20.0.tgz#0e4dfc2b148fc2dcf7d66a452de0c1523c424359" + integrity sha512-QD/pItMijdkvX7ITtt6n2yJigcCxg7CaTJlGxPbtNVJB49aOwJw88Jl24TbVlXlOF1WL3a88WH8ALmmOcOCFDQ== + dependencies: + "@oclif/core" "^1.20.4" + "@salesforce/core" "^3.32.6" + "@salesforce/kit" "^1.7.1" + "@salesforce/ts-types" "^1.7.1" + chalk "^4" + inquirer "^8.2.5" + +"@salesforce/telemetry@^3.2.13", "@salesforce/telemetry@^3.2.5": + version "3.2.13" + resolved "https://registry.yarnpkg.com/@salesforce/telemetry/-/telemetry-3.2.13.tgz#42fc6c30001dc145ba52f18ff0615aeaadbb0be5" + integrity sha512-qyxDpFvejfY/ag61IKCynfjaxrHOb/MXP/evhwf5y0OAQLw/HBLatlmDfpP3s3shIEatMxmUAK8XKH6n8mmTiQ== + dependencies: + "@salesforce/core" "^3.32.12" + "@salesforce/ts-types" "^1.7.0" + applicationinsights "^1.4.0" + axios "^0.27.2" + "@salesforce/ts-sinon@^1.4.4": version "1.4.4" resolved "https://registry.yarnpkg.com/@salesforce/ts-sinon/-/ts-sinon-1.4.4.tgz#ee7039f7eb6c488d58b0a3365e7196e9b1b1ebb4" @@ -1264,7 +1365,7 @@ sinon "^5.1.1" tslib "^2.2.0" -"@salesforce/ts-types@^1.5.20", "@salesforce/ts-types@^1.5.21", "@salesforce/ts-types@^1.7.1", "@salesforce/ts-types@^1.7.2": +"@salesforce/ts-types@^1.5.20", "@salesforce/ts-types@^1.5.21", "@salesforce/ts-types@^1.7.0", "@salesforce/ts-types@^1.7.1", "@salesforce/ts-types@^1.7.2": version "1.7.2" resolved "https://registry.yarnpkg.com/@salesforce/ts-types/-/ts-types-1.7.2.tgz#ab40399d291c7eca57efc9890daf2fa2632197ec" integrity sha512-eCpWKEb03UCKBJ6Svp0Vwcwt+fG6BQbopO4x5wt6CYeT8Rjt0dbDQicZPmVL59j2qyt3Q4Y4EYsxXUGZmdfvDw== @@ -1915,6 +2016,16 @@ append-transform@^2.0.0: dependencies: default-require-extensions "^3.0.0" +applicationinsights@^1.4.0: + version "1.8.10" + resolved "https://registry.yarnpkg.com/applicationinsights/-/applicationinsights-1.8.10.tgz#fffa482cd1519880fb888536a87081ac05130667" + integrity sha512-ZLDA7mShh4mP2Z/HlFolmvhBPX1LfnbIWXrselyYVA7EKjHhri1fZzpu2EiWAmfbRxNBY6fRjoPJWbx5giKy4A== + dependencies: + cls-hooked "^4.2.2" + continuation-local-storage "^3.2.1" + diagnostic-channel "0.3.1" + diagnostic-channel-publishers "0.4.4" + "aproba@^1.0.3 || ^2.0.0", aproba@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" @@ -2059,6 +2170,21 @@ astral-regex@^2.0.0: resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== +async-hook-jl@^1.7.6: + version "1.7.6" + resolved "https://registry.yarnpkg.com/async-hook-jl/-/async-hook-jl-1.7.6.tgz#4fd25c2f864dbaf279c610d73bf97b1b28595e68" + integrity sha512-gFaHkFfSxTjvoxDMYqDuGHlcRyUuamF8s+ZTtJdDzqjws4mCt7v0vuV79/E2Wr2/riMQgtG4/yUtXWs1gZ7JMg== + dependencies: + stack-chain "^1.3.7" + +async-listener@^0.6.0: + version "0.6.10" + resolved "https://registry.yarnpkg.com/async-listener/-/async-listener-0.6.10.tgz#a7c97abe570ba602d782273c0de60a51e3e17cbc" + integrity sha512-gpuo6xOyF4D5DE5WvyqZdPA3NGhiT6Qf07l7DCB0wwDEsLvDIbCr6j9S5aj5Ch96dLace5tXVzWBZkxU/c5ohw== + dependencies: + semver "^5.3.0" + shimmer "^1.1.0" + async@^3.2.0, async@^3.2.3: version "3.2.3" resolved "https://registry.yarnpkg.com/async/-/async-3.2.3.tgz#ac53dafd3f4720ee9e8a160628f18ea91df196c9" @@ -2095,6 +2221,14 @@ aws-sdk@^2.1231.0: uuid "8.0.0" xml2js "0.4.19" +axios@^0.27.2: + version "0.27.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972" + integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ== + dependencies: + follow-redirects "^1.14.9" + form-data "^4.0.0" + balanced-match@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" @@ -2652,6 +2786,15 @@ cloneable-readable@^1.0.0: process-nextick-args "^2.0.0" readable-stream "^2.3.5" +cls-hooked@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/cls-hooked/-/cls-hooked-4.2.2.tgz#ad2e9a4092680cdaffeb2d3551da0e225eae1908" + integrity sha512-J4Xj5f5wq/4jAvcdgoGsL3G103BtWpZrMo8NEinRltN+xpTZdI+M38pyQqhuFU/P792xkMFvnKSf+Lm81U1bxw== + dependencies: + async-hook-jl "^1.7.6" + emitter-listener "^1.0.1" + semver "^5.4.1" + cmd-shim@^4.0.1: version "4.1.0" resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-4.1.0.tgz#b3a904a6743e9fede4148c6f3800bf2a08135bdd" @@ -2820,6 +2963,14 @@ content-type@^1.0.4: resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== +continuation-local-storage@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/continuation-local-storage/-/continuation-local-storage-3.2.1.tgz#11f613f74e914fe9b34c92ad2d28fe6ae1db7ffb" + integrity sha512-jx44cconVqkCEEyLSKWwkvUXwO561jXMa3LPjTPsm5QR22PA0/mhe33FT4Xb5y74JDvt/Cq+5lm8S8rskLv9ZA== + dependencies: + async-listener "^0.6.0" + emitter-listener "^1.1.1" + conventional-changelog-angular@^5.0.11: version "5.0.13" resolved "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.13.tgz#896885d63b914a70d4934b59d2fe7bde1832b28c" @@ -3129,6 +3280,18 @@ dezalgo@^1.0.0: asap "^2.0.0" wrappy "1" +diagnostic-channel-publishers@0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/diagnostic-channel-publishers/-/diagnostic-channel-publishers-0.4.4.tgz#57c3b80b7e7f576f95be3a257d5e94550f0082d6" + integrity sha512-l126t01d2ZS9EreskvEtZPrcgstuvH3rbKy82oUhUrVmBaGx4hO9wECdl3cvZbKDYjMF3QJDB5z5dL9yWAjvZQ== + +diagnostic-channel@0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/diagnostic-channel/-/diagnostic-channel-0.3.1.tgz#7faa143e107f861be3046539eb4908faab3f53fd" + integrity sha512-6eb9YRrimz8oTr5+JDzGmSYnXy5V7YnK5y/hd8AUDK1MssHjQKm9LlD6NSrHx4vMDF3+e/spI2hmWTviElgWZA== + dependencies: + semver "^5.3.0" + diff@5.0.0, diff@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" @@ -3211,6 +3374,13 @@ electron-to-chromium@^1.4.84: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.103.tgz#abfe376a4d70fa1e1b4b353b95df5d6dfd05da3a" integrity sha512-c/uKWR1Z/W30Wy/sx3dkZoj4BijbXX85QKWu9jJfjho3LBAXNEGAEW3oWiGb+dotA6C6BzCTxL2/aLes7jlUeg== +emitter-listener@^1.0.1, emitter-listener@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/emitter-listener/-/emitter-listener-1.1.2.tgz#56b140e8f6992375b3d7cb2cab1cc7432d9632e8" + integrity sha512-Bt1sBAGFHY9DKY+4/2cV6izcKJUf5T7/gkdmkxzX/qv9CcGH8xSwVRW5mtX03SWJtRTWSOpzCuWN9rBFYZepZQ== + dependencies: + shimmer "^1.2.0" + emoji-regex@^8.0.0: version "8.0.0" resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" @@ -3860,6 +4030,11 @@ flatted@^3.1.0: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.5.tgz#76c8584f4fc843db64702a6bd04ab7a8bd666da3" integrity sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg== +follow-redirects@^1.14.9: + version "1.15.2" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" + integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== + for-each@^0.3.3: version "0.3.3" resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" @@ -7331,7 +7506,7 @@ scoped-regex@^2.0.0: resolved "https://registry.yarnpkg.com/scoped-regex/-/scoped-regex-2.1.0.tgz#7b9be845d81fd9d21d1ec97c61a0b7cf86d2015f" integrity sha512-g3WxHrqSWCZHGHlSrF51VXFdjImhwvH8ZO/pryFH56Qi0cDsZfylQa/t0jCzVQFNbNvM00HfHjkDPEuarKDSWQ== -"semver@2 || 3 || 4 || 5", semver@^5.5.0: +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== @@ -7433,6 +7608,11 @@ shiki@^0.10.1: vscode-oniguruma "^1.6.1" vscode-textmate "5.2.0" +shimmer@^1.1.0, shimmer@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/shimmer/-/shimmer-1.2.1.tgz#610859f7de327b587efebf501fb43117f9aff337" + integrity sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw== + shx@0.3.4, shx@^0.3.3: version "0.3.4" resolved "https://registry.yarnpkg.com/shx/-/shx-0.3.4.tgz#74289230b4b663979167f94e1935901406e40f02" @@ -7641,6 +7821,11 @@ ssri@^9.0.0, ssri@^9.0.1: dependencies: minipass "^3.1.1" +stack-chain@^1.3.7: + version "1.3.7" + resolved "https://registry.yarnpkg.com/stack-chain/-/stack-chain-1.3.7.tgz#d192c9ff4ea6a22c94c4dd459171e3f00cea1285" + integrity sha512-D8cWtWVdIe/jBA7v5p5Hwl5yOSOrmZPWDPe2KxQ5UAGD+nxbxU0lKXA4h85Ta6+qgdKVL3vUxsbIZjc1kBG7ug== + statuses@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63"