esperanto-source 0.6.8 → 0.6.9

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: 604c8cad45226941fd94e70045d115f5ab5375cc
4
- data.tar.gz: 07ab5320828f2a0acfce8c7fd36862567cadc990
3
+ metadata.gz: 81394bf2b2e37bab32f75dc76725340d35b4212c
4
+ data.tar.gz: 4084c2b4050dda7e22bf3206adf5f334579fc8d2
5
5
  SHA512:
6
- metadata.gz: c72ba245664ca25529855bc9552c34a42d590afb58ffff47faf955bd2733493bb2a962216008ed072bdc997596d6f04102a217d181863d379d0460467d45f724
7
- data.tar.gz: 4299c8e58995567cba7ab4ba3ba08fd742dd4d74dda10f780948890ee2d721cba1cd72357ff4972b9af95e6d1d278632c748a7ea2df8cffd512fc711e26d997f
6
+ metadata.gz: 99faed0bdcfe5be005448c667c227c15d2f34543c437727bc506c2ad300c7645f3fa523d5bf9228104e27ef4b846f1572ae18be2178012d9c5dc188fc40e34cb
7
+ data.tar.gz: fd5c9a9018c239b1edf16fee8c6962c36db6342f80ab3d516bb83b2346bf0c30c89a6e29b76da6002948d79b27f130d98454f970eaf9ecca0bddadbbee66aec3
@@ -1,5 +1,5 @@
1
1
  module Esperanto
2
2
  module Source
3
- VERSION = '0.6.8'
3
+ VERSION = '0.6.9'
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*
2
- esperanto.js v0.6.8 - 2015-02-07
2
+ esperanto.js v0.6.9 - 2015-02-06
3
3
  http://esperantojs.org
4
4
 
5
5
  Released under the MIT License.
@@ -612,18 +612,20 @@
612
612
  throw new Error( 'You must provide `sourceMapSource` and `sourceMapFile` options' );
613
613
  }
614
614
 
615
+ var sourceMapFile = options.sourceMapFile[0] === '/' ? options.sourceMapFile : './' + splitPath( options.sourceMapFile ).pop();
616
+
615
617
  map = body.generateMap({
616
618
  includeContent: true,
617
619
  hires: true,
618
- file: options.sourceMapFile,
619
- source: !isBundle ? getRelativePath( options.sourceMapFile, options.sourceMapSource ) : null
620
+ file: sourceMapFile,
621
+ source: !isBundle ? getRelativePath( sourceMapFile, options.sourceMapSource ) : null
620
622
  });
621
623
 
622
624
  if ( options.sourceMap === 'inline' ) {
623
625
  code += '\n//# sourceMa' + 'ppingURL=' + map.toUrl();
624
626
  map = null;
625
627
  } else {
626
- code += '\n//# sourceMa' + 'ppingURL=./' + splitPath( options.sourceMapFile ).pop() + '.map';
628
+ code += '\n//# sourceMa' + 'ppingURL=' + sourceMapFile + '.map';
627
629
  }
628
630
  } else {
629
631
  map = null;
@@ -1764,7 +1766,7 @@
1764
1766
  toUmd: transpileMethod( 'umd' ),
1765
1767
 
1766
1768
  bundle: function ( options ) {
1767
- return getBundle( options ).then( function ( bundle ) {
1769
+ return undefined__default( options ).then( function ( bundle ) {
1768
1770
  return {
1769
1771
  imports: bundle.externalModules.map( function(mod ) {return mod.id} ),
1770
1772
  exports: flattenExports( bundle.entryModule.exports ),
@@ -1834,4 +1836,4 @@
1834
1836
 
1835
1837
  return esperanto;
1836
1838
 
1837
- }));
1839
+ }));
data/vendor/esperanto.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- esperanto.js v0.6.8 - 2015-02-07
2
+ esperanto.js v0.6.9 - 2015-02-06
3
3
  http://esperantojs.org
4
4
 
5
5
  Released under the MIT License.
@@ -1360,7 +1360,7 @@ function getModule ( mod ) {var $D$2;
1360
1360
  return mod;
1361
1361
  ;$D$2 = void 0}
1362
1362
 
1363
- var getBundle__Promise = sander.Promise;
1363
+ var Promise = sander.Promise;
1364
1364
 
1365
1365
  function getBundle ( options ) {
1366
1366
  var entry = options.entry.replace( /\.js$/, '' ),
@@ -1459,7 +1459,7 @@ function getBundle ( options ) {
1459
1459
  return fetchModule( x.id );
1460
1460
  });
1461
1461
 
1462
- return getBundle__Promise.all( promises );
1462
+ return Promise.all( promises );
1463
1463
  }).catch( function ( err ) {
1464
1464
  var externalModule;
1465
1465
 
@@ -1549,18 +1549,20 @@ function packageResult ( body, options, methodName, isBundle ) {
1549
1549
  throw new Error( 'You must provide `sourceMapSource` and `sourceMapFile` options' );
1550
1550
  }
1551
1551
 
1552
+ var sourceMapFile = options.sourceMapFile[0] === '/' ? options.sourceMapFile : './' + splitPath( options.sourceMapFile ).pop();
1553
+
1552
1554
  map = body.generateMap({
1553
1555
  includeContent: true,
1554
1556
  hires: true,
1555
- file: options.sourceMapFile,
1556
- source: !isBundle ? getRelativePath( options.sourceMapFile, options.sourceMapSource ) : null
1557
+ file: sourceMapFile,
1558
+ source: !isBundle ? getRelativePath( sourceMapFile, options.sourceMapSource ) : null
1557
1559
  });
1558
1560
 
1559
1561
  if ( options.sourceMap === 'inline' ) {
1560
1562
  code += '\n//# sourceMa' + 'ppingURL=' + map.toUrl();
1561
1563
  map = null;
1562
1564
  } else {
1563
- code += '\n//# sourceMa' + 'ppingURL=./' + splitPath( options.sourceMapFile ).pop() + '.map';
1565
+ code += '\n//# sourceMa' + 'ppingURL=' + sourceMapFile + '.map';
1564
1566
  }
1565
1567
  } else {
1566
1568
  map = null;
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.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryunosuke SATO