babel-source 5.0.2 → 5.0.3
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 +8 -8
- data/lib/babel.js +21 -9
- data/lib/babel/source.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDFkYjlmMzcwNzI2NDQ1ZTkwMWEyNzk0MTg3OWQ2NDM5ODE4ZmRmNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDE3YmVhYzU3YzdkY2U0ODYxM2MxY2M0NzY5MTczM2VkMGUyNWZlOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDQxMjY3NTgyMDFlZTI2NGQ3MDhlMjkzNTJlMDAzMTAyNjIxNDg3NWY1YzJm
|
10
|
+
ZDExNmVhYmI4YzVjMjMxYjExY2I1MWYzZWYzOWNjNTQzNDMwY2I0YzI4MWI0
|
11
|
+
YzVkNDlkMTA3MDNkZTE2MDYyNjc2ZDZkM2ZjMWQxNjJiMDc4NGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGEzOTc5ODAxNGQ1NmRhOGJkMmJjMjFhMTM4Njg4OTAyN2Q2YzlkYWZmMDk3
|
14
|
+
YTNjMWY1ZmIzN2UwZDJhMTRhNTA0OTA3OWVhMzZhOTQ5NTI5YTAwMGM1YmNj
|
15
|
+
ZmQ4MzcxZTMzNWRlNTBjOTU2ZDBiYTZlMGQ1ZWNkNzFmNGUwZDQ=
|
data/lib/babel.js
CHANGED
@@ -8135,6 +8135,7 @@ module.exports = function (loc) {
|
|
8135
8135
|
return opts;
|
8136
8136
|
};
|
8137
8137
|
},{"fs":172,"lodash/object/merge":410,"path":182}],46:[function(require,module,exports){
|
8138
|
+
(function (process){
|
8138
8139
|
"use strict";
|
8139
8140
|
|
8140
8141
|
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; };
|
@@ -8216,6 +8217,7 @@ var File = (function () {
|
|
8216
8217
|
this.usedHelpers = {};
|
8217
8218
|
this.dynamicData = {};
|
8218
8219
|
this.data = {};
|
8220
|
+
this.uids = {};
|
8219
8221
|
|
8220
8222
|
this.lastStatements = [];
|
8221
8223
|
this.log = new Logger(this, opts.filename || "unknown");
|
@@ -8231,8 +8233,10 @@ var File = (function () {
|
|
8231
8233
|
File.prototype.normalizeOptions = function normalizeOptions(opts) {
|
8232
8234
|
opts = assign({}, opts);
|
8233
8235
|
|
8234
|
-
if (opts.filename
|
8235
|
-
|
8236
|
+
if (opts.filename) {
|
8237
|
+
var rcFilename = opts.filename;
|
8238
|
+
if (!isAbsolute(rcFilename)) rcFilename = path.join(process.cwd(), rcFilename);
|
8239
|
+
opts = resolveRc(rcFilename, opts);
|
8236
8240
|
}
|
8237
8241
|
|
8238
8242
|
//
|
@@ -8810,7 +8814,8 @@ var File = (function () {
|
|
8810
8814
|
})();
|
8811
8815
|
|
8812
8816
|
module.exports = File;
|
8813
|
-
},
|
8817
|
+
}).call(this,require('_process'))
|
8818
|
+
},{"../../generation":32,"../../helpers/parse":42,"../../tools/resolve-rc":45,"../../traversal":144,"../../traversal/path":148,"../../traversal/scope":149,"../../types":153,"../../util":157,"./../index":63,"./logger":47,"./option-parsers":48,"./options":49,"_process":183,"convert-source-map":208,"lodash/collection/each":316,"lodash/collection/includes":319,"lodash/lang/isFunction":395,"lodash/object/assign":404,"lodash/object/defaults":405,"path":182,"path-is-absolute":420,"shebang-regex":439,"slash":440,"source-map":441}],47:[function(require,module,exports){
|
8814
8819
|
"use strict";
|
8815
8820
|
|
8816
8821
|
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; };
|
@@ -9097,7 +9102,15 @@ module.exports={
|
|
9097
9102
|
"moduleRoot": {
|
9098
9103
|
"type": "string",
|
9099
9104
|
"description": "optional prefix for the AMD module formatter that will be prepend to the filename on module definitions"
|
9105
|
+
},
|
9106
|
+
|
9107
|
+
"breakConfig": {
|
9108
|
+
"type": "boolean",
|
9109
|
+
"default": false,
|
9110
|
+
"hidden": true,
|
9111
|
+
"description": "stop trying to load .babelrc files"
|
9100
9112
|
}
|
9113
|
+
|
9101
9114
|
}
|
9102
9115
|
|
9103
9116
|
},{}],50:[function(require,module,exports){
|
@@ -18386,7 +18399,7 @@ var Scope = (function () {
|
|
18386
18399
|
uid = this._generateUid(name, i);
|
18387
18400
|
i++;
|
18388
18401
|
} while (this.hasBinding(uid) || this.hasGlobal(uid) || this.hasUid(uid));
|
18389
|
-
this.
|
18402
|
+
this.file.uids[uid] = true;
|
18390
18403
|
return uid;
|
18391
18404
|
};
|
18392
18405
|
|
@@ -18403,7 +18416,7 @@ var Scope = (function () {
|
|
18403
18416
|
Scope.prototype.hasUid = function hasUid(name) {
|
18404
18417
|
var scope = this;
|
18405
18418
|
do {
|
18406
|
-
if (scope.uids[name]) return true;
|
18419
|
+
if (scope.file.uids[name]) return true;
|
18407
18420
|
scope = scope.parent;
|
18408
18421
|
} while (scope);
|
18409
18422
|
return false;
|
@@ -18695,8 +18708,7 @@ var Scope = (function () {
|
|
18695
18708
|
|
18696
18709
|
info = this.block._scopeInfo = {
|
18697
18710
|
bindings: object(),
|
18698
|
-
globals: object()
|
18699
|
-
uids: object()
|
18711
|
+
globals: object()
|
18700
18712
|
};
|
18701
18713
|
|
18702
18714
|
extend(this, info);
|
@@ -18921,7 +18933,7 @@ var Scope = (function () {
|
|
18921
18933
|
if (!name) return false;
|
18922
18934
|
if (this.hasOwnBinding(name)) return true;
|
18923
18935
|
if (this.parentHasBinding(name)) return true;
|
18924
|
-
if (this.uids[name]) return true;
|
18936
|
+
if (this.file.uids[name]) return true;
|
18925
18937
|
if (includes(Scope.globals, name)) return true;
|
18926
18938
|
if (includes(Scope.contextVariables, name)) return true;
|
18927
18939
|
return false;
|
@@ -49705,7 +49717,7 @@ module.exports = function (str) {
|
|
49705
49717
|
module.exports={
|
49706
49718
|
"name": "babel-core",
|
49707
49719
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
49708
|
-
"version": "5.0.
|
49720
|
+
"version": "5.0.3",
|
49709
49721
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
49710
49722
|
"homepage": "https://babeljs.io/",
|
49711
49723
|
"repository": "babel/babel",
|
data/lib/babel/source.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: babel-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian McKenzie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: sebmck@gmail.com
|