Skip to content

Commit 175ead6

Browse files
fix(graphql-request): use same version in all packages
1 parent d999342 commit 175ead6

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

jest.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
/** @type {import('jest').Config} */
22
module.exports = {
3-
preset: 'ts-jest',
43
testEnvironment: 'node',
4+
transform: {
5+
'^.+\\.(t|j)sx?$': [
6+
'ts-jest',
7+
{
8+
tsconfig: '<rootDir>/tsconfig.json',
9+
},
10+
],
11+
},
12+
transformIgnorePatterns: ['/node_modules/(?!(graphql-request|@superfluid-finance/sdk-core)/)'],
513
reporters: [
614
'default',
715
[

packages/payment-detection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@requestnetwork/utils": "0.54.0",
4848
"ethers": "5.7.2",
4949
"graphql": "16.8.1",
50-
"graphql-request": "6.1.0",
50+
"graphql-request": "7.1.2",
5151
"graphql-tag": "2.12.6",
5252
"satoshi-bitcoin": "1.0.4",
5353
"tslib": "2.8.1"

packages/payment-processor/src/payment/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export class UnsupportedCurrencyNetwork extends Error {
2828
* Utility to get the default window.ethereum provider, or throws an error.
2929
*/
3030
export function getProvider(): providers.Web3Provider {
31-
if (typeof window !== 'undefined' && 'ethereum' in window) {
32-
return new ethers.providers.Web3Provider((window as any).ethereum);
31+
if ('ethereum' in globalThis) {
32+
return new ethers.providers.Web3Provider((globalThis as any).ethereum);
3333
}
3434
throw new Error('ethereum not found, you must pass your own web3 provider');
3535
}

packages/request-node/jest.config.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,4 @@ const jestCommonConfig = require('../../jest.config');
33
/** @type {import('jest').Config} */
44
module.exports = {
55
...jestCommonConfig,
6-
transform: {
7-
'^.+\\.(ts|tsx)$': [
8-
'ts-jest',
9-
{
10-
tsconfig: '<rootDir>/tsconfig.json',
11-
},
12-
],
13-
'^.+\\.js$': ['babel-jest', { configFile: './babel.config.js' }],
14-
},
15-
transformIgnorePatterns: ['/node_modules/(?!(graphql-request|@superfluid-finance/sdk-core)/)'],
16-
extensionsToTreatAsEsm: ['.ts', '.tsx'],
17-
moduleNameMapper: {
18-
'^(\\.{1,2}/.*)\\.js$': '$1',
19-
},
206
};

packages/request-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"ethers": "5.7.2",
6161
"express": "4.21.0",
6262
"graphql": "16.8.1",
63-
"graphql-request": "6.1.0",
63+
"graphql-request": "7.1.2",
6464
"http-shutdown": "1.2.2",
6565
"http-status-codes": "2.1.4",
6666
"morgan": "1.10.0",

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"compilerOptions": {
33
"target": "es2015",
44
"module": "nodenext",
5-
"moduleResolution": "nodenext",
65
"esModuleInterop": true,
76
"isolatedModules": true,
87
"importHelpers": true,

0 commit comments

Comments
 (0)