jsinstrument 0.1.6 → 0.1.7

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.
@@ -21,11 +21,6 @@
21
21
  * }
22
22
  */
23
23
  data: {},
24
- /**
25
- * data compress method for uploading
26
- * false or undefined to disable data compress
27
- */
28
- data_compress_method: %{data_compress_method},
29
24
  /**
30
25
  * register instrumented lines for the file
31
26
  */
@@ -146,8 +141,13 @@
146
141
  data: result
147
142
  }
148
143
 
149
- if (this.data_compress_method) {
150
- var result_compressed = this.data_compress_method(result);
144
+ /**
145
+ * data compress method for uploading
146
+ * false or undefined to disable data compress
147
+ */
148
+ var data_compress_method = %{data_compress_method};
149
+ if (data_compress_method) {
150
+ var result_compressed = data_compress_method(result);
151
151
  var result_encoded = btoa(result_compressed);
152
152
  r.data_compressed = true;
153
153
  r.data = result_encoded;
@@ -1,3 +1,3 @@
1
1
  module JSInstrument
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsinstrument
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: