fix(core): update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as plugins from './smarturl.plugins';
|
||||
import * as plugins from './smarturl.plugins.js';
|
||||
|
||||
export interface IUrlObject {
|
||||
href: string;
|
||||
@@ -45,7 +45,7 @@ export class Smarturl implements IUrlObject {
|
||||
if (Object.keys(searchParams).length > 0) {
|
||||
path += '?';
|
||||
let first = true;
|
||||
for(const key of Object.keys(searchParams)) {
|
||||
for (const key of Object.keys(searchParams)) {
|
||||
if (first) {
|
||||
first = false;
|
||||
} else {
|
||||
@@ -107,6 +107,6 @@ export class Smarturl implements IUrlObject {
|
||||
constructor() {}
|
||||
|
||||
toString() {
|
||||
return `${this.protocol}//${this.hostname}:${this.port}${this.path}`
|
||||
return `${this.protocol}//${this.hostname}:${this.port}${this.path}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user