Commit graph

156 commits

Author SHA1 Message Date
Krzysztof Wolski
6adabd1cba Introduce debug namespaces 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
5b7bb5d878 Add util function docstring 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
b2f84b51c8 Reduce duplication in the test code 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
10b3171b9d Fix delete test 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
b41f54ad4c Split APL into single purpose ones, fix module export issue 2022-09-05 10:18:12 +02:00
Krzysztof Wolski
18bdeff68b Add localEnv apl 2022-09-05 10:18:12 +02:00
Lukasz Ostrowski
47e7865dc5 Add debug messages to middlewares
Add debug messages to middlewares

Apply suggestions from code review

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

better debug messages

Add experimental debug middleware
2022-09-05 10:13:46 +02:00
Krzysztof Wolski
c745de5a2c Ignore type warning on log message 2022-09-02 16:55:14 +02:00
Krzysztof Wolski
14b5fb6460 Mark event type as unknown 2022-09-02 16:53:40 +02:00
Krzysztof Wolski
eb062c6b10 Update types on headers util 2022-09-02 16:52:44 +02:00
Lukasz Ostrowski
69c985bdc1
Merge pull request #39 from saleor/change-debug-import
Change "debug" package import to use default
2022-08-30 11:56:57 +02:00
Krzysztof Wolski
9b541cf318
Merge pull request #36 from saleor/fix-manifest-type
Fix manifest type to use `asyncEvents` and `syncEvents`
2022-08-30 11:02:25 +02:00
Krzysztof Wolski
ff0a03c215 Fix export from new modules 2022-08-30 09:17:11 +02:00
Lukasz Ostrowski
d6366e2ef1 Change "debug" package import to use default
This is rquired because app-template broke when using app-sdk with previous
named import
2022-08-30 09:15:11 +02:00
Jonatan Witoszek
8ae80269ea
Fix manifest type to use asyncEvents and syncEvents 2022-08-29 14:53:20 +02:00
Lukasz Ostrowski
d087bbf2ed
Merge pull request #25 from saleor/merge-bridge
Include app-bridge package into app-sdk
2022-08-29 11:52:44 +02:00
Lukasz Ostrowski
915f6496f1 Fix legacy createApp factory to not override targetDomain 2022-08-29 09:01:16 +02:00
Krzysztof Wolski
4a514103b6
Merge pull request #32 from saleor/refactor-middlewares
Refactor and test middleware
2022-08-26 12:29:19 +02:00
Lukasz Ostrowski
6de0675784 Install debug package and add debug messages to AppBridge 2022-08-26 09:24:56 +02:00
Lukasz Ostrowski
710210cdf5 Merge branch 'main' into merge-bridge 2022-08-26 08:46:11 +02:00
Krzysztof Wolski
f84d53465f
Merge pull request #28 from saleor/apl-interface
Introduce APL interface
2022-08-25 19:45:40 +02:00
Krzysztof Wolski
e1dc4c0344 Test withAuthTokenRequired 2022-08-25 17:29:32 +02:00
Krzysztof Wolski
0882c7e408 Test withSaleorEventMatch 2022-08-25 17:22:53 +02:00
Krzysztof Wolski
d90abdceac Test withSaleorDomainPresent 2022-08-25 17:10:49 +02:00
Krzysztof Wolski
158a40203e Split middleware into separate files 2022-08-25 16:56:51 +02:00
Krzysztof Wolski
43f81f1af6 Introduce APL interface 2022-08-25 16:49:54 +02:00
Jonatan Witoszek
4ce0cd8d56
Add app manifest types 2022-08-25 15:40:59 +02:00
Lukasz Ostrowski
53561452d4 Fix constructuring url with missing referrer 2022-08-23 09:22:40 +02:00
Lukasz Ostrowski
ef5ad07c1e Fix test 2022-08-22 15:53:03 +02:00
Lukasz Ostrowski
683f19b5c0 Add docs and test 2022-08-22 15:47:40 +02:00
Lukasz Ostrowski
c4d672683c Fix exports 2022-08-22 11:37:42 +02:00
Lukasz Ostrowski
d445653c2d Refactors and tests 2022-08-11 23:14:41 +02:00
Lukasz Ostrowski
983dba1126 Refactor app bridge state container 2022-08-11 22:19:11 +02:00
Lukasz Ostrowski
af68bedfb3 Tests for actions 2022-08-11 20:51:02 +02:00
Lukasz Ostrowski
8110818251 move app-bridge code and tests to app-sdk 2022-08-11 14:03:51 +02:00
Lukasz Ostrowski
c15caef702 Adds middleware test 2022-08-08 17:10:42 +02:00
Lukasz Ostrowski
cba596c910 Add test for urls 2022-08-08 16:55:57 +02:00
Krzysztof Wolski
9a76281d22 Unify error message for the middleware 2022-08-08 11:01:02 +02:00
Krzysztof Wolski
3d4c513be9 Handle missing webhook signature header 2022-08-08 10:43:26 +02:00
Krzysztof Wolski
fe2921dcdc Migrate to Jose and better error messages 2022-08-04 18:37:31 +02:00
Krzysztof Wolski
e203803505 Add saleor headers util 2022-08-04 18:36:59 +02:00
Krzysztof Wolski
345238e9ee Add withJWTVerified middleware 2022-08-03 20:51:37 +02:00
Krzysztof Wolski
6972dbd562
Merge pull request #9 from saleor/add-linting
Add code formatting, git hooks and improved CI
2022-07-25 09:29:58 +02:00
Krzysztof Wolski
6540dc8001 Apply code formatting 2022-07-20 16:19:49 +02:00
Krzysztof Wolski
bd41853696 Remove unused variable 2022-07-20 16:05:00 +02:00
Krzysztof Wolski
b3008c6a5a Rename variables to camelCase 2022-07-20 16:04:38 +02:00
Jonatan Witoszek
0d93b14e16
Replace string type with generic in withSaleorEventMatch middleware 2022-07-14 16:30:04 +02:00
Jonatan Witoszek
8e1e100a02
Fix unhandled exception when JWS is malformed 2022-07-14 14:04:27 +02:00
Tomasz Magulski
0e1eb8f1e1 Fixing JWKS remove key resolving logic 2022-07-07 13:17:19 +02:00
Tomasz Magulski
cc13260ef6 Webhooks signature verification middleware 2022-07-06 16:05:36 +02:00
Tomasz Magulski
8cf9aab987 Infer webhooks should use webhooks path relative to manifest API route 2022-05-27 15:17:13 +02:00
Tomasz Magulski
bddf64e32c Infer webhooks in production build 2022-05-27 13:10:12 +02:00
Zaiste
3303d56e46
Fix the path for printer from graphql 2022-05-26 22:50:51 +02:00
Zaiste
1951559886
Distinguish between sync/async events for webhooks 2022-05-26 22:41:21 +02:00
Zaiste
9da7c92642
Add Saleor specific middlewares 2022-05-26 14:14:13 +02:00
Zaiste
3f4fdb5f57
initial commit 2022-05-24 22:16:49 +02:00