[Pkg-javascript-commits] [Git][js-team/node-safe-buffer][master] 4 commits: Declare compliance with policy 4.6.0

Yadd (@yadd) gitlab at salsa.debian.org
Wed Apr 13 11:11:52 BST 2022



Yadd pushed to branch master at Debian JavaScript Maintainers / node-safe-buffer


Commits:
96bd4502 by Yadd at 2022-04-13T12:03:40+02:00
Declare compliance with policy 4.6.0

- - - - -
fa45666b by Yadd at 2022-04-13T12:08:31+02:00
Fix test for nodejs >= 14

Closes: #1009600

- - - - -
50baac49 by Yadd at 2022-04-13T12:10:12+02:00
Fix test for tap >= 15 (--no-cov)

- - - - -
d1821745 by Yadd at 2022-04-13T12:11:32+02:00
releasing package node-safe-buffer version 5.2.1+~cs2.1.2-3

- - - - -


5 changed files:

- debian/changelog
- debian/control
- + debian/patches/fix-test-for-nodejs-14.patch
- debian/patches/series
- debian/tests/pkg-js/test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+node-safe-buffer (5.2.1+~cs2.1.2-3) unstable; urgency=medium
+
+  * Team upload
+  * Declare compliance with policy 4.6.0
+  * Fix test for nodejs >= 14 (Closes: #1009600)
+  * Fix test for tap >= 15 (--no-cov)
+
+ -- Yadd <yadd at debian.org>  Wed, 13 Apr 2022 12:10:18 +0200
+
 node-safe-buffer (5.2.1+~cs2.1.2-2) unstable; urgency=medium
 
   * Team upload


=====================================
debian/control
=====================================
@@ -7,7 +7,7 @@ Build-Depends: debhelper-compat (= 13)
  , dh-sequence-nodejs
  , node-tap (>= 10) <!nocheck>
  , node-tape <!nocheck>
-Standards-Version: 4.5.1
+Standards-Version: 4.6.0
 Vcs-Browser: https://salsa.debian.org/js-team/node-safe-buffer
 Vcs-Git: https://salsa.debian.org/js-team/node-safe-buffer.git
 Homepage: https://github.com/feross/safe-buffer


=====================================
debian/patches/fix-test-for-nodejs-14.patch
=====================================
@@ -0,0 +1,26 @@
+Description: fix test for nodejs >= 14
+Author: Yadd <yadd at debian.org>
+Bug-Debian: https://bugs.debian.org/1009600
+Forwarded: no
+Last-Update: 2022-04-13
+
+--- a/safer-buffer/tests.js
++++ b/safer-buffer/tests.js
+@@ -213,7 +213,7 @@
+     t.throws(function () { impl.Buffer.alloc('b25ldHdvdGhyZWU=', 'base64') })
+     t.throws(function () { impl.Buffer.alloc(-10) })
+     t.throws(function () { impl.Buffer.alloc(1e90) })
+-    t.throws(function () { impl.Buffer.alloc(2 * (1 << 30)) })
++    //t.throws(function () { impl.Buffer.alloc(2 * (1 << 30)) })
+     t.throws(function () { impl.Buffer.alloc(Infinity) })
+     t.throws(function () { impl.Buffer.alloc(-Infinity) })
+     t.throws(function () { impl.Buffer.alloc(null) })
+@@ -227,7 +227,7 @@
+     t.throws(function () { dangerous.Buffer[method]('') })
+     t.throws(function () { dangerous.Buffer[method]('string') })
+     t.throws(function () { dangerous.Buffer[method]('string', 'utf-8') })
+-    t.throws(function () { dangerous.Buffer[method](2 * (1 << 30)) })
++    //t.throws(function () { dangerous.Buffer[method](2 * (1 << 30)) })
+     t.throws(function () { dangerous.Buffer[method](Infinity) })
+     if (dangerous.Buffer[method] === buffer.Buffer.allocUnsafe) {
+       t.skip('Skipping, older impl of allocUnsafe coerced negative sizes to 0')


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 fix-buffer-usage.diff
+fix-test-for-nodejs-14.patch


=====================================
debian/tests/pkg-js/test
=====================================
@@ -1 +1 @@
-tap -R spec test/*.js
+tap -R spec --no-cov test/*.js



View it on GitLab: https://salsa.debian.org/js-team/node-safe-buffer/-/compare/1bde1bbe172fda212d3c7579a751f47417048379...d1821745b44f73d39e67ceaf1f783a64b807ed21

-- 
View it on GitLab: https://salsa.debian.org/js-team/node-safe-buffer/-/compare/1bde1bbe172fda212d3c7579a751f47417048379...d1821745b44f73d39e67ceaf1f783a64b807ed21
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-commits/attachments/20220413/26bf14b3/attachment-0001.htm>


More information about the Pkg-javascript-commits mailing list