Skip to content

Commit

Permalink
fix: audit axios issue (shopware#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
patzick authored Aug 14, 2024
1 parent dc6c13c commit 7f3d0a4
Show file tree
Hide file tree
Showing 4 changed files with 14,767 additions and 8,004 deletions.
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"find-in-files": "0.5.0",
"ts-dox": "0.1.0",
"typescript": "5.5.4",
"unplugin-export-collector": "0.5.0",
"unplugin-export-collector": "0.6.0",
"vinyl": "3.0.0"
},
"pnpm": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"@antfu/utils": "^0.7.10",
"@babel/traverse": "^7.24.8",
"@types/node": "^20",
"axios": "^1.7.4",
"braces": "^3.0.3",
"debug": "^4.3.5",
"fast-loops": "^1.1.4",
Expand Down
1 change: 1 addition & 0 deletions packages/api-client-old/src/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ describe("Settings", () => {

it("should show console warning when no callback methods are connected", () => {
const apiInstance = _createInstance();
// @ts-expect-error for older axios version
apiInstance.update({ contextToken: "xxx" }, { url: "/some-url" });
expect(consoleWarnSpy).toBeCalledWith(
'[shopware-6-api] After calling API method /some-url there is no "onConfigChange" listener. See https://shopware-pwa-docs.vuestorefront.io/landing/fundamentals/security.html#context-awareness',
Expand Down
Loading

0 comments on commit 7f3d0a4

Please sign in to comment.