gulp-rev-lc
Advanced tools
Comparing version 1.0.0 to 1.0.1
11
index.js
@@ -15,3 +15,6 @@ 'use strict'; | ||
base = base.replace(/\\/g, '/'); | ||
// if(revisionedFile.indexOf(".js")>0){ | ||
// console.log(file.cwd, file.base, path.resolve(file.cwd, file.base) ) | ||
// } | ||
if (!filePath.startsWith(base)) { | ||
@@ -134,5 +137,9 @@ return filePath; | ||
const revisionedFile = relPath(path.resolve(file.cwd, file.base), path.resolve(file.cwd, file.path)); | ||
const originalFile = path.join(path.dirname(revisionedFile), path.basename(file.revOrigPath)).replace(/\\/g, '/'); | ||
var originalFile = path.join(path.dirname(revisionedFile), path.basename(file.revOrigPath)).replace(/\\/g, '/'); | ||
// manifest[originalFile] = revisionedFile; | ||
var len = originalFile.lastIndexOf("/"); | ||
originalFile = originalFile.slice(len+1) | ||
manifest[originalFile] = originalFile + '?v=' +file.revHash; | ||
@@ -139,0 +146,0 @@ cb(); |
@@ -90,3 +90,3 @@ { | ||
}, | ||
"version": "1.0.0" | ||
"version": "1.0.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14312
134
1