I’m writing a private meteor package that will be used with an open-source meteor project in a commercial product. Is it possible to use collection hooks (matb33:collection-hooks) in my private package?
MY current issue is the collection objects are defined in the open-source project as global variables and are out-of-scope within my private package. If I try and re-define them in my private package, I get errors thrown by the DDP package saying that some methods are already defined, e.g.,
Error: A method named '/<collectionName>/insert' is already defined.
Are there any hacks to access collections within packages?