diff --git a/README.md b/README.md index 9b47308..ad6c1e5 100644 --- a/README.md +++ b/README.md @@ -61,12 +61,12 @@ Url shortner supports the following providers. | Provider | Status | | ----------- | ------ | -| is.gd | ✔️ | -| cdpt.in | ✔️ | -| tinu.be | ✔️ | -| kroom.tk | ✔️ | -| tinyurl.com | ✔️ | -| 4h.net | ✔️ | +| is.gd | ✔️ | +| cdpt.in | ✔️ | +| tinu.be | ✔️ | +| kroom.tk | ✔️ | +| tinyurl.com | ✔️ | +| 4h.net | X | ## Contributing diff --git a/package.json b/package.json index 2aef343..7ca61db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "url-minify", - "version": "2.3.0", + "version": "2.3.1", "description": "Library to shorten url without any api keys", "scripts": { "format": "prettier --write \"src/**/*.ts\"", diff --git a/src/lib.ts b/src/lib.ts index 7523fe9..087948f 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -105,7 +105,7 @@ const ValidProviders: Record = { // POST APIS tinube: { - url: 'https://tinu.be/api/shorten', + url: 'https://api.tinu.be/api/shorten', method: 'post', body: (val: string) => { return { longUrl: val }; diff --git a/test/test.ts b/test/test.ts index d8963e7..422dc1e 100644 --- a/test/test.ts +++ b/test/test.ts @@ -25,10 +25,10 @@ describe('should get a shortened url', () => { expect(response.shortUrl).toMatch(/^www.kroom.tk\//); }); - it('should get shortened url with 4h.net', async () => { - const response = await minify(url, { provider: '4hnet' }); - expect(response.shortUrl).toMatch(/^https:\/\/4h.net\//); - }); + // it('should get shortened url with 4h.net', async () => { + // const response = await minify(url, { provider: '4hnet' }); + // expect(response.shortUrl).toMatch(/^https:\/\/4h.net\//); + // }); it('should get shortened url with tinu.be', async () => { const response = await minify(url, { provider: 'tinube' });