babel-plugin-inline-import-graphql-ast
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -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>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21393
234