babel-source 5.2.10 → 5.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/babel.js +7 -8
- data/lib/babel/source.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDY4MDhjMWMxNWIxZjYwOWFjNjUwOWRlMDFjYWNkNTZhYWRiMGQ4Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjU4ZWFhYzlmMTBiNDdmZGM3NDBhYjBhZDY1YjIwZGIyODVhMzUyNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2RmYjJlYWU3NmI4YzU1YzJhZjUzYTQ0ZmFkN2ZmMzc3ZDBhY2IwZjhiM2Zj
|
10
|
+
ZTc4NmQ0MGZkOGY0ZWUzZDQyMDVhOGY2MDdlNDlhNGI2MWMwNzA3MjA4NGUy
|
11
|
+
YzVjZmMyMGMzYzcyNjRkMjRhOWUzODM2NGVmOTE1NWE2M2YwNjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmZjMzhhNWNhNjdhM2JjNGMxMTA1ZWEyOTM1MmIxMjEwZWEyY2ZkN2JmOTkw
|
14
|
+
MzBkZTM3NDc3Yzc2NDFhZTQ5ZWVhZDgzMGE0NDg3M2ZlNzYzMDkyMWEyOTcy
|
15
|
+
MGYyMTkxZmMyMzY4ZGFiY2I3MjZlYjI1ZDI5NDM2MzU0ZDExMDU=
|
data/lib/babel.js
CHANGED
@@ -8807,7 +8807,7 @@ module.exports={
|
|
8807
8807
|
"type": "string"
|
8808
8808
|
},
|
8809
8809
|
|
8810
|
-
"
|
8810
|
+
"getModuleId": {
|
8811
8811
|
"hidden": true
|
8812
8812
|
},
|
8813
8813
|
|
@@ -10792,8 +10792,8 @@ var DefaultFormatter = (function () {
|
|
10792
10792
|
|
10793
10793
|
DefaultFormatter.prototype.getModuleName = function getModuleName() {
|
10794
10794
|
var opts = this.file.opts;
|
10795
|
-
// moduleId is n/a if a `
|
10796
|
-
if (opts.moduleId && !opts.
|
10795
|
+
// moduleId is n/a if a `getModuleId()` is provided
|
10796
|
+
if (opts.moduleId && !opts.getModuleId) {
|
10797
10797
|
return opts.moduleId;
|
10798
10798
|
}
|
10799
10799
|
|
@@ -10824,10 +10824,9 @@ var DefaultFormatter = (function () {
|
|
10824
10824
|
// normalize path separators
|
10825
10825
|
moduleName = moduleName.replace(/\\/g, "/");
|
10826
10826
|
|
10827
|
-
if (opts.
|
10828
|
-
// If return is falsy, assume they want us to use
|
10829
|
-
|
10830
|
-
return opts.getModuleName(moduleName) || moduleName;
|
10827
|
+
if (opts.getModuleId) {
|
10828
|
+
// If return is falsy, assume they want us to use our generated default name
|
10829
|
+
return opts.getModuleId(moduleName) || moduleName;
|
10831
10830
|
} else {
|
10832
10831
|
return moduleName;
|
10833
10832
|
}
|
@@ -82693,7 +82692,7 @@ module.exports = function (str) {
|
|
82693
82692
|
module.exports={
|
82694
82693
|
"name": "babel-core",
|
82695
82694
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
82696
|
-
"version": "5.2.
|
82695
|
+
"version": "5.2.11",
|
82697
82696
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
82698
82697
|
"homepage": "https://babeljs.io/",
|
82699
82698
|
"repository": "babel/babel",
|
data/lib/babel/source.rb
CHANGED