react 0.13.0-beta.2 → 0.13.0-rc1

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * JSXTransformer v0.13.0-beta.2
2
+ * JSXTransformer v0.13.0-rc1
3
3
  */
4
- !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSXTransformer=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
4
+ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSXTransformer = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
5
5
  /**
6
6
  * Copyright 2013-2015, Facebook, Inc.
7
7
  * All rights reserved.
@@ -12,13 +12,13 @@
12
12
  */
13
13
  /* jshint browser: true */
14
14
  /* jslint evil: true */
15
+ /*eslint-disable no-eval */
16
+ /*eslint-disable block-scoped-var */
15
17
 
16
18
  'use strict';
17
19
 
18
- var buffer = _dereq_('buffer');
19
- var transform = _dereq_('jstransform').transform;
20
- var typesSyntax = _dereq_('jstransform/visitors/type-syntax');
21
- var visitors = _dereq_('./fbtransform/visitors');
20
+ var ReactTools = _dereq_('../main');
21
+ var inlineSourceMap = _dereq_('./inline-source-map');
22
22
 
23
23
  var headEl;
24
24
  var dummyAnchor;
@@ -38,26 +38,18 @@ var supportsAccessors = Object.prototype.hasOwnProperty('__defineGetter__');
38
38
  * @return {object} object as returned from jstransform
39
39
  */
40
40
  function transformReact(source, options) {
41
- // TODO: just use react-tools
42
41
  options = options || {};
43
- var visitorList;
44
- if (options.harmony) {
45
- visitorList = visitors.getAllVisitors();
46
- } else {
47
- visitorList = visitors.transformVisitors.react;
48
- }
49
42
 
50
- if (options.stripTypes) {
51
- // Stripping types needs to happen before the other transforms
52
- // unfortunately, due to bad interactions. For example,
53
- // es6-rest-param-visitors conflict with stripping rest param type
54
- // annotation
55
- source = transform(typesSyntax.visitorList, source, options).code;
43
+ // Force the sourcemaps option manually. We don't want to use it if it will
44
+ // break (see above note about supportsAccessors). We'll only override the
45
+ // value here if sourceMap was specified and is truthy. This guarantees that
46
+ // we won't override any user intent (since this method is exposed publicly).
47
+ if (options.sourceMap) {
48
+ options.sourceMap = supportsAccessors;
56
49
  }
57
50
 
58
- return transform(visitorList, source, {
59
- sourceMap: supportsAccessors && options.sourceMap
60
- });
51
+ // Otherwise just pass all options straight through to react-tools.
52
+ return ReactTools.transformWithDetails(source, options);
61
53
  }
62
54
 
63
55
  /**
@@ -153,10 +145,9 @@ function transformCode(code, url, options) {
153
145
  return transformed.code;
154
146
  }
155
147
 
156
- var map = transformed.sourceMap.toJSON();
157
148
  var source;
158
149
  if (url == null) {
159
- source = "Inline JSX script";
150
+ source = 'Inline JSX script';
160
151
  inlineScriptCount++;
161
152
  if (inlineScriptCount > 1) {
162
153
  source += ' (' + inlineScriptCount + ')';
@@ -169,13 +160,11 @@ function transformCode(code, url, options) {
169
160
  dummyAnchor.href = url;
170
161
  source = dummyAnchor.pathname.substr(1);
171
162
  }
172
- map.sources = [source];
173
- map.sourcesContent = [code];
174
163
 
175
164
  return (
176
165
  transformed.code +
177
- '\n//# sourceMappingURL=data:application/json;base64,' +
178
- buffer.Buffer(JSON.stringify(map)).toString('base64')
166
+ '\n' +
167
+ inlineSourceMap(transformed.sourceMap, code, source)
179
168
  );
180
169
  }
181
170
 
@@ -219,7 +208,7 @@ function load(url, successCallback, errorCallback) {
219
208
  successCallback(xhr.responseText);
220
209
  } else {
221
210
  errorCallback();
222
- throw new Error("Could not load " + url);
211
+ throw new Error('Could not load ' + url);
223
212
  }
224
213
  }
225
214
  };
@@ -333,7 +322,7 @@ function runScripts() {
333
322
 
334
323
  // Listen for load event if we're in a browser and then kick off finding and
335
324
  // running of scripts.
336
- if (typeof window !== "undefined" && window !== null) {
325
+ if (typeof window !== 'undefined' && window !== null) {
337
326
  headEl = document.getElementsByTagName('head')[0];
338
327
  dummyAnchor = document.createElement('a');
339
328
 
@@ -349,7 +338,104 @@ module.exports = {
349
338
  exec: exec
350
339
  };
351
340
 
352
- },{"./fbtransform/visitors":37,"buffer":2,"jstransform":21,"jstransform/visitors/type-syntax":33}],2:[function(_dereq_,module,exports){
341
+ },{"../main":2,"./inline-source-map":41}],2:[function(_dereq_,module,exports){
342
+ /**
343
+ * Copyright 2013-2015, Facebook, Inc.
344
+ * All rights reserved.
345
+ *
346
+ * This source code is licensed under the BSD-style license found in the
347
+ * LICENSE file in the root directory of this source tree. An additional grant
348
+ * of patent rights can be found in the PATENTS file in the same directory.
349
+ */
350
+
351
+ 'use strict';
352
+ /*eslint-disable no-undef*/
353
+ var visitors = _dereq_('./vendor/fbtransform/visitors');
354
+ var transform = _dereq_('jstransform').transform;
355
+ var typesSyntax = _dereq_('jstransform/visitors/type-syntax');
356
+ var inlineSourceMap = _dereq_('./vendor/inline-source-map');
357
+
358
+ module.exports = {
359
+ transform: function(input, options) {
360
+ options = processOptions(options);
361
+ var output = innerTransform(input, options);
362
+ var result = output.code;
363
+ if (options.sourceMap) {
364
+ var map = inlineSourceMap(
365
+ output.sourceMap,
366
+ input,
367
+ options.filename
368
+ );
369
+ result += '\n' + map;
370
+ }
371
+ return result;
372
+ },
373
+ transformWithDetails: function(input, options) {
374
+ options = processOptions(options);
375
+ var output = innerTransform(input, options);
376
+ var result = {};
377
+ result.code = output.code;
378
+ if (options.sourceMap) {
379
+ result.sourceMap = output.sourceMap.toJSON();
380
+ }
381
+ if (options.filename) {
382
+ result.sourceMap.sources = [options.filename];
383
+ }
384
+ return result;
385
+ }
386
+ };
387
+
388
+ /**
389
+ * Only copy the values that we need. We'll do some preprocessing to account for
390
+ * converting command line flags to options that jstransform can actually use.
391
+ */
392
+ function processOptions(opts) {
393
+ opts = opts || {};
394
+ var options = {};
395
+
396
+ options.harmony = opts.harmony;
397
+ options.stripTypes = opts.stripTypes;
398
+ options.sourceMap = opts.sourceMap;
399
+ options.filename = opts.sourceFilename;
400
+
401
+ if (opts.es6module) {
402
+ options.sourceType = 'module';
403
+ }
404
+ if (opts.nonStrictEs6Module) {
405
+ options.sourceType = 'nonStrict6Module';
406
+ }
407
+
408
+ // Instead of doing any fancy validation, only look for 'es3'. If we have
409
+ // that, then use it. Otherwise use 'es5'.
410
+ options.es3 = opts.target === 'es3';
411
+ options.es5 = !options.es3;
412
+
413
+ return options;
414
+ }
415
+
416
+ function innerTransform(input, options) {
417
+ var visitorSets = ['react'];
418
+ if (options.harmony) {
419
+ visitorSets.push('harmony');
420
+ }
421
+
422
+ if (options.es3) {
423
+ visitorSets.push('es3');
424
+ }
425
+
426
+ if (options.stripTypes) {
427
+ // Stripping types needs to happen before the other transforms
428
+ // unfortunately, due to bad interactions. For example,
429
+ // es6-rest-param-visitors conflict with stripping rest param type
430
+ // annotation
431
+ input = transform(typesSyntax.visitorList, input, options).code;
432
+ }
433
+
434
+ var visitorList = visitors.getVisitorsBySet(visitorSets);
435
+ return transform(visitorList, input, options);
436
+ }
437
+
438
+ },{"./vendor/fbtransform/visitors":40,"./vendor/inline-source-map":41,"jstransform":22,"jstransform/visitors/type-syntax":36}],3:[function(_dereq_,module,exports){
353
439
  /*!
354
440
  * The buffer module from node.js, for the browser.
355
441
  *
@@ -396,7 +482,7 @@ Buffer.TYPED_ARRAY_SUPPORT = (function () {
396
482
  var buf = new ArrayBuffer(0)
397
483
  var arr = new Uint8Array(buf)
398
484
  arr.foo = function () { return 42 }
399
- return 42 === arr.foo() && // typed array instances can be augmented
485
+ return arr.foo() === 42 && // typed array instances can be augmented
400
486
  typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
401
487
  new Uint8Array(1).subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
402
488
  } catch (e) {
@@ -424,60 +510,67 @@ function Buffer (subject, encoding, noZero) {
424
510
 
425
511
  // Find the length
426
512
  var length
427
- if (type === 'number')
428
- length = subject > 0 ? subject >>> 0 : 0
429
- else if (type === 'string') {
513
+ if (type === 'number') {
514
+ length = +subject
515
+ } else if (type === 'string') {
430
516
  length = Buffer.byteLength(subject, encoding)
431
517
  } else if (type === 'object' && subject !== null) { // assume object is array-like
432
518
  if (subject.type === 'Buffer' && isArray(subject.data))
433
519
  subject = subject.data
434
- length = +subject.length > 0 ? Math.floor(+subject.length) : 0
435
- } else
520
+ length = +subject.length
521
+ } else {
436
522
  throw new TypeError('must start with number, buffer, array or string')
523
+ }
437
524
 
438
525
  if (length > kMaxLength)
439
526
  throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
440
527
  'size: 0x' + kMaxLength.toString(16) + ' bytes')
441
528
 
442
- var buf
529
+ if (length < 0)
530
+ length = 0
531
+ else
532
+ length >>>= 0 // Coerce to uint32.
533
+
534
+ var self = this
443
535
  if (Buffer.TYPED_ARRAY_SUPPORT) {
444
536
  // Preferred: Return an augmented `Uint8Array` instance for best performance
445
- buf = Buffer._augment(new Uint8Array(length))
537
+ /*eslint-disable consistent-this */
538
+ self = Buffer._augment(new Uint8Array(length))
539
+ /*eslint-enable consistent-this */
446
540
  } else {
447
541
  // Fallback: Return THIS instance of Buffer (created by `new`)
448
- buf = this
449
- buf.length = length
450
- buf._isBuffer = true
542
+ self.length = length
543
+ self._isBuffer = true
451
544
  }
452
545
 
453
546
  var i
454
547
  if (Buffer.TYPED_ARRAY_SUPPORT && typeof subject.byteLength === 'number') {
455
548
  // Speed optimization -- use set if we're copying from a typed array
456
- buf._set(subject)
549
+ self._set(subject)
457
550
  } else if (isArrayish(subject)) {
458
551
  // Treat array-ish objects as a byte array
459
552
  if (Buffer.isBuffer(subject)) {
460
553
  for (i = 0; i < length; i++)
461
- buf[i] = subject.readUInt8(i)
554
+ self[i] = subject.readUInt8(i)
462
555
  } else {
463
556
  for (i = 0; i < length; i++)
464
- buf[i] = ((subject[i] % 256) + 256) % 256
557
+ self[i] = ((subject[i] % 256) + 256) % 256
465
558
  }
466
559
  } else if (type === 'string') {
467
- buf.write(subject, 0, encoding)
560
+ self.write(subject, 0, encoding)
468
561
  } else if (type === 'number' && !Buffer.TYPED_ARRAY_SUPPORT && !noZero) {
469
562
  for (i = 0; i < length; i++) {
470
- buf[i] = 0
563
+ self[i] = 0
471
564
  }
472
565
  }
473
566
 
474
567
  if (length > 0 && length <= Buffer.poolSize)
475
- buf.parent = rootParent
568
+ self.parent = rootParent
476
569
 
477
- return buf
570
+ return self
478
571
  }
479
572
 
480
- function SlowBuffer(subject, encoding, noZero) {
573
+ function SlowBuffer (subject, encoding, noZero) {
481
574
  if (!(this instanceof SlowBuffer))
482
575
  return new SlowBuffer(subject, encoding, noZero)
483
576
 
@@ -494,6 +587,8 @@ Buffer.compare = function (a, b) {
494
587
  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b))
495
588
  throw new TypeError('Arguments must be Buffers')
496
589
 
590
+ if (a === b) return 0
591
+
497
592
  var x = a.length
498
593
  var y = b.length
499
594
  for (var i = 0, len = Math.min(x, y); i < len && a[i] === b[i]; i++) {}
@@ -634,6 +729,7 @@ Buffer.prototype.toString = function (encoding, start, end) {
634
729
 
635
730
  Buffer.prototype.equals = function (b) {
636
731
  if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
732
+ if (this === b) return true
637
733
  return Buffer.compare(this, b) === 0
638
734
  }
639
735
 
@@ -650,6 +746,7 @@ Buffer.prototype.inspect = function () {
650
746
 
651
747
  Buffer.prototype.compare = function (b) {
652
748
  if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
749
+ if (this === b) return 0
653
750
  return Buffer.compare(this, b)
654
751
  }
655
752
 
@@ -712,7 +809,7 @@ function base64Write (buf, string, offset, length) {
712
809
  }
713
810
 
714
811
  function utf16leWrite (buf, string, offset, length) {
715
- var charsWritten = blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length, 2)
812
+ var charsWritten = blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
716
813
  return charsWritten
717
814
  }
718
815
 
@@ -734,7 +831,7 @@ Buffer.prototype.write = function (string, offset, length, encoding) {
734
831
  offset = Number(offset) || 0
735
832
 
736
833
  if (length < 0 || offset < 0 || offset > this.length)
737
- throw new RangeError('attempt to write outside buffer bounds');
834
+ throw new RangeError('attempt to write outside buffer bounds')
738
835
 
739
836
  var remaining = this.length - offset
740
837
  if (!length) {
@@ -857,7 +954,7 @@ Buffer.prototype.slice = function (start, end) {
857
954
  end = end === undefined ? len : ~~end
858
955
 
859
956
  if (start < 0) {
860
- start += len;
957
+ start += len
861
958
  if (start < 0)
862
959
  start = 0
863
960
  } else if (start > len) {
@@ -926,7 +1023,7 @@ Buffer.prototype.readUIntBE = function (offset, byteLength, noAssert) {
926
1023
  var val = this[offset + --byteLength]
927
1024
  var mul = 1
928
1025
  while (byteLength > 0 && (mul *= 0x100))
929
- val += this[offset + --byteLength] * mul;
1026
+ val += this[offset + --byteLength] * mul
930
1027
 
931
1028
  return val
932
1029
  }
@@ -1334,7 +1431,7 @@ Buffer.prototype.writeDoubleBE = function (value, offset, noAssert) {
1334
1431
 
1335
1432
  // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
1336
1433
  Buffer.prototype.copy = function (target, target_start, start, end) {
1337
- var source = this
1434
+ var self = this // source
1338
1435
 
1339
1436
  if (!start) start = 0
1340
1437
  if (!end && end !== 0) end = this.length
@@ -1344,12 +1441,12 @@ Buffer.prototype.copy = function (target, target_start, start, end) {
1344
1441
 
1345
1442
  // Copy 0 bytes; we're done
1346
1443
  if (end === start) return 0
1347
- if (target.length === 0 || source.length === 0) return 0
1444
+ if (target.length === 0 || self.length === 0) return 0
1348
1445
 
1349
1446
  // Fatal error conditions
1350
1447
  if (target_start < 0)
1351
1448
  throw new RangeError('targetStart out of bounds')
1352
- if (start < 0 || start >= source.length) throw new RangeError('sourceStart out of bounds')
1449
+ if (start < 0 || start >= self.length) throw new RangeError('sourceStart out of bounds')
1353
1450
  if (end < 0) throw new RangeError('sourceEnd out of bounds')
1354
1451
 
1355
1452
  // Are we oob?
@@ -1523,61 +1620,50 @@ function toHex (n) {
1523
1620
  return n.toString(16)
1524
1621
  }
1525
1622
 
1526
- function utf8ToBytes(string, units) {
1527
- var codePoint, length = string.length
1528
- var leadSurrogate = null
1623
+ function utf8ToBytes (string, units) {
1529
1624
  units = units || Infinity
1625
+ var codePoint
1626
+ var length = string.length
1627
+ var leadSurrogate = null
1530
1628
  var bytes = []
1531
1629
  var i = 0
1532
1630
 
1533
- for (; i<length; i++) {
1631
+ for (; i < length; i++) {
1534
1632
  codePoint = string.charCodeAt(i)
1535
1633
 
1536
1634
  // is surrogate component
1537
1635
  if (codePoint > 0xD7FF && codePoint < 0xE000) {
1538
-
1539
1636
  // last char was a lead
1540
1637
  if (leadSurrogate) {
1541
-
1542
1638
  // 2 leads in a row
1543
1639
  if (codePoint < 0xDC00) {
1544
1640
  if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
1545
1641
  leadSurrogate = codePoint
1546
1642
  continue
1547
- }
1548
-
1549
- // valid surrogate pair
1550
- else {
1643
+ } else {
1644
+ // valid surrogate pair
1551
1645
  codePoint = leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00 | 0x10000
1552
1646
  leadSurrogate = null
1553
1647
  }
1554
- }
1555
-
1556
- // no lead yet
1557
- else {
1648
+ } else {
1649
+ // no lead yet
1558
1650
 
1559
- // unexpected trail
1560
1651
  if (codePoint > 0xDBFF) {
1652
+ // unexpected trail
1561
1653
  if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
1562
1654
  continue
1563
- }
1564
-
1565
- // unpaired lead
1566
- else if (i + 1 === length) {
1655
+ } else if (i + 1 === length) {
1656
+ // unpaired lead
1567
1657
  if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
1568
1658
  continue
1569
- }
1570
-
1571
- // valid lead
1572
- else {
1659
+ } else {
1660
+ // valid lead
1573
1661
  leadSurrogate = codePoint
1574
1662
  continue
1575
1663
  }
1576
1664
  }
1577
- }
1578
-
1579
- // valid bmp char, but last char was a lead
1580
- else if (leadSurrogate) {
1665
+ } else if (leadSurrogate) {
1666
+ // valid bmp char, but last char was a lead
1581
1667
  if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
1582
1668
  leadSurrogate = null
1583
1669
  }
@@ -1586,32 +1672,28 @@ function utf8ToBytes(string, units) {
1586
1672
  if (codePoint < 0x80) {
1587
1673
  if ((units -= 1) < 0) break
1588
1674
  bytes.push(codePoint)
1589
- }
1590
- else if (codePoint < 0x800) {
1675
+ } else if (codePoint < 0x800) {
1591
1676
  if ((units -= 2) < 0) break
1592
1677
  bytes.push(
1593
1678
  codePoint >> 0x6 | 0xC0,
1594
1679
  codePoint & 0x3F | 0x80
1595
- );
1596
- }
1597
- else if (codePoint < 0x10000) {
1680
+ )
1681
+ } else if (codePoint < 0x10000) {
1598
1682
  if ((units -= 3) < 0) break
1599
1683
  bytes.push(
1600
1684
  codePoint >> 0xC | 0xE0,
1601
1685
  codePoint >> 0x6 & 0x3F | 0x80,
1602
1686
  codePoint & 0x3F | 0x80
1603
- );
1604
- }
1605
- else if (codePoint < 0x200000) {
1687
+ )
1688
+ } else if (codePoint < 0x200000) {
1606
1689
  if ((units -= 4) < 0) break
1607
1690
  bytes.push(
1608
1691
  codePoint >> 0x12 | 0xF0,
1609
1692
  codePoint >> 0xC & 0x3F | 0x80,
1610
1693
  codePoint >> 0x6 & 0x3F | 0x80,
1611
1694
  codePoint & 0x3F | 0x80
1612
- );
1613
- }
1614
- else {
1695
+ )
1696
+ } else {
1615
1697
  throw new Error('Invalid code point')
1616
1698
  }
1617
1699
  }
@@ -1632,7 +1714,6 @@ function utf16leToBytes (str, units) {
1632
1714
  var c, hi, lo
1633
1715
  var byteArray = []
1634
1716
  for (var i = 0; i < str.length; i++) {
1635
-
1636
1717
  if ((units -= 2) < 0) break
1637
1718
 
1638
1719
  c = str.charCodeAt(i)
@@ -1649,8 +1730,7 @@ function base64ToBytes (str) {
1649
1730
  return base64.toByteArray(base64clean(str))
1650
1731
  }
1651
1732
 
1652
- function blitBuffer (src, dst, offset, length, unitSize) {
1653
- if (unitSize) length -= length % unitSize;
1733
+ function blitBuffer (src, dst, offset, length) {
1654
1734
  for (var i = 0; i < length; i++) {
1655
1735
  if ((i + offset >= dst.length) || (i >= src.length))
1656
1736
  break
@@ -1667,7 +1747,7 @@ function decodeUtf8Char (str) {
1667
1747
  }
1668
1748
  }
1669
1749
 
1670
- },{"base64-js":3,"ieee754":4,"is-array":5}],3:[function(_dereq_,module,exports){
1750
+ },{"base64-js":4,"ieee754":5,"is-array":6}],4:[function(_dereq_,module,exports){
1671
1751
  var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
1672
1752
 
1673
1753
  ;(function (exports) {
@@ -1793,7 +1873,7 @@ var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
1793
1873
  exports.fromByteArray = uint8ToBase64
1794
1874
  }(typeof exports === 'undefined' ? (this.base64js = {}) : exports))
1795
1875
 
1796
- },{}],4:[function(_dereq_,module,exports){
1876
+ },{}],5:[function(_dereq_,module,exports){
1797
1877
  exports.read = function(buffer, offset, isLE, mLen, nBytes) {
1798
1878
  var e, m,
1799
1879
  eLen = nBytes * 8 - mLen - 1,
@@ -1879,7 +1959,7 @@ exports.write = function(buffer, value, offset, isLE, mLen, nBytes) {
1879
1959
  buffer[offset + i - d] |= s * 128;
1880
1960
  };
1881
1961
 
1882
- },{}],5:[function(_dereq_,module,exports){
1962
+ },{}],6:[function(_dereq_,module,exports){
1883
1963
 
1884
1964
  /**
1885
1965
  * isArray
@@ -1914,7 +1994,7 @@ module.exports = isArray || function (val) {
1914
1994
  return !! val && '[object Array]' == str.call(val);
1915
1995
  };
1916
1996
 
1917
- },{}],6:[function(_dereq_,module,exports){
1997
+ },{}],7:[function(_dereq_,module,exports){
1918
1998
  (function (process){
1919
1999
  // Copyright Joyent, Inc. and other Node contributors.
1920
2000
  //
@@ -2142,7 +2222,7 @@ var substr = 'ab'.substr(-1) === 'b'
2142
2222
  ;
2143
2223
 
2144
2224
  }).call(this,_dereq_('_process'))
2145
- },{"_process":7}],7:[function(_dereq_,module,exports){
2225
+ },{"_process":8}],8:[function(_dereq_,module,exports){
2146
2226
  // shim for using process in browser
2147
2227
 
2148
2228
  var process = module.exports = {};
@@ -2201,7 +2281,7 @@ process.chdir = function (dir) {
2201
2281
  };
2202
2282
  process.umask = function() { return 0; };
2203
2283
 
2204
- },{}],8:[function(_dereq_,module,exports){
2284
+ },{}],9:[function(_dereq_,module,exports){
2205
2285
  /*
2206
2286
  Copyright (C) 2013 Ariya Hidayat <ariya.hidayat@gmail.com>
2207
2287
  Copyright (C) 2013 Thaddee Tyl <thaddee.tyl@gmail.com>
@@ -10020,7 +10100,7 @@ parseYieldExpression: true, parseAwaitExpression: true
10020
10100
  }));
10021
10101
  /* vim: set sw=4 ts=4 et tw=80 : */
10022
10102
 
10023
- },{}],9:[function(_dereq_,module,exports){
10103
+ },{}],10:[function(_dereq_,module,exports){
10024
10104
  var Base62 = (function (my) {
10025
10105
  my.chars = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
10026
10106
 
@@ -10048,7 +10128,7 @@ var Base62 = (function (my) {
10048
10128
  }({}));
10049
10129
 
10050
10130
  module.exports = Base62
10051
- },{}],10:[function(_dereq_,module,exports){
10131
+ },{}],11:[function(_dereq_,module,exports){
10052
10132
  /*
10053
10133
  * Copyright 2009-2011 Mozilla Foundation and contributors
10054
10134
  * Licensed under the New BSD license. See LICENSE.txt or:
@@ -10058,7 +10138,7 @@ exports.SourceMapGenerator = _dereq_('./source-map/source-map-generator').Source
10058
10138
  exports.SourceMapConsumer = _dereq_('./source-map/source-map-consumer').SourceMapConsumer;
10059
10139
  exports.SourceNode = _dereq_('./source-map/source-node').SourceNode;
10060
10140
 
10061
- },{"./source-map/source-map-consumer":15,"./source-map/source-map-generator":16,"./source-map/source-node":17}],11:[function(_dereq_,module,exports){
10141
+ },{"./source-map/source-map-consumer":16,"./source-map/source-map-generator":17,"./source-map/source-node":18}],12:[function(_dereq_,module,exports){
10062
10142
  /* -*- Mode: js; js-indent-level: 2; -*- */
10063
10143
  /*
10064
10144
  * Copyright 2011 Mozilla Foundation and contributors
@@ -10157,7 +10237,7 @@ define(function (_dereq_, exports, module) {
10157
10237
 
10158
10238
  });
10159
10239
 
10160
- },{"./util":18,"amdefine":19}],12:[function(_dereq_,module,exports){
10240
+ },{"./util":19,"amdefine":20}],13:[function(_dereq_,module,exports){
10161
10241
  /* -*- Mode: js; js-indent-level: 2; -*- */
10162
10242
  /*
10163
10243
  * Copyright 2011 Mozilla Foundation and contributors
@@ -10303,7 +10383,7 @@ define(function (_dereq_, exports, module) {
10303
10383
 
10304
10384
  });
10305
10385
 
10306
- },{"./base64":13,"amdefine":19}],13:[function(_dereq_,module,exports){
10386
+ },{"./base64":14,"amdefine":20}],14:[function(_dereq_,module,exports){
10307
10387
  /* -*- Mode: js; js-indent-level: 2; -*- */
10308
10388
  /*
10309
10389
  * Copyright 2011 Mozilla Foundation and contributors
@@ -10347,7 +10427,7 @@ define(function (_dereq_, exports, module) {
10347
10427
 
10348
10428
  });
10349
10429
 
10350
- },{"amdefine":19}],14:[function(_dereq_,module,exports){
10430
+ },{"amdefine":20}],15:[function(_dereq_,module,exports){
10351
10431
  /* -*- Mode: js; js-indent-level: 2; -*- */
10352
10432
  /*
10353
10433
  * Copyright 2011 Mozilla Foundation and contributors
@@ -10430,7 +10510,7 @@ define(function (_dereq_, exports, module) {
10430
10510
 
10431
10511
  });
10432
10512
 
10433
- },{"amdefine":19}],15:[function(_dereq_,module,exports){
10513
+ },{"amdefine":20}],16:[function(_dereq_,module,exports){
10434
10514
  /* -*- Mode: js; js-indent-level: 2; -*- */
10435
10515
  /*
10436
10516
  * Copyright 2011 Mozilla Foundation and contributors
@@ -10909,7 +10989,7 @@ define(function (_dereq_, exports, module) {
10909
10989
 
10910
10990
  });
10911
10991
 
10912
- },{"./array-set":11,"./base64-vlq":12,"./binary-search":14,"./util":18,"amdefine":19}],16:[function(_dereq_,module,exports){
10992
+ },{"./array-set":12,"./base64-vlq":13,"./binary-search":15,"./util":19,"amdefine":20}],17:[function(_dereq_,module,exports){
10913
10993
  /* -*- Mode: js; js-indent-level: 2; -*- */
10914
10994
  /*
10915
10995
  * Copyright 2011 Mozilla Foundation and contributors
@@ -11291,7 +11371,7 @@ define(function (_dereq_, exports, module) {
11291
11371
 
11292
11372
  });
11293
11373
 
11294
- },{"./array-set":11,"./base64-vlq":12,"./util":18,"amdefine":19}],17:[function(_dereq_,module,exports){
11374
+ },{"./array-set":12,"./base64-vlq":13,"./util":19,"amdefine":20}],18:[function(_dereq_,module,exports){
11295
11375
  /* -*- Mode: js; js-indent-level: 2; -*- */
11296
11376
  /*
11297
11377
  * Copyright 2011 Mozilla Foundation and contributors
@@ -11664,7 +11744,7 @@ define(function (_dereq_, exports, module) {
11664
11744
 
11665
11745
  });
11666
11746
 
11667
- },{"./source-map-generator":16,"./util":18,"amdefine":19}],18:[function(_dereq_,module,exports){
11747
+ },{"./source-map-generator":17,"./util":19,"amdefine":20}],19:[function(_dereq_,module,exports){
11668
11748
  /* -*- Mode: js; js-indent-level: 2; -*- */
11669
11749
  /*
11670
11750
  * Copyright 2011 Mozilla Foundation and contributors
@@ -11871,7 +11951,7 @@ define(function (_dereq_, exports, module) {
11871
11951
 
11872
11952
  });
11873
11953
 
11874
- },{"amdefine":19}],19:[function(_dereq_,module,exports){
11954
+ },{"amdefine":20}],20:[function(_dereq_,module,exports){
11875
11955
  (function (process,__filename){
11876
11956
  /** vim: et:ts=4:sw=4:sts=4
11877
11957
  * @license amdefine 0.1.0 Copyright (c) 2011, The Dojo Foundation All Rights Reserved.
@@ -12174,7 +12254,7 @@ function amdefine(module, requireFn) {
12174
12254
  module.exports = amdefine;
12175
12255
 
12176
12256
  }).call(this,_dereq_('_process'),"/node_modules/jstransform/node_modules/source-map/node_modules/amdefine/amdefine.js")
12177
- },{"_process":7,"path":6}],20:[function(_dereq_,module,exports){
12257
+ },{"_process":8,"path":7}],21:[function(_dereq_,module,exports){
12178
12258
  /**
12179
12259
  * Copyright 2013 Facebook, Inc.
12180
12260
  *
@@ -12262,7 +12342,7 @@ exports.extract = extract;
12262
12342
  exports.parse = parse;
12263
12343
  exports.parseAsObject = parseAsObject;
12264
12344
 
12265
- },{}],21:[function(_dereq_,module,exports){
12345
+ },{}],22:[function(_dereq_,module,exports){
12266
12346
  /**
12267
12347
  * Copyright 2013 Facebook, Inc.
12268
12348
  *
@@ -12563,7 +12643,7 @@ function transform(visitors, source, options) {
12563
12643
  exports.transform = transform;
12564
12644
  exports.Syntax = Syntax;
12565
12645
 
12566
- },{"./utils":22,"esprima-fb":8,"source-map":10}],22:[function(_dereq_,module,exports){
12646
+ },{"./utils":23,"esprima-fb":9,"source-map":11}],23:[function(_dereq_,module,exports){
12567
12647
  /**
12568
12648
  * Copyright 2013 Facebook, Inc.
12569
12649
  *
@@ -13273,7 +13353,7 @@ exports.scopeTypes = scopeTypes;
13273
13353
  exports.updateIndent = updateIndent;
13274
13354
  exports.updateState = updateState;
13275
13355
 
13276
- },{"./docblock":20,"esprima-fb":8}],23:[function(_dereq_,module,exports){
13356
+ },{"./docblock":21,"esprima-fb":9}],24:[function(_dereq_,module,exports){
13277
13357
  /**
13278
13358
  * Copyright 2013 Facebook, Inc.
13279
13359
  *
@@ -13433,7 +13513,116 @@ exports.visitorList = [
13433
13513
  ];
13434
13514
 
13435
13515
 
13436
- },{"../src/utils":22,"./es6-destructuring-visitors":25,"./es6-rest-param-visitors":28,"esprima-fb":8}],24:[function(_dereq_,module,exports){
13516
+ },{"../src/utils":23,"./es6-destructuring-visitors":27,"./es6-rest-param-visitors":30,"esprima-fb":9}],25:[function(_dereq_,module,exports){
13517
+ /**
13518
+ * Copyright 2004-present Facebook. All Rights Reserved.
13519
+ */
13520
+ /*global exports:true*/
13521
+
13522
+ /**
13523
+ * Implements ES6 call spread.
13524
+ *
13525
+ * instance.method(a, b, c, ...d)
13526
+ *
13527
+ * instance.method.apply(instance, [a, b, c].concat(d))
13528
+ *
13529
+ */
13530
+
13531
+ var Syntax = _dereq_('esprima-fb').Syntax;
13532
+ var utils = _dereq_('../src/utils');
13533
+
13534
+ function process(traverse, node, path, state) {
13535
+ utils.move(node.range[0], state);
13536
+ traverse(node, path, state);
13537
+ utils.catchup(node.range[1], state);
13538
+ }
13539
+
13540
+ function visitCallSpread(traverse, node, path, state) {
13541
+ utils.catchup(node.range[0], state);
13542
+
13543
+ if (node.type === Syntax.NewExpression) {
13544
+ // Input = new Set(1, 2, ...list)
13545
+ // Output = new (Function.prototype.bind.apply(Set, [null, 1, 2].concat(list)))
13546
+ utils.append('new (Function.prototype.bind.apply(', state);
13547
+ process(traverse, node.callee, path, state);
13548
+ } else if (node.callee.type === Syntax.MemberExpression) {
13549
+ // Input = get().fn(1, 2, ...more)
13550
+ // Output = (_ = get()).fn.apply(_, [1, 2].apply(more))
13551
+ var tempVar = utils.injectTempVar(state);
13552
+ utils.append('(' + tempVar + ' = ', state);
13553
+ process(traverse, node.callee.object, path, state);
13554
+ utils.append(')', state);
13555
+ if (node.callee.property.type === Syntax.Identifier) {
13556
+ utils.append('.', state);
13557
+ process(traverse, node.callee.property, path, state);
13558
+ } else {
13559
+ utils.append('[', state);
13560
+ process(traverse, node.callee.property, path, state);
13561
+ utils.append(']', state);
13562
+ }
13563
+ utils.append('.apply(' + tempVar, state);
13564
+ } else {
13565
+ // Input = max(1, 2, ...list)
13566
+ // Output = max.apply(null, [1, 2].concat(list))
13567
+ var needsToBeWrappedInParenthesis =
13568
+ node.callee.type === Syntax.FunctionDeclaration ||
13569
+ node.callee.type === Syntax.FunctionExpression;
13570
+ if (needsToBeWrappedInParenthesis) {
13571
+ utils.append('(', state);
13572
+ }
13573
+ process(traverse, node.callee, path, state);
13574
+ if (needsToBeWrappedInParenthesis) {
13575
+ utils.append(')', state);
13576
+ }
13577
+ utils.append('.apply(null', state);
13578
+ }
13579
+ utils.append(', ', state);
13580
+
13581
+ var args = node.arguments.slice();
13582
+ var spread = args.pop();
13583
+ if (args.length || node.type === Syntax.NewExpression) {
13584
+ utils.append('[', state);
13585
+ if (node.type === Syntax.NewExpression) {
13586
+ utils.append('null' + (args.length ? ', ' : ''), state);
13587
+ }
13588
+ while (args.length) {
13589
+ var arg = args.shift();
13590
+ utils.move(arg.range[0], state);
13591
+ traverse(arg, path, state);
13592
+ if (args.length) {
13593
+ utils.catchup(args[0].range[0], state);
13594
+ } else {
13595
+ utils.catchup(arg.range[1], state);
13596
+ }
13597
+ }
13598
+ utils.append('].concat(', state);
13599
+ process(traverse, spread.argument, path, state);
13600
+ utils.append(')', state);
13601
+ } else {
13602
+ process(traverse, spread.argument, path, state);
13603
+ }
13604
+ utils.append(node.type === Syntax.NewExpression ? '))' : ')', state);
13605
+
13606
+ utils.move(node.range[1], state);
13607
+ return false;
13608
+ }
13609
+
13610
+ visitCallSpread.test = function(node, path, state) {
13611
+ return (
13612
+ (
13613
+ node.type === Syntax.CallExpression ||
13614
+ node.type === Syntax.NewExpression
13615
+ ) &&
13616
+ node.arguments.length > 0 &&
13617
+ node.arguments[node.arguments.length - 1].type === Syntax.SpreadElement
13618
+ );
13619
+ };
13620
+
13621
+ exports.visitorList = [
13622
+ visitCallSpread
13623
+ ];
13624
+
13625
+ },{"../src/utils":23,"esprima-fb":9}],26:[function(_dereq_,module,exports){
13437
13626
  /**
13438
13627
  * Copyright 2013 Facebook, Inc.
13439
13628
  *
@@ -14023,7 +14212,7 @@ exports.visitorList = [
14023
14212
  visitSuperMemberExpression
14024
14213
  ];
14025
14214
 
14026
- },{"../src/utils":22,"./reserved-words-helper":32,"base62":9,"esprima-fb":8}],25:[function(_dereq_,module,exports){
14215
+ },{"../src/utils":23,"./reserved-words-helper":34,"base62":10,"esprima-fb":9}],27:[function(_dereq_,module,exports){
14027
14216
  /**
14028
14217
  * Copyright 2014 Facebook, Inc.
14029
14218
  *
@@ -14305,7 +14494,7 @@ exports.visitorList = [
14305
14494
  exports.renderDestructuredComponents = renderDestructuredComponents;
14306
14495
 
14307
14496
 
14308
- },{"../src/utils":22,"./es6-rest-param-visitors":28,"./es7-rest-property-helpers":30,"./reserved-words-helper":32,"esprima-fb":8}],26:[function(_dereq_,module,exports){
14497
+ },{"../src/utils":23,"./es6-rest-param-visitors":30,"./es7-rest-property-helpers":32,"./reserved-words-helper":34,"esprima-fb":9}],28:[function(_dereq_,module,exports){
14309
14498
  /**
14310
14499
  * Copyright 2013 Facebook, Inc.
14311
14500
  *
@@ -14376,7 +14565,7 @@ exports.visitorList = [
14376
14565
  visitObjectConciseMethod
14377
14566
  ];
14378
14567
 
14379
- },{"../src/utils":22,"./reserved-words-helper":32,"esprima-fb":8}],27:[function(_dereq_,module,exports){
14568
+ },{"../src/utils":23,"./reserved-words-helper":34,"esprima-fb":9}],29:[function(_dereq_,module,exports){
14380
14569
  /**
14381
14570
  * Copyright 2013 Facebook, Inc.
14382
14571
  *
@@ -14431,7 +14620,7 @@ exports.visitorList = [
14431
14620
  ];
14432
14621
 
14433
14622
 
14434
- },{"../src/utils":22,"esprima-fb":8}],28:[function(_dereq_,module,exports){
14623
+ },{"../src/utils":23,"esprima-fb":9}],30:[function(_dereq_,module,exports){
14435
14624
  /**
14436
14625
  * Copyright 2013 Facebook, Inc.
14437
14626
  *
@@ -14539,7 +14728,7 @@ exports.visitorList = [
14539
14728
  visitFunctionBodyWithRestParam
14540
14729
  ];
14541
14730
 
14542
- },{"../src/utils":22,"esprima-fb":8}],29:[function(_dereq_,module,exports){
14731
+ },{"../src/utils":23,"esprima-fb":9}],31:[function(_dereq_,module,exports){
14543
14732
  /**
14544
14733
  * Copyright 2013 Facebook, Inc.
14545
14734
  *
@@ -14697,7 +14886,7 @@ exports.visitorList = [
14697
14886
  visitTaggedTemplateExpression
14698
14887
  ];
14699
14888
 
14700
- },{"../src/utils":22,"esprima-fb":8}],30:[function(_dereq_,module,exports){
14889
+ },{"../src/utils":23,"esprima-fb":9}],32:[function(_dereq_,module,exports){
14701
14890
  /**
14702
14891
  * Copyright 2013 Facebook, Inc.
14703
14892
  *
@@ -14779,7 +14968,7 @@ function renderRestExpression(accessorExpression, excludedProperties) {
14779
14968
 
14780
14969
  exports.renderRestExpression = renderRestExpression;
14781
14970
 
14782
- },{"esprima-fb":8}],31:[function(_dereq_,module,exports){
14971
+ },{"esprima-fb":9}],33:[function(_dereq_,module,exports){
14783
14972
  /**
14784
14973
  * Copyright 2004-present Facebook. All Rights Reserved.
14785
14974
  */
@@ -14889,7 +15078,7 @@ exports.visitorList = [
14889
15078
  visitObjectLiteralSpread
14890
15079
  ];
14891
15080
 
14892
- },{"../src/utils":22,"esprima-fb":8}],32:[function(_dereq_,module,exports){
15081
+ },{"../src/utils":23,"esprima-fb":9}],34:[function(_dereq_,module,exports){
14893
15082
  /**
14894
15083
  * Copyright 2014 Facebook, Inc.
14895
15084
  *
@@ -14940,7 +15129,77 @@ exports.isReservedWord = function(word) {
14940
15129
  return !!reservedWordsMap[word];
14941
15130
  };
14942
15131
 
14943
- },{}],33:[function(_dereq_,module,exports){
15132
+ },{}],35:[function(_dereq_,module,exports){
15133
+ /**
15134
+ * Copyright 2014 Facebook, Inc.
15135
+ *
15136
+ * Licensed under the Apache License, Version 2.0 (the "License");
15137
+ * you may not use this file except in compliance with the License.
15138
+ * You may obtain a copy of the License at
15139
+ *
15140
+ * http://www.apache.org/licenses/LICENSE-2.0
15141
+ *
15142
+ * Unless required by applicable law or agreed to in writing, software
15143
+ * distributed under the License is distributed on an "AS IS" BASIS,
15144
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15145
+ * See the License for the specific language governing permissions and
15146
+ * limitations under the License.
15147
+ *
15148
+ */
15149
+ /*global exports:true*/
15150
+
15151
+ var Syntax = _dereq_('esprima-fb').Syntax;
15152
+ var utils = _dereq_('../src/utils');
15153
+ var reserverdWordsHelper = _dereq_('./reserved-words-helper');
15154
+
15155
+ /**
15156
+ * Code adapted from https://github.com/spicyj/es3ify
15157
+ * The MIT License (MIT)
15158
+ * Copyright (c) 2014 Ben Alpert
15159
+ */
15160
+
15161
+ function visitProperty(traverse, node, path, state) {
15162
+ utils.catchup(node.key.range[0], state);
15163
+ utils.append('"', state);
15164
+ utils.catchup(node.key.range[1], state);
15165
+ utils.append('"', state);
15166
+ utils.catchup(node.value.range[0], state);
15167
+ traverse(node.value, path, state);
15168
+ return false;
15169
+ }
15170
+
15171
+ visitProperty.test = function(node) {
15172
+ return node.type === Syntax.Property &&
15173
+ node.key.type === Syntax.Identifier &&
15174
+ !node.method &&
15175
+ !node.shorthand &&
15176
+ !node.computed &&
15177
+ reserverdWordsHelper.isReservedWord(node.key.name);
15178
+ };
15179
+
15180
+ function visitMemberExpression(traverse, node, path, state) {
15181
+ traverse(node.object, path, state);
15182
+ utils.catchup(node.property.range[0] - 1, state);
15183
+ utils.append('[', state);
15184
+ utils.catchupWhiteSpace(node.property.range[0], state);
15185
+ utils.append('"', state);
15186
+ utils.catchup(node.property.range[1], state);
15187
+ utils.append('"]', state);
15188
+ return false;
15189
+ }
15190
+
15191
+ visitMemberExpression.test = function(node) {
15192
+ return node.type === Syntax.MemberExpression &&
15193
+ node.property.type === Syntax.Identifier &&
15194
+ reserverdWordsHelper.isReservedWord(node.property.name);
15195
+ };
15196
+
15197
+ exports.visitorList = [
15198
+ visitProperty,
15199
+ visitMemberExpression
15200
+ ];
15201
+
15202
+ },{"../src/utils":23,"./reserved-words-helper":34,"esprima-fb":9}],36:[function(_dereq_,module,exports){
14944
15203
  var esprima = _dereq_('esprima-fb');
14945
15204
  var utils = _dereq_('../src/utils');
14946
15205
 
@@ -15110,7 +15369,7 @@ exports.visitorList = [
15110
15369
  visitTypeAnnotatedObjectOrArrayPattern
15111
15370
  ];
15112
15371
 
15113
- },{"../src/utils":22,"esprima-fb":8}],34:[function(_dereq_,module,exports){
15372
+ },{"../src/utils":23,"esprima-fb":9}],37:[function(_dereq_,module,exports){
15114
15373
  /**
15115
15374
  * Copyright 2013-2015, Facebook, Inc.
15116
15375
  * All rights reserved.
@@ -15120,7 +15379,7 @@ exports.visitorList = [
15120
15379
  * of patent rights can be found in the PATENTS file in the same directory.
15121
15380
  */
15122
15381
  /*global exports:true*/
15123
- "use strict";
15382
+ 'use strict';
15124
15383
 
15125
15384
  var Syntax = _dereq_('jstransform').Syntax;
15126
15385
  var utils = _dereq_('jstransform/src/utils');
@@ -15354,7 +15613,7 @@ exports.visitorList = [
15354
15613
  visitReactTag
15355
15614
  ];
15356
15615
 
15357
- },{"./xjs":36,"jstransform":21,"jstransform/src/utils":22}],35:[function(_dereq_,module,exports){
15616
+ },{"./xjs":39,"jstransform":22,"jstransform/src/utils":23}],38:[function(_dereq_,module,exports){
15358
15617
  /**
15359
15618
  * Copyright 2013-2015, Facebook, Inc.
15360
15619
  * All rights reserved.
@@ -15364,7 +15623,7 @@ exports.visitorList = [
15364
15623
  * of patent rights can be found in the PATENTS file in the same directory.
15365
15624
  */
15366
15625
  /*global exports:true*/
15367
- "use strict";
15626
+ 'use strict';
15368
15627
 
15369
15628
  var Syntax = _dereq_('jstransform').Syntax;
15370
15629
  var utils = _dereq_('jstransform/src/utils');
@@ -15377,10 +15636,10 @@ function addDisplayName(displayName, object, state) {
15377
15636
  object.callee.object.name === 'React' &&
15378
15637
  object.callee.property.type === Syntax.Identifier &&
15379
15638
  object.callee.property.name === 'createClass' &&
15380
- object['arguments'].length === 1 &&
15381
- object['arguments'][0].type === Syntax.ObjectExpression) {
15639
+ object.arguments.length === 1 &&
15640
+ object.arguments[0].type === Syntax.ObjectExpression) {
15382
15641
  // Verify that the displayName property isn't already set
15383
- var properties = object['arguments'][0].properties;
15642
+ var properties = object.arguments[0].properties;
15384
15643
  var safe = properties.every(function(property) {
15385
15644
  var value = property.key.type === Syntax.Identifier ?
15386
15645
  property.key.name :
@@ -15389,7 +15648,7 @@ function addDisplayName(displayName, object, state) {
15389
15648
  });
15390
15649
 
15391
15650
  if (safe) {
15392
- utils.catchup(object['arguments'][0].range[0] + 1, state);
15651
+ utils.catchup(object.arguments[0].range[0] + 1, state);
15393
15652
  utils.append('displayName: "' + displayName + '",', state);
15394
15653
  }
15395
15654
  }
@@ -15449,7 +15708,7 @@ exports.visitorList = [
15449
15708
  visitReactDisplayName
15450
15709
  ];
15451
15710
 
15452
- },{"jstransform":21,"jstransform/src/utils":22}],36:[function(_dereq_,module,exports){
15711
+ },{"jstransform":22,"jstransform/src/utils":23}],39:[function(_dereq_,module,exports){
15453
15712
  /**
15454
15713
  * Copyright 2013-2015, Facebook, Inc.
15455
15714
  * All rights reserved.
@@ -15459,7 +15718,7 @@ exports.visitorList = [
15459
15718
  * of patent rights can be found in the PATENTS file in the same directory.
15460
15719
  */
15461
15720
  /*global exports:true*/
15462
- "use strict";
15721
+ 'use strict';
15463
15722
  var Syntax = _dereq_('jstransform').Syntax;
15464
15723
  var utils = _dereq_('jstransform/src/utils');
15465
15724
 
@@ -15472,13 +15731,13 @@ function renderXJSLiteral(object, isLast, state, start, end) {
15472
15731
 
15473
15732
  var lastNonEmptyLine = 0;
15474
15733
 
15475
- lines.forEach(function (line, index) {
15734
+ lines.forEach(function(line, index) {
15476
15735
  if (line.match(/[^ \t]/)) {
15477
15736
  lastNonEmptyLine = index;
15478
15737
  }
15479
15738
  });
15480
15739
 
15481
- lines.forEach(function (line, index) {
15740
+ lines.forEach(function(line, index) {
15482
15741
  var isFirstLine = index === 0;
15483
15742
  var isLastLine = index === lines.length - 1;
15484
15743
  var isLastNonEmptyLine = index === lastNonEmptyLine;
@@ -15501,7 +15760,7 @@ function renderXJSLiteral(object, isLast, state, start, end) {
15501
15760
  if (trimmedLine || isLastNonEmptyLine) {
15502
15761
  utils.append(
15503
15762
  JSON.stringify(trimmedLine) +
15504
- (!isLastNonEmptyLine ? " + ' ' +" : ''),
15763
+ (!isLastNonEmptyLine ? ' + \' \' +' : ''),
15505
15764
  state);
15506
15765
 
15507
15766
  if (isLastNonEmptyLine) {
@@ -15562,18 +15821,29 @@ exports.renderXJSLiteral = renderXJSLiteral;
15562
15821
  exports.quoteAttrName = quoteAttrName;
15563
15822
  exports.trimLeft = trimLeft;
15564
15823
 
15565
- },{"jstransform":21,"jstransform/src/utils":22}],37:[function(_dereq_,module,exports){
15824
+ },{"jstransform":22,"jstransform/src/utils":23}],40:[function(_dereq_,module,exports){
15566
15825
  /*global exports:true*/
15567
- var es6ArrowFunctions = _dereq_('jstransform/visitors/es6-arrow-function-visitors');
15826
+
15827
+ 'use strict';
15828
+
15829
+ var es6ArrowFunctions =
15830
+ _dereq_('jstransform/visitors/es6-arrow-function-visitors');
15568
15831
  var es6Classes = _dereq_('jstransform/visitors/es6-class-visitors');
15569
- var es6Destructuring = _dereq_('jstransform/visitors/es6-destructuring-visitors');
15570
- var es6ObjectConciseMethod = _dereq_('jstransform/visitors/es6-object-concise-method-visitors');
15571
- var es6ObjectShortNotation = _dereq_('jstransform/visitors/es6-object-short-notation-visitors');
15832
+ var es6Destructuring =
15833
+ _dereq_('jstransform/visitors/es6-destructuring-visitors');
15834
+ var es6ObjectConciseMethod =
15835
+ _dereq_('jstransform/visitors/es6-object-concise-method-visitors');
15836
+ var es6ObjectShortNotation =
15837
+ _dereq_('jstransform/visitors/es6-object-short-notation-visitors');
15572
15838
  var es6RestParameters = _dereq_('jstransform/visitors/es6-rest-param-visitors');
15573
15839
  var es6Templates = _dereq_('jstransform/visitors/es6-template-visitors');
15574
- var es7SpreadProperty = _dereq_('jstransform/visitors/es7-spread-property-visitors');
15840
+ var es6CallSpread =
15841
+ _dereq_('jstransform/visitors/es6-call-spread-visitors');
15842
+ var es7SpreadProperty =
15843
+ _dereq_('jstransform/visitors/es7-spread-property-visitors');
15575
15844
  var react = _dereq_('./transforms/react');
15576
15845
  var reactDisplayName = _dereq_('./transforms/reactDisplayName');
15846
+ var reservedWords = _dereq_('jstransform/visitors/reserved-words-visitors');
15577
15847
 
15578
15848
  /**
15579
15849
  * Map from transformName => orderedListOfVisitors.
@@ -15586,8 +15856,10 @@ var transformVisitors = {
15586
15856
  'es6-object-short-notation': es6ObjectShortNotation.visitorList,
15587
15857
  'es6-rest-params': es6RestParameters.visitorList,
15588
15858
  'es6-templates': es6Templates.visitorList,
15859
+ 'es6-call-spread': es6CallSpread.visitorList,
15589
15860
  'es7-spread-property': es7SpreadProperty.visitorList,
15590
- 'react': react.visitorList.concat(reactDisplayName.visitorList)
15861
+ 'react': react.visitorList.concat(reactDisplayName.visitorList),
15862
+ 'reserved-words': reservedWords.visitorList
15591
15863
  };
15592
15864
 
15593
15865
  var transformSets = {
@@ -15599,8 +15871,12 @@ var transformSets = {
15599
15871
  'es6-rest-params',
15600
15872
  'es6-templates',
15601
15873
  'es6-destructuring',
15874
+ 'es6-call-spread',
15602
15875
  'es7-spread-property'
15603
15876
  ],
15877
+ 'es3': [
15878
+ 'reserved-words'
15879
+ ],
15604
15880
  'react': [
15605
15881
  'react'
15606
15882
  ]
@@ -15610,6 +15886,7 @@ var transformSets = {
15610
15886
  * Specifies the order in which each transform should run.
15611
15887
  */
15612
15888
  var transformRunOrder = [
15889
+ 'reserved-words',
15613
15890
  'es6-arrow-functions',
15614
15891
  'es6-object-concise-method',
15615
15892
  'es6-object-short-notation',
@@ -15617,6 +15894,7 @@ var transformRunOrder = [
15617
15894
  'es6-rest-params',
15618
15895
  'es6-templates',
15619
15896
  'es6-destructuring',
15897
+ 'es6-call-spread',
15620
15898
  'es7-spread-property',
15621
15899
  'react'
15622
15900
  ];
@@ -15670,5 +15948,34 @@ exports.getVisitorsBySet = getVisitorsBySet;
15670
15948
  exports.getAllVisitors = getAllVisitors;
15671
15949
  exports.transformVisitors = transformVisitors;
15672
15950
 
15673
- },{"./transforms/react":34,"./transforms/reactDisplayName":35,"jstransform/visitors/es6-arrow-function-visitors":23,"jstransform/visitors/es6-class-visitors":24,"jstransform/visitors/es6-destructuring-visitors":25,"jstransform/visitors/es6-object-concise-method-visitors":26,"jstransform/visitors/es6-object-short-notation-visitors":27,"jstransform/visitors/es6-rest-param-visitors":28,"jstransform/visitors/es6-template-visitors":29,"jstransform/visitors/es7-spread-property-visitors":31}]},{},[1])(1)
15951
+ },{"./transforms/react":37,"./transforms/reactDisplayName":38,"jstransform/visitors/es6-arrow-function-visitors":24,"jstransform/visitors/es6-call-spread-visitors":25,"jstransform/visitors/es6-class-visitors":26,"jstransform/visitors/es6-destructuring-visitors":27,"jstransform/visitors/es6-object-concise-method-visitors":28,"jstransform/visitors/es6-object-short-notation-visitors":29,"jstransform/visitors/es6-rest-param-visitors":30,"jstransform/visitors/es6-template-visitors":31,"jstransform/visitors/es7-spread-property-visitors":33,"jstransform/visitors/reserved-words-visitors":35}],41:[function(_dereq_,module,exports){
15952
+ /**
15953
+ * Copyright 2013-2015, Facebook, Inc.
15954
+ * All rights reserved.
15955
+ *
15956
+ * This source code is licensed under the BSD-style license found in the
15957
+ * LICENSE file in the root directory of this source tree. An additional grant
15958
+ * of patent rights can be found in the PATENTS file in the same directory.
15959
+ */
15960
+
15961
+ 'use strict';
15962
+ /*eslint-disable no-undef*/
15963
+ var Buffer = _dereq_('buffer').Buffer;
15964
+
15965
+ function inlineSourceMap(sourceMap, sourceCode, sourceFilename) {
15966
+ // This can be used with a sourcemap that has already has toJSON called on it.
15967
+ // Check first.
15968
+ var json = sourceMap;
15969
+ if (typeof sourceMap.toJSON === 'function') {
15970
+ json = sourceMap.toJSON();
15971
+ }
15972
+ json.sources = [sourceFilename];
15973
+ json.sourcesContent = [sourceCode];
15974
+ var base64 = Buffer(JSON.stringify(json)).toString('base64');
15975
+ return '//# sourceMappingURL=data:application/json;base64,' + base64;
15976
+ }
15977
+
15978
+ module.exports = inlineSourceMap;
15979
+
15980
+ },{"buffer":3}]},{},[1])(1)
15674
15981
  });