Run of fresh-snapshots for node-crc32

Merge these changes:

git pull https://janitor.debian.net/git/node-crc32 fresh-snapshots/main
git pull https://janitor.debian.net/git/node-crc32 fresh-snapshots/pristine-tar
git pull https://janitor.debian.net/git/node-crc32 fresh-snapshots/upstream

Summary

Merged new upstream version: 0.2.2+git20130426.1.874eecb (was: 0.2.2).

Diff

Branch: main

diff --git a/debian/changelog b/debian/changelog
index 991035c..39ea737 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,10 @@
-node-crc32 (0.2.2-4) UNRELEASED; urgency=low
+node-crc32 (0.2.2+git20130426.1.874eecb-1) UNRELEASED; urgency=low
 
   * Apply multi-arch hints.
     + node-crc32: Add Multi-Arch: foreign.
+  * New upstream snapshot.
 
- -- Debian Janitor <janitor@jelmer.uk>  Sat, 12 Sep 2020 13:10:11 -0000
+ -- Debian Janitor <janitor@jelmer.uk>  Sat, 16 Apr 2022 04:46:17 -0000
 
 node-crc32 (0.2.2-3) unstable; urgency=medium
 
diff --git a/debian/patches/fix-command.patch b/debian/patches/fix-command.patch
index 83713c9..d925911 100644
--- a/debian/patches/fix-command.patch
+++ b/debian/patches/fix-command.patch
@@ -1,8 +1,10 @@
 Description: Fix command
  debian package has renamed the binary to avoid name conflict.
---- a/test/genCheckValues.sh
-+++ b/test/genCheckValues.sh
-@@ -15,7 +15,7 @@
+Index: node-crc32/test/genCheckValues.sh
+===================================================================
+--- node-crc32.orig/test/genCheckValues.sh
++++ node-crc32/test/genCheckValues.sh
+@@ -15,7 +15,7 @@ do
  		echo ,
  	fi
  
diff --git a/lib/crc32.js b/lib/crc32.js
index a751b37..60a9be1 100644
--- a/lib/crc32.js
+++ b/lib/crc32.js
@@ -1,4 +1,12 @@
-(function () {
+void function(global, callback) {
+	if (typeof module === 'object') {
+		module.exports = callback();
+	} else if (typeof define === 'function') {
+		define(callback);
+	} else {
+		global.crc32 = callback();
+	}
+}(this, function() {
 	'use strict';
 
 	var table = [],
@@ -89,13 +97,15 @@
 	// this isn't that costly, and most uses will be for table assisted mode
 	makeTable();
 
-	module.exports = function (val, direct) {
+	var exports = function (val, direct) {
 		var val = (typeof val === 'string') ? strToArr(val) : val,
 			ret = direct ? crcDirect(val) : crcTable(val);
 
 		// convert to 2's complement hex
 		return (ret >>> 0).toString(16);
 	};
-	module.exports.direct = crcDirect;
-	module.exports.table = crcTable;
-}());
+	exports.direct = crcDirect;
+	exports.table = crcTable;
+
+	return exports;
+});
\ No newline at end of file

Branch: pristine-tar

diff --git a/node-crc32_0.2.2+git20130426.1.874eecb.orig.tar.gz.delta b/node-crc32_0.2.2+git20130426.1.874eecb.orig.tar.gz.delta
new file mode 100644
index 0000000..d3f2487
Binary files /dev/null and b/node-crc32_0.2.2+git20130426.1.874eecb.orig.tar.gz.delta differ
diff --git a/node-crc32_0.2.2+git20130426.1.874eecb.orig.tar.gz.id b/node-crc32_0.2.2+git20130426.1.874eecb.orig.tar.gz.id
new file mode 100644
index 0000000..bb4e544
--- /dev/null
+++ b/node-crc32_0.2.2+git20130426.1.874eecb.orig.tar.gz.id
@@ -0,0 +1 @@
+b7cdeff3c576e4e54438ffda2d087144d23b1e1d

Branch: upstream

Tag: upstream/0.2.2+git20130426.1.874eecb
diff --git a/lib/crc32.js b/lib/crc32.js
index a751b37..60a9be1 100644
--- a/lib/crc32.js
+++ b/lib/crc32.js
@@ -1,4 +1,12 @@
-(function () {
+void function(global, callback) {
+	if (typeof module === 'object') {
+		module.exports = callback();
+	} else if (typeof define === 'function') {
+		define(callback);
+	} else {
+		global.crc32 = callback();
+	}
+}(this, function() {
 	'use strict';
 
 	var table = [],
@@ -89,13 +97,15 @@
 	// this isn't that costly, and most uses will be for table assisted mode
 	makeTable();
 
-	module.exports = function (val, direct) {
+	var exports = function (val, direct) {
 		var val = (typeof val === 'string') ? strToArr(val) : val,
 			ret = direct ? crcDirect(val) : crcTable(val);
 
 		// convert to 2's complement hex
 		return (ret >>> 0).toString(16);
 	};
-	module.exports.direct = crcDirect;
-	module.exports.table = crcTable;
-}());
+	exports.direct = crcDirect;
+	exports.table = crcTable;
+
+	return exports;
+});
\ No newline at end of file

Publish Blockers

  • ☑ run was successful
  • ☑ package has not been removed from the archive
  • ☑ command has not changed
  • ☒ not yet reviewed, but review needed
  • ☑ 0 publish attempts so far.not currently attempting to back off
  • ☑ proposals not currently being rate-limited for maintainer pkg-javascript-devel@lists.alioth.debian.org
  • ☑ change set ee6d0413-a8f0-4e0c-9d9a-c8476555eefc is ready

Resulting package

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots node-crc32

Lintian Result

Full worker log Full build log