
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
url-search-params-delete
Advanced tools
A polyfill adding support for .delete(key,value) to URLSearchParams as discussed at https://github.com/whatwg/url/issues/335
A polyfill adding support for .delete(key,value)
to URLSearchParams
as discussed at https://github.com/whatwg/url/issues/335
const paramsString = "foo=1&foo=2&bar=3";
const searchParams = new URLSearchParams(paramsString);
searchParams.delete("foo", "2");
console.log(searchParams.toString()); // "foo=1&bar=3"
Install the npm package url-search-params-delete
and import it in your application code; a suitable location for this is usually at the top of your entry file.
import "url-search-params-delete";
The polyfill also adds support for .has(key,value)
(supporting a second argument for URLSearchParams.has()
).
const paramsString = "foo=1";
const searchParams = new URLSearchParams(paramsString);
searchParams.has("foo", "1"); // true
searchParams.has("foo", "2"); // false
FAQs
A polyfill adding support for .delete(key,value) to URLSearchParams as discussed at https://github.com/whatwg/url/issues/335
We found that url-search-params-delete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.