url-or-path
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -10,3 +10,3 @@ import {fileURLToPath, pathToFileURL} from 'node:url' | ||
typeof value === 'string' && value.startsWith('file://') | ||
/** @type {(value: unknown) => value is UrlOrPath} */ | ||
/** @type {(urlOrPath: unknown) => urlOrPath is UrlOrPath} */ | ||
const isUrl = (urlOrPath) => isUrlInstance(urlOrPath) || isUrlString(urlOrPath) | ||
@@ -13,0 +13,0 @@ |
{ | ||
"name": "url-or-path", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Convert between file URL and path.", | ||
@@ -21,7 +21,11 @@ "homepage": "https://github.com/fisker/url-or-path#readme", | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts", | ||
"index.d.ts.map" | ||
], | ||
"scripts": { | ||
"build": "run-p build:*", | ||
"build:types": "tsc", | ||
"clean": "run-p clean:*", | ||
"clean:dist": "del-cli dist", | ||
"clean:dist": "del-cli index.d.ts index.d.ts.map", | ||
"dist": "run-p dist:*", | ||
@@ -39,6 +43,6 @@ "dist:npm": "np --yolo --no-yarn", | ||
"lint:prettier": "prettier \"**/*.{css,html,js,cjs,mjs,json,less,md,scss,ts,vue,yaml,yml}\" --check", | ||
"prepare": "husky install", | ||
"release": "run-s format clean build test dist", | ||
"test": "ava", | ||
"test-coverage": "c8 ava", | ||
"release": "run-s format test dist", | ||
"prepare": "husky install" | ||
"test-coverage": "c8 ava" | ||
}, | ||
@@ -60,12 +64,14 @@ "ava": { | ||
"@fisker/prettier-config": "5.1.1", | ||
"@types/node": "20.9.2", | ||
"ava": "5.3.1", | ||
"c8": "8.0.1", | ||
"del-cli": "5.1.0", | ||
"eslint": "8.53.0", | ||
"eslint": "8.54.0", | ||
"husky": "8.0.3", | ||
"lint-staged": "15.1.0", | ||
"markdownlint-cli2": "0.10.0", | ||
"npm-run-all": "4.1.5", | ||
"npm-run-all2": "6.1.1", | ||
"prettier": "3.1.0", | ||
"sort-package-json": "2.6.0" | ||
"sort-package-json": "2.6.0", | ||
"typescript": "5.2.2" | ||
}, | ||
@@ -72,0 +78,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7869
6
54
17