Socket
Socket
Sign inDemoInstall

graphql-syntax-highlighter-react

Package Overview
Dependencies
8
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.3.0

8

dist/GraphqlCodeBlock.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc