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
3 changes: 1 addition & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"node": true,
"browser": false,
"commonjs": true,
"es2021": true,
"mocha": true
"es2021": true
},
"plugins": [
"sonarjs"
Expand Down
21 changes: 0 additions & 21 deletions .jsdoc.json

This file was deleted.

42 changes: 0 additions & 42 deletions .jshintrc

This file was deleted.

2 changes: 1 addition & 1 deletion lib/server/middleware/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ AuthenticateMiddlewareFactory._getHash = function (req) {
AuthenticateMiddlewareFactory._getPayload(req)
].join('\n'), 'utf8');

return crypto.createHash('sha256').update(contract).digest('hex')
return crypto.createHash('sha256').update(contract).digest('hex');
};

AuthenticateMiddlewareFactory._verifySignature = function (req) {
Expand Down
1 change: 0 additions & 1 deletion lib/server/middleware/pow.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ function getTarget(db, opts, callback) {
assert(Number.isSafeInteger(retargetPeriod),
'retargetPeriod is expected to be a safe integer');

/* jshint maxstatements: 100 */
db.hgetall('contact-stats', function (err, stats) {
if (err) {
return callback(err);
Expand Down
1 change: 0 additions & 1 deletion lib/server/routes/buckets.js
Original file line number Diff line number Diff line change
Expand Up @@ -1451,7 +1451,6 @@ BucketsRouter.prototype.getDownloadLinks = async function (req, res, next) {
* @private
*/
BucketsRouter.prototype._definitions = function () {
/* jshint maxlen: 140 */
return [
['GET', '/buckets', this.getLimiter(limiter(1000)), this._verify, this.getBuckets],
['POST', '/buckets', this.getLimiter(limiter(1000)), this._verify, this.createBucket],
Expand Down
1 change: 0 additions & 1 deletion lib/server/routes/frames.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ FramesRouter.prototype.getStorageLimit = function (req, res) {
* @private
*/
FramesRouter.prototype._definitions = function () {
/* jshint maxlen: 140 */
return [
['GET', '/frames', this.getLimiter(limiter(1000)), this._verify, this.getFrames],
['GET', '/frames/:frame', this.getLimiter(limiter(1000)), this._verify, this.getFrameById],
Expand Down
34 changes: 8 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,10 @@
"inxt-audit": "bin/inxt-audit-monitor.js"
},
"scripts": {
"testsuite": "STORJ_ALLOW_LOOPBACK=1 NODE_ENV=test ./node_modules/.bin/mocha --recursive test/ --exit",
"coverage": "STORJ_ALLOW_LOOPBACK=1 NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --recursive",
"integration": "NODE_ENV=test _mocha --recursive test-integration/**",
"linter": "eslint ./lib ./index.js ./bin ./config",
"linter": "eslint ./lib ./index.js ./bin",
"lint:fix": "npm run linter -- --fix",
"dev": "NODE_ENV=development nodemon bin/storj-bridge.ts",
"debug": "NODE_ENV=development nodemon --watch 'lib/**' --watch 'bin/**' --ext 'js,ts,json' --exec \"node --inspect=0.0.0.0:9229 --require ts-node/register bin/storj-bridge.ts\"",
"make-docs": "./node_modules/.bin/jsdoc index.js lib -r -R README.md -u ./doc -c .jsdoc.json --verbose -d ./jsdoc",
"publish-docs": "gh-pages -d jsdoc --repo git@github.com:internxt/bridge.git",
"build": "tsc",
"test": "jest --testPathIgnorePatterns ./tests/lib/mongo ./tests/lib/e2e",
"test:cov": "jest --coverage",
Expand Down Expand Up @@ -69,31 +64,18 @@
"@types/supertest": "^2.0.12",
"@types/uuid": "^8.3.4",
"bitcore-lib": "8.25.10",
"chai": "^4.2.0",
"chance": "^1.1.11",
"coveralls": "^2.11.6",
"dotenv": "^16.0.0",
"eslint": "^7.10.0",
"eslint-plugin-sonarjs": "^0.6.0",
"gh-pages": "^2.1.1",
"ink-docstrap": "github:boshevski/docstrap",
"istanbul": "^0.4.1",
"jest": "^29.0.0",
"jsdoc": "^3.6.3",
"jshint": "^2.10.2",
"memdown": "^4.1.0",
"mocha": "^6.2.0",
"mongodb": "^5.9.2",
"mysql": "^2.18.1",
"node-mocks-http": "^1.7.6",
"node-mongodb-fixtures": "^3.2.9",
"nodemon": "^2.0.15",
"proxyquire": "^1.7.10",
"redis-mock": "^0.16.0",
"rimraf": "^2.6.3",
"sinon": "^13.0.1",
"supertest": "^6.2.4",
"ts-jest": "^29.0.0",
"ts-jest": "^29.4.15",
"ts-node": "^10.7.0"
},
"dependencies": {
Expand All @@ -102,14 +84,14 @@
"analytics-node": "^2.4.0",
"async": "^3.2.0",
"aws-sdk": "^2.920.0",
"axios": "0.33.0",
"axios": "0.35.0",
"basic-auth": "^2.0.1",
"bn.js": "^4.11.8",
"bullmq": "^5.70.1",
"commander": "8.3.0",
"concat-stream": "^1.6.2",
"cors": "^2.8.5",
"express": "^4.17.1",
"express": "^4.22.3",
"hat": "0.0.3",
"helmet": "^3.20.0",
"inxt-service-mailer": "internxt/mailer#v1.5.2",
Expand All @@ -130,9 +112,9 @@
"winston": "^3.2.1"
},
"resolutions": {
"@sendgrid/mail/@sendgrid/client/axios": "1.19.0",
"qs": "6.15.2",
"bn.js": "4.12.3",
"axios/follow-redirects": "^1.16.0"
"**/@sendgrid/client/axios": "1.21.1",
"qs": "6.17.1",
"bn.js": "4.12.5",
"axios/follow-redirects": "^1.16.3"
}
}
Loading
Loading