Verify latest release
pnpm version
9.15.2
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI, Operating System (Windows, MacOS, Linux)
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
Occurred on macOS Sequoia 15.1.1.
mkdir test
cd test
pnpm init
# Installation of any package is acceptable.
pnpm add msw@2.7.0
pnpm patch msw
# edit the node_modules/.pnpm_patches/msw@2.7.0/lib/core/GraphQLHandler-C5CUIS_N.d.ts
# The modifications are the same as in the link.
# https://github.com/mswjs/msw/pull/2403/commits/9cbefc4416a0a8beddda074b33d18928d549cd89
pnpm patch-commit '/Users/huuya/Documents/git/test/node_modules/.pnpm_patches/msw@2.7.0'
This is the output result.
diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..c3dfdea14e913ccf30bf4367abac999d7200f40c
--- /dev/null
+++ b/.DS_Store
@@ -0,0 +1 @@
+����Bud1��������������������������������������������������������������������������������spblob����bp�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������l�i�bbwspblob����bplist00�������������]ShowStatusBar[ShowToolbar[ShowTabView_��ContainerShowSidebar\WindowBounds[ShowSidebar� � _��{{304, 462}, {920, 436}} ��#/;R_klmno����������������
���������������������l�i�bvSrnlong������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� �������@�������������������������������������������������� �������@������������������������������������������������������ �������@������������������������������������������������������ �������@��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������E�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������DSDB������������������������������� ���`������������������������������������������������������ �������@������������������������������������������������������ �������@������������������������������������������������������ �������@��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/lib/.DS_Store b/lib/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..85db58b36d612adc50c6685c7b9be2db1d39efc6
--- /dev/null
+++ b/lib/.DS_Store
@@ -0,0 +1 @@
+����Bud1��������������������������������������������������������������������������������bwspblob���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������c�o�r�ebwspblob����bplist00�������������]ShowStatusBar[ShowToolbar[ShowTabView_��ContainerShowSidebar\WindowBounds[ShowSidebar� � _��{{304, 462}, {920, 436}} ��#/;R_klmno����������������
���������������������c�o�r�evSrnlong��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������� �������@�������������������������������������������������� �������@������������������������������������������������������ �������@������������������������������������������������������ �������@��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������E�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������DSDB������������������������������� ���`������������������������������������������������������ �������@������������������������������������������������������ �������@������������������������������������������������������ �������@��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
\ No newline at end of file
diff --git a/lib/core/GraphQLHandler-C5CUIS_N.d.ts b/lib/core/GraphQLHandler-C5CUIS_N.d.ts
index 7a0d0177142099f7f1de293eaed7015375f30af5..aef425b35d5dce4cbf5587c5c9d3adc1fe60be7d 100644
--- a/lib/core/GraphQLHandler-C5CUIS_N.d.ts
+++ b/lib/core/GraphQLHandler-C5CUIS_N.d.ts
@@ -26,7 +26,7 @@ declare function parseGraphQLRequest(request: Request): Promise<ParsedGraphQLReq
type ExpectedOperationTypeNode = OperationTypeNode | 'all';
type GraphQLHandlerNameSelector = DocumentNode | RegExp | string;
-type GraphQLQuery = Record<string, any>;
+type GraphQLQuery = Record<string, any> | null;
type GraphQLVariables = Record<string, any>;
interface GraphQLHandlerInfo extends RequestHandlerDefaultInfo {
operationType: ExpectedOperationTypeNode;
Describe the Bug
DS_Store files are excluded in the .gitignore file, but they are included in the patch as a difference when patch-commit is made.
Expected Behavior
DS_Store file diff is not in the result of patch-commit.
The example PATCH is expected to result in the following.
diff --git a/lib/core/GraphQLHandler-C5CUIS_N.d.ts b/lib/core/GraphQLHandler-C5CUIS_N.d.ts
index 7a0d0177142099f7f1de293eaed7015375f30af5..aef425b35d5dce4cbf5587c5c9d3adc1fe60be7d 100644
--- a/lib/core/GraphQLHandler-C5CUIS_N.d.ts
+++ b/lib/core/GraphQLHandler-C5CUIS_N.d.ts
@@ -26,7 +26,7 @@ declare function parseGraphQLRequest(request: Request): Promise<ParsedGraphQLReq
type ExpectedOperationTypeNode = OperationTypeNode | 'all';
type GraphQLHandlerNameSelector = DocumentNode | RegExp | string;
-type GraphQLQuery = Record<string, any>;
+type GraphQLQuery = Record<string, any> | null;
type GraphQLVariables = Record<string, any>;
interface GraphQLHandlerInfo extends RequestHandlerDefaultInfo {
operationType: ExpectedOperationTypeNode;
Which Node.js version are you using?
22.12.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
Verify latest release
pnpm version
9.15.2
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI, Operating System (Windows, MacOS, Linux)
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
Occurred on macOS Sequoia 15.1.1.
This is the output result.
Describe the Bug
DS_Store files are excluded in the .gitignore file, but they are included in the patch as a difference when patch-commit is made.
Expected Behavior
DS_Store file diff is not in the result of patch-commit.
The example PATCH is expected to result in the following.
Which Node.js version are you using?
22.12.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response