Skip to content

Commit 0a63891

Browse files
fix: add .js extensions to ES module imports (#56)
* fix: add .js extensions to ES module imports and disable linter rule * ci: update deployment and configuration files
1 parent 3240db6 commit 0a63891

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

dapp/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
},
77
"extends": ["airbnb-base", "prettier", "plugin:sonarjs/recommended"],
88
"rules": {
9-
"sonarjs/cognitive-complexity": "warn"
9+
"sonarjs/cognitive-complexity": "warn",
10+
"import/extensions": "off"
1011
},
1112
"env": {
1213
"jest": true

dapp/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import start from './executeTask';
1+
import start from './executeTask.js';
22

33
start().catch((error) => {
44
console.error(`Error: ${error.message}`);

dapp/src/executeTask.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { IExecDataProtectorDeserializer } from '@iexec/dataprotector-deserializer';
22
import { promises as fs } from 'fs';
3-
import { decryptContent, downloadEncryptedContent } from './decryptContent';
4-
import sendTelegram from './telegramService';
3+
import { decryptContent, downloadEncryptedContent } from './decryptContent.js';
4+
import sendTelegram from './telegramService.js';
55
import {
66
validateAppSecret,
77
validateProtectedData,
88
validateRequesterSecret,
99
validateWorkerEnv,
10-
} from './validation';
10+
} from './validation.js';
1111

1212
async function writeTaskOutput(path, message) {
1313
try {

deployment-dapp/src/singleFunction/deployApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const deployApp = async ({
2626

2727
const mrenclave = {
2828
framework: 'SCONE' as any, // workaround framework not auto capitalized
29-
version: 'v5',
29+
version: 'v5.9',
3030
entrypoint: 'node /app/app.js',
3131
heapSize: 1073741824,
3232
fingerprint,

src/utils/subgraphQuery.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ export const checkProtectedDataValidity = async (
9393
start: 0,
9494
range: 1,
9595
};
96-
9796
const protectedDataResultQuery: GraphQLResponse =
9897
await graphQLClient.request(checkProtectedDataQuery, variables);
9998

0 commit comments

Comments
 (0)