UNPKG

@sanity/scheduled-publishing

Version:

> [!IMPORTANT] > As of [v3.39.0](https://www.sanity.io/changelog/e6013ee5-8214-4e03-9593-f7b19124b8a3) of Sanity Studio, this plugin has been deprecated and the Scheduled Publishing functionality has been moved into the core studio package. > Read more an

13 lines (10 loc) 305 B
import debug from 'debug' const rootName = 'scheduled-publishing:' export default debug(rootName) export function debugWithName(name: string): debug.Debugger { const namespace = `${rootName}${name}` if (debug && debug.enabled(namespace)) { return debug(namespace) } return debug(rootName) }