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

babel-plugin-inline-import-graphql-ast

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-inline-import-graphql-ast - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

7

build/index.js

@@ -24,2 +24,3 @@ "use strict";

var newlinePattern = /(\r\n|\r|\n)+/;
var resolve;

@@ -67,3 +68,5 @@

function isSchemaLike(source) {
var content = source.split(/(\r\n|\r|\n)+/).filter(function (line) {
var content = source.split(newlinePattern).filter(function (line) {
return !newlinePattern.test(line);
}).filter(function (line) {
return !line.startsWith('#');

@@ -122,3 +125,3 @@ }).filter(function (line) {

function getImportStatements(src) {
return src.split(/(\r\n|\r|\n)+/).filter(function (line) {
return src.split(newlinePattern).filter(function (line) {
return line.startsWith('#import');

@@ -125,0 +128,0 @@ });

# ChangeLog
## v2.3.2 (March 9, 2018)
### Fixes
* Fix operations with fragments inlining as raw text
### Maintenance
* Add initial test for fragments
## v2.3.1 (March 8, 2018)
### Maintenance
* Update all dependencies/devDependencies
## v2.3.0 (March 8, 2018)

@@ -4,0 +20,0 @@

{
"name": "babel-plugin-inline-import-graphql-ast",
"version": "2.3.1",
"version": "2.3.2",
"description": "Babel plugin to make .gql/.graphql files importable",

@@ -5,0 +5,0 @@ "author": "Alexander Roberts <detrohutt@gmail.com>",

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