fix(core): update
This commit is contained in:
parent
5eaa7ea0c3
commit
25a8b750d8
14567
package-lock.json
generated
14567
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -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
generated
Normal file
4457
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
17
test/test.searchaprams.both.ts
Normal file
17
test/test.searchaprams.both.ts
Normal 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();
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smarturl',
|
||||
version: '3.0.5',
|
||||
version: '3.0.6',
|
||||
description: 'a url parsing lib'
|
||||
}
|
||||
|
@ -121,7 +121,9 @@ export class Smarturl implements IUrlObject {
|
||||
searchParams: ISearchParams;
|
||||
hash: string;
|
||||
|
||||
constructor() {}
|
||||
constructor() {
|
||||
this.searchParams = {};
|
||||
}
|
||||
|
||||
toString() {
|
||||
let userpart = ``;
|
||||
|
Loading…
Reference in New Issue
Block a user