refactor: init cypress-cucumber-preprocessor install.

This commit is contained in:
2021-09-02 17:02:45 +02:00
parent 89ec2d42ac
commit 1aa57bbd0a
5000 changed files with 408119 additions and 231 deletions

43
node_modules/cached-path-relative/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
/**
* Modules
*/
var path = require('path')
/**
* Vars
*/
var relative = path.relative
var lastCwd = process.cwd()
var cache = Object.create(null)
/**
* Expose cachedPathRelative
*/
module.exports = cachedPathRelative
/**
* cachedPathRelative
*/
function cachedPathRelative (from, to) {
// If the current working directory changes, we need
// to invalidate the cache
var cwd = process.cwd()
if (cwd !== lastCwd) {
cache = {}
lastCwd = cwd
}
if (cache[from] && cache[from][to]) return cache[from][to]
var result = relative.call(path, from, to)
cache[from] = cache[from] || {}
cache[from][to] = result
return result
}