Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bitcointrade/query-string-hoc

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitcointrade/query-string-hoc - npm Package Compare versions

Comparing version 1.0.0-alpha to 1.0.0-alpha.1

2

index.d.ts

@@ -9,3 +9,3 @@ import { ParseOptions, StringifyOptions } from "query-string";

}
export declare type SetQueryString = (data: object, options: SetQueryStringOptions) => void;
export declare type SetQueryString = (data: object, options?: SetQueryStringOptions) => void;
export interface QueryStringInjectedProps {

@@ -12,0 +12,0 @@ queryString: {

@@ -28,3 +28,3 @@ "use strict";

var _b = _a.memoryOnly, memoryOnly = _b === void 0 ? false : _b, stringifyOptions = tslib_1.__rest(_a, ["memoryOnly"]);
var url = _this.sortUrl(location.href.split("?")[0] + "?" + query_string_1.default.stringify(data, stringifyOptions));
var url = _this.sortUrl(location.href.split(/\?/)[0] + "?" + query_string_1.default.stringify(data, stringifyOptions));
if (memoryOnly) {

@@ -63,7 +63,7 @@ _this.stateUrl = url;

if (url === void 0) { url = location.href; }
var _a = tslib_1.__read(url.split("?"), 2), path = _a[0], params = _a[1];
return params ? path + params.split("&").sort().join("&") : path;
var _a = tslib_1.__read(url.split(/\?/), 2), path = _a[0], params = _a[1];
return params ? path + "?" + params.split("&").sort().join("&") : path;
};
QueryString.prototype.parseQueryString = function (url) {
var data = query_string_1.default.parse(url.split("?")[1], options.parse);
var data = query_string_1.default.parse(url.split(/\?/)[1] || "", options.parse);
return parseTransform ? parseTransform(data) : data;

@@ -70,0 +70,0 @@ };

{
"name": "@bitcointrade/query-string-hoc",
"version": "1.0.0-alpha",
"version": "1.0.0-alpha.1",
"repository": "git@github.com:cryptocurrencytrader/query-string-hoc.git",

@@ -5,0 +5,0 @@ "author": "Rafael Tavares <rafael@tavares.email>",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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