Repository URL to install this package:
Version:
2.0.11-8 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const offlineConnectionErrorSubstrings = [
"ERR_CONNECTION_REFUSED",
"ECONNREFUSED",
];
function isOfflineError(error) {
return (error &&
error.message &&
offlineConnectionErrorSubstrings.some(str => error.message.indexOf(str) !== -1));
}
exports.default = isOfflineError;
//# sourceMappingURL=isOfflineError.js.map
//notion-enhancer
require('notion-enhancer/pkg/loader.js')(__filename, exports);