File: 00-onetime.diff

package info (click to toggle)
node-restore-cursor 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 112 kB
  • ctags: 4
  • sloc: makefile: 2; sh: 2
file content (19 lines) | stat: -rw-r--r-- 585 bytes parent folder | download
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.
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>

Index: node-restore-cursor/index.js
===================================================================
--- node-restore-cursor.orig/index.js
+++ node-restore-cursor/index.js
@@ -1,8 +1,8 @@
 'use strict';
-var onetime = require('onetime');
+var once = require('once');
 var exitHook = require('exit-hook');
 
-module.exports = onetime(function () {
+module.exports = once(function () {
 	exitHook(function () {
 		process.stdout.write('\u001b[?25h');
 	});