Skip to content

Commit

Permalink
upgraded deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ortexx committed Feb 27, 2024
1 parent 03dc684 commit 6ca2f8a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 50 deletions.
6 changes: 3 additions & 3 deletions dist/client/spreadable.client.js

Large diffs are not rendered by default.

47 changes: 9 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spreadable",
"version": "0.3.7",
"version": "0.3.8",
"description": "Decentralized network mechanism",
"bin": {
"spreadable": "./bin/index.js"
Expand Down Expand Up @@ -68,7 +68,7 @@
"cors": "^2.8.5",
"cron": "^3.1.6",
"express": "^4.18.2",
"form-data": "^4.0.0",
"formdata-node": "^6.0.3",
"fs-extra": "^11.2.0",
"get-port": "^7.0.0",
"ip6addr": "^0.2.5",
Expand All @@ -81,7 +81,7 @@
"signal-exit": "^4.1.0",
"tcp-port-used": "^1.0.2",
"text-to-svg": "^3.1.5",
"validate-ip-node": "^1.0.8",
"validate-ip-node": "^1.0.8",
"yargs": "^17.7.2"
},
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import merge from "lodash-es/merge.js";
import shuffle from "lodash-es/shuffle.js";
import FormData from "form-data";
import { FormData } from "formdata-node";
import https from "https";
import fetch from "node-fetch";
import qs from "querystring";
Expand Down Expand Up @@ -67,7 +67,7 @@ export default (Parent) => {
if (typeof location != 'object' || !location.protocol) {
return '';
}

return location.protocol.split(':')[0];
}

Expand Down
4 changes: 2 additions & 2 deletions src/node.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import FormData from "form-data";
import fse from "fs-extra";
import http from "http";
import https from "https";
import { capitalize, isPlainObject, merge, orderBy, pick, shuffle, uniqBy } from "lodash-es";
import { FormData } from "formdata-node";
import ms from "ms";
import fetch from "node-fetch";
import path from "path";
Expand Down Expand Up @@ -1199,7 +1199,7 @@ export default (Parent) => {
form.append(key, val);
}
}

options.body = form;
delete options.formData;
}
Expand Down
4 changes: 2 additions & 2 deletions test/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from "path";
import merge from "lodash-es/merge.js";
import shuffle from "lodash-es/shuffle.js";
import getPort from "get-port";
import FormData from "form-data";
import { FormData } from "formdata-node";
import fse from "fs-extra";
const tools = {};
tools.tmpPath = path.join(process.cwd(), 'test/tmp');
Expand Down Expand Up @@ -164,7 +164,7 @@ tools.wait = async function (timeout) {
*/
tools.nodesSync = async function (nodes, count = 1) {
nodes = shuffle(nodes);

for (let i = 0; i < count; i++) {
for (let k = 0; k < nodes.length; k++) {
try {
Expand Down

0 comments on commit 6ca2f8a

Please sign in to comment.