File: skip-gzip-js.patch

package info (click to toggle)
node-jquery 2.2.4%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,288 kB
  • sloc: php: 122; xml: 36; makefile: 9; sh: 2
file content (20 lines) | stat: -rw-r--r-- 536 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -13,7 +13,7 @@
 
 	var fs = require( "fs" ),
 		stripJSONComments = require( "strip-json-comments" ),
-		gzip = require( "gzip-js" ),
+		zlib = require( "zlib" ),
 		srcHintOptions = readOptionalJSON( "src/.jshintrc" ),
 		newNode = !/^v0/.test( process.version ),
 
@@ -39,7 +39,7 @@
 			options: {
 				compress: {
 					gz: function( contents ) {
-						return gzip.zip( contents, {} ).length;
+						return zlib.gzipSync(contents).length;
 					}
 				},
 				cache: "build/.sizecache.json"