UNPKG

capacitor-zebra-printer

Version:

Capacitor plugin to send ZPL messages to Zebra printers

8 lines 288 B
const fetchWithTimeout = (request, timeout = 30000) => { return Promise.race([ fetch(request), new Promise((_, reject) => setTimeout(() => reject(new Error('timeout')), timeout)), ]); }; export default fetchWithTimeout; //# sourceMappingURL=fetchWithTimeout.js.map