export{hooks,setHookCallback};varhookCallback;functionhooks(){returnhookCallback.apply(null,arguments);}// This is done to register the method called with moment()// without creating circular dependencies.functionsetHookCallback(callback){hookCallback=callback;}