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

oo7-react

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oo7-react - npm Package Compare versions

Comparing version 0.4.7 to 0.4.8

57

lib/index.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Hash = exports.Rimg = exports.Ra = exports.Rdiv = exports.Rspan = exports.ReactiveComponent = undefined;
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 _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _oo = require('oo7');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -24,2 +11,10 @@

var React = require('react');
var _require = require('oo7'),
Bond = _require.Bond,
TimeBond = _require.TimeBond,
ReactiveBond = _require.ReactiveBond,
TransformBond = _require.TransformBond;
/**

@@ -53,3 +48,5 @@ * @summary A derivable class for creating React components that can transparently

*/
var ReactiveComponent = exports.ReactiveComponent = function (_React$Component) {
var ReactiveComponent = function (_React$Component) {
_inherits(ReactiveComponent, _React$Component);

@@ -132,3 +129,3 @@

var bondKeys = Object.keys(bonds);
this._consolidatedExtraBonds = new _oo.ReactiveBond(bondKeys.map(function (f) {
this._consolidatedExtraBonds = new ReactiveBond(bondKeys.map(function (f) {
return bonds[f];

@@ -168,3 +165,3 @@ }), [], function (a) {

}
this._consolidatedBonds = new _oo.ReactiveBond(this.reactiveProps.map(function (f) {
this._consolidatedBonds = new ReactiveBond(this.reactiveProps.map(function (f) {
return nextProps[f];

@@ -219,3 +216,3 @@ }), [], function (a) {

value: function unreadyRender() {
return _react2.default.createElement('span', null);
return React.createElement('span', null);
}

@@ -236,3 +233,3 @@

return ReactiveComponent;
}(_react2.default.Component);
}(React.Component);

@@ -252,3 +249,3 @@ /**

var Rspan = exports.Rspan = function (_ReactiveComponent) {
var Rspan = function (_ReactiveComponent) {
_inherits(Rspan, _ReactiveComponent);

@@ -265,3 +262,3 @@

value: function render() {
return _react2.default.createElement(
return React.createElement(
'span',

@@ -294,3 +291,3 @@ {

var Rdiv = exports.Rdiv = function (_ReactiveComponent2) {
var Rdiv = function (_ReactiveComponent2) {
_inherits(Rdiv, _ReactiveComponent2);

@@ -307,3 +304,3 @@

value: function render() {
return _react2.default.createElement(
return React.createElement(
'div',

@@ -331,3 +328,3 @@ {

var Ra = exports.Ra = function (_ReactiveComponent3) {
var Ra = function (_ReactiveComponent3) {
_inherits(Ra, _ReactiveComponent3);

@@ -344,3 +341,3 @@

value: function render() {
return _react2.default.createElement(
return React.createElement(
'a',

@@ -370,3 +367,3 @@ {

var Rimg = exports.Rimg = function (_ReactiveComponent4) {
var Rimg = function (_ReactiveComponent4) {
_inherits(Rimg, _ReactiveComponent4);

@@ -383,3 +380,3 @@

value: function render() {
return _react2.default.createElement('img', {
return React.createElement('img', {
src: this.state.src,

@@ -405,3 +402,3 @@ className: this.state.className,

var Hash = exports.Hash = function (_ReactiveComponent5) {
var Hash = function (_ReactiveComponent5) {
_inherits(Hash, _ReactiveComponent5);

@@ -420,3 +417,3 @@

var d = typeof v === 'string' && v.startsWith('0x') && v.length >= 18 ? v.substr(0, 8) + '…' + v.substr(v.length - 4) : v;
return _react2.default.createElement(
return React.createElement(
'span',

@@ -439,2 +436,4 @@ {

className: '_hash'
};
};
module.exports = { ReactiveComponent: ReactiveComponent, Rspan: Rspan, Rdiv: Rdiv, Ra: Ra, Rimg: Rimg, Hash: Hash };
{
"name": "oo7-react",
"version": "0.4.7",
"version": "0.4.8",
"description": "The Reactive Bond API",

@@ -11,4 +11,5 @@ "main": "lib/index.js",

"test": "npm run compile && mocha --compilers js:babel-core/register --reporter spec",
"compile": "babel --presets es2015,react -d lib/ src/",
"prepublish": "../oo7/prepublish.sh && npm run compile",
"compile": "babel --presets react -d lib/ src/",
"prepublishOnly": "../oo7/prepublish.sh",
"prepublish": "npm run compile",
"postpublish": "../oo7/postpublish.sh"

@@ -34,3 +35,3 @@ },

"dependencies": {
"oo7": "^0.5.6",
"oo7": "file:../oo7",
"react": "^15.4.2"

@@ -40,3 +41,2 @@ },

"babel-cli": "^6.22.2",
"babel-preset-es2015": "^6.22.0",
"babel-preset-react": "^6.22.0",

@@ -43,0 +43,0 @@ "chai": "^3.5.0",

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