1.5.2
This commit is contained in:
1 parent
b231948a36
commit
5db9407d78
5 files changed
+104
-12
No files matched your search
+94
-9
@@ -364,6 +364,11 @@ function locStart$1(node) {
|
||||
}
|
||||
|
||||
function locEnd$1(node) {
|
||||
var endNode = node.nodes && getLast(node.nodes);
|
||||
if (endNode && node.source && !node.source.end) {
|
||||
node = endNode;
|
||||
}
|
||||
|
||||
var loc = void 0;
|
||||
if (node.range) {
|
||||
loc = node.range[1];
|
||||
@@ -1279,7 +1284,7 @@ var comments$1 = {
|
||||
};
|
||||
|
||||
var name = "prettier";
|
||||
var version$1 = "1.5.1";
|
||||
var version$1 = "1.5.2";
|
||||
var description = "Prettier is an opinionated JavaScript formatter";
|
||||
var bin = { "prettier": "./bin/prettier.js" };
|
||||
var repository = "prettier/prettier";
|
||||
@@ -3350,7 +3355,7 @@ function genericPrint$1(path$$1, options, print) {
|
||||
}
|
||||
case "OperationDefinition":
|
||||
{
|
||||
return concat$4([n.name === null ? "" : n.operation, n.name ? concat$4([" ", path$$1.call(print, "name")]) : "", n.variableDefinitions && n.variableDefinitions.length ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "variableDefinitions"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, ")"])) : "", printDirectives(path$$1, print, n), n.selectionSet ? n.name === null ? "" : " " : "", path$$1.call(print, "selectionSet")]);
|
||||
return concat$4([n.name === null ? "" : n.operation, n.name ? concat$4([" ", path$$1.call(print, "name")]) : "", n.variableDefinitions && n.variableDefinitions.length ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([ifBreak$2("", ", "), softline$3]), path$$1.map(print, "variableDefinitions"))])), softline$3, ")"])) : "", printDirectives(path$$1, print, n), n.selectionSet ? n.name === null ? "" : " " : "", path$$1.call(print, "selectionSet")]);
|
||||
}
|
||||
case "FragmentDefinition":
|
||||
{
|
||||
@@ -3362,7 +3367,7 @@ function genericPrint$1(path$$1, options, print) {
|
||||
}
|
||||
case "Field":
|
||||
{
|
||||
return group$2(concat$4([n.alias ? concat$4([path$$1.call(print, "alias"), ": "]) : "", path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "arguments"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, ")"])) : "", printDirectives(path$$1, print, n), n.selectionSet ? " " : "", path$$1.call(print, "selectionSet")]));
|
||||
return group$2(concat$4([n.alias ? concat$4([path$$1.call(print, "alias"), ": "]) : "", path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([ifBreak$2("", ", "), softline$3]), path$$1.map(print, "arguments"))])), softline$3, ")"])) : "", printDirectives(path$$1, print, n), n.selectionSet ? " " : "", path$$1.call(print, "selectionSet")]));
|
||||
}
|
||||
case "Name":
|
||||
{
|
||||
@@ -3392,11 +3397,11 @@ function genericPrint$1(path$$1, options, print) {
|
||||
}
|
||||
case "ListValue":
|
||||
{
|
||||
return group$2(concat$4(["[", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "values"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, "]"]));
|
||||
return group$2(concat$4(["[", indent$4(concat$4([softline$3, join$3(concat$4([ifBreak$2("", ", "), softline$3]), path$$1.map(print, "values"))])), softline$3, "]"]));
|
||||
}
|
||||
case "ObjectValue":
|
||||
{
|
||||
return group$2(concat$4(["{", options.bracketSpacing && n.fields.length > 0 ? " " : "", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "fields"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, ifBreak$2("", options.bracketSpacing && n.fields.length > 0 ? " " : ""), "}"]));
|
||||
return group$2(concat$4(["{", options.bracketSpacing && n.fields.length > 0 ? " " : "", indent$4(concat$4([softline$3, join$3(concat$4([ifBreak$2("", ", "), softline$3]), path$$1.map(print, "fields"))])), softline$3, ifBreak$2("", options.bracketSpacing && n.fields.length > 0 ? " " : ""), "}"]));
|
||||
}
|
||||
case "ObjectField":
|
||||
case "Argument":
|
||||
@@ -3406,7 +3411,7 @@ function genericPrint$1(path$$1, options, print) {
|
||||
|
||||
case "Directive":
|
||||
{
|
||||
return concat$4(["@", path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([",", ifBreak$2("", " "), softline$3]), path$$1.map(print, "arguments"))])), options.trailingComma === "none" ? "" : ifBreak$2(","), softline$3, ")"])) : ""]);
|
||||
return concat$4(["@", path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([ifBreak$2("", ", "), softline$3]), path$$1.map(print, "arguments"))])), softline$3, ")"])) : ""]);
|
||||
}
|
||||
|
||||
case "NamedType":
|
||||
@@ -3419,6 +3424,61 @@ function genericPrint$1(path$$1, options, print) {
|
||||
return concat$4([path$$1.call(print, "variable"), ": ", path$$1.call(print, "type"), n.defaultValue ? concat$4([" = ", path$$1.call(print, "defaultValue")]) : ""]);
|
||||
}
|
||||
|
||||
case "TypeExtensionDefinition":
|
||||
{
|
||||
return concat$4(["extend ", path$$1.call(print, "definition")]);
|
||||
}
|
||||
|
||||
case "ObjectTypeDefinition":
|
||||
{
|
||||
return concat$4(["type ", path$$1.call(print, "name"), n.interfaces.length > 0 ? concat$4([" implements ", join$3(", ", path$$1.map(print, "interfaces"))]) : "", printDirectives(path$$1, print, n), " {", n.fields.length > 0 ? indent$4(concat$4([hardline$4, join$3(hardline$4, path$$1.map(print, "fields"))])) : "", hardline$4, "}"]);
|
||||
}
|
||||
|
||||
case "FieldDefinition":
|
||||
{
|
||||
return concat$4([path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([ifBreak$2("", ", "), softline$3]), path$$1.map(print, "arguments"))])), softline$3, ")"])) : "", ": ", path$$1.call(print, "type"), printDirectives(path$$1, print, n)]);
|
||||
}
|
||||
|
||||
case "DirectiveDefinition":
|
||||
{
|
||||
return concat$4(["directive ", "@", path$$1.call(print, "name"), n.arguments.length > 0 ? group$2(concat$4(["(", indent$4(concat$4([softline$3, join$3(concat$4([ifBreak$2("", ", "), softline$3]), path$$1.map(print, "arguments"))])), softline$3, ")"])) : "", concat$4([" on ", join$3(" | ", path$$1.map(print, "locations"))])]);
|
||||
}
|
||||
|
||||
case "EnumTypeDefinition":
|
||||
{
|
||||
return concat$4(["enum ", path$$1.call(print, "name"), printDirectives(path$$1, print, n), " {", n.values.length > 0 ? indent$4(concat$4([hardline$4, join$3(hardline$4, path$$1.map(print, "values"))])) : "", hardline$4, "}"]);
|
||||
}
|
||||
|
||||
case "EnumValueDefinition":
|
||||
{
|
||||
return concat$4([path$$1.call(print, "name"), printDirectives(path$$1, print, n)]);
|
||||
}
|
||||
|
||||
case "InputValueDefinition":
|
||||
{
|
||||
return concat$4([path$$1.call(print, "name"), ": ", path$$1.call(print, "type"), n.defaultValue ? concat$4([" = ", path$$1.call(print, "defaultValue")]) : "", printDirectives(path$$1, print, n)]);
|
||||
}
|
||||
|
||||
case "InputObjectTypeDefinition":
|
||||
{
|
||||
return concat$4(["input ", path$$1.call(print, "name"), printDirectives(path$$1, print, n), " {", n.fields.length > 0 ? indent$4(concat$4([hardline$4, join$3(hardline$4, path$$1.map(print, "fields"))])) : "", hardline$4, "}"]);
|
||||
}
|
||||
|
||||
case "SchemaDefinition":
|
||||
{
|
||||
return concat$4(["schema", printDirectives(path$$1, print, n), " {", n.operationTypes.length > 0 ? indent$4(concat$4([hardline$4, join$3(hardline$4, path$$1.map(print, "operationTypes"))])) : "", hardline$4, "}"]);
|
||||
}
|
||||
|
||||
case "OperationTypeDefinition":
|
||||
{
|
||||
return concat$4([path$$1.call(print, "operation"), ": ", path$$1.call(print, "type")]);
|
||||
}
|
||||
|
||||
case "InterfaceTypeDefinition":
|
||||
{
|
||||
return concat$4(["interface ", path$$1.call(print, "name"), printDirectives(path$$1, print, n), " {", n.fields.length > 0 ? indent$4(concat$4([hardline$4, join$3(hardline$4, path$$1.map(print, "fields"))])) : "", hardline$4, "}"]);
|
||||
}
|
||||
|
||||
case "FragmentSpread":
|
||||
{
|
||||
return concat$4(["...", path$$1.call(print, "name"), printDirectives(path$$1, print, n)]);
|
||||
@@ -3434,6 +3494,11 @@ function genericPrint$1(path$$1, options, print) {
|
||||
return group$2(concat$4(["union ", path$$1.call(print, "name"), " =", ifBreak$2("", " "), indent$4(concat$4([ifBreak$2(concat$4([line$2, " "])), join$3(concat$4([line$2, "| "]), path$$1.map(print, "types"))]))]));
|
||||
}
|
||||
|
||||
case "ScalarTypeDefinition":
|
||||
{
|
||||
return concat$4(["scalar ", path$$1.call(print, "name"), printDirectives(path$$1, print, n)]);
|
||||
}
|
||||
|
||||
case "NonNullType":
|
||||
{
|
||||
return concat$4([path$$1.call(print, "type"), "!"]);
|
||||
@@ -10675,6 +10740,13 @@ function findSiblingAncestors(startNodeAndParents, endNodeAndParents) {
|
||||
var resultStartNode = startNodeAndParents.node;
|
||||
var resultEndNode = endNodeAndParents.node;
|
||||
|
||||
if (resultStartNode === resultEndNode) {
|
||||
return {
|
||||
startNode: resultStartNode,
|
||||
endNode: resultEndNode
|
||||
};
|
||||
}
|
||||
|
||||
var _iteratorNormalCompletion2 = true;
|
||||
var _didIteratorError2 = false;
|
||||
var _iteratorError2 = undefined;
|
||||
@@ -10785,11 +10857,20 @@ function findNodeAtOffset(node, offset, predicate, parentNodes) {
|
||||
}
|
||||
|
||||
// See https://www.ecma-international.org/ecma-262/5.1/#sec-A.5
|
||||
function isSourceElement(node) {
|
||||
function isSourceElement(opts, node) {
|
||||
if (node == null) {
|
||||
return false;
|
||||
}
|
||||
switch (node.type) {
|
||||
case "ObjectExpression": // JSON
|
||||
case "ArrayExpression": // JSON
|
||||
case "StringLiteral": // JSON
|
||||
case "NumericLiteral": // JSON
|
||||
case "BooleanLiteral": // JSON
|
||||
case "NullLiteral": // JSON
|
||||
case "json-identifier":
|
||||
// JSON
|
||||
return opts.parser === "json";
|
||||
case "FunctionDeclaration":
|
||||
case "BlockStatement":
|
||||
case "BreakStatement":
|
||||
@@ -10837,8 +10918,12 @@ function calculateRange(text, opts, ast) {
|
||||
}
|
||||
}
|
||||
|
||||
var startNodeAndParents = findNodeAtOffset(ast, startNonWhitespace, isSourceElement);
|
||||
var endNodeAndParents = findNodeAtOffset(ast, endNonWhitespace, isSourceElement);
|
||||
var startNodeAndParents = findNodeAtOffset(ast, startNonWhitespace, function (node) {
|
||||
return isSourceElement(opts, node);
|
||||
});
|
||||
var endNodeAndParents = findNodeAtOffset(ast, endNonWhitespace, function (node) {
|
||||
return isSourceElement(opts, node);
|
||||
});
|
||||
|
||||
if (!startNodeAndParents || !endNodeAndParents) {
|
||||
return {
|
||||
|
||||
@@ -8,7 +8,7 @@ function createCommonjsModule(fn, module) {
|
||||
}
|
||||
|
||||
var parserGraphql_1 = createCommonjsModule(function (module) {
|
||||
"use strict";function createError$1(e,n){const r=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return r.loc=n,r}function createCommonjsModule$$1(e,n){return n={exports:{}},e(n,n.exports),n.exports}function parseComments(e){const n=[];let r=e.loc.startToken.next;for(;"<EOF>"!==r.kind;)"Comment"===r.kind&&(Object.assign(r,{column:r.column-1}),n.push(r)),r=r.next;return n}function parse(e){const n=index;try{const r=n.parse(e);return r.comments=parseComments(r),r}catch(e){const n=index$2.GraphQLError;throw e instanceof n?createError(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}}var parserCreateError=createError$1,location=createCommonjsModule$$1(function(e,n){function r(e,n){for(var r=/\r\n|[\n\r]/g,t=1,i=n+1,o=void 0;(o=r.exec(e.body))&&o.index<n;)t+=1,i=n+1-(o.index+o[0].length);return{line:t,column:i}}Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=r;}),GraphQLError_1=createCommonjsModule$$1(function(e,n){function r(e,n,i,o,a,u){var c=i;if(!c&&n&&n.length>0){var s=n[0];c=s&&s.loc&&s.loc.source;}var l=o;!l&&n&&(l=n.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),l&&0===l.length&&(l=void 0);var d=void 0,f=c;f&&l&&(d=l.map(function(e){return(0,t.getLocation)(f,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:n||void 0},source:{value:c||void 0},positions:{value:l||void 0},originalError:{value:u}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0});}Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=r;var t=location;r.prototype=Object.create(Error.prototype,{constructor:{value:r},name:{value:"GraphQLError"}});}),syntaxError_1=createCommonjsModule$$1(function(e,n){function r(e,n,r){var i=(0,o.getLocation)(e,n);return new a.GraphQLError("Syntax Error "+e.name+" ("+i.line+":"+i.column+") "+r+"\n\n"+t(e,i),void 0,e,[n])}function t(e,n){var r=n.line,t=(r-1).toString(),o=r.toString(),a=(r+1).toString(),u=a.length,c=e.body.split(/\r\n|[\n\r]/g);return(r>=2?i(u,t)+": "+c[r-2]+"\n":"")+i(u,o)+": "+c[r-1]+"\n"+Array(2+u+n.column).join(" ")+"^\n"+(r<c.length?i(u,a)+": "+c[r]+"\n":"")}function i(e,n){return Array(e-n.length+1).join(" ")+n}Object.defineProperty(n,"__esModule",{value:!0}),n.syntaxError=r;var o=location,a=GraphQLError_1;}),locatedError_1=createCommonjsModule$$1(function(e,n){function r(e,n,r){if(e&&e.path)return e;var i=e?e.message||String(e):"An unknown error occurred.";return new t.GraphQLError(i,e&&e.nodes||n,e&&e.source,e&&e.positions,r,e)}Object.defineProperty(n,"__esModule",{value:!0}),n.locatedError=r;var t=GraphQLError_1;}),invariant_1=createCommonjsModule$$1(function(e,n){function r(e,n){if(!e)throw new Error(n)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;}),formatError_1=createCommonjsModule$$1(function(e,n){function r(e){return(0,t.default)(e,"Received null or undefined error."),{message:e.message,locations:e.locations,path:e.path}}Object.defineProperty(n,"__esModule",{value:!0}),n.formatError=r;var t=function(e){return e&&e.__esModule?e:{default:e}}(invariant_1);}),index$2=createCommonjsModule$$1(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=GraphQLError_1;Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}});var t=syntaxError_1;Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return t.syntaxError}});var i=locatedError_1;Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return i.locatedError}});var o=formatError_1;Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return o.formatError}});}),lexer=createCommonjsModule$$1(function(e,n){function r(e,n){var r=new o(k,0,0,0,0,null);return{source:e,options:n,lastToken:r,token:r,line:1,lineStart:0,advance:t}}function t(){var e=this.lastToken=this.token;if(e.kind!==y){do{e=e.next=u(this,e);}while(e.kind===j);this.token=e;}return e}function i(e){var n=e.value;return n?e.kind+' "'+n+'"':e.kind}function o(e,n,r,t,i,o,a){this.kind=e,this.start=n,this.end=r,this.line=t,this.column=i,this.value=a,this.prev=o,this.next=null;}function a(e){return isNaN(e)?y:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function u(e,n){var r=e.source,t=r.body,i=t.length,u=s(t,n.end,e),f=e.line,p=1+u-e.lineStart;if(u>=i)return new o(y,i,i,f,p,n);var E=M.call(t,u);if(E<32&&9!==E&&10!==E&&13!==E)throw(0,m.syntaxError)(r,u,"Cannot contain the invalid character "+a(E)+".");switch(E){case 33:return new o(N,u,u+1,f,p,n);case 35:return l(r,u,f,p,n);case 36:return new o(I,u,u+1,f,p,n);case 40:return new o(O,u,u+1,f,p,n);case 41:return new o(_,u,u+1,f,p,n);case 46:if(46===M.call(t,u+1)&&46===M.call(tLine truncated
|
||||
"use strict";function createError$1(e,n){const r=new SyntaxError(e+" ("+n.start.line+":"+n.start.column+")");return r.loc=n,r}function createCommonjsModule$$1(e,n){return n={exports:{}},e(n,n.exports),n.exports}function parseComments(e){const n=[];let r=e.loc.startToken.next;for(;"<EOF>"!==r.kind;)"Comment"===r.kind&&(Object.assign(r,{column:r.column-1}),n.push(r)),r=r.next;return n}function removeTokens(e){if(e&&"object"==typeof e){delete e.startToken,delete e.endToken,delete e.prev,delete e.next;for(const n in e)removeTokens(e[n]);}return e}function parse(e){const n=index;try{const r=n.parse(e);return r.comments=parseComments(r),removeTokens(r),r}catch(e){const n=index$2.GraphQLError;throw e instanceof n?createError(e.message,{start:{line:e.locations[0].line,column:e.locations[0].column}}):e}}var parserCreateError=createError$1,location=createCommonjsModule$$1(function(e,n){function r(e,n){for(var r=/\r\n|[\n\r]/g,t=1,i=n+1,o=void 0;(o=r.exec(e.body))&&o.index<n;)t+=1,i=n+1-(o.index+o[0].length);return{line:t,column:i}}Object.defineProperty(n,"__esModule",{value:!0}),n.getLocation=r;}),GraphQLError_1=createCommonjsModule$$1(function(e,n){function r(e,n,i,o,a,u){var c=i;if(!c&&n&&n.length>0){var s=n[0];c=s&&s.loc&&s.loc.source;}var l=o;!l&&n&&(l=n.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),l&&0===l.length&&(l=void 0);var d=void 0,f=c;f&&l&&(d=l.map(function(e){return(0,t.getLocation)(f,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:n||void 0},source:{value:c||void 0},positions:{value:l||void 0},originalError:{value:u}}),u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0});}Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=r;var t=location;r.prototype=Object.create(Error.prototype,{constructor:{value:r},name:{value:"GraphQLError"}});}),syntaxError_1=createCommonjsModule$$1(function(e,n){function r(e,n,r){var i=(0,o.getLocation)(e,n);return new a.GraphQLError("Syntax Error "+e.name+" ("+i.line+":"+i.column+") "+r+"\n\n"+t(e,i),void 0,e,[n])}function t(e,n){var r=n.line,t=(r-1).toString(),o=r.toString(),a=(r+1).toString(),u=a.length,c=e.body.split(/\r\n|[\n\r]/g);return(r>=2?i(u,t)+": "+c[r-2]+"\n":"")+i(u,o)+": "+c[r-1]+"\n"+Array(2+u+n.column).join(" ")+"^\n"+(r<c.length?i(u,a)+": "+c[r]+"\n":"")}function i(e,n){return Array(e-n.length+1).join(" ")+n}Object.defineProperty(n,"__esModule",{value:!0}),n.syntaxError=r;var o=location,a=GraphQLError_1;}),locatedError_1=createCommonjsModule$$1(function(e,n){function r(e,n,r){if(e&&e.path)return e;var i=e?e.message||String(e):"An unknown error occurred.";return new t.GraphQLError(i,e&&e.nodes||n,e&&e.source,e&&e.positions,r,e)}Object.defineProperty(n,"__esModule",{value:!0}),n.locatedError=r;var t=GraphQLError_1;}),invariant_1=createCommonjsModule$$1(function(e,n){function r(e,n){if(!e)throw new Error(n)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;}),formatError_1=createCommonjsModule$$1(function(e,n){function r(e){return(0,t.default)(e,"Received null or undefined error."),{message:e.message,locations:e.locations,path:e.path}}Object.defineProperty(n,"__esModule",{value:!0}),n.formatError=r;var t=function(e){return e&&e.__esModule?e:{default:e}}(invariant_1);}),index$2=createCommonjsModule$$1(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=GraphQLError_1;Object.defineProperty(n,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}});var t=syntaxError_1;Object.defineProperty(n,"syntaxError",{enumerable:!0,get:function(){return t.syntaxError}});var i=locatedError_1;Object.defineProperty(n,"locatedError",{enumerable:!0,get:function(){return i.locatedError}});var o=formatError_1;Object.defineProperty(n,"formatError",{enumerable:!0,get:function(){return o.formatError}});}),lexer=createCommonjsModule$$1(function(e,n){function r(e,n){var r=new o(k,0,0,0,0,null);return{source:e,options:n,lastToken:r,token:r,line:1,lineStart:0,advance:t}}function t(){var e=this.lastToken=this.token;if(e.kind!==y){do{e=e.next=u(this,e);}while(e.kind===j);this.token=e;}return e}function i(e){var n=e.value;return n?e.kind+' "'+n+'"':e.kind}function o(e,n,r,t,i,o,a){this.kind=e,this.start=n,this.end=r,this.line=t,this.column=i,this.value=a,this.prev=o,this.next=null;}function a(e){return isNaN(e)?y:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function u(e,n){var r=e.source,t=r.body,i=t.length,u=s(t,n.end,e),f=e.line,p=1+u-e.lineStart;if(u>=i)return new o(y,i,i,f,p,n);var E=M.call(t,u);if(E<32&&9!==E&&10!==E&&13!==E)throw(0,m.syntaxError)(r,u,"Cannot contain the invalid character "+a(E)+".");switch(E){case 33:return new o(N,u,u+1,f,p,n);cLine truncated
|
||||
});
|
||||
|
||||
var parserGraphql = unwrapExports(parserGraphql_1);
|
||||
|
||||
@@ -1 +1 @@
|
||||
prettierVersion = "1.5.1";
|
||||
prettierVersion = "1.5.2";
|
||||
Reference in new issue
Block a user