File: 00-onetime.diff

package info (click to toggle)
node-restore-cursor 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 128 kB
  • sloc: javascript: 18; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Replace the dependency on onetime with once.
Author: Paolo Greppi <paolo.greppi@libpf.com>
Forwarded: not-needed
Reviewed-By: Yadd <yadd@debian.org>
Last-Update: 2022-08-29

--- a/index.js
+++ b/index.js
@@ -1,8 +1,8 @@
 import process from 'node:process';
-import onetime from 'onetime';
+import once from 'once';
 import signalExit from 'signal-exit';
 
-const restoreCursor = onetime(() => {
+const restoreCursor = once(() => {
 	signalExit(() => {
 		process.stderr.write('\u001B[?25h');
 	}, {alwaysLast: true});