graphql-syntax-highlighter-react
Advanced tools
Comparing version 0.0.20 to 0.0.21
@@ -21,2 +21,4 @@ 'use strict'; | ||
require('./style.css'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -30,12 +32,12 @@ | ||
var GraphqlCodeBlock = function (_Component) { | ||
_inherits(GraphqlCodeBlock, _Component); | ||
var GraphqlCodBlock = function (_Component) { | ||
_inherits(GraphqlCodBlock, _Component); | ||
function GraphqlCodeBlock() { | ||
_classCallCheck(this, GraphqlCodeBlock); | ||
function GraphqlCodBlock() { | ||
_classCallCheck(this, GraphqlCodBlock); | ||
return _possibleConstructorReturn(this, (GraphqlCodeBlock.__proto__ || Object.getPrototypeOf(GraphqlCodeBlock)).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, (GraphqlCodBlock.__proto__ || Object.getPrototypeOf(GraphqlCodBlock)).apply(this, arguments)); | ||
} | ||
_createClass(GraphqlCodeBlock, [{ | ||
_createClass(GraphqlCodBlock, [{ | ||
key: 'render', | ||
@@ -49,4 +51,2 @@ value: function render() { | ||
constole.log(queryBody); | ||
var highlighted = []; | ||
@@ -94,9 +94,9 @@ var rowKeys = []; | ||
return GraphqlCodeBlock; | ||
return GraphqlCodBlock; | ||
}(_react.Component); | ||
GraphqlCodeBlock.propTypes = { | ||
GraphqlCodBlock.propTypes = { | ||
queryBody: _react.PropTypes.string, | ||
className: _react.PropTypes.string | ||
}; | ||
exports.default = GraphqlCodeBlock; | ||
exports.default = GraphqlCodBlock; |
@@ -1,2 +0,2 @@ | ||
var GraphqlCodeBlock = require('./dist/GraphqlCodeBlock').default; | ||
var GraphqlCodeBlock = require('./dist/GraphqlCodeBlock.js').default; | ||
@@ -3,0 +3,0 @@ module.exports = { |
{ | ||
"name": "graphql-syntax-highlighter-react", | ||
"version": "0.0.20", | ||
"version": "0.0.21", | ||
"description": "A React component for highlighting GraphQL syntax.", | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
@@ -19,3 +19,5 @@ "build": "babel ./src --ignore test --out-dir ./dist", | ||
], | ||
"author": "Danielle", | ||
"author": { | ||
"name": "Danielle" | ||
}, | ||
"license": "MIT", | ||
@@ -35,3 +37,31 @@ "bugs": { | ||
"graphql": "^0.7.0" | ||
} | ||
}, | ||
"gitHead": "eeeb02fe65b1f1859053a6036e6b6328e2b57a89", | ||
"homepage": "https://github.com/daniman/graphql-syntax-highlighter-react#readme", | ||
"_id": "graphql-syntax-highlighter-react@0.0.17", | ||
"_shasum": "5aca065735a69858fc7e8600880be79d8b298623", | ||
"_from": "graphql-syntax-highlighter-react@0.0.17", | ||
"_npmVersion": "2.15.8", | ||
"_nodeVersion": "4.4.7", | ||
"_npmUser": { | ||
"name": "daniman", | ||
"email": "daniman0808@gmail.com" | ||
}, | ||
"dist": { | ||
"shasum": "5aca065735a69858fc7e8600880be79d8b298623", | ||
"tarball": "https://registry.npmjs.org/graphql-syntax-highlighter-react/-/graphql-syntax-highlighter-react-0.0.17.tgz" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "daniman", | ||
"email": "daniman0808@gmail.com" | ||
} | ||
], | ||
"_npmOperationalInternal": { | ||
"host": "packages-12-west.internal.npmjs.com", | ||
"tmp": "tmp/graphql-syntax-highlighter-react-0.0.17.tgz_1473987198657_0.28812974668107927" | ||
}, | ||
"directories": {}, | ||
"_resolved": "https://registry.npmjs.org/graphql-syntax-highlighter-react/-/graphql-syntax-highlighter-react-0.0.17.tgz", | ||
"readme": "ERROR: No README data found!" | ||
} |
@@ -5,7 +5,8 @@ import { LexRules, ParseRules, isIgnored } from './utils/Rules.js'; | ||
import { print, parse } from 'graphql'; | ||
import './style.css'; | ||
export default class GraphqlCodeBlock extends Component { | ||
export default class GraphqlCodBlock extends Component { | ||
static propTypes = { | ||
queryBody: PropTypes.string, | ||
className: PropTypes.string, | ||
className: PropTypes.string | ||
} | ||
@@ -17,4 +18,2 @@ | ||
constole.log(queryBody); | ||
const highlighted = []; | ||
@@ -21,0 +20,0 @@ const rowKeys = []; |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
58027
1542