Skip to content

Conversation

@darkleaf
Copy link
Owner

No description provided.

nil))))))

(defn inspect []
(fn [registry]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add space

(t/deftest ok
(with-open [info (di/start `c (di/inspect))]
(t/is (= [{:key `c :deps [`a `b]}
{:key `a :deps nil}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we remove a key with nil value?

(after-demolish! {:key key :object obj})
nil))))))

(defn inspect []
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should move it into a separate PR.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#27

:ok)

(t/deftest ok
(with-open [info (di/start `c (di/inspect))]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should not be a middleware

(di/inspect `c registry-middlewares)

(dependencies [_]
(p/dependencies factory))
(build [_ deps]
(into [{:key key :deps (keys deps)}]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{:key key 
 :deps (keys deps)
 :dep-types (p/dependencies this)}

@darkleaf
Copy link
Owner Author

#30

@darkleaf darkleaf closed this Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants