fepper-utils
Advanced tools
Comparing version 1.0.3 to 1.0.4-rc.0
10
index.js
@@ -410,4 +410,5 @@ 'use strict'; | ||
* Normalize UI config values. | ||
* Turn relative paths into absolute paths. | ||
* Prepend leading dots to extnames if necessary. | ||
* Strip leading dot+slashes and trailing slashes from relative paths and save. | ||
* Turn relative paths into absolute paths and save. | ||
* Prepend leading dots to extension nnames if necessary. | ||
* | ||
@@ -431,2 +432,5 @@ * @param {object} uiObj - The UI configuration object. | ||
// gulp.watch() will not trigger on file creation if watching an absolute path, so save normalized relative paths. | ||
uiObj.pathsRelative = uiObj.pathsRelative || {source: {}, public: {}}; | ||
for (let i in pathsPublic) { | ||
@@ -448,2 +452,3 @@ if (!pathsPublic.hasOwnProperty(i)) { | ||
if (pathsPublic[i].indexOf(workDir) !== 0) { | ||
uiObj.pathsRelative.public[i] = pathPublic; | ||
pathsPublic[i] = `${workDir}/${pathPublic}`; | ||
@@ -469,2 +474,3 @@ } | ||
if (pathsSource[i].indexOf(workDir) !== 0) { | ||
uiObj.pathsRelative.source[i] = pathSource; | ||
pathsSource[i] = `${workDir}/${pathSource}`; | ||
@@ -471,0 +477,0 @@ } |
{ | ||
"name": "fepper-utils", | ||
"version": "1.0.3", | ||
"version": "1.0.4-rc.0", | ||
"description": "Fepper utilities", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
43424
612
1
1