UNPKG

jest-allure2-reporter

Version:
15 lines 514 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isLibraryPath = isLibraryPath; const POSIX_PATTERN = '/node_modules/'; const WINDOWS_PATTERN = '\\node_modules\\'; const NODE_PATTERN = 'node:'; function isLibraryPath(filePath) { if (typeof filePath !== 'string') { return false; } return (filePath.includes(POSIX_PATTERN) || filePath.includes(WINDOWS_PATTERN) || filePath.startsWith(NODE_PATTERN)); } //# sourceMappingURL=isLibraryPath.js.map