abigail-plugin
Advanced tools
Comparing version 0.0.7 to 0.1.0
@@ -37,3 +37,3 @@ 'use strict'; | ||
if ((typeof parent === 'undefined' ? 'undefined' : _typeof(parent)) !== 'object' || typeof parent.on !== 'function') { | ||
throw new TypeError('parent is not a defined'); | ||
throw new TypeError('parent is not a asyncemitter'); | ||
} | ||
@@ -122,2 +122,27 @@ | ||
/** | ||
* @method setProps | ||
* @param {object} [newProps={}] | ||
* @returns {undefined} | ||
*/ | ||
}, { | ||
key: 'setProps', | ||
value: function setProps() { | ||
var newProps = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
this.parent.props = Object.assign({}, this.parent.props || {}, newProps); | ||
} | ||
/** | ||
* @method getProps | ||
* @returns {object} props | ||
*/ | ||
}, { | ||
key: 'getProps', | ||
value: function getProps() { | ||
return Object.assign({}, this.parent.props || {}); | ||
} | ||
/** | ||
* @method pluginWillAttach | ||
@@ -124,0 +149,0 @@ * @returns {undefined} |
{ | ||
"name": "abigail-plugin", | ||
"description": "abigail plugins base class", | ||
"version": "0.0.7", | ||
"version": "0.1.0", | ||
"main": "lib", | ||
@@ -30,6 +30,6 @@ "files": [ | ||
"bluebird": "^3.3.4", | ||
"carrack": "^0.0.5", | ||
"carrack": "^0.1.0", | ||
"codeclimate-test-reporter": "^0.3.1", | ||
"eslint": "2.2.0", | ||
"eslint-config-airbnb": "^6.1.0", | ||
"eslint-config-airbnb": "6.1.0", | ||
"espower-babel": "^4.0.1", | ||
@@ -45,3 +45,5 @@ "mocha": "^2.4.5", | ||
}, | ||
"keywords": [], | ||
"keywords": [ | ||
"abigail-plugin" | ||
], | ||
"author": "59naga <i59naga@icloud.com> (http://berabou.me/)", | ||
@@ -48,0 +50,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7932
131