Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion devserver.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const http = require('http');
const handler = require('./src/handler.js');
const handler = require('./src/handler');

http.createServer((req, res) => handler(req, res))
.listen(3000);
Expand Down
2 changes: 1 addition & 1 deletion functional.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const http = require('http');
const got = require('got');

const handler = require('./src/handler.js');
const handler = require('./src/handler');

describe('functional', () => {
let server;
Expand Down
681 changes: 593 additions & 88 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"jsdom": "^16.6.0",
"eslint": "^7.27.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-import": "^2.23.3",
"eslint-plugin-jest": "^24.3.6",
"got": "^9.5.1",
"jest": "^26.6.3",
Expand Down
2 changes: 1 addition & 1 deletion src/java/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const findReachableUrls = require('find-reachable-urls');
const flatMappingList = require('./mapping');
const flatMappingList = require('./mapping.json');
const cache = require('../utils/cache');

const SUPPORTED_JAVA_VERSIONS = [9, 8, 7];
Expand Down
2 changes: 1 addition & 1 deletion src/registries/xpath-helper.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const jpath = require('json-path');
const xpathHelper = require('./xpath-helper.js');
const xpathHelper = require('./xpath-helper');

jest.mock('json-path');

Expand Down
6 changes: 3 additions & 3 deletions src/utils/cache.spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const redis = require('ioredis');
const cache = require('./cache.js');
require('./log.js');
const cache = require('./cache');
require('./log');

jest.mock('./log.js');
jest.mock('./log');
jest.mock('ioredis');

describe('cache', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/url.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { prioritiesHost } = require('./url.js');
const { prioritiesHost } = require('./url');

const inputUrls = [
'https://foo.com',
Expand Down