Skip to content

Commit 40673d5

Browse files
New Upstash Redis implementation (#8350)
* New Upstash Redis implementation * Update packages/cache/upstash-redis/src/index.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update packages/cache/upstash-redis/src/index.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Fix tests * Fix tests * Lets go * Go * Better testing * Lets go * .. --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent fc44a1e commit 40673d5

File tree

11 files changed

+793
-255
lines changed

11 files changed

+793
-255
lines changed

.changeset/sixty-rivers-shave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-mesh/cache-upstash-redis': patch
3+
---
4+
5+
New Upstash Redis implementation
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
diff --git a/build/index.js b/build/index.js
2+
index d1cff260e9c9c17b57efde19268d563c35542682..a5c8543f3aa21f5a031f204e9f4c4a6d264cdabc 100644
3+
--- a/build/index.js
4+
+++ b/build/index.js
5+
@@ -339,9 +339,13 @@ const getTopFrame = lines => {
6+
const parsedFrame = stackUtils.parseLine(line.trim());
7+
if (parsedFrame && parsedFrame.file) {
8+
if (parsedFrame.file.startsWith('file://')) {
9+
- parsedFrame.file = (0, _slash.default)(
10+
- (0, _url.fileURLToPath)(parsedFrame.file)
11+
- );
12+
+ try {
13+
+ parsedFrame.file = (0, _slash.default)(
14+
+ (0, _url.fileURLToPath)(parsedFrame.file)
15+
+ );
16+
+ } catch(e) {
17+
+ console.error(e);
18+
+ }
19+
}
20+
return parsedFrame;
21+
}

e2e/cache-control/__snapshots__/cache-control.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Cache Control Apollo Rover composes 1`] = `
3+
exports[`Cache Control Composition via Apollo Rover composes 1`] = `
44
"schema
55
@link(url: "https://specs.apollo.dev/link/v1.0")
66
@link(url: "https://specs.apollo.dev/join/v0.3", for: EXECUTION)
@@ -98,7 +98,7 @@ type Query
9898
}"
9999
`;
100100

101-
exports[`Cache Control Mesh Compose composes 1`] = `
101+
exports[`Cache Control Composition via Mesh Compose composes 1`] = `
102102
"
103103
schema
104104
@link(url: "https://specs.apollo.dev/link/v1.0")

0 commit comments

Comments
 (0)