Skip to content

Commit aab471d

Browse files
authored
fix: logger binding (#596)
* fix: logger binding * chore: bump deps for xnuts
1 parent bea20e7 commit aab471d

File tree

3 files changed

+12
-35
lines changed

3 files changed

+12
-35
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@oclif/core": "^3.26.6",
5353
"@salesforce/core": "^7.3.9",
5454
"@salesforce/kit": "^3.1.2",
55-
"@salesforce/source-deploy-retrieve": "^11.6.3",
55+
"@salesforce/source-deploy-retrieve": "^11.6.4",
5656
"@salesforce/ts-types": "^2.0.9",
5757
"fast-xml-parser": "^4.3.6",
5858
"graceful-fs": "^4.2.11",

src/shared/remoteSourceTrackingService.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ export class RemoteSourceTrackingService {
147147
if (elements.length === 0) {
148148
return;
149149
}
150-
const quietLogger = elements.length > 100 ? this.logger.silent : this.logger.debug;
150+
const quietLogger =
151+
elements.length > 100 ? this.logger.silent.bind(this.logger) : this.logger.debug.bind(this.logger);
151152
quietLogger(`Syncing ${elements.length} Revisions by key`);
152153

153154
// this can be super-repetitive on a large ExperienceBundle where there is an element for each file but only one Revision for the entire bundle
@@ -374,7 +375,8 @@ ${formatSourceMemberWarnings(outstandingSourceMembers)}`
374375
if (sourceMembers.length === 0) {
375376
return;
376377
}
377-
const quietLogger = sourceMembers.length > 100 ? this.logger.silent : this.logger.debug;
378+
const quietLogger =
379+
sourceMembers.length > 100 ? this.logger.silent.bind(this.logger) : this.logger.debug.bind(this.logger);
378380
quietLogger(`Upserting ${sourceMembers.length} SourceMembers to maxRevision.json`);
379381

380382
// Update the serverMaxRevisionCounter to the highest RevisionCounter

yarn.lock

+7-32
Original file line numberDiff line numberDiff line change
@@ -676,10 +676,10 @@
676676
resolved "https://registry.yarnpkg.com/@salesforce/schemas/-/schemas-1.9.0.tgz#ba477a112653a20b4edcf989c61c57bdff9aa3ca"
677677
integrity sha512-LiN37zG5ODT6z70sL1fxF7BQwtCX9JOWofSU8iliSNIM+WDEeinnoFtVqPInRSNt8I0RiJxIKCrqstsmQRBNvA==
678678

679-
"@salesforce/source-deploy-retrieve@^11.6.3":
680-
version "11.6.3"
681-
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-11.6.3.tgz#24ff55a17f8d7862b1467e40968707fedaa3e624"
682-
integrity sha512-6h/KJV8cRfzLZ3aE6PP76oP1bz28zRxL9wtCx6yD+jz4GRdIxHNjNQhiKJJI9m2Z+npWl/sjth8aHB7rrSgSrg==
679+
"@salesforce/source-deploy-retrieve@^11.6.4":
680+
version "11.6.4"
681+
resolved "https://registry.yarnpkg.com/@salesforce/source-deploy-retrieve/-/source-deploy-retrieve-11.6.4.tgz#9aa54f115b1f58a08a3f38d7945ce734feba824c"
682+
integrity sha512-HwR33sizKJD+33Xgo7IiwnHYLXuKTwShzlr4Rv3oRBoHZyaz4wBpJOtVldwVq5l5U9++Nk5iBI4IXyWaX7SlOg==
683683
dependencies:
684684
"@salesforce/core" "^7.3.9"
685685
"@salesforce/kit" "^3.1.1"
@@ -5178,16 +5178,7 @@ srcset@^5.0.0:
51785178
resolved "https://registry.yarnpkg.com/srcset/-/srcset-5.0.0.tgz#9df6c3961b5b44a02532ce6ae4544832609e2e3f"
51795179
integrity sha512-SqEZaAEhe0A6ETEa9O1IhSPC7MdvehZtCnTR0AftXk3QhY2UNgb+NApFOUPZILXk/YTDfFxMTNJOBpzrJsEdIA==
51805180

5181-
"string-width-cjs@npm:string-width@^4.2.0":
5182-
version "4.2.3"
5183-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
5184-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
5185-
dependencies:
5186-
emoji-regex "^8.0.0"
5187-
is-fullwidth-code-point "^3.0.0"
5188-
strip-ansi "^6.0.1"
5189-
5190-
string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
5181+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
51915182
version "4.2.3"
51925183
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
51935184
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -5246,14 +5237,7 @@ string_decoder@~1.1.1:
52465237
dependencies:
52475238
safe-buffer "~5.1.0"
52485239

5249-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
5250-
version "6.0.1"
5251-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
5252-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
5253-
dependencies:
5254-
ansi-regex "^5.0.1"
5255-
5256-
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
5240+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
52575241
version "6.0.1"
52585242
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
52595243
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -5770,7 +5754,7 @@ workerpool@6.2.1:
57705754
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343"
57715755
integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==
57725756

5773-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
5757+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
57745758
version "7.0.0"
57755759
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
57765760
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -5788,15 +5772,6 @@ wrap-ansi@^6.2.0:
57885772
string-width "^4.1.0"
57895773
strip-ansi "^6.0.0"
57905774

5791-
wrap-ansi@^7.0.0:
5792-
version "7.0.0"
5793-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
5794-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
5795-
dependencies:
5796-
ansi-styles "^4.0.0"
5797-
string-width "^4.1.0"
5798-
strip-ansi "^6.0.0"
5799-
58005775
wrap-ansi@^8.1.0:
58015776
version "8.1.0"
58025777
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)