babel-plugin-inline-import-graphql-ast
Advanced tools
Comparing version 2.3.5 to 2.3.6
@@ -22,10 +22,4 @@ "use strict"; | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } | ||
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } | ||
var newlinePattern = /(\r\n|\r|\n)+/; | ||
@@ -80,2 +74,4 @@ var resolve; | ||
return line.length > 0; | ||
}).map(function (line) { | ||
return line.trimLeft(); | ||
}); | ||
@@ -82,0 +78,0 @@ var operationsPattern = /^(fragment|query|mutation|subscription)/; |
# ChangeLog | ||
## v2.3.6 (March 30, 2018) | ||
### Fixes | ||
* Fix operation files with top level indentation being mistaken for schema files | ||
### Maintenance | ||
* Add regression tests for above fix | ||
## v2.3.5 (March 15, 2018) | ||
@@ -4,0 +14,0 @@ |
{ | ||
"name": "babel-plugin-inline-import-graphql-ast", | ||
"version": "2.3.5", | ||
"version": "2.3.6", | ||
"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
22415
238