fix(core): update

This commit is contained in:
2022-07-27 00:40:18 +02:00
parent b84c8053ff
commit 4b6dc9f5c3
11 changed files with 11652 additions and 8972 deletions

8
ts/00_commitinfo_data.ts Normal file
View 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'
}

View File

@ -1 +1 @@
export * from './smarturl.classes.smarturl';
export * from './smarturl.classes.smarturl.js';

View File

@ -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}`;
}
}