esperanto-source 0.6.10 → 0.6.11
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/lib/esperanto/source.rb +0 -2
- data/vendor/esperanto.browser.js +862 -7
- data/vendor/esperanto.js +6 -6
- metadata +1 -3
- data/vendor/magic-string.js +0 -765
- data/vendor/vlq.js +0 -99
data/vendor/esperanto.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
esperanto.js v0.6.
|
2
|
+
esperanto.js v0.6.11 - 2015-02-08
|
3
3
|
http://esperantojs.org
|
4
4
|
|
5
5
|
Released under the MIT License.
|
@@ -1294,7 +1294,7 @@ function combine ( bundle ) {
|
|
1294
1294
|
});
|
1295
1295
|
|
1296
1296
|
body.addSource({
|
1297
|
-
filename: path.resolve( bundle.base, mod.
|
1297
|
+
filename: path.resolve( bundle.base, mod.relativePath ),
|
1298
1298
|
content: transformBody__transformBody( bundle, mod, mod.body.clone() ),
|
1299
1299
|
indentExclusionRanges: mod.ast._templateLiteralRanges
|
1300
1300
|
});
|
@@ -1419,7 +1419,7 @@ function getBundle ( options ) {
|
|
1419
1419
|
module = getModule({
|
1420
1420
|
source: source,
|
1421
1421
|
id: moduleId,
|
1422
|
-
|
1422
|
+
relativePath: path.relative( base, modulePath ),
|
1423
1423
|
path: modulePath
|
1424
1424
|
});
|
1425
1425
|
|
@@ -1427,7 +1427,7 @@ function getBundle ( options ) {
|
|
1427
1427
|
moduleLookup[ moduleId ] = module;
|
1428
1428
|
|
1429
1429
|
promises = module.imports.map( function(x ) {
|
1430
|
-
x.id = resolveId( x.path, module.
|
1430
|
+
x.id = resolveId( x.path, module.relativePath );
|
1431
1431
|
|
1432
1432
|
if ( x.id === moduleId ) {
|
1433
1433
|
throw new Error( 'A module (' + moduleId + ') cannot import itself' );
|
@@ -1474,9 +1474,9 @@ function getBundle ( options ) {
|
|
1474
1474
|
}
|
1475
1475
|
|
1476
1476
|
function resolvePath ( base, moduleId, importerPath, resolver ) {
|
1477
|
-
return tryPath( base
|
1477
|
+
return tryPath( path.resolve( base, moduleId + '.js' ) )
|
1478
1478
|
.catch( function () {
|
1479
|
-
return tryPath( base
|
1479
|
+
return tryPath( path.resolve( base, moduleId, 'index.js' ) );
|
1480
1480
|
})
|
1481
1481
|
.catch( function ( err ) {
|
1482
1482
|
if ( resolver ) {
|
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.
|
4
|
+
version: 0.6.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryunosuke SATO
|
@@ -101,8 +101,6 @@ files:
|
|
101
101
|
- vendor/esperanto.browser.js
|
102
102
|
- vendor/esperanto.js
|
103
103
|
- vendor/estraverse.js
|
104
|
-
- vendor/magic-string.js
|
105
|
-
- vendor/vlq.js
|
106
104
|
homepage: https://github.com/tricknotes/ruby-esperanto-source
|
107
105
|
licenses:
|
108
106
|
- MIT
|