Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

url-or-path

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-or-path - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

index.d.ts

2

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc