zcatalyst-integ-cliq
Version:
Node.js SDK for integrating Zoho Catalyst with Zoho Cliq
15 lines (14 loc) • 630 B
JavaScript
import * as cliq from './cliq.js';
// check if its a node.js env
const processGlobal = typeof process !== 'undefined' ? process : 0;
if (Object.prototype.toString.call(processGlobal) !== '[object process]') {
const message = `
======== WARNING! ========
cliq-node-sdk appears to have been installed in an unsupported environment.
This package should only be used in server-side or backend Node.js environments,
and should not be used in web browsers or other client-side environments.
`;
throw new Error(message);
// console.error(message); // need to uncomment after getting code check removed
}
export default cliq;