babel-source 4.6.6 → 4.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,10 +32,23 @@
32
32
  return obj;
33
33
  };
34
34
 
35
- babelHelpers.prototypeProperties = function (child, staticProps, instanceProps) {
36
- if (staticProps) Object.defineProperties(child, staticProps);
37
- if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
38
- };
35
+ babelHelpers.createClass = (function () {
36
+ function defineProperties(target, props) {
37
+ for (var key in props) {
38
+ var prop = props[key];
39
+ prop.configurable = true;
40
+ if (prop.value) prop.writable = true;
41
+ }
42
+
43
+ Object.defineProperties(target, props);
44
+ }
45
+
46
+ return function (Constructor, protoProps, staticProps) {
47
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
48
+ if (staticProps) defineProperties(Constructor, staticProps);
49
+ return Constructor;
50
+ };
51
+ })();
39
52
 
40
53
  babelHelpers.applyConstructor = function (Constructor, args) {
41
54
  var instance = Object.create(Constructor.prototype);
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "4.6.6"
4
- DATE = Time.at(1425382986)
3
+ VERSION = "4.7.0"
4
+ DATE = Time.at(1425653942)
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.6.6
4
+ version: 4.7.0
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-03 00:00:00.000000000 Z
11
+ date: 2015-03-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: sebmck@gmail.com