babel-source 4.7.4 → 4.7.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,6 +50,27 @@
50
50
  };
51
51
  })();
52
52
 
53
+ babelHelpers.createComputedClass = (function () {
54
+ function defineProperties(target, rawProps) {
55
+ var props = {};
56
+
57
+ for (var i = 0; i < rawProps.length; i++) {
58
+ var prop = rawProps[i];
59
+ prop.configurable = true;
60
+ if (prop.value) prop.writable = true;
61
+ props[prop.key] = prop;
62
+ }
63
+
64
+ Object.defineProperties(target, props);
65
+ }
66
+
67
+ return function (Constructor, protoProps, staticProps) {
68
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
69
+ if (staticProps) defineProperties(Constructor, staticProps);
70
+ return Constructor;
71
+ };
72
+ })();
73
+
53
74
  babelHelpers.applyConstructor = function (Constructor, args) {
54
75
  var instance = Object.create(Constructor.prototype);
55
76
  var result = Constructor.apply(instance, args);
data/lib/babel/source.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "4.7.4"
4
- DATE = Time.at(1425918587)
3
+ VERSION = "4.7.5"
4
+ DATE = Time.at(1425954020)
5
5
  PATH = File.expand_path("../..", __FILE__)
6
6
  end
7
7
  end
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: 4.7.4
4
+ version: 4.7.5
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-03-09 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: sebmck@gmail.com