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

walk-up-path

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

walk-up-path - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0

dist/commonjs/index.d.ts

75

package.json
{
"name": "walk-up-path",
"version": "3.0.1",
"version": "4.0.0",
"files": [
"dist"
],
"main": "./dist/cjs/index.js",
"module": "./dist/mjs/index.js",
"types": "./dist/mjs/index.d.ts",
"exports": {
".": {
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
},
"import": {
"types": "./dist/mjs/index.d.ts",
"default": "./dist/mjs/index.js"
}
}
},
"description": "Given a path string, return a generator that walks up the path, emitting each dirname.",

@@ -33,11 +18,12 @@ "repository": {

"prepublishOnly": "git push origin --follow-tags",
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json && bash ./scripts/fixup.sh",
"prepare": "tshy",
"pretest": "npm run prepare",
"presnap": "npm run prepare",
"test": "c8 tap",
"snap": "c8 tap",
"format": "prettier --write . --loglevel warn",
"test": "tap",
"snap": "tap",
"format": "prettier --write . --log-level warn",
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts"
},
"prettier": {
"experimentalTernaries": true,
"semi": false,

@@ -53,22 +39,35 @@ "printWidth": 75,

},
"tap": {
"coverage": false,
"node-arg": [
"--no-warnings",
"--loader",
"ts-node/esm"
],
"ts": false
"devDependencies": {
"@types/node": "^20.14.10",
"prettier": "^3.3.2",
"tap": "^20.0.3",
"tshy": "^3.0.0",
"typedoc": "^0.26.3"
},
"devDependencies": {
"@types/node": "^18.15.5",
"@types/tap": "^15.0.8",
"c8": "^7.13.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.6",
"tap": "^16.3.4",
"ts-node": "^10.9.1",
"typedoc": "^0.23.28",
"typescript": "^5.0.2"
"type": "module",
"tshy": {
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
},
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
},
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
"module": "./dist/esm/index.js",
"engines": {
"node": "20 || >=22"
}
}

@@ -33,3 +33,3 @@ # walk-up-path

```js
const walkUpPath = require('walk-up-path')
const { walkUpPath } = require('walk-up-path')
for (const p of walkUpPath(path)) {

@@ -43,3 +43,3 @@ // ... do stuff ..

```js
const walkUpPath = require('walk-up-path')
const { walkUpPath } = require('walk-up-path')
```

@@ -46,0 +46,0 @@

Sorry, the diff of this file is not supported yet

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