semantic-domains
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -8,4 +8,5 @@ const domains = require('./domains.min.json'); | ||
findChildren: id => domains.filter(d => d.parentId === id), | ||
findRoots: () => domains.filter(d => /^\d+$/.test(d.id)), | ||
buildIndex: () => domains.reduce((acc, d) => { acc[d.id] = d; return acc; }, {}), | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"repository": "https://github.com/arthanzel/semantic-domains", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "index.js", | ||
@@ -8,0 +8,0 @@ "files": [ |
@@ -25,2 +25,3 @@ semantic-domains | ||
`findChildren(id)`: Returns an array of immediate children of a semantic domain with the given ID. | ||
`findRoots()`: Returns an array of top-level semantic domains. | ||
`buildIndex()`: Returns an hash that includes all semantic domains, keyed by their IDs. | ||
@@ -27,0 +28,0 @@ |
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
2329796
54321
45