babel-source 5.2.16 → 5.2.17
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 +44 -13
- data/lib/babel/polyfill.js +36 -12
- 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
|
+
ODY0MDgyZGRlOTMwNzcyNGY5NTAxYjgzY2I3NzhiY2I2YzdkODBlMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzVlNmY5YWM0YzM4MzdjN2UwY2U5MzFlN2Y0MTQ5Zjk5YTgxMzlmMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTZiYTI2ZTQ3MGUzYTkyMmI1NjZiMDUxMmVmMjg0YWQzYjdmZmRlYjhlZjc2
|
10
|
+
NmViZDkzY2M5MjE0MDJhMzJkNjA4NmEzNDk5YmVmNzgxMTRhMWFlZTUxYzU3
|
11
|
+
YmY1OWQ3YmU3ODA0MjNlZDdlZjYwMDBhODBmZWYwNjc4YWFkZjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTE5ZGY0NDMzNmJhN2E4OWMxZDEwZTIzYzRmNjM5ZWY2N2I3N2Q4NzJhY2Yz
|
14
|
+
OWYyODQ0NTVlYThhOTgyZjA0YmQwOTE2ZWE0ODBiNTMwMWQzZTcxODk1ZDI5
|
15
|
+
YjdjM2E4MmFjN2VmNjgwZTYwNThmOWY3N2YxMjM1YTJlMjMzMGM=
|
data/lib/babel.js
CHANGED
@@ -7756,6 +7756,8 @@ def("RestElement").bases("Pattern").build("argument").field("argument", def("exp
|
|
7756
7756
|
|
7757
7757
|
def("DoExpression").bases("Expression").build("body").field("body", [def("Statement")]);
|
7758
7758
|
|
7759
|
+
def("Super").bases("Expression");
|
7760
|
+
|
7759
7761
|
def("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration", or(def("Declaration"), def("Expression"), null));
|
7760
7762
|
|
7761
7763
|
def("ExportNamedDeclaration").bases("Declaration").build("declaration").field("declaration", or(def("Declaration"), def("Expression"), null)).field("specifiers", [or(def("ExportSpecifier"))]).field("source", or(def("ModuleSpecifier"), null));
|
@@ -8385,6 +8387,7 @@ var File = (function () {
|
|
8385
8387
|
ref._generated = true;
|
8386
8388
|
ref.id = uid;
|
8387
8389
|
ref.type = "FunctionDeclaration";
|
8390
|
+
this.attachAuxiliaryComment(ref);
|
8388
8391
|
this.path.unshiftContainer("body", ref);
|
8389
8392
|
} else {
|
8390
8393
|
ref._compact = true;
|
@@ -16482,6 +16485,7 @@ function Program(program, parent, scope, file) {
|
|
16482
16485
|
|
16483
16486
|
this.unshiftContainer("body", [directive]);
|
16484
16487
|
}
|
16488
|
+
this.stop();
|
16485
16489
|
}
|
16486
16490
|
},{"../../../types":167}],126:[function(require,module,exports){
|
16487
16491
|
"use strict";
|
@@ -16602,6 +16606,7 @@ function Identifier(node, parent, scope) {
|
|
16602
16606
|
|
16603
16607
|
var binding = scope.getBinding(node.name);
|
16604
16608
|
if (!binding || binding.references > 1 || !binding.constant) return;
|
16609
|
+
if (binding.kind === "param") return;
|
16605
16610
|
|
16606
16611
|
var replacement = binding.path.node;
|
16607
16612
|
if (t.isVariableDeclarator(replacement)) {
|
@@ -33928,8 +33933,10 @@ var $ = require('./$')
|
|
33928
33933
|
, assert = require('./$.assert')
|
33929
33934
|
, assertObject = assert.obj
|
33930
33935
|
, ObjectProto = Object.prototype
|
33936
|
+
, html = $.html
|
33931
33937
|
, A = []
|
33932
|
-
,
|
33938
|
+
, _slice = A.slice
|
33939
|
+
, _join = A.join
|
33933
33940
|
, indexOf = A.indexOf
|
33934
33941
|
, classof = cof.classof
|
33935
33942
|
, has = $.has
|
@@ -33939,6 +33946,7 @@ var $ = require('./$')
|
|
33939
33946
|
, isFunction = $.isFunction
|
33940
33947
|
, toObject = $.toObject
|
33941
33948
|
, toLength = $.toLength
|
33949
|
+
, toIndex = $.toIndex
|
33942
33950
|
, IE8_DOM_DEFINE = false
|
33943
33951
|
, $indexOf = require('./$.array-includes')(false)
|
33944
33952
|
, $forEach = arrayMethod(0)
|
@@ -34001,7 +34009,7 @@ var createDict = function(){
|
|
34001
34009
|
, gt = '>'
|
34002
34010
|
, iframeDocument;
|
34003
34011
|
iframe.style.display = 'none';
|
34004
|
-
|
34012
|
+
html.appendChild(iframe);
|
34005
34013
|
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
34006
34014
|
// createDict = iframe.contentWindow.Object;
|
34007
34015
|
// html.removeChild(iframe);
|
@@ -34072,9 +34080,9 @@ $def($def.S, 'Object', {
|
|
34072
34080
|
$def($def.P, 'Function', {
|
34073
34081
|
bind: function(that /*, args... */){
|
34074
34082
|
var fn = assert.fn(this)
|
34075
|
-
, partArgs =
|
34083
|
+
, partArgs = _slice.call(arguments, 1);
|
34076
34084
|
function bound(/* args... */){
|
34077
|
-
var args = partArgs.concat(
|
34085
|
+
var args = partArgs.concat(_slice.call(arguments));
|
34078
34086
|
return invoke(fn, args, this instanceof bound ? $.create(fn.prototype) : that);
|
34079
34087
|
}
|
34080
34088
|
if(fn.prototype)bound.prototype = fn.prototype;
|
@@ -34082,20 +34090,41 @@ $def($def.P, 'Function', {
|
|
34082
34090
|
}
|
34083
34091
|
});
|
34084
34092
|
|
34085
|
-
// Fix for not array-like ES3 string
|
34086
|
-
function arrayMethodFix(fn){
|
34087
|
-
return function(){
|
34088
|
-
return fn.apply($.ES5Object(this), arguments);
|
34089
|
-
};
|
34090
|
-
}
|
34093
|
+
// Fix for not array-like ES3 string and DOM objects
|
34091
34094
|
if(!(0 in Object('z') && 'z'[0] == 'z')){
|
34092
34095
|
$.ES5Object = function(it){
|
34093
34096
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
34094
34097
|
};
|
34095
34098
|
}
|
34099
|
+
|
34100
|
+
var buggySlice = true;
|
34101
|
+
try {
|
34102
|
+
if(html)_slice.call(html);
|
34103
|
+
buggySlice = false;
|
34104
|
+
} catch(e){ /* empty */ }
|
34105
|
+
|
34106
|
+
$def($def.P + $def.F * buggySlice, 'Array', {
|
34107
|
+
slice: function slice(begin, end){
|
34108
|
+
var len = toLength(this.length)
|
34109
|
+
, klass = cof(this);
|
34110
|
+
end = end === undefined ? len : end;
|
34111
|
+
if(klass == 'Array')return _slice.call(this, begin, end);
|
34112
|
+
var start = toIndex(begin, len)
|
34113
|
+
, upTo = toIndex(end, len)
|
34114
|
+
, size = toLength(upTo - start)
|
34115
|
+
, cloned = Array(size)
|
34116
|
+
, i = 0;
|
34117
|
+
for(; i < size; i++)cloned[i] = klass == 'String'
|
34118
|
+
? this.charAt(start + i)
|
34119
|
+
: this[start + i];
|
34120
|
+
return cloned;
|
34121
|
+
}
|
34122
|
+
});
|
34123
|
+
|
34096
34124
|
$def($def.P + $def.F * ($.ES5Object != Object), 'Array', {
|
34097
|
-
|
34098
|
-
|
34125
|
+
join: function join(){
|
34126
|
+
return _join.apply($.ES5Object(this), arguments);
|
34127
|
+
}
|
34099
34128
|
});
|
34100
34129
|
|
34101
34130
|
// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
|
@@ -36099,6 +36128,8 @@ module.exports = function(val, options){
|
|
36099
36128
|
*/
|
36100
36129
|
|
36101
36130
|
function parse(str) {
|
36131
|
+
str = '' + str;
|
36132
|
+
if (str.length > 10000) return;
|
36102
36133
|
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
|
36103
36134
|
if (!match) return;
|
36104
36135
|
var n = parseFloat(match[1]);
|
@@ -85847,7 +85878,7 @@ module.exports = function (str) {
|
|
85847
85878
|
module.exports={
|
85848
85879
|
"name": "babel-core",
|
85849
85880
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
85850
|
-
"version": "5.2.
|
85881
|
+
"version": "5.2.17",
|
85851
85882
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
85852
85883
|
"homepage": "https://babeljs.io/",
|
85853
85884
|
"repository": "babel/babel",
|
data/lib/babel/polyfill.js
CHANGED
@@ -1076,8 +1076,10 @@ var $ = require('./$')
|
|
1076
1076
|
, assert = require('./$.assert')
|
1077
1077
|
, assertObject = assert.obj
|
1078
1078
|
, ObjectProto = Object.prototype
|
1079
|
+
, html = $.html
|
1079
1080
|
, A = []
|
1080
|
-
,
|
1081
|
+
, _slice = A.slice
|
1082
|
+
, _join = A.join
|
1081
1083
|
, indexOf = A.indexOf
|
1082
1084
|
, classof = cof.classof
|
1083
1085
|
, has = $.has
|
@@ -1087,6 +1089,7 @@ var $ = require('./$')
|
|
1087
1089
|
, isFunction = $.isFunction
|
1088
1090
|
, toObject = $.toObject
|
1089
1091
|
, toLength = $.toLength
|
1092
|
+
, toIndex = $.toIndex
|
1090
1093
|
, IE8_DOM_DEFINE = false
|
1091
1094
|
, $indexOf = require('./$.array-includes')(false)
|
1092
1095
|
, $forEach = arrayMethod(0)
|
@@ -1149,7 +1152,7 @@ var createDict = function(){
|
|
1149
1152
|
, gt = '>'
|
1150
1153
|
, iframeDocument;
|
1151
1154
|
iframe.style.display = 'none';
|
1152
|
-
|
1155
|
+
html.appendChild(iframe);
|
1153
1156
|
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
1154
1157
|
// createDict = iframe.contentWindow.Object;
|
1155
1158
|
// html.removeChild(iframe);
|
@@ -1220,9 +1223,9 @@ $def($def.S, 'Object', {
|
|
1220
1223
|
$def($def.P, 'Function', {
|
1221
1224
|
bind: function(that /*, args... */){
|
1222
1225
|
var fn = assert.fn(this)
|
1223
|
-
, partArgs =
|
1226
|
+
, partArgs = _slice.call(arguments, 1);
|
1224
1227
|
function bound(/* args... */){
|
1225
|
-
var args = partArgs.concat(
|
1228
|
+
var args = partArgs.concat(_slice.call(arguments));
|
1226
1229
|
return invoke(fn, args, this instanceof bound ? $.create(fn.prototype) : that);
|
1227
1230
|
}
|
1228
1231
|
if(fn.prototype)bound.prototype = fn.prototype;
|
@@ -1230,20 +1233,41 @@ $def($def.P, 'Function', {
|
|
1230
1233
|
}
|
1231
1234
|
});
|
1232
1235
|
|
1233
|
-
// Fix for not array-like ES3 string
|
1234
|
-
function arrayMethodFix(fn){
|
1235
|
-
return function(){
|
1236
|
-
return fn.apply($.ES5Object(this), arguments);
|
1237
|
-
};
|
1238
|
-
}
|
1236
|
+
// Fix for not array-like ES3 string and DOM objects
|
1239
1237
|
if(!(0 in Object('z') && 'z'[0] == 'z')){
|
1240
1238
|
$.ES5Object = function(it){
|
1241
1239
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
1242
1240
|
};
|
1243
1241
|
}
|
1242
|
+
|
1243
|
+
var buggySlice = true;
|
1244
|
+
try {
|
1245
|
+
if(html)_slice.call(html);
|
1246
|
+
buggySlice = false;
|
1247
|
+
} catch(e){ /* empty */ }
|
1248
|
+
|
1249
|
+
$def($def.P + $def.F * buggySlice, 'Array', {
|
1250
|
+
slice: function slice(begin, end){
|
1251
|
+
var len = toLength(this.length)
|
1252
|
+
, klass = cof(this);
|
1253
|
+
end = end === undefined ? len : end;
|
1254
|
+
if(klass == 'Array')return _slice.call(this, begin, end);
|
1255
|
+
var start = toIndex(begin, len)
|
1256
|
+
, upTo = toIndex(end, len)
|
1257
|
+
, size = toLength(upTo - start)
|
1258
|
+
, cloned = Array(size)
|
1259
|
+
, i = 0;
|
1260
|
+
for(; i < size; i++)cloned[i] = klass == 'String'
|
1261
|
+
? this.charAt(start + i)
|
1262
|
+
: this[start + i];
|
1263
|
+
return cloned;
|
1264
|
+
}
|
1265
|
+
});
|
1266
|
+
|
1244
1267
|
$def($def.P + $def.F * ($.ES5Object != Object), 'Array', {
|
1245
|
-
|
1246
|
-
|
1268
|
+
join: function join(){
|
1269
|
+
return _join.apply($.ES5Object(this), arguments);
|
1270
|
+
}
|
1247
1271
|
});
|
1248
1272
|
|
1249
1273
|
// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
|
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.2.
|
4
|
+
version: 5.2.17
|
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-05-
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: sebmck@gmail.com
|