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"
|
"buildDocs": "tsdoc"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.63",
|
"@gitzone/tsbuild": "^2.1.65",
|
||||||
"@gitzone/tstest": "^1.0.72",
|
"@gitzone/tsrun": "^1.2.39",
|
||||||
|
"@gitzone/tstest": "^1.0.74",
|
||||||
"@pushrocks/tapbundle": "^5.0.4",
|
"@pushrocks/tapbundle": "^5.0.4",
|
||||||
"@types/node": "^18.6.1"
|
"@types/node": "^18.15.11"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
@ -33,6 +34,5 @@
|
|||||||
],
|
],
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"last 1 chrome versions"
|
"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 = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smarturl',
|
name: '@pushrocks/smarturl',
|
||||||
version: '3.0.5',
|
version: '3.0.6',
|
||||||
description: 'a url parsing lib'
|
description: 'a url parsing lib'
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,9 @@ export class Smarturl implements IUrlObject {
|
|||||||
searchParams: ISearchParams;
|
searchParams: ISearchParams;
|
||||||
hash: string;
|
hash: string;
|
||||||
|
|
||||||
constructor() {}
|
constructor() {
|
||||||
|
this.searchParams = {};
|
||||||
|
}
|
||||||
|
|
||||||
toString() {
|
toString() {
|
||||||
let userpart = ``;
|
let userpart = ``;
|
||||||
|
Loading…
Reference in New Issue
Block a user