Skip to content

Commit

Permalink
Deps: Replace request devDependency with @sailshq/request (#7339)
Browse files Browse the repository at this point in the history
* Update package.json

* Update package.json

* update tests to use @sailshq/request
  • Loading branch information
eashaw authored May 17, 2024
1 parent 739e0ad commit 80c0354
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"mocha": "3.0.2",
"nunjucks": "3.0.1",
"portfinder": "1.0.13",
"request": "2.83.0",
"@sailshq/request": "2.88.3",
"root-require": "0.3.1",
"sails-hook-orm": "^4.0.2",
"sails-hook-sockets": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion test/benchmarks/sails.request.generic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var util = require('util');
var assert = require('assert');
var tmp = require('tmp');
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');

var Filesystem = require('machinepack-fs');

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/test-spawning-sails-child-process-in-cwd.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

var path = require('path');
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var MProcess = require('machinepack-process');


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

var path = require('path');
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var MProcess = require('machinepack-process');
var testSpawningSailsChildProcessInCwd = require('./test-spawning-sails-child-process-in-cwd');

Expand Down
2 changes: 1 addition & 1 deletion test/hooks/http/initialize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var assert = require('assert');
var util = require('util');
var Sails = require('../../../lib').Sails;
var $Router = require('../../helpers/router');
var request = require('request');
var request = require('@sailshq/request');

describe('HTTP hook', function (){

Expand Down
2 changes: 1 addition & 1 deletion test/hooks/views/skipAssets.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var path = require('path');
var util = require('util');
var _ = require('@sailshq/lodash');
var tmp = require('tmp');
var request = require('request');
var request = require('@sailshq/request');
var MProcess = require('machinepack-process');
var MFilesystem = require('machinepack-fs');
var testSpawningSailsLiftChildProcessInCwd = require('../../helpers/test-spawning-sails-lift-child-process-in-cwd');
Expand Down
2 changes: 1 addition & 1 deletion test/integration/helpers/httpHelper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var request = require('request');
var request = require('@sailshq/request');
var fs = require('fs');


Expand Down
2 changes: 1 addition & 1 deletion test/integration/lift.https.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var assert = require('assert');
var fs = require('fs');
var request = require('request');
var request = require('@sailshq/request');
var appHelper = require('./helpers/appHelper');
var path = require('path');

Expand Down
2 changes: 1 addition & 1 deletion test/integration/lift.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var path = require('path');
var util = require('util');
var tmp = require('tmp');
var request = require('request');
var request = require('@sailshq/request');
var assert = require('assert');
var _ = require('@sailshq/lodash');
var MProcess = require('machinepack-process');
Expand Down
4 changes: 2 additions & 2 deletions test/integration/middleware.404.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');
var fs = require('fs-extra');
var request = require('request');
var request = require('@sailshq/request');
var appHelper = require('./helpers/appHelper');
var path = require('path');

Expand Down
4 changes: 2 additions & 2 deletions test/integration/middleware.500.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');
var fs = require('fs-extra');
var request = require('request');
var request = require('@sailshq/request');
var appHelper = require('./helpers/appHelper');
var path = require('path');

Expand Down
2 changes: 1 addition & 1 deletion test/integration/middleware.compression.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/integration/middleware.cookieParser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');

Expand Down
4 changes: 2 additions & 2 deletions test/integration/middleware.favicon.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');
var fs = require('fs-extra');
var request = require('request');
var request = require('@sailshq/request');
var appHelper = require('./helpers/appHelper');
var path = require('path');

Expand Down
4 changes: 2 additions & 2 deletions test/integration/middleware.handleBodyParserError.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');
var fs = require('fs-extra');
var request = require('request');
var request = require('@sailshq/request');
var appHelper = require('./helpers/appHelper');
var path = require('path');

Expand Down
2 changes: 1 addition & 1 deletion test/integration/middleware.sails.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Module dependencies
*/

var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');

Expand Down
2 changes: 1 addition & 1 deletion test/integration/middleware.session.redis.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');
var cookie = require('cookie');
Expand Down
2 changes: 1 addition & 1 deletion test/integration/middleware.session.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');
var cookie = require('cookie');
Expand Down
4 changes: 2 additions & 2 deletions test/integration/middleware.startRequestTimer.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');
var fs = require('fs-extra');
var request = require('request');
var request = require('@sailshq/request');
var appHelper = require('./helpers/appHelper');
var path = require('path');

Expand Down
4 changes: 2 additions & 2 deletions test/integration/middleware.static.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
*/

var _ = require('@sailshq/lodash');
var request = require('request');
var request = require('@sailshq/request');
var Sails = require('../../lib').Sails;
var assert = require('assert');
var fs = require('fs-extra');
var request = require('request');
var request = require('@sailshq/request');
var appHelper = require('./helpers/appHelper');
var path = require('path');

Expand Down

0 comments on commit 80c0354

Please sign in to comment.