Package: node-jquery / 3.5.1+dfsg+~3.5.5-7

skip-gzip-js.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Skip gzip js
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -13,7 +13,7 @@
 	}
 
 	var fs = require( "fs" ),
-		gzip = require( "gzip-js" ),
+		gzip = require( "zlib" ),
 		isTravis = process.env.TRAVIS,
 		travisBrowsers = process.env.BROWSERS && process.env.BROWSERS.split( "," );
 
@@ -29,7 +29,7 @@
 			options: {
 				compress: {
 					gz: function( contents ) {
-						return gzip.zip( contents, {} ).length;
+						return zlib.gzipSync(contents).length;
 					}
 				},
 				cache: "build/.sizecache.json"