Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electrum

Package Overview
Dependencies
Maintainers
3
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrum - npm Package Compare versions

Comparing version 2.6.1 to 2.7.0

6

lib/electrum.js
'use strict';
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; }; })();
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; }; }();

@@ -39,3 +39,3 @@ Object.defineProperty(exports, "__esModule", {

var Electrum = (function () {
var Electrum = function () {
function Electrum() {

@@ -170,3 +170,3 @@ _classCallCheck(this, Electrum);

return Electrum;
})();
}();

@@ -173,0 +173,0 @@ /******************************************************************************/

'use strict';
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; }; })();
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; }; }();

@@ -28,3 +28,3 @@ Object.defineProperty(exports, "__esModule", {

var RadiumConnector = (function () {
var RadiumConnector = function () {
function RadiumConnector() {

@@ -42,3 +42,3 @@ _classCallCheck(this, RadiumConnector);

return RadiumConnector;
})();
}();

@@ -45,0 +45,0 @@ /******************************************************************************/

'use strict';
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; }; })();
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; }; }();

@@ -23,3 +23,3 @@ Object.defineProperty(exports, "__esModule", {

var InjectingMiddleware = (function (_Middleware) {
var InjectingMiddleware = function (_Middleware) {
_inherits(InjectingMiddleware, _Middleware);

@@ -67,3 +67,3 @@

return InjectingMiddleware;
})(_middleware2.default);
}(_middleware2.default);

@@ -70,0 +70,0 @@ /*****************************************************************************/

@@ -1,8 +0,7 @@

'use strict'
'use strict';
/*****************************************************************************/
/*jshint unused:false*/
;
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; }; })();
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; }; }();

@@ -15,3 +14,3 @@ Object.defineProperty(exports, "__esModule", {

var IBus = (function () {
var IBus = function () {
function IBus() {

@@ -30,3 +29,3 @@ _classCallCheck(this, IBus);

return IBus;
})();
}();

@@ -33,0 +32,0 @@ /*****************************************************************************/

'use strict';
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; }; })();
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; }; }();

@@ -42,3 +42,3 @@ Object.defineProperty(exports, "__esModule", {

var LinkingMiddleware = (function (_Middleware) {
var LinkingMiddleware = function (_Middleware) {
_inherits(LinkingMiddleware, _Middleware);

@@ -107,3 +107,3 @@

return LinkingMiddleware;
})(_middleware2.default);
}(_middleware2.default);

@@ -110,0 +110,0 @@ /*****************************************************************************/

@@ -1,9 +0,7 @@

'use strict'
'use strict';
/*****************************************************************************/
;
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; }; }();
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; }; })();
Object.defineProperty(exports, "__esModule", {

@@ -15,3 +13,3 @@ value: true

var Middleware = (function () {
var Middleware = function () {
function Middleware() {

@@ -61,3 +59,3 @@ _classCallCheck(this, Middleware);

return Middleware;
})();
}();

@@ -64,0 +62,0 @@ /*****************************************************************************/

@@ -1,6 +0,7 @@

'use strict' /*jshint latedef:false*/
'use strict'; /*jshint latedef:false*/
/******************************************************************************/
;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
Object.defineProperty(exports, "__esModule", {

@@ -18,4 +19,2 @@ value: true

function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
function hasMethod(obj, method) {

@@ -22,0 +21,0 @@ return typeof obj[method] === 'function';

'use strict';
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; }; })();
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; }; }();

@@ -32,3 +32,3 @@ Object.defineProperty(exports, "__esModule", {

var stylesResolver = _electrumTheme.Styles.create(stylesDef);
return (function (_component) {
return function (_component) {
_inherits(_class, _component);

@@ -68,3 +68,3 @@

value: function resolveStyle(name) {
var styles = stylesResolver(this.theme);
var styles = stylesResolver(this.theme, this.props);
return styles.resolve(name);

@@ -82,3 +82,3 @@ }

get: function get() {
var styles = stylesResolver(this.theme);
var styles = stylesResolver(this.theme, this.props);
var props = this.props;

@@ -101,5 +101,5 @@ var list = styles.get(props);

return _class;
})(component);
}(component);
}
/******************************************************************************/
'use strict';
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; }; })();
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; }; }();

@@ -23,3 +23,3 @@ Object.defineProperty(exports, "__esModule", {

function transformStatelessFunctionComponent(_render) {
return (function (_React$Component) {
return function (_React$Component) {
_inherits(_class, _React$Component);

@@ -41,4 +41,4 @@

return _class;
})(_react2.default.Component);
}(_react2.default.Component);
}
exports.default = transformStatelessFunctionComponent;

@@ -1,6 +0,5 @@

'use strict'
'use strict';
/******************************************************************************/
;
Object.defineProperty(exports, "__esModule", {

@@ -7,0 +6,0 @@ value: true

{
"name": "electrum",
"version": "2.6.1",
"version": "2.7.0",
"description": "Electrum simplifies framework-agnostic declaration of React components.",

@@ -34,10 +34,11 @@ "main": "lib/index.js",

"electrum-store": "^1.2.0",
"electrum-theme": "^1.3.0",
"electrum-theme": "^1.4.0",
"electrum-utils": "^1.0.0"
},
"devDependencies": {
"babel-cli": "^6.3.17",
"babel-core": "^6.3.17",
"babel-plugin-transform-decorators": "^6.3.13",
"babel-plugin-transform-react-display-name": "^6.3.13",
"babel-cli": "^6.4.0",
"babel-core": "^6.4.0",
"babel-plugin-transform-decorators": "^6.4.0",
"babel-plugin-transform-react-display-name": "^6.4.0",
"babel-polyfill": "^6.3.14",
"babel-preset-es2015": "^6.3.13",

@@ -48,3 +49,3 @@ "babel-preset-react": "^6.3.13",

"electrum-require-components": "^1.3.0",
"jsdom": "^7.2.1",
"jsdom": "^7.2.2",
"mai-chai": "^1.1.2",

@@ -51,0 +52,0 @@ "mocha": "^2.3.4",

@@ -36,7 +36,7 @@ 'use strict';

resolveStyle (name) {
const styles = stylesResolver (this.theme);
const styles = stylesResolver (this.theme, this.props);
return styles.resolve (name);
}
get styles () {
const styles = stylesResolver (this.theme);
const styles = stylesResolver (this.theme, this.props);
const props = this.props;

@@ -43,0 +43,0 @@ const list = styles.get (props);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc