File: skip-gzip-js.patch

package info (click to toggle)
node-jquery 3.6.1%2Bdfsg%2B~3.5.14-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 3,752 kB
  • sloc: javascript: 34,876; php: 223; xml: 36; makefile: 15
file content (25 lines) | stat: -rw-r--r-- 632 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Skip gzip js
Forwarded: not-needed
Reviewed-By: Yadd <yadd@debian.org>
Last-Update: 2022-08-29

--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -20,7 +20,7 @@
 	}
 
 	var fs = require( "fs" ),
-		gzip = require( "gzip-js" ),
+		zlib = require( "zlib" ),
 		oldNode = /^v10\./.test( process.version ),
 		nodeV17OrNewer = !/^v1[0246]\./.test( process.version ),
 		isCi = process.env.GITHUB_ACTION,
@@ -38,7 +38,7 @@
 			options: {
 				compress: {
 					gz: function( contents ) {
-						return gzip.zip( contents, {} ).length;
+						return zlib.gzipSync(contents).length;
 					}
 				},
 				cache: "build/.sizecache.json"