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

cf-component-code

Package Overview
Dependencies
Maintainers
15
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-component-code - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

10

es/Code.js

@@ -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 @@ );

3

es/CodeBlock.js

@@ -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"
}
}
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