You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are using url.parse to parse URI (as camel URL terminology known as URI), it is good call reusing common lib.
But the fact is that url.parse return a case insensitive form of hostname.
It makes your example goes wrong,
var obj = require('./myObj');
require('donkey-obj/ObjectResolver').register('myObj',new obj());
as you are registering obj as myObj not as myobj.
I think it is good practice to write URI as lowered-case insensitive value.
The text was updated successfully, but these errors were encountered:
You are using url.parse to parse URI (as camel URL terminology known as URI), it is good call reusing common lib.
But the fact is that url.parse return a case insensitive form of hostname.
It makes your example goes wrong,
as you are registering obj as myObj not as myobj.
I think it is good practice to write URI as lowered-case insensitive value.
The text was updated successfully, but these errors were encountered: