From 275dddd123cd68b68380084f6def31fa1a020199 Mon Sep 17 00:00:00 2001 From: svc-cli-bot <113140650+svc-cli-bot@users.noreply.github.com> Date: Mon, 5 Jun 2023 13:30:13 -0400 Subject: [PATCH] fix(deps): devScripts update (#646) * chore: updates from devScripts * chore: snapshot * test: test what it says it's going to test * chore: bump core * style: remove comments --------- Co-authored-by: mshanemc --- .mocharc.json | 1 + command-snapshot.json | 44 +++++-- package.json | 18 +-- test/commands/create.test.ts | 42 +++--- yarn.lock | 243 +++++++++++++++++------------------ 5 files changed, 186 insertions(+), 162 deletions(-) diff --git a/.mocharc.json b/.mocharc.json index 2e6bae40..d74b5a04 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -1,6 +1,7 @@ { "require": "ts-node/register,source-map-support/register", "watch-extensions": "ts", + "watch-files": ["src", "test"], "recursive": true, "reporter": "spec", "timeout": 5000 diff --git a/command-snapshot.json b/command-snapshot.json index 951e372e..dae88c73 100644 --- a/command-snapshot.json +++ b/command-snapshot.json @@ -12,31 +12,41 @@ "target-dev-hub", "target-org" ], - "alias": [] + "alias": [], + "flagChars": ["c", "l", "o", "u", "v"], + "flagAliases": ["apiversion", "onbehalfof", "targetdevhubusername", "targetusername"] }, { "command": "force:user:permset:assign", "plugin": "@salesforce/plugin-user", "flags": ["api-version", "json", "loglevel", "on-behalf-of", "perm-set-name", "target-org"], - "alias": [] + "alias": [], + "flagChars": ["n", "o", "u"], + "flagAliases": ["apiversion", "onbehalfof", "permsetname", "targetusername"] }, { "command": "force:user:permsetlicense:assign", "plugin": "@salesforce/plugin-user", "flags": ["api-version", "json", "loglevel", "name", "on-behalf-of", "target-org"], - "alias": [] + "alias": [], + "flagChars": ["b", "n", "u"], + "flagAliases": ["apiversion", "onbehalfof", "perm-set-license", "psl", "targetusername"] }, { "command": "org:assign:permset", "plugin": "@salesforce/plugin-user", "flags": ["api-version", "json", "name", "on-behalf-of", "target-org"], - "alias": [] + "alias": [], + "flagChars": ["b", "n", "o"], + "flagAliases": ["onbehalfof", "permsetname"] }, { "command": "org:assign:permsetlicense", "plugin": "@salesforce/plugin-user", "flags": ["api-version", "json", "name", "on-behalf-of", "target-org"], - "alias": [] + "alias": [], + "flagChars": ["b", "n", "o"], + "flagAliases": ["onbehalfof", "perm-set-license", "psl"] }, { "command": "org:create:user", @@ -51,24 +61,40 @@ "target-dev-hub", "target-org" ], - "alias": ["force:user:create"] + "alias": ["force:user:create"], + "flagChars": ["a", "f", "o", "s", "v"], + "flagAliases": [ + "apiversion", + "definitionfile", + "setalias", + "setuniqueusername", + "targetdevhubusername", + "targetusername", + "u" + ] }, { "command": "org:display:user", "plugin": "@salesforce/plugin-user", "flags": ["api-version", "json", "loglevel", "target-dev-hub", "target-org"], - "alias": ["force:user:display"] + "alias": ["force:user:display"], + "flagChars": ["o", "v"], + "flagAliases": ["apiversion", "targetdevhubusername", "targetusername", "u"] }, { "command": "org:generate:password", "plugin": "@salesforce/plugin-user", "flags": ["api-version", "complexity", "json", "length", "on-behalf-of", "target-org"], - "alias": [] + "alias": [], + "flagChars": ["b", "c", "l", "o"], + "flagAliases": ["onbehalfof"] }, { "command": "org:list:users", "plugin": "@salesforce/plugin-user", "flags": ["api-version", "json", "loglevel", "target-dev-hub", "target-org"], - "alias": ["force:user:list"] + "alias": ["force:user:list"], + "flagChars": ["o", "v"], + "flagAliases": ["apiversion", "targetusername", "u"] } ] diff --git a/package.json b/package.json index 9cce29a4..abbdd992 100644 --- a/package.json +++ b/package.json @@ -7,18 +7,18 @@ "bugs": "https://github.com/forcedotcom/cli/issues", "dependencies": { "@oclif/core": "^2.8.2", - "@salesforce/core": "^4.0.1", + "@salesforce/core": "^4.1.0", "@salesforce/kit": "^3.0.2", "@salesforce/sf-plugins-core": "^3.0.2", "@salesforce/ts-types": "^2.0.2", "tslib": "^2" }, "devDependencies": { - "@oclif/plugin-command-snapshot": "^3.3.15", - "@salesforce/cli-plugins-testkit": "^3.4.0", + "@oclif/plugin-command-snapshot": "^4.0.2", + "@salesforce/cli-plugins-testkit": "^4.0.1", "@salesforce/dev-config": "^4.0.1", - "@salesforce/dev-scripts": "^5.3.0", - "@salesforce/plugin-command-reference": "^2.4.4", + "@salesforce/dev-scripts": "^5.4.2", + "@salesforce/plugin-command-reference": "^3.0.2", "@salesforce/plugin-source": "^2.10.12", "@salesforce/prettier-config": "^0.0.3", "@salesforce/ts-sinon": "^1.4.7", @@ -33,10 +33,10 @@ "eslint-config-salesforce": "^2.0.1", "eslint-config-salesforce-license": "^0.2.0", "eslint-config-salesforce-typescript": "^1.1.1", - "eslint-plugin-header": "^3.0.0", + "eslint-plugin-header": "^3.1.1", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jsdoc": "^43.0.5", - "eslint-plugin-sf-plugin": "^1.15.5", + "eslint-plugin-sf-plugin": "^1.15.6", "husky": "^7.0.4", "mocha": "^9.1.3", "nyc": "^15.1.0", @@ -44,7 +44,7 @@ "prettier": "^2.8.8", "pretty-quick": "^3.1.0", "shx": "0.3.4", - "sinon": "10.0.0", + "sinon": "^15.1.0", "ts-node": "^10.0.0", "typescript": "^4.9.5", "wireit": "^0.9.5" @@ -244,4 +244,4 @@ "output": [] } } -} \ No newline at end of file +} diff --git a/test/commands/create.test.ts b/test/commands/create.test.ts index d24064fe..d8be0299 100644 --- a/test/commands/create.test.ts +++ b/test/commands/create.test.ts @@ -32,21 +32,23 @@ describe('org:create:user', () => { it('will properly merge fields regardless of capitalization', async () => { // notice the varied capitalization - $$.SANDBOX.stub(fs.promises, 'readFile').resolves( - JSON.stringify({ - id: originalUserId, - Username: '1605130295132_test-j6asqt5qoprs@example.com', - Alias: 'testAlias', - Email: username, - EmailEncodingKey: 'UTF-8', - LanguageLocaleKey: 'en_US', - localeSidKey: 'en_US', - ProfileId: '00e2D000000bNexWWR', - LastName: 'User', - timeZoneSidKey: 'America/Los_Angeles', - permsets: ['permset1', 'permset2'], - }) - ); + $$.SANDBOX.stub(fs.promises, 'readFile') + .withArgs('testing') + .resolves( + JSON.stringify({ + id: originalUserId, + Username: '1605130295132_test-j6asqt5qoprs@example.com', + Alias: 'testAlias', + Email: username, + EmailEncodingKey: 'UTF-8', + LanguageLocaleKey: 'en_US', + localeSidKey: 'en_US', + ProfileId: '00e2D000000bNexWWR', + LastName: 'User', + timeZoneSidKey: 'America/Los_Angeles', + permsets: ['permset1', 'permset2'], + }) + ); const createCommand = new CreateUserCommand(['-f', 'userConfig.json'], {} as Config); @@ -131,7 +133,11 @@ describe('org:create:user', () => { if (readsFile) { $$.SANDBOXES.CONNECTION.stub(Connection.prototype, 'singleRecordQuery').resolves({ Id: '12345678' }); $$.SANDBOX.stub(Logger.prototype, 'debug'); - $$.SANDBOX.stub(fs.promises, 'readFile').resolves(JSON.stringify(readsFile)); + if (typeof readsFile !== 'boolean') { + const fsStub = $$.SANDBOX.stub(fs.promises, 'readFile'); + fsStub.withArgs('parent/child/file.json').resolves(JSON.stringify(readsFile)); + fsStub.callThrough(); + } } } @@ -151,7 +157,7 @@ describe('org:create:user', () => { localesidkey: 'en_US', generatepassword: true, profileid: '12345678', - profilename: 'profileFromArgs', + profilename: 'profileFromFile', timezonesidkey: 'America/Los_Angeles', username: '1605130295132_test-j6asqt5qoprs@example.com', }, @@ -163,6 +169,8 @@ describe('org:create:user', () => { testOrg.username, '--target-dev-hub', 'devhub@test.com', + '--definition-file', + 'parent/child/file.json', "permsets='permCLI, permCLI2'", 'generatepassword=true', ], diff --git a/yarn.lock b/yarn.lock index b695ed71..6d48bd7e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -696,7 +696,7 @@ supports-color "^8.1.1" tslib "^2" -"@oclif/core@^2.0.7", "@oclif/core@^2.1.7", "@oclif/core@^2.3.0", "@oclif/core@^2.3.1", "@oclif/core@^2.8.2", "@oclif/core@^2.8.4", "@oclif/core@^2.8.5": +"@oclif/core@^2.1.7", "@oclif/core@^2.3.0", "@oclif/core@^2.3.1", "@oclif/core@^2.8.2", "@oclif/core@^2.8.4", "@oclif/core@^2.8.5": version "2.8.5" resolved "https://registry.yarnpkg.com/@oclif/core/-/core-2.8.5.tgz#7964057bbee5e91dae8b35e030e767f38e50a19e" integrity sha512-316DLfrHQDYmWDriI4Woxk9y1wVUrPN1sZdbQLHdOdlTA9v/twe7TdHpWOriEypfl6C85NWEJKc1870yuLtjrQ== @@ -731,10 +731,10 @@ wordwrap "^1.0.0" wrap-ansi "^7.0.0" -"@oclif/plugin-command-snapshot@^3.3.15": - version "3.3.15" - resolved "https://registry.yarnpkg.com/@oclif/plugin-command-snapshot/-/plugin-command-snapshot-3.3.15.tgz#2b1f35b75d9bdd15d06386382bb5a53577bdf45a" - integrity sha512-DJ+R8Ega5tq3RTbI6TZ0gI29lEldcSf909VUfsP2zY1tPqkn8IKhs/bFLcS2OkjQgLl/1FpeejFoc4rY44YbRg== +"@oclif/plugin-command-snapshot@^4.0.2": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@oclif/plugin-command-snapshot/-/plugin-command-snapshot-4.0.2.tgz#236fa8a402db63ffc9ed437aa6d2555026de4040" + integrity sha512-pYjiZifZIRpnpm+vdmyItkAcjFDGkP2XuV+i+5H8midzSawomJxphi/p00cjEauQTn5MnaMcAFIuVTDbI0ZiDQ== dependencies: "@oclif/core" "^2.8.5" chalk "^4.1.2" @@ -742,7 +742,7 @@ lodash "^4.17.21" semver "^7.5.1" ts-json-schema-generator "^1.2.0" - tslib "^2.5.0" + tslib "^2.5.2" "@oclif/plugin-help@^5.1.19": version "5.2.6" @@ -902,14 +902,14 @@ mv "~2" safe-json-stringify "~1" -"@salesforce/cli-plugins-testkit@^3.4.0": - version "3.4.0" - resolved "https://registry.yarnpkg.com/@salesforce/cli-plugins-testkit/-/cli-plugins-testkit-3.4.0.tgz#22ab0d7729590b8cbb5251f718104f91634bd3b4" - integrity sha512-MMtuH02cvjpD/rBaqDi18y9qUESyEd87yLjuFn3Emkj5SB559uirZcEo59N6zc1wkvdBbPQzVWDcuTVS7ihUAw== +"@salesforce/cli-plugins-testkit@^4.0.1": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@salesforce/cli-plugins-testkit/-/cli-plugins-testkit-4.0.1.tgz#36e384de223d424716cc45d452e172489eac7ad7" + integrity sha512-Refzx8WDdewNfxQ2a8RxIFUW7aiOhAgoSyUSVGqPzClofTQ14Oec/ZJ1y7AFa40QRNiUh1el47ge9F3VbdeECA== dependencies: - "@salesforce/core" "^3.34.8" - "@salesforce/kit" "^1.9.2" - "@salesforce/ts-types" "^1.7.3" + "@salesforce/core" "^4.0.1" + "@salesforce/kit" "^3.0.2" + "@salesforce/ts-types" "^2.0.2" "@types/shelljs" "^0.8.12" archiver "^5.2.0" debug "^4.3.1" @@ -917,7 +917,7 @@ strip-ansi "6.0.1" ts-retry-promise "^0.7.0" -"@salesforce/core@^3.32.12", "@salesforce/core@^3.34.6", "@salesforce/core@^3.34.8", "@salesforce/core@^3.36.1", "@salesforce/core@^3.36.2": +"@salesforce/core@^3.34.6": version "3.36.2" resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-3.36.2.tgz#135fa2fb858da6245b9ecff1e7819aeaeead5150" integrity sha512-IS1rR6Y0tMJYx/+TOAUQ9Gs+Vtum0MHLGfodT7ZJMQZQHEp1S4o0BJ8676uq5sASAnVL64GA+Et/LWCCOWWEuw== @@ -938,10 +938,10 @@ jsonwebtoken "9.0.0" ts-retry-promise "^0.7.0" -"@salesforce/core@^4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-4.0.1.tgz#d843c86cfd59f74e33e70d9558e0fe3ee9b49a53" - integrity sha512-BjHM3C3QfjW0wSrt0q2+5JOwa/9edg/18TT2C3iykmPxeDXAum/2W/S+7ctyefEJ0/VYlh/DvzLaEc74MadKnA== +"@salesforce/core@^4.0.1", "@salesforce/core@^4.1.0": + version "4.1.0" + resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-4.1.0.tgz#909c1ef1640683f797529899dbf316d53f1aebee" + integrity sha512-S+5sJ3wSlpu4ATEYGDeqNMu1NaRgD5+HjtYFZiiUOdtHrUh55JD6DGcwgtrj2ojM9cnwcqlj/Ho/2yljrJdOSQ== dependencies: "@salesforce/bunyan" "^2.0.0" "@salesforce/kit" "^3.0.0" @@ -957,6 +957,7 @@ js2xmlparser "^4.0.1" jsforce "^2.0.0-beta.23" jsonwebtoken "9.0.0" + proper-lockfile "^4.1.2" ts-retry-promise "^0.7.0" "@salesforce/dev-config@^4.0.1": @@ -964,10 +965,10 @@ resolved "https://registry.yarnpkg.com/@salesforce/dev-config/-/dev-config-4.0.1.tgz#662ffaa4409713553aaf68eed93e7d2429c3ff0e" integrity sha512-0zMjXG4Vjlu/mB7zbuKSXfXiP7CEZBwsPtYqNgburk/wZIU9KcMspLwVBDUxmUj9ltRksD9o1ubRUblN5M3Z0g== -"@salesforce/dev-scripts@^5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@salesforce/dev-scripts/-/dev-scripts-5.3.0.tgz#b8c46359753cde18df3abcd2b39f90a50f5a0e59" - integrity sha512-Q2ruja7jPQ2JIR0R+EQnpkEyVjzud4/n3RkuG2Ho7JShxy4bZyKRWVN6WjvQ/0EFttiwKfd65MN/bmlBMPD9rQ== +"@salesforce/dev-scripts@^5.4.2": + version "5.4.2" + resolved "https://registry.yarnpkg.com/@salesforce/dev-scripts/-/dev-scripts-5.4.2.tgz#77aacf9a4743fe951d9de9cbc9524a70bb46054e" + integrity sha512-D54yF+NDDa+50A28YyvG8aO5t3tIMIIZ7Q+ewWmUXdpFhqUfwq1k6/Y2tZy+rE9Z8fwWB2DQSD9dhaZavxOgrw== dependencies: "@commitlint/cli" "^17.1.2" "@commitlint/config-conventional" "^17.1.0" @@ -981,12 +982,12 @@ chalk "^4.0.0" cosmiconfig "^7.0.0" eslint "^8.41.0" - eslint-config-prettier "^8.5.0" + eslint-config-prettier "^8.8.0" eslint-config-salesforce "^2.0.1" - eslint-config-salesforce-license "^0.1.6" + eslint-config-salesforce-license "^0.2.0" eslint-config-salesforce-typescript "^1.1.1" - eslint-plugin-header "^3.0.0" - eslint-plugin-import "2.26.0" + eslint-plugin-header "^3.1.1" + eslint-plugin-import "^2.27.5" eslint-plugin-jsdoc "^43.0.5" eslint-plugin-prefer-arrow "^1.2.1" husky "^7.0.4" @@ -1000,10 +1001,10 @@ ts-node "^10.0.0" typedoc "0.23.16" typedoc-plugin-missing-exports "0.23.0" - typescript "^4.1.3" + typescript "^4.9.5" wireit "^0.9.5" -"@salesforce/kit@^1.8.2", "@salesforce/kit@^1.9.2": +"@salesforce/kit@^1.9.2": version "1.9.2" resolved "https://registry.yarnpkg.com/@salesforce/kit/-/kit-1.9.2.tgz#d232f135428363cdfe2649cb99a94bc2eb0a12fd" integrity sha512-kjZvjFNP6njhAiEa/ErdLXSDWZKafHYJyKCKz1wnSFmDM8TOpKHCCVw5cQo87ZQr8OqxqwUDIAlSBLyMzKi4Lg== @@ -1020,21 +1021,18 @@ "@salesforce/ts-types" "^2.0.1" tslib "^2.5.2" -"@salesforce/plugin-command-reference@^2.4.4": - version "2.4.4" - resolved "https://registry.yarnpkg.com/@salesforce/plugin-command-reference/-/plugin-command-reference-2.4.4.tgz#afe00a2e961bb76e7dff12eeb4334683293778af" - integrity sha512-BIIgnOqzrF6K+8H42a2LGyKCTd0b/XcBPUDAaHyg43JqoNWTtjM1O/jY9uYqevu8qGgS+f1aKic46+p+uTt/Hg== +"@salesforce/plugin-command-reference@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@salesforce/plugin-command-reference/-/plugin-command-reference-3.0.2.tgz#d0065460eb4b90c8addaaa36bb5253d1ae522bbf" + integrity sha512-sY4dFlx/EeUkoRMaI8YjRryv5AbjhX/tp4lXVYH5gc9MAOvmCiUxUOSsCvLs3ah/wj0vvwaA+seYXWxup+zDdA== dependencies: - "@oclif/core" "^2.0.7" - "@salesforce/core" "^3.32.12" - "@salesforce/kit" "^1.8.2" - "@salesforce/sf-plugins-core" "^2.0.1" - "@salesforce/ts-types" "^1.7.1" - chalk "^3.0.0" - fs-extra "^10.0.1" + "@oclif/core" "^2.8.5" + "@salesforce/core" "^4.0.1" + "@salesforce/kit" "^3.0.2" + "@salesforce/sf-plugins-core" "^3.0.2" + "@salesforce/ts-types" "^2.0.2" + chalk "^4" handlebars "^4.7.7" - lodash.uniqby "^4.7.0" - mkdirp "^1.0.4" tslib "^2" "@salesforce/plugin-source@^2.10.12": @@ -1065,18 +1063,6 @@ resolved "https://registry.yarnpkg.com/@salesforce/schemas/-/schemas-1.5.1.tgz#2d1bfdcf593caaa04cd4b3e6fe621097ff7f28fe" integrity sha512-MRqU+tn8w5IFvZ0Lm9YKLgxYxr2MQMI+fXXsTrwfUnijsps+ybF9IOTu6MOMxxl2vCUkO8XDjA435wXlWSLI6g== -"@salesforce/sf-plugins-core@^2.0.1": - version "2.4.3" - resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-2.4.3.tgz#9d578dc116becf8fd9c4f5d7849692aaa9095538" - integrity sha512-gB1GY5GscR5vjLC2GJTO7hjmKH1IqeMj1cvvsnTdKpb3z0GAMpCZN3gPyC9OiIEE2JBQSlm3HUV4K+4zcMJjmQ== - dependencies: - "@oclif/core" "^2.8.5" - "@salesforce/core" "^3.36.1" - "@salesforce/kit" "^1.9.2" - "@salesforce/ts-types" "^1.7.3" - chalk "^4" - inquirer "^8.2.5" - "@salesforce/sf-plugins-core@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@salesforce/sf-plugins-core/-/sf-plugins-core-3.0.2.tgz#c184ace06c687ecc2efb320d9e41f5894c4223da" @@ -1131,7 +1117,7 @@ sinon "^5.1.1" tslib "^2.5.2" -"@salesforce/ts-types@^1.7.1", "@salesforce/ts-types@^1.7.2", "@salesforce/ts-types@^1.7.3": +"@salesforce/ts-types@^1.7.2", "@salesforce/ts-types@^1.7.3": version "1.7.3" resolved "https://registry.yarnpkg.com/@salesforce/ts-types/-/ts-types-1.7.3.tgz#89b79ff0aaa55fea9f2de0afa8e515be3e17d0d8" integrity sha512-jpmekGqZ7tpHRJwf1rF0yBJ/IMC5mOrryNi4HZkKuNQn8RF97WpynmL8Om04mLTCESvCiif3y7NWfIcxtID2Gw== @@ -1157,6 +1143,27 @@ dependencies: type-detect "4.0.8" +"@sinonjs/commons@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-2.0.0.tgz#fd4ca5b063554307e8327b4564bd56d3b73924a3" + integrity sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg== + dependencies: + type-detect "4.0.8" + +"@sinonjs/commons@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.0.tgz#beb434fe875d965265e04722ccfc21df7f755d72" + integrity sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA== + dependencies: + type-detect "4.0.8" + +"@sinonjs/fake-timers@^10.0.2", "@sinonjs/fake-timers@^10.2.0": + version "10.2.0" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-10.2.0.tgz#b3e322a34c5f26e3184e7f6115695f299c1b1194" + integrity sha512-OPwQlEdg40HAj5KNF8WW6q2KG4Z+cBCZb3m4ninfTZKaBmbIJodviQsDBoYMPHkOyJJMHnOJo5j2+LKDOhOACg== + dependencies: + "@sinonjs/commons" "^3.0.0" + "@sinonjs/fake-timers@^6.0.0", "@sinonjs/fake-timers@^6.0.1": version "6.0.1" resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz#293674fccb3262ac782c7aadfdeca86b10c75c40" @@ -1197,6 +1204,15 @@ lodash.get "^4.4.2" type-detect "^4.0.8" +"@sinonjs/samsam@^8.0.0": + version "8.0.0" + resolved "https://registry.yarnpkg.com/@sinonjs/samsam/-/samsam-8.0.0.tgz#0d488c91efb3fa1442e26abea81759dfc8b5ac60" + integrity sha512-Bp8KUVlLp8ibJZrnvq2foVhP0IVX2CIprMJPK0vqGqgrDa0OHVKeZyBykqskkrdxV6yKBPmGasO8LVjAKR3Gew== + dependencies: + "@sinonjs/commons" "^2.0.0" + lodash.get "^4.4.2" + type-detect "^4.0.8" + "@sinonjs/text-encoding@^0.7.1": version "0.7.2" resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz#5981a8db18b56ba38ef0efb7d995b12aa7b51918" @@ -1543,7 +1559,7 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.59.8", "@typescript-eslint/utils@^5.59.7": +"@typescript-eslint/utils@5.59.8", "@typescript-eslint/utils@^5.59.8": version "5.59.8" resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.59.8.tgz#34d129f35a2134c67fdaf024941e8f96050dca2b" integrity sha512-Tr65630KysnNn9f9G7ROF3w1b5/7f6QVCJ+WK9nhIocWmx9F+TmCAcglF26Vm7z8KCTwoKcNEBZrhlklla3CKg== @@ -1812,7 +1828,7 @@ array-ify@^1.0.0: resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece" integrity sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng== -array-includes@^3.1.4, array-includes@^3.1.6: +array-includes@^3.1.6: version "3.1.6" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz#9e9e720e194f198266ba9e18c29e6a9b0e4b225f" integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw== @@ -1828,7 +1844,7 @@ array-union@^2.1.0: resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -array.prototype.flat@^1.2.5, array.prototype.flat@^1.3.1: +array.prototype.flat@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz#ffc6576a7ca3efc2f46a143b9d1dda9b4b3cf5e2" integrity sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA== @@ -2759,13 +2775,6 @@ debug@4.3.3: dependencies: ms "2.1.2" -debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - debug@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" @@ -2910,7 +2919,7 @@ diff@^4.0.1, diff@^4.0.2: resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== -diff@^5.0.0: +diff@^5.0.0, diff@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/diff/-/diff-5.1.0.tgz#bc52d298c5ea8df9194800224445ed43ffc87e40" integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw== @@ -3121,16 +3130,11 @@ escodegen@^1.8.1: optionalDependencies: source-map "~0.6.1" -eslint-config-prettier@^8.5.0, eslint-config-prettier@^8.8.0: +eslint-config-prettier@^8.8.0: version "8.8.0" resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.8.0.tgz#bfda738d412adc917fd7b038857110efe98c9348" integrity sha512-wLbQiFre3tdGgpDv67NQKnJuTlcUVYHas3k+DZCc2U2BadthoEY4B7hLPvAxaqdyOGCzuLfii2fqGph10va7oA== -eslint-config-salesforce-license@^0.1.6: - version "0.1.6" - resolved "https://registry.yarnpkg.com/eslint-config-salesforce-license/-/eslint-config-salesforce-license-0.1.6.tgz#75b475cf90f92e1dcb4340124466288915fed3f8" - integrity sha512-PH1nkm6MaouON4Ac4fgJh29oQiHlpU/G2xS45FAYeAWkh1up88j1UpjXt2ISNniQVvU4uqfVAOOaEb5X5hDqYw== - eslint-config-salesforce-license@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/eslint-config-salesforce-license/-/eslint-config-salesforce-license-0.2.0.tgz#323193f1aa15dd33fbf108d25fc1210afc11065e" @@ -3146,7 +3150,7 @@ eslint-config-salesforce@^2.0.1: resolved "https://registry.yarnpkg.com/eslint-config-salesforce/-/eslint-config-salesforce-2.0.1.tgz#02893c79f304761d766f9bab8947ab3ff0e5019c" integrity sha512-Lrk6PAWOKJoC7OwcZj26IMGVJuqYTgJWYqQaJUTLfaBl9UOTmxCqLflttVGEpfBcleDBQb7uw5vvR/8E8Quv5A== -eslint-import-resolver-node@^0.3.6, eslint-import-resolver-node@^0.3.7: +eslint-import-resolver-node@^0.3.7: version "0.3.7" resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz#83b375187d412324a1963d84fa664377a23eb4d7" integrity sha512-gozW2blMLJCeFpBwugLTGyvVjNoeo1knonXAcatC6bjPBZitotxdWf7Gimr25N4c0AAOo4eOUfaG82IJPDpqCA== @@ -3155,37 +3159,18 @@ eslint-import-resolver-node@^0.3.6, eslint-import-resolver-node@^0.3.7: is-core-module "^2.11.0" resolve "^1.22.1" -eslint-module-utils@^2.7.3, eslint-module-utils@^2.7.4: +eslint-module-utils@^2.7.4: version "2.7.4" resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz#4f3e41116aaf13a20792261e61d3a2e7e0583974" integrity sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA== dependencies: debug "^3.2.7" -eslint-plugin-header@^3.0.0: +eslint-plugin-header@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/eslint-plugin-header/-/eslint-plugin-header-3.1.1.tgz#6ce512432d57675265fac47292b50d1eff11acd6" integrity sha512-9vlKxuJ4qf793CmeeSrZUvVClw6amtpghq3CuWcB5cUNnWHQhgcqy5eF8oVKFk1G3Y/CbchGfEaw3wiIJaNmVg== -eslint-plugin-import@2.26.0: - version "2.26.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz#f812dc47be4f2b72b478a021605a59fc6fe8b88b" - integrity sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA== - dependencies: - array-includes "^3.1.4" - array.prototype.flat "^1.2.5" - debug "^2.6.9" - doctrine "^2.1.0" - eslint-import-resolver-node "^0.3.6" - eslint-module-utils "^2.7.3" - has "^1.0.3" - is-core-module "^2.8.1" - is-glob "^4.0.3" - minimatch "^3.1.2" - object.values "^1.1.5" - resolve "^1.22.0" - tsconfig-paths "^3.14.1" - eslint-plugin-import@^2.27.5: version "2.27.5" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.27.5.tgz#876a6d03f52608a3e5bb439c2550588e51dd6c65" @@ -3226,13 +3211,13 @@ eslint-plugin-prefer-arrow@^1.2.1: resolved "https://registry.yarnpkg.com/eslint-plugin-prefer-arrow/-/eslint-plugin-prefer-arrow-1.2.3.tgz#e7fbb3fa4cd84ff1015b9c51ad86550e55041041" integrity sha512-J9I5PKCOJretVuiZRGvPQxCbllxGAV/viI20JO3LYblAodofBxyMnZAJ+WGeClHgANnSJberTNoFWWjrWKBuXQ== -eslint-plugin-sf-plugin@^1.15.5: - version "1.15.5" - resolved "https://registry.yarnpkg.com/eslint-plugin-sf-plugin/-/eslint-plugin-sf-plugin-1.15.5.tgz#219c05c9432048a06a232e62ff47f84e918d50ab" - integrity sha512-JBziy6jX9FSYBTXs8eNk8I37DFFqooAL51SjlVKrVBwHvRBsRdiXtnLfXV8SeqcZqm4zxu50rrHXQdvHwlEwkw== +eslint-plugin-sf-plugin@^1.15.6: + version "1.15.8" + resolved "https://registry.yarnpkg.com/eslint-plugin-sf-plugin/-/eslint-plugin-sf-plugin-1.15.8.tgz#6926244f8f8ea7015b8109283abf44736e59aa76" + integrity sha512-78toJayNZinG0NFKPBVeRzGoYwUViQcrvCMQq/h/7D3f0XKZ6NRHEt1V+Dt3j0GOZ+A/UqWbrLuvMPl4sPMo2Q== dependencies: - "@salesforce/core" "^3.36.2" - "@typescript-eslint/utils" "^5.59.7" + "@salesforce/core" "^4.1.0" + "@typescript-eslint/utils" "^5.59.8" eslint-scope@^5.1.1: version "5.1.1" @@ -3600,15 +3585,6 @@ fs-constants@^1.0.0: resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== -fs-extra@^10.0.1: - version "10.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" - integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - fs-extra@^11.0.0: version "11.1.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.1.0.tgz#5784b102104433bb0e090f48bfc4a30742c357ed" @@ -4359,7 +4335,7 @@ is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== -is-core-module@^2.11.0, is-core-module@^2.5.0, is-core-module@^2.8.1: +is-core-module@^2.11.0, is-core-module@^2.5.0: version "2.12.0" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.12.0.tgz#36ad62f6f73c8253fd6472517a12483cf03e7ec4" integrity sha512-RECHCBCd/viahWmwj6enj19sKbHfJrddi/6cBDsNTKbNq0f7VeaUkBo60BqzvPqo/W54ChS62Z5qyun7cfOMqQ== @@ -5015,11 +4991,6 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha512-xfBaXQd9ryd9dlSDvnvI0lvxfLJlYAZzXomUYzLKtUeOQvOP5piqAWuGtrhWeqaXK9hhoM/iyJc5AV+XfsX3HQ== -lodash.uniqby@^4.7.0: - version "4.7.0" - resolved "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302" - integrity sha512-e/zcLx6CSbmaEgFHCA7BnoQKyCtKMxnuWrJygbwPs/AIn+IMKl66L8/s+wBUn5LRw2pZx3bUHibiV1b6aTWIww== - lodash.upperfirst@^4.3.1: version "4.3.1" resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce" @@ -5438,11 +5409,6 @@ mri@^1.1.5: resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b" integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== - ms@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" @@ -5569,6 +5535,17 @@ nise@^4.1.0: just-extend "^4.0.2" path-to-regexp "^1.7.0" +nise@^5.1.4: + version "5.1.4" + resolved "https://registry.yarnpkg.com/nise/-/nise-5.1.4.tgz#491ce7e7307d4ec546f5a659b2efe94a18b4bbc0" + integrity sha512-8+Ib8rRJ4L0o3kfmyVCL7gzrohyDe0cMFTBa2d364yIrEGMEoetznKJx899YxjybU6bL9SQkYPSBBs1gyYs8Xg== + dependencies: + "@sinonjs/commons" "^2.0.0" + "@sinonjs/fake-timers" "^10.0.2" + "@sinonjs/text-encoding" "^0.7.1" + just-extend "^4.0.2" + path-to-regexp "^1.7.0" + no-case@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d" @@ -5809,7 +5786,7 @@ object.assign@^4.1.4: has-symbols "^1.0.3" object-keys "^1.1.1" -object.values@^1.1.5, object.values@^1.1.6: +object.values@^1.1.6: version "1.1.6" resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d" integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw== @@ -6556,7 +6533,7 @@ resolve-global@1.0.0, resolve-global@^1.0.0: dependencies: global-dirs "^0.1.1" -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.22.0, resolve@^1.22.1: +resolve@^1.1.6, resolve@^1.10.0, resolve@^1.22.1: version "1.22.2" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f" integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g== @@ -6854,6 +6831,18 @@ sinon@10.0.0: nise "^4.1.0" supports-color "^7.1.0" +sinon@^15.1.0: + version "15.1.0" + resolved "https://registry.yarnpkg.com/sinon/-/sinon-15.1.0.tgz#87656841545f7c63bd1e291df409fafd0e9aec09" + integrity sha512-cS5FgpDdE9/zx7no8bxROHymSlPLZzq0ChbbLk1DrxBfc+eTeBK3y8nIL+nu/0QeYydhhbLIr7ecHJpywjQaoQ== + dependencies: + "@sinonjs/commons" "^3.0.0" + "@sinonjs/fake-timers" "^10.2.0" + "@sinonjs/samsam" "^8.0.0" + diff "^5.1.0" + nise "^5.1.4" + supports-color "^7.2.0" + sinon@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/sinon/-/sinon-5.1.1.tgz#19c59810ffb733ea6e76a28b94a71fc4c2f523b8" @@ -7171,7 +7160,7 @@ supports-color@^5.3.0, supports-color@^5.4.0: dependencies: has-flag "^3.0.0" -supports-color@^7.0.0, supports-color@^7.1.0: +supports-color@^7.0.0, supports-color@^7.1.0, supports-color@^7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== @@ -7463,16 +7452,16 @@ typedoc@0.23.16: minimatch "^5.1.0" shiki "^0.11.1" -typescript@^4.1.3, typescript@^4.9.5, typescript@~4.9.3: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== - "typescript@^4.6.4 || ^5.0.0": version "5.0.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b" integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw== +typescript@^4.9.5, typescript@~4.9.3: + version "4.9.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" + integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== + uglify-js@^3.1.4: version "3.17.4" resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"