cf-component-code
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -9,4 +9,6 @@ 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; }; }(); | ||
import React, { PropTypes } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
var Code = function (_React$Component) { | ||
@@ -22,7 +24,7 @@ _inherits(Code, _React$Component); | ||
_createClass(Code, [{ | ||
key: "render", | ||
key: 'render', | ||
value: function render() { | ||
return React.createElement( | ||
"code", | ||
{ className: "cf-code" }, | ||
'code', | ||
{ className: 'cf-code' }, | ||
this.props.children | ||
@@ -29,0 +31,0 @@ ); |
@@ -9,3 +9,4 @@ 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; }; }(); | ||
import React, { PropTypes } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Code from './Code'; | ||
@@ -12,0 +13,0 @@ |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -9,6 +9,10 @@ Object.defineProperty(exports, "__esModule", { | ||
var _react = require("react"); | ||
var _react = require('react'); | ||
var _react2 = _interopRequireDefault(_react); | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -32,7 +36,7 @@ | ||
_createClass(Code, [{ | ||
key: "render", | ||
key: 'render', | ||
value: function render() { | ||
return _react2.default.createElement( | ||
"code", | ||
{ className: "cf-code" }, | ||
'code', | ||
{ className: 'cf-code' }, | ||
this.props.children | ||
@@ -47,5 +51,5 @@ ); | ||
Code.propTypes = { | ||
children: _react.PropTypes.node | ||
children: _propTypes2.default.node | ||
}; | ||
exports.default = Code; |
@@ -13,2 +13,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _Code = require('./Code'); | ||
@@ -54,5 +58,5 @@ | ||
CodeBlock.propTypes = { | ||
children: _react.PropTypes.node | ||
children: _propTypes2.default.node | ||
}; | ||
exports.default = CodeBlock; |
{ | ||
"name": "cf-component-code", | ||
"description": "Cloudflare Code Component", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"main": "lib/index.js", | ||
@@ -13,5 +13,8 @@ "module": "es/index.js", | ||
}, | ||
"dependencies": { | ||
"prop-types": "^15.5.8" | ||
}, | ||
"peerDependencies": { | ||
"react": "^0.14.0 || ^15.0.0-0 || ^16.0.0-0" | ||
"react": "^0.14.9 || ^15.0.0-0 || ^16.0.0-0" | ||
} | ||
} |
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
23438
335
2
+ Addedprop-types@^15.5.8