Skip to content

Commit

Permalink
Expose Relationships (manager) and Relationship class.
Browse files Browse the repository at this point in the history
  • Loading branch information
coreybutler committed Sep 25, 2020
1 parent 6fc49da commit 6ffda92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ngn.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import Core from './class.js'
import Middleware from './middleware.js'
import { defineException, stack } from './exception.js'
import EventEmitter from './emitter/emitter.js'
import Relationship from './relationships/relationship.js'
import Relationships from './relationships/manager.js'

// The NGN namespace.
const NGN = Object.defineProperties({}, Object.assign({}, base, type))
Expand Down Expand Up @@ -45,6 +47,8 @@ Object.defineProperties(NGN, {
Class: NGN.public(Core),
Middleware: NGN.public(Middleware),
EventEmitter: NGN.public(EventEmitter),
Relationships: NGN.public(Relationships),
Relationship: NGN.public(Relationship),

// Plugin access
plugins: NGN.constant(internal.plugins)
Expand Down
2 changes: 2 additions & 0 deletions tests/01-sanity.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ test('Method Existence', t => {
'Class',
'Middleware',
'EventEmitter',
'Relationships',
'Relationship',

// Extras
'version',
Expand Down

0 comments on commit 6ffda92

Please sign in to comment.