esperanto-source 0.6.18 → 0.6.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5eed9288fc9bb2887d6c21a1c181b38df7f33238
4
- data.tar.gz: 0c66bb5c87139cf500b514f208c53bd167324284
3
+ metadata.gz: 23b7f099e3d850a4dde0d263dbd2380ab66d4f66
4
+ data.tar.gz: 36e14027896978e62b317300bd5c4f20f9eebd36
5
5
  SHA512:
6
- metadata.gz: be6b159bcf781c1e36cfc0a687cb215a1cecaf6342c9d2ebf225bd8cf0748f650b3bd809374927da128a8ccbf179421acdff482b388fa856ab9e5620dd2956a6
7
- data.tar.gz: 0b8ea823e8f5af10c02d21fcc866b8d59cf4c9027892687c4387aadb449d1be05dafba8d586170b0c7f35c7495a17ac9715f3b262873b80d7b7df976c1e8c557
6
+ metadata.gz: dff115dbba50860cdaaab2b3a5ddde4d77ee1de82bfd0d156f6c3799fa4169fb34679d730bf70e41e8c96d0b85602422dd25670174eea775510ba6d619b2ff25
7
+ data.tar.gz: 20bb8e09bd1f24fb5e0a559fa5c28389fd9af6c04cbabd21091bf08d07dceeb7d06c9877e1826a2ce00d11b8872b220ef05c08fcb894e6edeb2125c7e55ce3e9
@@ -1,5 +1,5 @@
1
1
  module Esperanto
2
2
  module Source
3
- VERSION = '0.6.18'
3
+ VERSION = '0.6.19'
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*
2
- esperanto.js v0.6.18 - 2015-03-30
2
+ esperanto.js v0.6.19 - 2015-03-30
3
3
  http://esperantojs.org
4
4
 
5
5
  Released under the MIT License.
data/vendor/esperanto.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- esperanto.js v0.6.18 - 2015-03-30
2
+ esperanto.js v0.6.19 - 2015-03-30
3
3
  http://esperantojs.org
4
4
 
5
5
  Released under the MIT License.
@@ -1400,12 +1400,21 @@ function getModule ( mod ) {var $D$1;
1400
1400
 
1401
1401
  mod.body = new MagicString( mod.source );
1402
1402
 
1403
+ var toRemove = [];
1404
+
1403
1405
  try {
1404
1406
  mod.ast = acorn.parse( mod.source, {
1405
1407
  ecmaVersion: 6,
1406
- sourceType: 'module'
1408
+ sourceType: 'module',
1409
+ onComment: function ( block, text, start, end ) {
1410
+ // sourceMappingURL comments should be removed
1411
+ if ( !block && /^# sourceMappingURL=/.test( text ) ) {
1412
+ toRemove.push({ start: start, end: end });
1413
+ }
1414
+ }
1407
1415
  });
1408
1416
 
1417
+ toRemove.forEach( function(end) {var start = end.start, end = end.end;return mod.body.remove( start, end )} );
1409
1418
  annotateAst( mod.ast );
1410
1419
  } catch ( err ) {
1411
1420
  // If there's a parse error, attach file info
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esperanto-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.18
4
+ version: 0.6.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryunosuke SATO