jsinstrument 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/jsinstrument/inserting.js +3 -3
- data/lib/jsinstrument/version.rb +1 -1
- metadata +1 -1
@@ -25,7 +25,7 @@
|
|
25
25
|
* data compress method for uploading
|
26
26
|
* false or undefined to disable data compress
|
27
27
|
*/
|
28
|
-
data_compress_method
|
28
|
+
data_compress_method: %{data_compress_method},
|
29
29
|
/**
|
30
30
|
* register instrumented lines for the file
|
31
31
|
*/
|
@@ -147,8 +147,8 @@
|
|
147
147
|
}
|
148
148
|
|
149
149
|
if (this.data_compress_method) {
|
150
|
-
var
|
151
|
-
var result_encoded = btoa(
|
150
|
+
var result_compressed = this.data_compress_method(result);
|
151
|
+
var result_encoded = btoa(result_compressed);
|
152
152
|
r.data_compressed = true;
|
153
153
|
r.data = result_encoded;
|
154
154
|
}
|
data/lib/jsinstrument/version.rb
CHANGED