How to use the @wireapp/store-engine/dist/commonjs/engine/error/.UnsupportedError function in @wireapp/store-engine

To help you get started, we’ve selected a few @wireapp/store-engine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wireapp / wire-web-packages / packages / store-engine-fs / src / index.ts View on Github external
public async isSupported(): Promise {
    const isNodeOrElectron = typeof process === 'object';

    if (!isNodeOrElectron) {
      const message = `Node.js File System Module is not available on your platform.`;
      throw new UnsupportedError(message);
    }
  }