Skip to content

Commit

Permalink
deprecate query-string (#2103)
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz authored Jan 6, 2024
1 parent cec3958 commit c057399
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 45 deletions.
1 change: 0 additions & 1 deletion reacnetgenerator/static/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"magnific-popup": "1.1.0",
"paginationjs": "2.6.0",
"popper.js": "1.16.1",
"query-string": "7.1.3",
"regenerator-runtime": "0.14.1",
"smiles-drawer": "2.0.3",
"startbootstrap-creative": "7.0.7"
Expand Down
5 changes: 2 additions & 3 deletions reacnetgenerator/static/webpack/reacnetgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ function loadrngdata() {
return;
}
// read from url
const queryString = require('query-string');
const parsed = queryString.parse(location.search);
const jdata = parsed['jdata'];
const parsed = new URLSearchParams(location.search);
const jdata = parsed.get("jdata");
if (jdata) {
$.get(decodeURIComponent(jdata), function(data) {
if (!handlejsondata(data)) {
Expand Down
41 changes: 0 additions & 41 deletions reacnetgenerator/static/webpack/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1395,13 +1395,6 @@ __metadata:
languageName: node
linkType: hard

"decode-uri-component@npm:^0.2.2":
version: 0.2.2
resolution: "decode-uri-component@npm:0.2.2"
checksum: 17a0e5fa400bf9ea84432226e252aa7b5e72793e16bf80b907c99b46a799aeacc139ec20ea57121e50c7bd875a1a4365928f884e92abf02e21a5a13790a0f33e
languageName: node
linkType: hard

"delayed-stream@npm:~1.0.0":
version: 1.0.0
resolution: "delayed-stream@npm:1.0.0"
Expand Down Expand Up @@ -1742,13 +1735,6 @@ __metadata:
languageName: node
linkType: hard

"filter-obj@npm:^1.1.0":
version: 1.1.0
resolution: "filter-obj@npm:1.1.0"
checksum: 9d681939eec2b4b129cb4f307b7e93d954a0657421d4e5357d86093b26d3f4f570909ed43717dcfd62428b3cf8cddd9841b35f9d40d12ac62cfabaa677942593
languageName: node
linkType: hard

"find-up@npm:^4.0.0":
version: 4.1.0
resolution: "find-up@npm:4.1.0"
Expand Down Expand Up @@ -3623,18 +3609,6 @@ __metadata:
languageName: node
linkType: hard

"query-string@npm:7.1.3":
version: 7.1.3
resolution: "query-string@npm:7.1.3"
dependencies:
decode-uri-component: "npm:^0.2.2"
filter-obj: "npm:^1.1.0"
split-on-first: "npm:^1.0.0"
strict-uri-encode: "npm:^2.0.0"
checksum: 3b6f2c167e76ca4094c5f1a9eb276efcbb9ebfd8b1a28c413f3c4e4e7d6428c8187bf46c8cbc9f92a229369dd0015de10a7fd712c8cee98d5d84c2ac6140357e
languageName: node
linkType: hard

"randombytes@npm:^2.1.0":
version: 2.1.0
resolution: "randombytes@npm:2.1.0"
Expand Down Expand Up @@ -3670,7 +3644,6 @@ __metadata:
postcss: "npm:8.4.33"
postcss-import: "npm:16.0.0"
postcss-loader: "npm:7.3.4"
query-string: "npm:7.1.3"
regenerator-runtime: "npm:0.14.1"
sass: "npm:1.69.7"
sass-loader: "npm:13.3.3"
Expand Down Expand Up @@ -4049,13 +4022,6 @@ __metadata:
languageName: node
linkType: hard

"split-on-first@npm:^1.0.0":
version: 1.1.0
resolution: "split-on-first@npm:1.1.0"
checksum: 16ff85b54ddcf17f9147210a4022529b343edbcbea4ce977c8f30e38408b8d6e0f25f92cd35b86a524d4797f455e29ab89eb8db787f3c10708e0b47ebf528d30
languageName: node
linkType: hard

"sri-create@npm:^0.0.3":
version: 0.0.3
resolution: "sri-create@npm:0.0.3"
Expand Down Expand Up @@ -4114,13 +4080,6 @@ __metadata:
languageName: node
linkType: hard

"strict-uri-encode@npm:^2.0.0":
version: 2.0.0
resolution: "strict-uri-encode@npm:2.0.0"
checksum: eaac4cf978b6fbd480f1092cab8b233c9b949bcabfc9b598dd79a758f7243c28765ef7639c876fa72940dac687181b35486ea01ff7df3e65ce3848c64822c581
languageName: node
linkType: hard

"string-replace-webpack-plugin@npm:0.1.3":
version: 0.1.3
resolution: "string-replace-webpack-plugin@npm:0.1.3"
Expand Down

0 comments on commit c057399

Please sign in to comment.