gulp-revert-path
Advanced tools
+7
-2
@@ -6,6 +6,11 @@ 'use strict'; | ||
| return through.obj(function (file, enc, cb) { | ||
| file.history.pop(); | ||
| file.path = file.history.pop(); | ||
| var history = file.history; | ||
| if (history.length > 1) { | ||
| history.pop(); | ||
| file.path = history[history.length - 1]; | ||
| } | ||
| cb(null, file); | ||
| }); | ||
| }; |
+1
-1
| { | ||
| "name": "gulp-revert-path", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Revert the previous `file.path` change", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2997
2.39%12
33.33%0
-100%