This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/tslog/cjs/urlToObj.js
T

20 lines
559 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.urlToObject = urlToObject;
function urlToObject(url) {
return {
href: url.href,
protocol: url.protocol,
username: url.username,
password: url.password,
host: url.host,
hostname: url.hostname,
port: url.port,
pathname: url.pathname,
search: url.search,
searchParams: [...url.searchParams].map(([key, value]) => ({ key, value })),
hash: url.hash,
origin: url.origin,
};
}