(left: number[], right: number[])
| 513 | } |
| 514 | |
| 515 | export function isEarlierVersion(left: number[], right: number[]) { |
| 516 | for (let i = 0, n = Math.max(left.length, right.length); i < n; i++) { |
| 517 | const l = left[i] || 0; |
| 518 | const r = right[i] || 0; |
| 519 | if (l !== r) { |
| 520 | return l < r; |
| 521 | } |
| 522 | } |
| 523 | return false; // Equal. |
| 524 | } |
| 525 | |
| 526 | export async function loadNativeModule<T>(moduleName: string): Promise<T | undefined> { |
| 527 | // Check NODE_PATH for Electron. Do this first to avoid loading a binary-incompatible version from the local node_modules during development. |
no outgoing calls
no test coverage detected