function-tree
Advanced tools
Comparing version 4.0.0-1521047171357 to 4.0.0-1521140905511
@@ -27,3 +27,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
_this.latestExecutionId = null; | ||
_this.version = "4.0.0-1521047171357"; | ||
_this.version = "4.0.0-1521140905511"; | ||
_this.init(); | ||
@@ -30,0 +30,0 @@ return _this; |
@@ -19,2 +19,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
this.definition = definition; | ||
if (typeof definition === 'function') { | ||
return; | ||
} | ||
if (!ignoreDefinition) { | ||
@@ -103,2 +109,6 @@ this.verifyDefinition(definition); | ||
value: function get(context) { | ||
if (typeof this.definition === 'function') { | ||
return this.definition(context); | ||
} | ||
return new this.ProviderConstructor(context); | ||
@@ -109,2 +119,6 @@ } | ||
value: function getWrapped(name, context) { | ||
if (typeof this.definition === 'function') { | ||
return this.definition(context); | ||
} | ||
return new this.WrappedProviderConstructor(name, context); | ||
@@ -111,0 +125,0 @@ } |
@@ -48,3 +48,3 @@ 'use strict'; | ||
_this.latestExecutionId = null; | ||
_this.version = "4.0.0-1521047171357"; | ||
_this.version = "4.0.0-1521140905511"; | ||
_this.init(); | ||
@@ -51,0 +51,0 @@ return _this; |
@@ -25,2 +25,8 @@ 'use strict'; | ||
this.definition = definition; | ||
if (typeof definition === 'function') { | ||
return; | ||
} | ||
if (!ignoreDefinition) { | ||
@@ -109,2 +115,6 @@ this.verifyDefinition(definition); | ||
value: function get(context) { | ||
if (typeof this.definition === 'function') { | ||
return this.definition(context); | ||
} | ||
return new this.ProviderConstructor(context); | ||
@@ -115,2 +125,6 @@ } | ||
value: function getWrapped(name, context) { | ||
if (typeof this.definition === 'function') { | ||
return this.definition(context); | ||
} | ||
return new this.WrappedProviderConstructor(name, context); | ||
@@ -117,0 +131,0 @@ } |
{ | ||
"name": "function-tree", | ||
"version": "4.0.0-1521047171357", | ||
"version": "4.0.0-1521140905511", | ||
"description": "When a function is not enough", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
352241
3470