"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLocationIfo = void 0;
const query_string_1 = __importDefault(require("query-string"));
const getLocationIfo = (location) => {
    const { pathname, search } = location;
    const searchParams = query_string_1.default.parse(search) || '';
    return Object.assign({ pathname,
        search }, searchParams);
};
exports.getLocationIfo = getLocationIfo;
exports.default = { getLocationIfo: exports.getLocationIfo };
