Skip to content

Commit

Permalink
deps: walk-up-path@3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Apr 15, 2023
1 parent d9bb89f commit d5ee2f7
Show file tree
Hide file tree
Showing 15 changed files with 104 additions and 33 deletions.
18 changes: 18 additions & 0 deletions node_modules/walk-up-path/dist/cjs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.walkUp = void 0;
const path_1 = require("path");
const walkUp = function* (path) {
for (path = (0, path_1.resolve)(path); path;) {
yield path;
const pp = (0, path_1.dirname)(path);
if (pp === path) {
break;
}
else {
path = pp;
}
}
};
exports.walkUp = walkUp;
//# sourceMappingURL=index.js.map
3 changes: 3 additions & 0 deletions node_modules/walk-up-path/dist/cjs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
14 changes: 14 additions & 0 deletions node_modules/walk-up-path/dist/mjs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { dirname, resolve } from 'path';
export const walkUp = function* (path) {
for (path = resolve(path); path;) {
yield path;
const pp = dirname(path);
if (pp === path) {
break;
}
else {
path = pp;
}
}
};
//# sourceMappingURL=index.js.map
3 changes: 3 additions & 0 deletions node_modules/walk-up-path/dist/mjs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
11 changes: 0 additions & 11 deletions node_modules/walk-up-path/index.js

This file was deleted.

60 changes: 52 additions & 8 deletions node_modules/walk-up-path/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
{
"name": "walk-up-path",
"version": "1.0.0",
"version": "3.0.1",
"files": [
"index.js"
"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.",
"repository": {
"type": "git",
Expand All @@ -12,17 +27,46 @@
"author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
"license": "ISC",
"scripts": {
"test": "tap",
"snap": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"prepublishOnly": "git push origin --follow-tags"
"prepublishOnly": "git push origin --follow-tags",
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json && bash ./scripts/fixup.sh",
"pretest": "npm run prepare",
"presnap": "npm run prepare",
"test": "c8 tap",
"snap": "c8 tap",
"format": "prettier --write . --loglevel warn",
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts"
},
"prettier": {
"semi": false,
"printWidth": 75,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"jsxSingleQuote": false,
"bracketSameLine": true,
"arrowParens": "avoid",
"endOfLine": "lf"
},
"tap": {
"check-coverage": true
"coverage": false,
"node-arg": [
"--no-warnings",
"--loader",
"ts-node/esm"
],
"ts": false
},
"devDependencies": {
"tap": "^14.10.7",
"require-inject": "^1.4.4"
"@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"
}
}
12 changes: 6 additions & 6 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14593,9 +14593,9 @@
}
},
"node_modules/walk-up-path": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-1.0.0.tgz",
"integrity": "sha512-hwj/qMDUEjCU5h0xr90KGCf0tg0/LgJbmOWgrWKYlcJZM7XvquvUJZ0G/HMGr7F7OQMOUuPHWP9JpriinkAlkg=="
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-3.0.1.tgz",
"integrity": "sha512-9YlCL/ynK3CTlrSRrDxZvUauLzAswPCrsaCgilqFevUYpeEW0/3ScEjaa3kbW/T0ghhkEr7mv+fpjqn1Y1YuTA=="
},
"node_modules/wcwidth": {
"version": "1.0.1",
Expand Down Expand Up @@ -15060,7 +15060,7 @@
"semver": "^7.3.7",
"ssri": "^10.0.1",
"treeverse": "^3.0.0",
"walk-up-path": "^1.0.0"
"walk-up-path": "^3.0.1"
},
"bin": {
"arborist": "bin/index.js"
Expand Down Expand Up @@ -15091,7 +15091,7 @@
"proc-log": "^3.0.0",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.5",
"walk-up-path": "^1.0.0"
"walk-up-path": "^3.0.1"
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
Expand Down Expand Up @@ -15158,7 +15158,7 @@
"read": "^2.0.0",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.7",
"walk-up-path": "^1.0.0"
"walk-up-path": "^3.0.1"
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/arborist/lib/arborist/load-actual.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { relative, dirname, resolve, join, normalize } = require('path')

const rpj = require('read-package-json-fast')
const { readdirScoped } = require('@npmcli/fs')
const walkUp = require('walk-up-path')
const { walkUp } = require('walk-up-path')
const ancestorPath = require('common-ancestor-path')
const treeCheck = require('../tree-check.js')

Expand Down
2 changes: 1 addition & 1 deletion workspaces/arborist/lib/arborist/reify.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { subset, intersects } = require('semver')
const npa = require('npm-package-arg')
const semver = require('semver')
const debug = require('../debug.js')
const walkUp = require('walk-up-path')
const { walkUp } = require('walk-up-path')
const log = require('proc-log')
const hgi = require('hosted-git-info')
const rpj = require('read-package-json-fast')
Expand Down
2 changes: 1 addition & 1 deletion workspaces/arborist/lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const npa = require('npm-package-arg')
const debug = require('./debug.js')
const gatherDepSet = require('./gather-dep-set.js')
const treeCheck = require('./tree-check.js')
const walkUp = require('walk-up-path')
const { walkUp } = require('walk-up-path')

const { resolve, relative, dirname, basename } = require('path')
const util = require('util')
Expand Down
2 changes: 1 addition & 1 deletion workspaces/arborist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"semver": "^7.3.7",
"ssri": "^10.0.1",
"treeverse": "^3.0.0",
"walk-up-path": "^1.0.0"
"walk-up-path": "^3.0.1"
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/config/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// TODO: set the scope config from package.json or explicit cli config
const walkUp = require('walk-up-path')
const { walkUp } = require('walk-up-path')
const ini = require('ini')
const nopt = require('nopt')
const mapWorkspaces = require('@npmcli/map-workspaces')
Expand Down
2 changes: 1 addition & 1 deletion workspaces/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"proc-log": "^3.0.0",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.5",
"walk-up-path": "^1.0.0"
"walk-up-path": "^3.0.1"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmexec/lib/file-exists.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { resolve } = require('path')
const { stat } = require('fs/promises')
const walkUp = require('walk-up-path')
const { walkUp } = require('walk-up-path')

const fileExists = async (file) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmexec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"read": "^2.0.0",
"read-package-json-fast": "^3.0.2",
"semver": "^7.3.7",
"walk-up-path": "^1.0.0"
"walk-up-path": "^3.0.1"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
Expand Down

0 comments on commit d5ee2f7

Please sign in to comment.