New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

responsive-loader

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

responsive-loader - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

18

lib/parseQuery.js

@@ -11,10 +11,10 @@ "use strict";

function parseQuery(query) {
if (query.substring(0, 1) !== '?') {
if (query.substr(0, 1) !== '?') {
throw new Error("A valid query string passed to parseQuery should begin with '?'");
}
query = query.substring(1);
query = query.substr(1);
if (!query) {
return {};
}
if (query.substring(0, 1) === '{' && query.substring(-1) === '}') {
if (query.substr(0, 1) === '{' && query.substr(-1) === '}') {
return JSON5.parse(query);

@@ -34,4 +34,4 @@ }

}
if (name.substring(-2) === '[]') {
name = decodeURIComponent(name.substring(0, name.length - 2));
if (name.substr(-2) === '[]') {
name = decodeURIComponent(name.substr(0, name.length - 2));
if (!Array.isArray(result[name])) {

@@ -48,7 +48,7 @@ result[name] = [];

else {
if (arg.substring(0, 1) === '-') {
result[decodeURIComponent(arg.substring(1))] = false;
if (arg.substr(0, 1) === '-') {
result[decodeURIComponent(arg.substr(1))] = false;
}
else if (arg.substring(0, 1) === '+') {
result[decodeURIComponent(arg.substring(1))] = true;
else if (arg.substr(0, 1) === '+') {
result[decodeURIComponent(arg.substr(1))] = true;
}

@@ -55,0 +55,0 @@ else {

{
"name": "responsive-loader",
"version": "3.0.0",
"version": "3.0.1",
"description": "A webpack loader for responsive images",

@@ -5,0 +5,0 @@ "main": "lib/cjs.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc