fix(core): update

This commit is contained in:
Philipp Kunz 2023-04-17 14:41:23 +02:00
parent 5eaa7ea0c3
commit 25a8b750d8
6 changed files with 4483 additions and 14574 deletions

14567
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -14,10 +14,11 @@
"buildDocs": "tsdoc"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.63",
"@gitzone/tstest": "^1.0.72",
"@gitzone/tsbuild": "^2.1.65",
"@gitzone/tsrun": "^1.2.39",
"@gitzone/tstest": "^1.0.74",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.6.1"
"@types/node": "^18.15.11"
},
"files": [
"ts/**/*",
@ -33,6 +34,5 @@
],
"browserslist": [
"last 1 chrome versions"
],
"dependencies": {}
]
}

4457
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,17 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smarturl from '../ts/index.js';
let testSmarturl: smarturl.Smarturl;
tap.test('first test', async () => {
testSmarturl = new smarturl.Smarturl();
expect(testSmarturl).toBeInstanceOf(smarturl.Smarturl);
});
tap.test('should create searchParams only', async () => {
const smarturlInstance = new smarturl.Smarturl();
smarturlInstance.searchParams['hello'] = 'hi_there';
console.log(smarturlInstance.toString());
})
tap.start();

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smarturl',
version: '3.0.5',
version: '3.0.6',
description: 'a url parsing lib'
}

View File

@ -121,7 +121,9 @@ export class Smarturl implements IUrlObject {
searchParams: ISearchParams;
hash: string;
constructor() {}
constructor() {
this.searchParams = {};
}
toString() {
let userpart = ``;