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

glob

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

14

common.js

@@ -16,3 +16,3 @@ exports.setopts = setopts

var minimatch = require("minimatch")
var isAbsolute = require("path-is-absolute")
var isAbsolute = require("path").isAbsolute
var Minimatch = minimatch.Minimatch

@@ -92,3 +92,3 @@

if (!ownProp(options, "cwd"))
self.cwd = cwd
self.cwd = path.resolve(cwd)
else {

@@ -101,4 +101,2 @@ self.cwd = path.resolve(options.cwd)

self.root = path.resolve(self.root)
if (process.platform === "win32")
self.root = self.root.replace(/\\/g, "/")

@@ -108,6 +106,10 @@ // TODO: is an absolute `cwd` supposed to be resolved against `root`?

self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)
if (process.platform === "win32")
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
self.nomount = !!options.nomount
if (process.platform === "win32") {
self.root = self.root.replace(/\\/g, "/")
self.cwd = self.cwd.replace(/\\/g, "/")
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
}
// disable comments and negation in Minimatch.

@@ -114,0 +116,0 @@ // Note that they are not supported in Glob itself anyway.

@@ -50,3 +50,3 @@ // Approach:

var assert = require('assert')
var isAbsolute = require('path-is-absolute')
var isAbsolute = require('path').isAbsolute
var globSync = require('./sync.js')

@@ -53,0 +53,0 @@ var common = require('./common.js')

@@ -5,3 +5,3 @@ {

"description": "a little globber",
"version": "8.0.1",
"version": "8.0.2",
"repository": {

@@ -25,4 +25,3 @@ "type": "git",

"minimatch": "^5.0.1",
"once": "^1.3.0",
"path-is-absolute": "^1.0.0"
"once": "^1.3.0"
},

@@ -29,0 +28,0 @@ "devDependencies": {

@@ -11,3 +11,3 @@ module.exports = globSync

var assert = require('assert')
var isAbsolute = require('path-is-absolute')
var isAbsolute = require('path').isAbsolute
var common = require('./common.js')

@@ -14,0 +14,0 @@ var setopts = common.setopts

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