Skip to content

Commit

Permalink
remove path-is-absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 6, 2022
1 parent 5630197 commit a8a3682
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion common.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function ownProp (obj, field) {
var fs = require("fs")
var path = require("path")
var minimatch = require("minimatch")
var isAbsolute = require("path-is-absolute")
var isAbsolute = require("path").isAbsolute
var Minimatch = minimatch.Minimatch

function alphasort (a, b) {
Expand Down
2 changes: 1 addition & 1 deletion glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var inherits = require('inherits')
var EE = require('events').EventEmitter
var path = require('path')
var assert = require('assert')
var isAbsolute = require('path-is-absolute')
var isAbsolute = require('path').isAbsolute
var globSync = require('./sync.js')
var common = require('./common.js')
var setopts = common.setopts
Expand Down
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^5.0.1",
"once": "^1.3.0",
"path-is-absolute": "^1.0.0"
"once": "^1.3.0"
},
"devDependencies": {
"memfs": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var Glob = require('./glob.js').Glob
var util = require('util')
var path = require('path')
var assert = require('assert')
var isAbsolute = require('path-is-absolute')
var isAbsolute = require('path').isAbsolute
var common = require('./common.js')
var setopts = common.setopts
var ownProp = common.ownProp
Expand Down
2 changes: 1 addition & 1 deletion test/absolute.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var glob = require('../')
var common = require('../common.js')
var pattern = 'a/b/**';
var bashResults = require('./bash-results.json')
var isAbsolute = require('path-is-absolute')
var isAbsolute = require('path').isAbsolute
process.chdir(__dirname + '/fixtures')

t.Test.prototype.addAssert('isAbsolute', 1, function (file, message, extra) {
Expand Down
2 changes: 1 addition & 1 deletion test/bash-comparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var bashResults = require("./bash-results.json")
var globs = Object.keys(bashResults)
var glob = require("../")
var path = require("path")
var isAbsolute = require("path-is-absolute")
var isAbsolute = require("path").isAbsolute

// run from the root of the project
// this is usually where you're at anyway, but be sure.
Expand Down
2 changes: 1 addition & 1 deletion test/cwd-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var tap = require("tap")
var origCwd = process.cwd()
process.chdir(__dirname + '/fixtures')
var path = require('path')
var isAbsolute = require('path-is-absolute')
var isAbsolute = require('path').isAbsolute
var glob = require('../')

function cacheCheck(g, t) {
Expand Down

0 comments on commit a8a3682

Please sign in to comment.