Remove node polyfill
| @@ -1,10 +0,0 @@ | |||
| 1 | if (!Array.prototype.findLastIndex) { | ||
| 2 | Array.prototype.findLastIndex = function (callback, thisArg) { | ||
| 3 | for (let i = this.length - 1; i >= 0; i--) { | ||
| 4 | if (callback.call(thisArg, this[i], i, this)) return i; | ||
| 5 | } | ||
| 6 | return -1; | ||
| 7 | }; | ||
| 8 | } | ||
| 9 | |||
| 10 | export default () => {}; | ||
| @@ -1,9 +1,6 @@ | |||
| 1 | import crypto from 'node:crypto'; | 1 | import crypto from 'node:crypto'; |
| 2 | import polyfill from './polyfill.js'; | ||
| 3 | import { getConfigValue } from './util.js'; | 2 | import { getConfigValue } from './util.js'; |
| 4 | 3 | ||
| 5 | polyfill(); | ||
| 6 | |||
| 7 | const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.'); | 4 | const PROMPT_PLACEHOLDER = getConfigValue('promptPlaceholder', 'Let\'s get started.'); |
| 8 | 5 | ||
| 9 | /** | 6 | /** |