graphql-syntax-highlighter-react
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -19,2 +19,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _graphql = require('graphql'); | ||
@@ -96,5 +100,5 @@ | ||
GraphqlCodeBlock.propTypes = { | ||
queryBody: _react.PropTypes.string, | ||
className: _react.PropTypes.string | ||
queryBody: _propTypes2.default.string, | ||
className: _propTypes2.default.string | ||
}; | ||
exports.default = GraphqlCodeBlock; |
{ | ||
"name": "graphql-syntax-highlighter-react", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "A React component for highlighting GraphQL syntax.", | ||
@@ -8,3 +8,3 @@ "main": "dist/index.js", | ||
"build": "babel ./src --ignore test --out-dir ./dist", | ||
"prepare": "npm run build", | ||
"prepublish": "npm run build", | ||
"test": "mocha --compilers js:babel-core/register --reporter spec --full-trace 'src/**/*.test.js'" | ||
@@ -29,4 +29,4 @@ }, | ||
"babel-cli": "^6.11.4", | ||
"babel-plugin-transform-class-properties": "^6.24.1", | ||
"babel-plugin-transform-exponentiation-operator": "^6.24.1", | ||
"babel-plugin-transform-class-properties": "^6.11.5", | ||
"babel-plugin-transform-exponentiation-operator": "^6.8.0", | ||
"babel-preset-es2015": "^6.13.2", | ||
@@ -36,6 +36,7 @@ "babel-preset-react": "^6.11.1" | ||
"peerDependencies": { | ||
"react": "^15.3.1" | ||
"react": "^15.3.1 || ^16.0.0" | ||
}, | ||
"dependencies": { | ||
"graphql": "^0.7.0" | ||
"graphql": "^0.7.0", | ||
"prop-types": "^15.6.0" | ||
}, | ||
@@ -54,3 +55,4 @@ "gitHead": "eeeb02fe65b1f1859053a6036e6b6328e2b57a89", | ||
], | ||
"directories": {} | ||
"directories": {}, | ||
"readme": "ERROR: No README data found!" | ||
} |
import { LexRules, ParseRules, isIgnored } from './utils/Rules.js'; | ||
import runParser from './utils/runParser.js'; | ||
import React, { PropTypes, Component } from 'react'; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { print, parse } from 'graphql'; | ||
@@ -5,0 +6,0 @@ import './style.css'; |
58249
1545
3
19
+ Addedprop-types@^15.6.0
+ Addedreact@16.14.0(transitive)
- Removedasap@2.0.6(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcreate-react-class@15.7.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedpromise@7.3.1(transitive)
- Removedreact@15.7.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedua-parser-js@0.7.38(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)