Socket
Socket
Sign inDemoInstall

url-search-query-builder

Package Overview
Dependencies
17
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

2

dist/index.d.ts

@@ -13,4 +13,4 @@ import { objectType, parseUrlType } from "./types";

reset(): string;
set(props: string, value: any): undefined | string;
set(props: string, value: any): string;
}
export default QueryBuilder;

@@ -90,9 +90,6 @@ "use strict";

var _a;
if (this.has(props)) {
var obj = __assign({}, this.parsedUrl.query, (_a = {}, _a[props] = value, _a));
var baseUrl = this.parsedUrl.pathname;
this.buildUrl(baseUrl, obj);
return this.url;
}
return undefined;
var obj = __assign({}, this.parsedUrl.query, (_a = {}, _a[props] = value, _a));
var baseUrl = this.parsedUrl.pathname;
this.buildUrl(baseUrl, obj);
return this.url;
};

@@ -99,0 +96,0 @@ return QueryBuilder;

{
"name": "url-search-query-builder",
"version": "1.0.3",
"version": "1.0.4",
"description": "A shortcut that does get/set/has/delete/reset/add operation on an url that contains query or search, good for pagination and filter as well as search engine optimization",

@@ -5,0 +5,0 @@ "private": false,

@@ -9,2 +9,3 @@ # url-search-query-builder

[![David Dependancy Status](https://david-dm.org/YIZHUANG/url-search-query-builder.svg)](https://david-dm.org/YIZHUANG/url-search-query-builder)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FYIZHUANG%2Furl-search-query-builder.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FYIZHUANG%2Furl-search-query-builder?ref=badge_shield)

@@ -11,0 +12,0 @@ ## Environment.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc