esperanto-source 0.6.8 → 0.6.9
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.
- checksums.yaml +4 -4
- data/lib/esperanto/source/version.rb +1 -1
- data/vendor/esperanto.browser.js +8 -6
- data/vendor/esperanto.js +8 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81394bf2b2e37bab32f75dc76725340d35b4212c
|
4
|
+
data.tar.gz: 4084c2b4050dda7e22bf3206adf5f334579fc8d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99faed0bdcfe5be005448c667c227c15d2f34543c437727bc506c2ad300c7645f3fa523d5bf9228104e27ef4b846f1572ae18be2178012d9c5dc188fc40e34cb
|
7
|
+
data.tar.gz: fd5c9a9018c239b1edf16fee8c6962c36db6342f80ab3d516bb83b2346bf0c30c89a6e29b76da6002948d79b27f130d98454f970eaf9ecca0bddadbbee66aec3
|
data/vendor/esperanto.browser.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
esperanto.js v0.6.
|
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:
|
619
|
-
source: !isBundle ? getRelativePath(
|
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
|
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
|
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.
|
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
|
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
|
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:
|
1556
|
-
source: !isBundle ? getRelativePath(
|
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
|
1565
|
+
code += '\n//# sourceMa' + 'ppingURL=' + sourceMapFile + '.map';
|
1564
1566
|
}
|
1565
1567
|
} else {
|
1566
1568
|
map = null;
|