Skip to content

Commit

Permalink
fix format; update version
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed May 14, 2023
1 parent 09d6380 commit cc1a6d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "url-normalize",
"version": "1.2.0",
"version": "1.2.1",
"author": "Vlad Pronsky <[email protected]>",
"repository": "vladkens/url-normalize",
"description": "Normalize URLs to a standardized form by removing unnecessary characters, decoding encoded characters, removing default index pages, removing trailing slashes, and more.",
Expand All @@ -11,7 +11,8 @@
"test": "uvu -r tsm tests/",
"test-cov": "c8 --include=src yarn test",
"test-watch": "watchexec -e ts 'clear && yarn test'",
"format-check": "prettier --check \"{src,tests}/**/*.{js,jsx,ts,tsx}\""
"format": "prettier --write '{src,tests}/**/*.{js,jsx,ts,tsx}'",
"format-check": "prettier --check '{src,tests}/**/*.{js,jsx,ts,tsx}'"
},
"devDependencies": {
"c8": "^7.13.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "uvu"
import { equal, not, throws } from "uvu/assert"
import { extractDomain, extractDomainOrFail, Options, urlNormalize, urlNormalizeOrFail } from "../src/main"
import { Options, extractDomain, extractDomainOrFail, urlNormalize, urlNormalizeOrFail } from "../src/main"

const t = (url: string, exp: string | null, opts?: Options) => {
return equal(urlNormalize(url, opts), exp, `FAIL: ${url} -> ${exp}`)
Expand Down

0 comments on commit cc1a6d9

Please sign in to comment.