fix(core): update
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smarturl',
|
||||
version: '2.0.2',
|
||||
description: 'a url parsing lib'
|
||||
}
|
@ -1 +1 @@
|
||||
export * from './smarturl.classes.smarturl';
|
||||
export * from './smarturl.classes.smarturl.js';
|
||||
|
@ -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