Skip to content

Commit ebdb40b

Browse files
committed
fix: string-width resolution
1 parent 5762d54 commit ebdb40b

File tree

3 files changed

+7
-48
lines changed

3 files changed

+7
-48
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
"ts-node": "^10.9.2",
6464
"typescript": "^5.7.2"
6565
},
66+
"resolutions": {
67+
"string-width": "^4.2.3"
68+
},
6669
"config": {},
6770
"publishConfig": {
6871
"access": "public"

test/unit/testSession.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import shelljs from 'shelljs';
1515
import { ShellString } from 'shelljs';
1616
import { spyMethod, stubMethod } from '@salesforce/ts-sinon';
1717
import { env } from '@salesforce/kit';
18-
import Sinon = require('sinon');
18+
import Sinon from 'sinon';
1919
import { AuthFields } from '@salesforce/core';
2020
import { ScratchOrgConfig, TestSession, rmOptions } from '../../src/testSession';
2121
import { TestProject } from '../../src/testProject';

yarn.lock

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,11 +1765,6 @@ dot-prop@^5.1.0:
17651765
dependencies:
17661766
is-obj "^2.0.0"
17671767

1768-
eastasianwidth@^0.2.0:
1769-
version "0.2.0"
1770-
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"
1771-
integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
1772-
17731768
ecdsa-sig-formatter@1.0.11:
17741769
version "1.0.11"
17751770
resolved "https://registry.yarnpkg.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz#ae0f0fa2d85045ef14a817daa3ce9acd0489e5bf"
@@ -1787,11 +1782,6 @@ emoji-regex@^8.0.0:
17871782
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
17881783
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
17891784

1790-
emoji-regex@^9.2.2:
1791-
version "9.2.2"
1792-
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72"
1793-
integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
1794-
17951785
end-of-stream@^1.1.0:
17961786
version "1.4.4"
17971787
resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
@@ -4640,7 +4630,7 @@ srcset@^5.0.0:
46404630
resolved "https://registry.yarnpkg.com/srcset/-/srcset-5.0.0.tgz#9df6c3961b5b44a02532ce6ae4544832609e2e3f"
46414631
integrity sha512-SqEZaAEhe0A6ETEa9O1IhSPC7MdvehZtCnTR0AftXk3QhY2UNgb+NApFOUPZILXk/YTDfFxMTNJOBpzrJsEdIA==
46424632

4643-
"string-width-cjs@npm:string-width@^4.2.0":
4633+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3, string-width@^5.0.1, string-width@^5.1.2:
46444634
version "4.2.3"
46454635
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
46464636
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -4649,24 +4639,6 @@ srcset@^5.0.0:
46494639
is-fullwidth-code-point "^3.0.0"
46504640
strip-ansi "^6.0.1"
46514641

4652-
string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
4653-
version "4.2.3"
4654-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
4655-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
4656-
dependencies:
4657-
emoji-regex "^8.0.0"
4658-
is-fullwidth-code-point "^3.0.0"
4659-
strip-ansi "^6.0.1"
4660-
4661-
string-width@^5.0.1, string-width@^5.1.2:
4662-
version "5.1.2"
4663-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
4664-
integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==
4665-
dependencies:
4666-
eastasianwidth "^0.2.0"
4667-
emoji-regex "^9.2.2"
4668-
strip-ansi "^7.0.1"
4669-
46704642
string.prototype.trim@^1.2.8:
46714643
version "1.2.8"
46724644
resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz#f9ac6f8af4bd55ddfa8895e6aea92a96395393bd"
@@ -4708,14 +4680,7 @@ string_decoder@~1.1.1:
47084680
dependencies:
47094681
safe-buffer "~5.1.0"
47104682

4711-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
4712-
version "6.0.1"
4713-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
4714-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
4715-
dependencies:
4716-
ansi-regex "^5.0.1"
4717-
4718-
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
4683+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
47194684
version "6.0.1"
47204685
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
47214686
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -5169,7 +5134,7 @@ workerpool@^6.5.1:
51695134
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544"
51705135
integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==
51715136

5172-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
5137+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
51735138
version "7.0.0"
51745139
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
51755140
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -5187,15 +5152,6 @@ wrap-ansi@^6.2.0:
51875152
string-width "^4.1.0"
51885153
strip-ansi "^6.0.0"
51895154

5190-
wrap-ansi@^7.0.0:
5191-
version "7.0.0"
5192-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
5193-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
5194-
dependencies:
5195-
ansi-styles "^4.0.0"
5196-
string-width "^4.1.0"
5197-
strip-ansi "^6.0.0"
5198-
51995155
wrap-ansi@^8.1.0:
52005156
version "8.1.0"
52015157
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)