Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

semantic-domains

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-domains - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

1

index.js

@@ -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; }, {}),
};

2

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc