File: 00-onetime.diff

package info (click to toggle)
node-restore-cursor 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 108 kB
  • sloc: makefile: 2; sh: 2
file content (18 lines) | stat: -rw-r--r-- 563 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Replace the dependency on onetime with once.
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>

===================================================================
--- node-restore-cursor.orig/index.js
+++ node-restore-cursor/index.js
@@ -1,8 +1,8 @@
 'use strict';
-const onetime = require('onetime');
+const once = require('once');
 const signalExit = require('signal-exit');
 
-module.exports = onetime(() => {
+module.exports = once(() => {
 	signalExit(() => {
 		process.stderr.write('\u001b[?25h');
 	}, {alwaysLast: true});