esperanto-source 0.6.10 → 0.6.11

Sign up to get free protection for your applications and to get access to all the features.
data/vendor/esperanto.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- esperanto.js v0.6.10 - 2015-02-09
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.file ),
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
- file: modulePath.substring( base.length ),
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.file );
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 + moduleId + '.js' )
1477
+ return tryPath( path.resolve( base, moduleId + '.js' ) )
1478
1478
  .catch( function () {
1479
- return tryPath( base + moduleId + path.sep + 'index.js' );
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.10
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