[Pkg-javascript-commits] [node-restore-cursor] 03/04: Replace the dependency on onetime with once

Paolo Greppi paolog-guest at moszumanska.debian.org
Thu Dec 22 23:19:52 UTC 2016


This is an automated email from the git hooks/post-receive script.

paolog-guest pushed a commit to branch master
in repository node-restore-cursor.

commit 406e79f5ba853462d7dc47f518168785bef01b88
Author: Paolo Greppi <paolo.greppi at libpf.com>
Date:   Wed Dec 21 14:20:03 2016 +0000

    Replace the dependency on onetime with once
---
 debian/control                 |  2 +-
 debian/patches/00-onetime.diff | 19 +++++++++++++++++++
 debian/patches/series          |  1 +
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index f5b276f..c76046d 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,7 @@ Architecture: all
 Depends:
  ${misc:Depends}
  , nodejs
- , node-onetime (>= 1.0.0)
+ , node-once
  , node-exit-hook (>= 1.0.0)
 Description: Gracefully restore the CLI cursor on exit
  FIX_ME long description
diff --git a/debian/patches/00-onetime.diff b/debian/patches/00-onetime.diff
new file mode 100644
index 0000000..e622c45
--- /dev/null
+++ b/debian/patches/00-onetime.diff
@@ -0,0 +1,19 @@
+Description: Replace the dependency on onetime with once.
+Forwarded: not-needed
+Author: Paolo Greppi <paolo.greppi at 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');
+ 	});
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c8b21be
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-onetime.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-restore-cursor.git



More information about the Pkg-javascript-commits mailing list