Comparing version 1.0.0 to 1.0.1
@@ -0,3 +1,8 @@ | ||
# 1.0.1 - 2016-03-09 | ||
- Slugify existing element ID to prevent spaces and invalid characters in paths. | ||
- Fix module main location. | ||
# 1.0.0 - 2016-02-23 | ||
- Initial release. |
@@ -113,6 +113,6 @@ // A module to forge IDs for Refract elements. | ||
if (refract.meta.id) { | ||
newPath = [refract.meta.id]; | ||
newPath = [(0, _slug2['default'])(refract.meta.id)]; | ||
} else if (path.length === 0 && refract.meta.classes && refract.meta.classes.length === 1) { | ||
// This is the first item, and it has a class name, so we use that. | ||
newPath = [refract.meta.classes[0]]; | ||
newPath = [(0, _slug2['default'])(refract.meta.classes[0])]; | ||
} | ||
@@ -119,0 +119,0 @@ } |
{ | ||
"name": "abagnale", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Forge unique IDs for Refract data structure elements", | ||
"main": "index.js", | ||
"main": "lib/abagnale.js", | ||
"scripts": { | ||
"test": "peasant test", | ||
"cover": "peasant cover", | ||
"coveralls": "peasant cover && coveralls <coverage/lcov.info", | ||
"lint": "peasant lint", | ||
@@ -21,2 +22,3 @@ "peasant": "peasant", | ||
"devDependencies": { | ||
"coveralls": "^2.11.6", | ||
"glob": "^7.0.0", | ||
@@ -23,0 +25,0 @@ "peasant": "^0.5.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
19418
3