From d8983acde2f7af193a9647b6367ad04b5d2026e9 Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Tue, 11 Jun 2019 11:25:09 -0400 Subject: [PATCH] Remove Facebook copyrights, update licenses to MIT - remove copyright statements from all files - update license files to MIT - export LICENSE files from all projects - update/add package.json license entries - normalize import/require formatting across all files --- .eslintrc.js | 6 --- package.json | 1 + packages/codemirror-graphql/LICENSE | 43 ++++++++----------- packages/codemirror-graphql/package.json | 2 +- .../codemirror-graphql/resources/watch.js | 9 ---- .../src/__tests__/hint-test.js | 11 +---- .../src/__tests__/kitchen-sink.graphql | 7 --- .../src/__tests__/lint-test.js | 9 ---- .../src/__tests__/mode-test.js | 9 ---- .../src/__tests__/schema-kitchen-sink.graphql | 7 --- .../src/__tests__/testSchema.js | 9 ---- packages/codemirror-graphql/src/hint.js | 9 ---- packages/codemirror-graphql/src/info.js | 9 ---- packages/codemirror-graphql/src/jump.js | 9 ---- packages/codemirror-graphql/src/lint.js | 9 ---- packages/codemirror-graphql/src/mode.js | 9 ---- .../src/results/__tests__/mode-test.js | 9 ---- .../codemirror-graphql/src/results/mode.js | 9 ---- .../src/utils/SchemaReference.js | 8 ---- .../src/utils/__tests__/jsonParse-test.js | 9 ---- .../src/utils/collectVariables.js | 9 ---- .../src/utils/forEachState.js | 9 ---- .../src/utils/getTypeInfo.js | 9 ---- .../codemirror-graphql/src/utils/hintList.js | 10 +---- .../src/utils/info-addon.js | 9 ---- .../codemirror-graphql/src/utils/jsonParse.js | 10 +---- .../src/utils/jump-addon.js | 9 ---- .../codemirror-graphql/src/utils/runParser.js | 9 ---- .../src/variables/__tests__/hint-test.js | 9 ---- .../src/variables/__tests__/lint-test.js | 9 ---- .../src/variables/__tests__/mode-test.js | 9 ---- .../codemirror-graphql/src/variables/hint.js | 9 ---- .../codemirror-graphql/src/variables/lint.js | 9 ---- .../codemirror-graphql/src/variables/mode.js | 10 +---- packages/graphiql/LICENSE | 2 +- packages/graphiql/example/index.html | 7 --- packages/graphiql/example/schema.js | 7 --- packages/graphiql/example/server.js | 7 --- packages/graphiql/resources/enzyme.config.js | 2 - .../graphiql/src/components/DocExplorer.js | 7 --- .../src/components/DocExplorer/Argument.js | 7 --- .../components/DocExplorer/DefaultValue.js | 7 --- .../src/components/DocExplorer/FieldDoc.js | 8 ---- .../components/DocExplorer/MarkdownContent.js | 7 --- .../src/components/DocExplorer/SchemaDoc.js | 8 ---- .../src/components/DocExplorer/SearchBox.js | 8 ---- .../components/DocExplorer/SearchResults.js | 8 ---- .../src/components/DocExplorer/TypeDoc.js | 8 ---- .../src/components/DocExplorer/TypeLink.js | 7 --- .../DocExplorer/__tests__/FieldDoc.spec.js | 2 - .../DocExplorer/__tests__/TypeDoc-.spec.js | 3 -- .../DocExplorer/__tests__/TypeLink.spec.js | 2 - .../graphiql/src/components/ExecuteButton.js | 7 --- packages/graphiql/src/components/GraphiQL.js | 8 ---- .../graphiql/src/components/HistoryQuery.js | 7 --- .../graphiql/src/components/ImagePreview.js | 7 --- .../graphiql/src/components/QueryEditor.js | 7 --- .../graphiql/src/components/ResultViewer.js | 7 --- .../graphiql/src/components/ToolbarButton.js | 7 --- .../graphiql/src/components/ToolbarGroup.js | 7 --- .../graphiql/src/components/ToolbarMenu.js | 7 --- .../graphiql/src/components/ToolbarSelect.js | 7 --- .../graphiql/src/components/VariableEditor.js | 8 ---- .../src/components/__tests__/GraphiQL.spec.js | 8 +--- packages/graphiql/src/index.js | 7 --- .../graphiql/src/utility/CodeMirrorSizer.js | 7 --- packages/graphiql/src/utility/StorageAPI.js | 7 --- .../utility/__tests__/getQueryFacts.spec.js | 7 --- .../src/utility/__tests__/mergeAst-fixture.js | 6 --- .../src/utility/__tests__/mergeAst.spec.js | 7 +-- .../__tests__/normalizeWhitespace.spec.js | 7 --- packages/graphiql/src/utility/debounce.js | 7 --- .../graphiql/src/utility/elementPosition.js | 7 --- packages/graphiql/src/utility/fillLeafs.js | 7 --- packages/graphiql/src/utility/find.js | 6 --- .../graphiql/src/utility/getQueryFacts.js | 7 --- .../src/utility/getSelectedOperationName.js | 8 +--- .../src/utility/introspectionQueries.js | 7 +-- packages/graphiql/src/utility/mergeAst.js | 7 +-- .../src/utility/normalizeWhitespace.js | 8 +--- .../graphiql/src/utility/onHasCompletion.js | 7 --- packages/graphiql/test/index.html | 7 --- packages/graphiql/test/schema.js | 7 --- packages/graphiql/test/server.js | 8 +--- packages/graphql-language-server/package.json | 2 +- .../package.json | 4 +- .../src/GraphQLLanguageService.js | 6 --- .../__tests__/GraphQLLanguageService-test.js | 6 --- .../getAutocompleteSuggestions-test.js | 6 --- .../src/__tests__/getDefinition-test.js | 6 --- .../src/__tests__/getDiagnostics-test.js | 6 --- .../src/__tests__/getHoverInformation-test.js | 6 --- .../src/__tests__/getOutline-test.js | 6 --- .../src/__tests__/kitchen-sink.graphql | 6 --- .../src/autocompleteUtils.js | 7 +-- .../src/getAutocompleteSuggestions.js | 6 --- .../src/getDefinition.js | 6 --- .../src/getDiagnostics.js | 6 --- .../src/getHoverInformation.js | 6 --- .../src/getOutline.js | 6 --- .../src/index.js | 6 --- .../package.json | 4 +- .../src/CharacterStream.js | 6 --- .../src/RuleHelpers.js | 10 +---- .../src/Rules.js | 6 --- .../src/index.js | 6 --- .../src/onlineParser.js | 6 --- .../package.json | 4 +- .../src/GraphQLCache.js | 6 --- .../src/GraphQLWatchman.js | 6 --- .../src/Logger.js | 6 --- .../src/MessageProcessor.js | 6 --- .../src/__mocks__/MockWatchmanClient.js | 6 --- .../src/__tests__/GraphQLCache-test.js | 6 --- .../src/__tests__/MessageProcessor-test.js | 6 --- .../src/findGraphQLTags.js | 6 --- .../src/index.js | 6 --- .../src/startServer.js | 6 --- .../src/stringToHash.js | 6 --- .../package.json | 4 +- .../src/index.js | 6 --- .../package.json | 4 +- .../src/Range.js | 6 --- .../src/__tests__/Range-test.js | 6 --- .../__tests__/getASTNodeAtPosition-test.js | 9 ---- .../__tests__/validateWithCustomRules-test.js | 8 ---- .../src/getASTNodeAtPosition.js | 7 --- .../src/index.js | 6 --- .../src/validateWithCustomRules.js | 6 --- packages/graphql-language-service/LICENSE | 40 ++++++++--------- .../graphql-language-service/bin/graphql.js | 8 ---- .../graphql-language-service/package.json | 4 +- .../src/__tests__/index-test.js | 8 ---- packages/graphql-language-service/src/cli.js | 6 --- .../graphql-language-service/src/client.js | 6 --- resources/buildFlow.js | 8 ---- resources/buildJs.js | 8 ---- resources/mochaBootload.js | 9 ---- resources/prepublish.js | 8 ---- resources/pretty.js | 7 --- resources/util.js | 6 --- 141 files changed, 70 insertions(+), 972 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8f03aaa0004..2832d64b462 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/package.json b/package.json index 598261c0332..93c0cb4834c 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "workspaces": [ "packages/*" ], + "license": "MIT", "options": { "mocha": "--full-trace --require @babel/register --require resources/mochaBootload 'packages/{*,!graphiql}/src/**/__tests__/**/*-test.js'", "mocha_tdd": "--full-trace --watch --require resources/mochaBootload packages/*/src/**/__tests__/**/*-test.js" diff --git a/packages/codemirror-graphql/LICENSE b/packages/codemirror-graphql/LICENSE index f9de5303833..cd2262e3a31 100644 --- a/packages/codemirror-graphql/LICENSE +++ b/packages/codemirror-graphql/LICENSE @@ -1,30 +1,21 @@ -BSD License +MIT License -For CodeMirror-GraphQL software +Copyright (c) 2019 GraphQL Contributors -Copyright (c) 2015, Facebook, Inc. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. - * Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - - * Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - * Neither the name Facebook nor the names of its contributors may be used to - endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/codemirror-graphql/package.json b/packages/codemirror-graphql/package.json index 41d31bdd3a1..1dd9a15df54 100644 --- a/packages/codemirror-graphql/package.json +++ b/packages/codemirror-graphql/package.json @@ -15,7 +15,7 @@ "type": "git", "url": "http://github.com/graphql/codemirror-graphql.git" }, - "license": "BSD-3-Clause", + "license": "MIT", "files": [ "hint.js", "info.js", diff --git a/packages/codemirror-graphql/resources/watch.js b/packages/codemirror-graphql/resources/watch.js index 45eba82ea13..86efe4f92c9 100644 --- a/packages/codemirror-graphql/resources/watch.js +++ b/packages/codemirror-graphql/resources/watch.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import sane from 'sane'; import { resolve as resolvePath } from 'path'; import { spawn } from 'child_process'; diff --git a/packages/codemirror-graphql/src/__tests__/hint-test.js b/packages/codemirror-graphql/src/__tests__/hint-test.js index 83cb2dcb6a8..0de56edda01 100644 --- a/packages/codemirror-graphql/src/__tests__/hint-test.js +++ b/packages/codemirror-graphql/src/__tests__/hint-test.js @@ -1,14 +1,5 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { expect } from 'chai'; -// + import CodeMirror from 'codemirror'; import 'codemirror/addon/hint/show-hint'; import { isCompositeType } from 'graphql'; diff --git a/packages/codemirror-graphql/src/__tests__/kitchen-sink.graphql b/packages/codemirror-graphql/src/__tests__/kitchen-sink.graphql index 22c002b520f..2375e8690d8 100644 --- a/packages/codemirror-graphql/src/__tests__/kitchen-sink.graphql +++ b/packages/codemirror-graphql/src/__tests__/kitchen-sink.graphql @@ -1,10 +1,3 @@ -# Copyright (c) 2015, Facebook, Inc. -# All rights reserved. -# -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. - query queryName($foo: TestInput, $site: TestEnum = RED) { testAlias: hasArgs(string: "testString") ... on Test { diff --git a/packages/codemirror-graphql/src/__tests__/lint-test.js b/packages/codemirror-graphql/src/__tests__/lint-test.js index d3e79e58198..6c78c2aed72 100644 --- a/packages/codemirror-graphql/src/__tests__/lint-test.js +++ b/packages/codemirror-graphql/src/__tests__/lint-test.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { expect } from 'chai'; import CodeMirror from 'codemirror'; import 'codemirror/addon/lint/lint'; diff --git a/packages/codemirror-graphql/src/__tests__/mode-test.js b/packages/codemirror-graphql/src/__tests__/mode-test.js index b3ebb29c8ce..d9c554de994 100644 --- a/packages/codemirror-graphql/src/__tests__/mode-test.js +++ b/packages/codemirror-graphql/src/__tests__/mode-test.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { expect } from 'chai'; import CodeMirror from 'codemirror'; diff --git a/packages/codemirror-graphql/src/__tests__/schema-kitchen-sink.graphql b/packages/codemirror-graphql/src/__tests__/schema-kitchen-sink.graphql index 7045428f40d..80719b72366 100644 --- a/packages/codemirror-graphql/src/__tests__/schema-kitchen-sink.graphql +++ b/packages/codemirror-graphql/src/__tests__/schema-kitchen-sink.graphql @@ -1,10 +1,3 @@ -# Copyright (c) 2016, Facebook, Inc. -# All rights reserved. -# -# This source code is licensed under the BSD-style license found in the -# LICENSE file in the root directory of this source tree. An additional grant -# of patent rights can be found in the PATENTS file in the same directory. - schema { query: QueryType mutation: MutationType diff --git a/packages/codemirror-graphql/src/__tests__/testSchema.js b/packages/codemirror-graphql/src/__tests__/testSchema.js index fbf051fd161..1aba594269d 100644 --- a/packages/codemirror-graphql/src/__tests__/testSchema.js +++ b/packages/codemirror-graphql/src/__tests__/testSchema.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { GraphQLSchema, GraphQLObjectType, diff --git a/packages/codemirror-graphql/src/hint.js b/packages/codemirror-graphql/src/hint.js index cc7e7088dce..2972bcacd12 100644 --- a/packages/codemirror-graphql/src/hint.js +++ b/packages/codemirror-graphql/src/hint.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; import { getAutocompleteSuggestions } from 'graphql-language-service-interface'; diff --git a/packages/codemirror-graphql/src/info.js b/packages/codemirror-graphql/src/info.js index 2444d49ee6d..423914ad321 100644 --- a/packages/codemirror-graphql/src/info.js +++ b/packages/codemirror-graphql/src/info.js @@ -1,13 +1,4 @@ /* @flow */ -/** - * Copyright (c) 2017, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { GraphQLList, GraphQLNonNull } from 'graphql'; import CodeMirror from 'codemirror'; diff --git a/packages/codemirror-graphql/src/jump.js b/packages/codemirror-graphql/src/jump.js index d89c4991b6c..1b450e15684 100644 --- a/packages/codemirror-graphql/src/jump.js +++ b/packages/codemirror-graphql/src/jump.js @@ -1,13 +1,4 @@ /* @flow */ -/** - * Copyright (c) 2017, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; import getTypeInfo from './utils/getTypeInfo'; diff --git a/packages/codemirror-graphql/src/lint.js b/packages/codemirror-graphql/src/lint.js index 604cbb3d524..949fa868854 100644 --- a/packages/codemirror-graphql/src/lint.js +++ b/packages/codemirror-graphql/src/lint.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; import { getDiagnostics } from 'graphql-language-service-interface'; diff --git a/packages/codemirror-graphql/src/mode.js b/packages/codemirror-graphql/src/mode.js index 7b6f82a079b..d9f749df737 100644 --- a/packages/codemirror-graphql/src/mode.js +++ b/packages/codemirror-graphql/src/mode.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; import { LexRules, diff --git a/packages/codemirror-graphql/src/results/__tests__/mode-test.js b/packages/codemirror-graphql/src/results/__tests__/mode-test.js index c3a1ad570a5..0f65ac8ea00 100644 --- a/packages/codemirror-graphql/src/results/__tests__/mode-test.js +++ b/packages/codemirror-graphql/src/results/__tests__/mode-test.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { expect } from 'chai'; import CodeMirror from 'codemirror'; diff --git a/packages/codemirror-graphql/src/results/mode.js b/packages/codemirror-graphql/src/results/mode.js index 2fcf6292af7..f49acdccebb 100644 --- a/packages/codemirror-graphql/src/results/mode.js +++ b/packages/codemirror-graphql/src/results/mode.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; import { list, t, onlineParser, p } from 'graphql-language-service-parser'; diff --git a/packages/codemirror-graphql/src/utils/SchemaReference.js b/packages/codemirror-graphql/src/utils/SchemaReference.js index f9636380cfc..b2c26d7d4f9 100644 --- a/packages/codemirror-graphql/src/utils/SchemaReference.js +++ b/packages/codemirror-graphql/src/utils/SchemaReference.js @@ -1,12 +1,4 @@ /** @flow */ -/** - * Copyright (c), Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ import { getNamedType } from 'graphql'; diff --git a/packages/codemirror-graphql/src/utils/__tests__/jsonParse-test.js b/packages/codemirror-graphql/src/utils/__tests__/jsonParse-test.js index deaa5e2f26d..f687cdf6007 100644 --- a/packages/codemirror-graphql/src/utils/__tests__/jsonParse-test.js +++ b/packages/codemirror-graphql/src/utils/__tests__/jsonParse-test.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { expect } from 'chai'; import jsonParse from '../jsonParse'; diff --git a/packages/codemirror-graphql/src/utils/collectVariables.js b/packages/codemirror-graphql/src/utils/collectVariables.js index 9b6411d1d64..7a79b013a6d 100644 --- a/packages/codemirror-graphql/src/utils/collectVariables.js +++ b/packages/codemirror-graphql/src/utils/collectVariables.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { typeFromAST } from 'graphql'; /** diff --git a/packages/codemirror-graphql/src/utils/forEachState.js b/packages/codemirror-graphql/src/utils/forEachState.js index 4b5bf7429d3..221bd78c858 100644 --- a/packages/codemirror-graphql/src/utils/forEachState.js +++ b/packages/codemirror-graphql/src/utils/forEachState.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - // Utility for iterating through a CodeMirror parse state stack bottom-up. export default function forEachState(stack, fn) { const reverseStateStack = []; diff --git a/packages/codemirror-graphql/src/utils/getTypeInfo.js b/packages/codemirror-graphql/src/utils/getTypeInfo.js index 93af3eeab60..f68d7d549bb 100644 --- a/packages/codemirror-graphql/src/utils/getTypeInfo.js +++ b/packages/codemirror-graphql/src/utils/getTypeInfo.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { isCompositeType, getNullableType, diff --git a/packages/codemirror-graphql/src/utils/hintList.js b/packages/codemirror-graphql/src/utils/hintList.js index e7806400743..e28789deb8d 100644 --- a/packages/codemirror-graphql/src/utils/hintList.js +++ b/packages/codemirror-graphql/src/utils/hintList.js @@ -1,13 +1,5 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - // Create the expected hint response given a possible list and a token + export default function hintList(cursor, token, list) { const hints = filterAndSortList(list, normalizeText(token.string)); if (!hints) { diff --git a/packages/codemirror-graphql/src/utils/info-addon.js b/packages/codemirror-graphql/src/utils/info-addon.js index b1099ba43c1..9cc203a6609 100644 --- a/packages/codemirror-graphql/src/utils/info-addon.js +++ b/packages/codemirror-graphql/src/utils/info-addon.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2017, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; CodeMirror.defineOption('info', false, (cm, options, old) => { diff --git a/packages/codemirror-graphql/src/utils/jsonParse.js b/packages/codemirror-graphql/src/utils/jsonParse.js index 83e079bf61c..c18a1305c24 100644 --- a/packages/codemirror-graphql/src/utils/jsonParse.js +++ b/packages/codemirror-graphql/src/utils/jsonParse.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - /** * This JSON parser simply walks the input, generating an AST. Use this in lieu * of JSON.parse if you need character offset parse errors and an AST parse tree @@ -19,6 +10,7 @@ * - end: int - the end exclusive offset of the syntax error * */ + export default function jsonParse(str) { string = str; strLen = str.length; diff --git a/packages/codemirror-graphql/src/utils/jump-addon.js b/packages/codemirror-graphql/src/utils/jump-addon.js index ed2d02a8260..8c106339840 100644 --- a/packages/codemirror-graphql/src/utils/jump-addon.js +++ b/packages/codemirror-graphql/src/utils/jump-addon.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2017, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; CodeMirror.defineOption('jump', false, (cm, options, old) => { diff --git a/packages/codemirror-graphql/src/utils/runParser.js b/packages/codemirror-graphql/src/utils/runParser.js index ac100bc1f87..e33b4988429 100644 --- a/packages/codemirror-graphql/src/utils/runParser.js +++ b/packages/codemirror-graphql/src/utils/runParser.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { CharacterStream, onlineParser } from 'graphql-language-service-parser'; export default function runParser(sourceText, parserOptions, callbackFn) { diff --git a/packages/codemirror-graphql/src/variables/__tests__/hint-test.js b/packages/codemirror-graphql/src/variables/__tests__/hint-test.js index c6e30ee8a98..cfaf346b0f7 100644 --- a/packages/codemirror-graphql/src/variables/__tests__/hint-test.js +++ b/packages/codemirror-graphql/src/variables/__tests__/hint-test.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { expect } from 'chai'; import CodeMirror from 'codemirror'; diff --git a/packages/codemirror-graphql/src/variables/__tests__/lint-test.js b/packages/codemirror-graphql/src/variables/__tests__/lint-test.js index 8408115dec8..97f3215af9c 100644 --- a/packages/codemirror-graphql/src/variables/__tests__/lint-test.js +++ b/packages/codemirror-graphql/src/variables/__tests__/lint-test.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { expect } from 'chai'; import CodeMirror from 'codemirror'; diff --git a/packages/codemirror-graphql/src/variables/__tests__/mode-test.js b/packages/codemirror-graphql/src/variables/__tests__/mode-test.js index 7707968568a..737b94cc2d2 100644 --- a/packages/codemirror-graphql/src/variables/__tests__/mode-test.js +++ b/packages/codemirror-graphql/src/variables/__tests__/mode-test.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import { expect } from 'chai'; import CodeMirror from 'codemirror'; diff --git a/packages/codemirror-graphql/src/variables/hint.js b/packages/codemirror-graphql/src/variables/hint.js index baee274d2de..5a094cf388e 100644 --- a/packages/codemirror-graphql/src/variables/hint.js +++ b/packages/codemirror-graphql/src/variables/hint.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; import { getNullableType, diff --git a/packages/codemirror-graphql/src/variables/lint.js b/packages/codemirror-graphql/src/variables/lint.js index e2d40eaa80d..3621cad3016 100644 --- a/packages/codemirror-graphql/src/variables/lint.js +++ b/packages/codemirror-graphql/src/variables/lint.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; import { GraphQLEnumType, diff --git a/packages/codemirror-graphql/src/variables/mode.js b/packages/codemirror-graphql/src/variables/mode.js index 8a7411bd973..c992bbdc330 100644 --- a/packages/codemirror-graphql/src/variables/mode.js +++ b/packages/codemirror-graphql/src/variables/mode.js @@ -1,12 +1,3 @@ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - import CodeMirror from 'codemirror'; import { list, t, onlineParser, opt, p } from 'graphql-language-service-parser'; @@ -15,6 +6,7 @@ import { list, t, onlineParser, opt, p } from 'graphql-language-service-parser'; * This mode defines JSON, but provides a data-laden parser state to enable * better code intelligence. */ + CodeMirror.defineMode('graphql-variables', config => { const parser = onlineParser({ eatWhitespace: stream => stream.eatSpace(), diff --git a/packages/graphiql/LICENSE b/packages/graphiql/LICENSE index b96dcb0480a..cd2262e3a31 100644 --- a/packages/graphiql/LICENSE +++ b/packages/graphiql/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) Facebook, Inc. and its affiliates. +Copyright (c) 2019 GraphQL Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/graphiql/example/index.html b/packages/graphiql/example/index.html index e5a91de66d9..74a4982c85a 100644 --- a/packages/graphiql/example/index.html +++ b/packages/graphiql/example/index.html @@ -1,10 +1,3 @@ - diff --git a/packages/graphiql/example/schema.js b/packages/graphiql/example/schema.js index f84e07a8c39..002b8cfe738 100644 --- a/packages/graphiql/example/schema.js +++ b/packages/graphiql/example/schema.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - const { GraphQLSchema, GraphQLObjectType, diff --git a/packages/graphiql/example/server.js b/packages/graphiql/example/server.js index 93d2364686e..02dd1c28016 100644 --- a/packages/graphiql/example/server.js +++ b/packages/graphiql/example/server.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - const express = require('express'); const graphqlHTTP = require('express-graphql'); diff --git a/packages/graphiql/resources/enzyme.config.js b/packages/graphiql/resources/enzyme.config.js index 455dfdd8661..d7198af4bf4 100644 --- a/packages/graphiql/resources/enzyme.config.js +++ b/packages/graphiql/resources/enzyme.config.js @@ -2,8 +2,6 @@ require('@babel/polyfill', { rootMode: 'upward' }) - - import { configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-15'; diff --git a/packages/graphiql/src/components/DocExplorer.js b/packages/graphiql/src/components/DocExplorer.js index b6ff9770375..55107092455 100644 --- a/packages/graphiql/src/components/DocExplorer.js +++ b/packages/graphiql/src/components/DocExplorer.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; import { GraphQLSchema, isType } from 'graphql'; diff --git a/packages/graphiql/src/components/DocExplorer/Argument.js b/packages/graphiql/src/components/DocExplorer/Argument.js index 6db9c468c94..1334ea75b69 100644 --- a/packages/graphiql/src/components/DocExplorer/Argument.js +++ b/packages/graphiql/src/components/DocExplorer/Argument.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; import TypeLink from './TypeLink'; diff --git a/packages/graphiql/src/components/DocExplorer/DefaultValue.js b/packages/graphiql/src/components/DocExplorer/DefaultValue.js index f55b6937be8..17ba5ff7770 100644 --- a/packages/graphiql/src/components/DocExplorer/DefaultValue.js +++ b/packages/graphiql/src/components/DocExplorer/DefaultValue.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; import { astFromValue, print } from 'graphql'; diff --git a/packages/graphiql/src/components/DocExplorer/FieldDoc.js b/packages/graphiql/src/components/DocExplorer/FieldDoc.js index f246f0bb005..8b9f4099036 100644 --- a/packages/graphiql/src/components/DocExplorer/FieldDoc.js +++ b/packages/graphiql/src/components/DocExplorer/FieldDoc.js @@ -1,13 +1,5 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; - import Argument from './Argument'; import MarkdownContent from './MarkdownContent'; import TypeLink from './TypeLink'; diff --git a/packages/graphiql/src/components/DocExplorer/MarkdownContent.js b/packages/graphiql/src/components/DocExplorer/MarkdownContent.js index 8a5fc03f2cc..7c9b0a7029d 100644 --- a/packages/graphiql/src/components/DocExplorer/MarkdownContent.js +++ b/packages/graphiql/src/components/DocExplorer/MarkdownContent.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; import MD from 'markdown-it'; diff --git a/packages/graphiql/src/components/DocExplorer/SchemaDoc.js b/packages/graphiql/src/components/DocExplorer/SchemaDoc.js index f212bd94897..76e16081328 100644 --- a/packages/graphiql/src/components/DocExplorer/SchemaDoc.js +++ b/packages/graphiql/src/components/DocExplorer/SchemaDoc.js @@ -1,13 +1,5 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; - import TypeLink from './TypeLink'; import MarkdownContent from './MarkdownContent'; diff --git a/packages/graphiql/src/components/DocExplorer/SearchBox.js b/packages/graphiql/src/components/DocExplorer/SearchBox.js index 8dc78ccce48..605dc598357 100644 --- a/packages/graphiql/src/components/DocExplorer/SearchBox.js +++ b/packages/graphiql/src/components/DocExplorer/SearchBox.js @@ -1,13 +1,5 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; - import debounce from '../../utility/debounce'; export default class SearchBox extends React.Component { diff --git a/packages/graphiql/src/components/DocExplorer/SearchResults.js b/packages/graphiql/src/components/DocExplorer/SearchResults.js index 54fe9ac3946..8e06638a900 100644 --- a/packages/graphiql/src/components/DocExplorer/SearchResults.js +++ b/packages/graphiql/src/components/DocExplorer/SearchResults.js @@ -1,13 +1,5 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; - import Argument from './Argument'; import TypeLink from './TypeLink'; diff --git a/packages/graphiql/src/components/DocExplorer/TypeDoc.js b/packages/graphiql/src/components/DocExplorer/TypeDoc.js index 6f7bac140e4..5685d6ae002 100644 --- a/packages/graphiql/src/components/DocExplorer/TypeDoc.js +++ b/packages/graphiql/src/components/DocExplorer/TypeDoc.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; import { @@ -14,7 +7,6 @@ import { GraphQLUnionType, GraphQLEnumType, } from 'graphql'; - import Argument from './Argument'; import MarkdownContent from './MarkdownContent'; import TypeLink from './TypeLink'; diff --git a/packages/graphiql/src/components/DocExplorer/TypeLink.js b/packages/graphiql/src/components/DocExplorer/TypeLink.js index 527f7de1b9f..5932599a2a3 100644 --- a/packages/graphiql/src/components/DocExplorer/TypeLink.js +++ b/packages/graphiql/src/components/DocExplorer/TypeLink.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; import { GraphQLList, GraphQLNonNull } from 'graphql'; diff --git a/packages/graphiql/src/components/DocExplorer/__tests__/FieldDoc.spec.js b/packages/graphiql/src/components/DocExplorer/__tests__/FieldDoc.spec.js index 89e3230c59f..08396bd46dc 100644 --- a/packages/graphiql/src/components/DocExplorer/__tests__/FieldDoc.spec.js +++ b/packages/graphiql/src/components/DocExplorer/__tests__/FieldDoc.spec.js @@ -1,9 +1,7 @@ import React from 'react'; import { mount } from 'enzyme'; import { expect } from 'chai'; - import FieldDoc from '../FieldDoc'; - import { GraphQLString, GraphQLObjectType } from 'graphql'; const exampleObject = new GraphQLObjectType({ diff --git a/packages/graphiql/src/components/DocExplorer/__tests__/TypeDoc-.spec.js b/packages/graphiql/src/components/DocExplorer/__tests__/TypeDoc-.spec.js index 9bc99dfb4ae..5aa0822e6b4 100644 --- a/packages/graphiql/src/components/DocExplorer/__tests__/TypeDoc-.spec.js +++ b/packages/graphiql/src/components/DocExplorer/__tests__/TypeDoc-.spec.js @@ -1,11 +1,8 @@ import React from 'react'; import { mount } from 'enzyme'; import { expect } from 'chai'; - import { GraphQLString } from 'graphql'; - import TypeDoc from '../TypeDoc'; - import { ExampleSchema, ExampleQuery, diff --git a/packages/graphiql/src/components/DocExplorer/__tests__/TypeLink.spec.js b/packages/graphiql/src/components/DocExplorer/__tests__/TypeLink.spec.js index 1dc3bf037ac..c1244e74fa4 100644 --- a/packages/graphiql/src/components/DocExplorer/__tests__/TypeLink.spec.js +++ b/packages/graphiql/src/components/DocExplorer/__tests__/TypeLink.spec.js @@ -1,9 +1,7 @@ import React from 'react'; import { mount } from 'enzyme'; import { expect } from 'chai'; - import TypeLink from '../TypeLink'; - import { GraphQLNonNull, GraphQLList, GraphQLString } from 'graphql'; const nonNullType = new GraphQLNonNull(GraphQLString); diff --git a/packages/graphiql/src/components/ExecuteButton.js b/packages/graphiql/src/components/ExecuteButton.js index f081b311fd7..aa77f27b681 100644 --- a/packages/graphiql/src/components/ExecuteButton.js +++ b/packages/graphiql/src/components/ExecuteButton.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; diff --git a/packages/graphiql/src/components/GraphiQL.js b/packages/graphiql/src/components/GraphiQL.js index 3a61d57fac3..bc33978c64b 100644 --- a/packages/graphiql/src/components/GraphiQL.js +++ b/packages/graphiql/src/components/GraphiQL.js @@ -1,16 +1,8 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { buildClientSchema, GraphQLSchema, parse, print } from 'graphql'; import copyToClipboard from 'copy-to-clipboard'; - import { ExecuteButton } from './ExecuteButton'; import { ImagePreview } from './ImagePreview'; import { ToolbarButton } from './ToolbarButton'; diff --git a/packages/graphiql/src/components/HistoryQuery.js b/packages/graphiql/src/components/HistoryQuery.js index f0bdd43bd76..90ec6f99d87 100644 --- a/packages/graphiql/src/components/HistoryQuery.js +++ b/packages/graphiql/src/components/HistoryQuery.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; diff --git a/packages/graphiql/src/components/ImagePreview.js b/packages/graphiql/src/components/ImagePreview.js index 767ee4c7ce4..b7e1efa6c17 100644 --- a/packages/graphiql/src/components/ImagePreview.js +++ b/packages/graphiql/src/components/ImagePreview.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; diff --git a/packages/graphiql/src/components/QueryEditor.js b/packages/graphiql/src/components/QueryEditor.js index a4e78d13638..9308ebe05f4 100644 --- a/packages/graphiql/src/components/QueryEditor.js +++ b/packages/graphiql/src/components/QueryEditor.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; import { GraphQLSchema } from 'graphql'; diff --git a/packages/graphiql/src/components/ResultViewer.js b/packages/graphiql/src/components/ResultViewer.js index d13170f0570..74fedb9851e 100644 --- a/packages/graphiql/src/components/ResultViewer.js +++ b/packages/graphiql/src/components/ResultViewer.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; diff --git a/packages/graphiql/src/components/ToolbarButton.js b/packages/graphiql/src/components/ToolbarButton.js index 3f4380171dd..edb92a85ea3 100644 --- a/packages/graphiql/src/components/ToolbarButton.js +++ b/packages/graphiql/src/components/ToolbarButton.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; diff --git a/packages/graphiql/src/components/ToolbarGroup.js b/packages/graphiql/src/components/ToolbarGroup.js index 7bf06498ad8..cc4d0c7d572 100644 --- a/packages/graphiql/src/components/ToolbarGroup.js +++ b/packages/graphiql/src/components/ToolbarGroup.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; /** diff --git a/packages/graphiql/src/components/ToolbarMenu.js b/packages/graphiql/src/components/ToolbarMenu.js index 17272b04989..f40f66622c0 100644 --- a/packages/graphiql/src/components/ToolbarMenu.js +++ b/packages/graphiql/src/components/ToolbarMenu.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; diff --git a/packages/graphiql/src/components/ToolbarSelect.js b/packages/graphiql/src/components/ToolbarSelect.js index f360ac408fe..ec5646f5988 100644 --- a/packages/graphiql/src/components/ToolbarSelect.js +++ b/packages/graphiql/src/components/ToolbarSelect.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; diff --git a/packages/graphiql/src/components/VariableEditor.js b/packages/graphiql/src/components/VariableEditor.js index 8e37f1a0058..93564c999a5 100644 --- a/packages/graphiql/src/components/VariableEditor.js +++ b/packages/graphiql/src/components/VariableEditor.js @@ -1,13 +1,5 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import React from 'react'; import PropTypes from 'prop-types'; - import onHasCompletion from '../utility/onHasCompletion'; /** diff --git a/packages/graphiql/src/components/__tests__/GraphiQL.spec.js b/packages/graphiql/src/components/__tests__/GraphiQL.spec.js index dcd239236c6..0171bf878ba 100644 --- a/packages/graphiql/src/components/__tests__/GraphiQL.spec.js +++ b/packages/graphiql/src/components/__tests__/GraphiQL.spec.js @@ -1,13 +1,7 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + import { expect } from 'chai'; import React from 'react'; import { mount } from 'enzyme'; - import { GraphiQL } from '../GraphiQL'; const mockStorage = (function() { diff --git a/packages/graphiql/src/index.js b/packages/graphiql/src/index.js index 7b14ab655fb..b0f811d005e 100644 --- a/packages/graphiql/src/index.js +++ b/packages/graphiql/src/index.js @@ -1,9 +1,2 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // The primary React component to use. module.exports = require('./components/GraphiQL').GraphiQL; diff --git a/packages/graphiql/src/utility/CodeMirrorSizer.js b/packages/graphiql/src/utility/CodeMirrorSizer.js index 4f7ddd28f40..076534c0e18 100644 --- a/packages/graphiql/src/utility/CodeMirrorSizer.js +++ b/packages/graphiql/src/utility/CodeMirrorSizer.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - /** * When a containing DOM node's height has been altered, trigger a resize of * the related CodeMirror instance so that it is always correctly sized. diff --git a/packages/graphiql/src/utility/StorageAPI.js b/packages/graphiql/src/utility/StorageAPI.js index fbd6c515539..b021fd47642 100644 --- a/packages/graphiql/src/utility/StorageAPI.js +++ b/packages/graphiql/src/utility/StorageAPI.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - export default class StorageAPI { constructor(storage) { this.storage = storage || window.localStorage; diff --git a/packages/graphiql/src/utility/__tests__/getQueryFacts.spec.js b/packages/graphiql/src/utility/__tests__/getQueryFacts.spec.js index d054933e8e9..d125cd1b23c 100644 --- a/packages/graphiql/src/utility/__tests__/getQueryFacts.spec.js +++ b/packages/graphiql/src/utility/__tests__/getQueryFacts.spec.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import { expect } from 'chai'; import { GraphQLBoolean, diff --git a/packages/graphiql/src/utility/__tests__/mergeAst-fixture.js b/packages/graphiql/src/utility/__tests__/mergeAst-fixture.js index 79a54a3d373..5a8f13d9173 100644 --- a/packages/graphiql/src/utility/__tests__/mergeAst-fixture.js +++ b/packages/graphiql/src/utility/__tests__/mergeAst-fixture.js @@ -1,9 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ export const fixtures = [ { desc: 'does not modify query with no fragments', diff --git a/packages/graphiql/src/utility/__tests__/mergeAst.spec.js b/packages/graphiql/src/utility/__tests__/mergeAst.spec.js index 97d35e16c1d..b8738972ebb 100644 --- a/packages/graphiql/src/utility/__tests__/mergeAst.spec.js +++ b/packages/graphiql/src/utility/__tests__/mergeAst.spec.js @@ -1,9 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + import { expect } from 'chai'; import { parse, print } from 'graphql'; diff --git a/packages/graphiql/src/utility/__tests__/normalizeWhitespace.spec.js b/packages/graphiql/src/utility/__tests__/normalizeWhitespace.spec.js index 77f2415a10d..68ba9dcddcd 100644 --- a/packages/graphiql/src/utility/__tests__/normalizeWhitespace.spec.js +++ b/packages/graphiql/src/utility/__tests__/normalizeWhitespace.spec.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import { expect } from 'chai'; import { invalidCharacters, normalizeWhitespace } from '../normalizeWhitespace'; diff --git a/packages/graphiql/src/utility/debounce.js b/packages/graphiql/src/utility/debounce.js index 9db6a3674d9..689c725af97 100644 --- a/packages/graphiql/src/utility/debounce.js +++ b/packages/graphiql/src/utility/debounce.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - /** * Provided a duration and a function, returns a new function which is called * `duration` milliseconds after the last call. diff --git a/packages/graphiql/src/utility/elementPosition.js b/packages/graphiql/src/utility/elementPosition.js index 416afb29286..2b7bb5daa66 100644 --- a/packages/graphiql/src/utility/elementPosition.js +++ b/packages/graphiql/src/utility/elementPosition.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - /** * Utility functions to get a pixel distance from left/top of the window. */ diff --git a/packages/graphiql/src/utility/fillLeafs.js b/packages/graphiql/src/utility/fillLeafs.js index 83a82fcd721..60348e205c5 100644 --- a/packages/graphiql/src/utility/fillLeafs.js +++ b/packages/graphiql/src/utility/fillLeafs.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import { getNamedType, isLeafType, diff --git a/packages/graphiql/src/utility/find.js b/packages/graphiql/src/utility/find.js index 485e9f7d254..423778e4caa 100644 --- a/packages/graphiql/src/utility/find.js +++ b/packages/graphiql/src/utility/find.js @@ -1,10 +1,4 @@ /* @flow */ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ export default function find( list: Array, diff --git a/packages/graphiql/src/utility/getQueryFacts.js b/packages/graphiql/src/utility/getQueryFacts.js index a2632eeb8d9..6fe1ed0a9d1 100644 --- a/packages/graphiql/src/utility/getQueryFacts.js +++ b/packages/graphiql/src/utility/getQueryFacts.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import { parse, typeFromAST } from 'graphql'; /** diff --git a/packages/graphiql/src/utility/getSelectedOperationName.js b/packages/graphiql/src/utility/getSelectedOperationName.js index 9c0dfd4ae3d..97a75f90c21 100644 --- a/packages/graphiql/src/utility/getSelectedOperationName.js +++ b/packages/graphiql/src/utility/getSelectedOperationName.js @@ -1,14 +1,8 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - /** * Provided optional previous operations and selected name, and a next list of * operations, determine what the next selected operation should be. */ + export default function getSelectedOperationName( prevOperations, prevSelectedOperationName, diff --git a/packages/graphiql/src/utility/introspectionQueries.js b/packages/graphiql/src/utility/introspectionQueries.js index c9daeedc397..8f9b5e85ee7 100644 --- a/packages/graphiql/src/utility/introspectionQueries.js +++ b/packages/graphiql/src/utility/introspectionQueries.js @@ -1,9 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + import { getOperationAST, parse, introspectionQuery } from 'graphql'; export { introspectionQuery } from 'graphql'; diff --git a/packages/graphiql/src/utility/mergeAst.js b/packages/graphiql/src/utility/mergeAst.js index a84ba5ca84a..99a6ce1b6e0 100644 --- a/packages/graphiql/src/utility/mergeAst.js +++ b/packages/graphiql/src/utility/mergeAst.js @@ -1,9 +1,4 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ + import { Kind } from 'graphql/language/kinds'; function resolveDefinition(fragments, obj) { diff --git a/packages/graphiql/src/utility/normalizeWhitespace.js b/packages/graphiql/src/utility/normalizeWhitespace.js index 3f77641d1f9..6c2b60f5aa1 100644 --- a/packages/graphiql/src/utility/normalizeWhitespace.js +++ b/packages/graphiql/src/utility/normalizeWhitespace.js @@ -1,11 +1,5 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - // Unicode whitespace characters that break the interface. + export const invalidCharacters = Array.from({ length: 11 }, (x, i) => { // \u2000 -> \u200a return String.fromCharCode(0x2000 + i); diff --git a/packages/graphiql/src/utility/onHasCompletion.js b/packages/graphiql/src/utility/onHasCompletion.js index d2e622e1c38..e4bb321c6b4 100644 --- a/packages/graphiql/src/utility/onHasCompletion.js +++ b/packages/graphiql/src/utility/onHasCompletion.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - import { GraphQLNonNull, GraphQLList } from 'graphql'; import MD from 'markdown-it'; diff --git a/packages/graphiql/test/index.html b/packages/graphiql/test/index.html index 6c08664786e..8ec6ed62f28 100644 --- a/packages/graphiql/test/index.html +++ b/packages/graphiql/test/index.html @@ -1,10 +1,3 @@ - diff --git a/packages/graphiql/test/schema.js b/packages/graphiql/test/schema.js index a98e28b85d2..e8afb0cca54 100644 --- a/packages/graphiql/test/schema.js +++ b/packages/graphiql/test/schema.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - const { GraphQLSchema, GraphQLObjectType, diff --git a/packages/graphiql/test/server.js b/packages/graphiql/test/server.js index ffecd8fc113..dddce7849e0 100644 --- a/packages/graphiql/test/server.js +++ b/packages/graphiql/test/server.js @@ -1,10 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - /* eslint-disable no-console */ import express from 'express'; import path from 'path'; @@ -45,6 +38,7 @@ function makeBundle(callback) { return; } bundleBuffer = buffer; + // eslint-disable-next-line no-unused-expressions callback && callback(); }); } diff --git a/packages/graphql-language-server/package.json b/packages/graphql-language-server/package.json index 5a80c818285..1b4c653b758 100644 --- a/packages/graphql-language-server/package.json +++ b/packages/graphql-language-server/package.json @@ -9,7 +9,7 @@ "keywords": [ "graphql" ], - "license": "ISC", + "license": "MIT", "bugs": { "url": "https://github.com/graphql/graphql-language-service/issues" }, diff --git a/packages/graphql-language-service-interface/package.json b/packages/graphql-language-service-interface/package.json index e7fbd7551f4..bea298c1a9e 100644 --- a/packages/graphql-language-service-interface/package.json +++ b/packages/graphql-language-service-interface/package.json @@ -8,11 +8,13 @@ "Hyohyeon Jeong ", "Lee Byron (http://leebyron.com/)" ], + "license": "MIT", "bugs": { "url": "https://github.com/graphql/graphql-language-service/issues" }, "files": [ - "dist" + "dist", + "LICENSE" ], "keywords": [ "graphql" diff --git a/packages/graphql-language-service-interface/src/GraphQLLanguageService.js b/packages/graphql-language-service-interface/src/GraphQLLanguageService.js index 7178078011d..9d5dfb2b5c1 100644 --- a/packages/graphql-language-service-interface/src/GraphQLLanguageService.js +++ b/packages/graphql-language-service-interface/src/GraphQLLanguageService.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/__tests__/GraphQLLanguageService-test.js b/packages/graphql-language-service-interface/src/__tests__/GraphQLLanguageService-test.js index e45a52c438f..3ee58369ea9 100644 --- a/packages/graphql-language-service-interface/src/__tests__/GraphQLLanguageService-test.js +++ b/packages/graphql-language-service-interface/src/__tests__/GraphQLLanguageService-test.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/__tests__/getAutocompleteSuggestions-test.js b/packages/graphql-language-service-interface/src/__tests__/getAutocompleteSuggestions-test.js index f67d528eb82..d1e8c4d240e 100644 --- a/packages/graphql-language-service-interface/src/__tests__/getAutocompleteSuggestions-test.js +++ b/packages/graphql-language-service-interface/src/__tests__/getAutocompleteSuggestions-test.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/__tests__/getDefinition-test.js b/packages/graphql-language-service-interface/src/__tests__/getDefinition-test.js index 477b4b145aa..f24972e6f60 100644 --- a/packages/graphql-language-service-interface/src/__tests__/getDefinition-test.js +++ b/packages/graphql-language-service-interface/src/__tests__/getDefinition-test.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/__tests__/getDiagnostics-test.js b/packages/graphql-language-service-interface/src/__tests__/getDiagnostics-test.js index af5d4c19469..fda11dff229 100644 --- a/packages/graphql-language-service-interface/src/__tests__/getDiagnostics-test.js +++ b/packages/graphql-language-service-interface/src/__tests__/getDiagnostics-test.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/__tests__/getHoverInformation-test.js b/packages/graphql-language-service-interface/src/__tests__/getHoverInformation-test.js index bf7d354d35e..87b79e46950 100644 --- a/packages/graphql-language-service-interface/src/__tests__/getHoverInformation-test.js +++ b/packages/graphql-language-service-interface/src/__tests__/getHoverInformation-test.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/__tests__/getOutline-test.js b/packages/graphql-language-service-interface/src/__tests__/getOutline-test.js index 9df0472bba9..451d341dfff 100644 --- a/packages/graphql-language-service-interface/src/__tests__/getOutline-test.js +++ b/packages/graphql-language-service-interface/src/__tests__/getOutline-test.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/__tests__/kitchen-sink.graphql b/packages/graphql-language-service-interface/src/__tests__/kitchen-sink.graphql index 1d66a0e6fde..2375e8690d8 100644 --- a/packages/graphql-language-service-interface/src/__tests__/kitchen-sink.graphql +++ b/packages/graphql-language-service-interface/src/__tests__/kitchen-sink.graphql @@ -1,9 +1,3 @@ -# Copyright (c) Facebook, Inc. -# All rights reserved. -# -# This source code is licensed under the license found in the -# LICENSE file in the root directory of this source tree. - query queryName($foo: TestInput, $site: TestEnum = RED) { testAlias: hasArgs(string: "testString") ... on Test { diff --git a/packages/graphql-language-service-interface/src/autocompleteUtils.js b/packages/graphql-language-service-interface/src/autocompleteUtils.js index 6f2d96295fd..c564f0dab2a 100644 --- a/packages/graphql-language-service-interface/src/autocompleteUtils.js +++ b/packages/graphql-language-service-interface/src/autocompleteUtils.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ @@ -15,6 +9,7 @@ import { TypeMetaFieldDef, TypeNameMetaFieldDef, } from 'graphql/type/introspection'; + import type { CompletionItem, ContextToken, diff --git a/packages/graphql-language-service-interface/src/getAutocompleteSuggestions.js b/packages/graphql-language-service-interface/src/getAutocompleteSuggestions.js index 4f6db3cfb20..8cb37a575b4 100644 --- a/packages/graphql-language-service-interface/src/getAutocompleteSuggestions.js +++ b/packages/graphql-language-service-interface/src/getAutocompleteSuggestions.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/getDefinition.js b/packages/graphql-language-service-interface/src/getDefinition.js index 8b6ca4c3ca2..8a123f7730e 100644 --- a/packages/graphql-language-service-interface/src/getDefinition.js +++ b/packages/graphql-language-service-interface/src/getDefinition.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/getDiagnostics.js b/packages/graphql-language-service-interface/src/getDiagnostics.js index d519233d1b7..6fd064d4478 100644 --- a/packages/graphql-language-service-interface/src/getDiagnostics.js +++ b/packages/graphql-language-service-interface/src/getDiagnostics.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/getHoverInformation.js b/packages/graphql-language-service-interface/src/getHoverInformation.js index 1934fcb0810..4644a13d949 100644 --- a/packages/graphql-language-service-interface/src/getHoverInformation.js +++ b/packages/graphql-language-service-interface/src/getHoverInformation.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/getOutline.js b/packages/graphql-language-service-interface/src/getOutline.js index 7d16e789599..02195a36097 100644 --- a/packages/graphql-language-service-interface/src/getOutline.js +++ b/packages/graphql-language-service-interface/src/getOutline.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-interface/src/index.js b/packages/graphql-language-service-interface/src/index.js index 743b38442c3..2e977c2998d 100644 --- a/packages/graphql-language-service-interface/src/index.js +++ b/packages/graphql-language-service-interface/src/index.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-parser/package.json b/packages/graphql-language-service-parser/package.json index 2fdeb4b418f..0d26bc7a7ab 100644 --- a/packages/graphql-language-service-parser/package.json +++ b/packages/graphql-language-service-parser/package.json @@ -8,11 +8,13 @@ "Hyohyeon Jeong ", "Lee Byron (http://leebyron.com/)" ], + "license": "MIT", "bugs": { "url": "https://github.com/graphql/graphql-language-service/issues" }, "files": [ - "dist" + "dist", + "LICENSE" ], "keywords": [ "graphql" diff --git a/packages/graphql-language-service-parser/src/CharacterStream.js b/packages/graphql-language-service-parser/src/CharacterStream.js index 730d4aa0daa..9610e6411a0 100644 --- a/packages/graphql-language-service-parser/src/CharacterStream.js +++ b/packages/graphql-language-service-parser/src/CharacterStream.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-parser/src/RuleHelpers.js b/packages/graphql-language-service-parser/src/RuleHelpers.js index 6d2d7512478..334e5e0bcdf 100644 --- a/packages/graphql-language-service-parser/src/RuleHelpers.js +++ b/packages/graphql-language-service-parser/src/RuleHelpers.js @@ -1,16 +1,10 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ -// These functions help build matching rules for ParseRules. +import type { Rule, Token } from 'graphql-language-service-types' -import type { Rule, Token } from 'graphql-language-service-types'; +// These functions help build matching rules for ParseRules. // An optional rule. export function opt(ofRule: Rule | string): Rule { diff --git a/packages/graphql-language-service-parser/src/Rules.js b/packages/graphql-language-service-parser/src/Rules.js index 52a8181b073..db71390d0b0 100644 --- a/packages/graphql-language-service-parser/src/Rules.js +++ b/packages/graphql-language-service-parser/src/Rules.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-parser/src/index.js b/packages/graphql-language-service-parser/src/index.js index 1146de9cb36..420ed8f2295 100644 --- a/packages/graphql-language-service-parser/src/index.js +++ b/packages/graphql-language-service-parser/src/index.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-parser/src/onlineParser.js b/packages/graphql-language-service-parser/src/onlineParser.js index 6ba54568b9b..d2d6a7c4ca9 100644 --- a/packages/graphql-language-service-parser/src/onlineParser.js +++ b/packages/graphql-language-service-parser/src/onlineParser.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/package.json b/packages/graphql-language-service-server/package.json index 379b941af67..7ac34be274a 100644 --- a/packages/graphql-language-service-server/package.json +++ b/packages/graphql-language-service-server/package.json @@ -8,11 +8,13 @@ "Hyohyeon Jeong ", "Lee Byron (http://leebyron.com/)" ], + "license": "MIT", "bugs": { "url": "https://github.com/graphql/graphql-language-service/issues" }, "files": [ - "dist" + "dist", + "LICENSE" ], "keywords": [ "graphql" diff --git a/packages/graphql-language-service-server/src/GraphQLCache.js b/packages/graphql-language-service-server/src/GraphQLCache.js index 26f3be88c33..9c9e7bb228f 100644 --- a/packages/graphql-language-service-server/src/GraphQLCache.js +++ b/packages/graphql-language-service-server/src/GraphQLCache.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/GraphQLWatchman.js b/packages/graphql-language-service-server/src/GraphQLWatchman.js index 6f41208fe86..08b4e9e5b5e 100644 --- a/packages/graphql-language-service-server/src/GraphQLWatchman.js +++ b/packages/graphql-language-service-server/src/GraphQLWatchman.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/Logger.js b/packages/graphql-language-service-server/src/Logger.js index 8e7036a6511..0790451854f 100644 --- a/packages/graphql-language-service-server/src/Logger.js +++ b/packages/graphql-language-service-server/src/Logger.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/MessageProcessor.js b/packages/graphql-language-service-server/src/MessageProcessor.js index 85963a38fc6..72bf5df95ce 100644 --- a/packages/graphql-language-service-server/src/MessageProcessor.js +++ b/packages/graphql-language-service-server/src/MessageProcessor.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/__mocks__/MockWatchmanClient.js b/packages/graphql-language-service-server/src/__mocks__/MockWatchmanClient.js index 20cb7f1fb97..4f9bec03b86 100644 --- a/packages/graphql-language-service-server/src/__mocks__/MockWatchmanClient.js +++ b/packages/graphql-language-service-server/src/__mocks__/MockWatchmanClient.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/__tests__/GraphQLCache-test.js b/packages/graphql-language-service-server/src/__tests__/GraphQLCache-test.js index c8a73723784..996bdcfedd3 100644 --- a/packages/graphql-language-service-server/src/__tests__/GraphQLCache-test.js +++ b/packages/graphql-language-service-server/src/__tests__/GraphQLCache-test.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/__tests__/MessageProcessor-test.js b/packages/graphql-language-service-server/src/__tests__/MessageProcessor-test.js index 56281328833..a1a449762bf 100644 --- a/packages/graphql-language-service-server/src/__tests__/MessageProcessor-test.js +++ b/packages/graphql-language-service-server/src/__tests__/MessageProcessor-test.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/findGraphQLTags.js b/packages/graphql-language-service-server/src/findGraphQLTags.js index 21f1859586e..477f95e821d 100644 --- a/packages/graphql-language-service-server/src/findGraphQLTags.js +++ b/packages/graphql-language-service-server/src/findGraphQLTags.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/index.js b/packages/graphql-language-service-server/src/index.js index c40fd51c31a..527c30c3f29 100644 --- a/packages/graphql-language-service-server/src/index.js +++ b/packages/graphql-language-service-server/src/index.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/startServer.js b/packages/graphql-language-service-server/src/startServer.js index 94074d14483..6c9bd6bc590 100644 --- a/packages/graphql-language-service-server/src/startServer.js +++ b/packages/graphql-language-service-server/src/startServer.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-server/src/stringToHash.js b/packages/graphql-language-service-server/src/stringToHash.js index b064c9d0517..1b9285ffd54 100644 --- a/packages/graphql-language-service-server/src/stringToHash.js +++ b/packages/graphql-language-service-server/src/stringToHash.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-types/package.json b/packages/graphql-language-service-types/package.json index 04e4edcf147..d7eea3c7833 100644 --- a/packages/graphql-language-service-types/package.json +++ b/packages/graphql-language-service-types/package.json @@ -8,11 +8,13 @@ "Hyohyeon Jeong ", "Lee Byron (http://leebyron.com/)" ], + "license": "MIT", "bugs": { "url": "https://github.com/graphql/graphql-language-service/issues" }, "files": [ - "dist" + "dist", + "LICENSE" ], "keywords": [ "graphql" diff --git a/packages/graphql-language-service-types/src/index.js b/packages/graphql-language-service-types/src/index.js index 6e06237d53e..bbdd1626639 100644 --- a/packages/graphql-language-service-types/src/index.js +++ b/packages/graphql-language-service-types/src/index.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-utils/package.json b/packages/graphql-language-service-utils/package.json index f4006d115e8..177b59e43b6 100644 --- a/packages/graphql-language-service-utils/package.json +++ b/packages/graphql-language-service-utils/package.json @@ -8,11 +8,13 @@ "Hyohyeon Jeong ", "Lee Byron (http://leebyron.com/)" ], + "license": "MIT", "bugs": { "url": "https://github.com/graphql/graphql-language-service/issues" }, "files": [ - "dist" + "dist", + "LICENSE" ], "keywords": [ "graphql" diff --git a/packages/graphql-language-service-utils/src/Range.js b/packages/graphql-language-service-utils/src/Range.js index 75146fa4d0b..65d16cfaa77 100644 --- a/packages/graphql-language-service-utils/src/Range.js +++ b/packages/graphql-language-service-utils/src/Range.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-utils/src/__tests__/Range-test.js b/packages/graphql-language-service-utils/src/__tests__/Range-test.js index 71f3af5473f..cfb7658c642 100644 --- a/packages/graphql-language-service-utils/src/__tests__/Range-test.js +++ b/packages/graphql-language-service-utils/src/__tests__/Range-test.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-utils/src/__tests__/getASTNodeAtPosition-test.js b/packages/graphql-language-service-utils/src/__tests__/getASTNodeAtPosition-test.js index 8d3d6e39199..e10c7768ae9 100644 --- a/packages/graphql-language-service-utils/src/__tests__/getASTNodeAtPosition-test.js +++ b/packages/graphql-language-service-utils/src/__tests__/getASTNodeAtPosition-test.js @@ -1,15 +1,6 @@ -/** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - */ - import { expect } from 'chai'; import { parse } from 'graphql'; - import { Position } from '../Range'; import { getASTNodeAtPosition, pointToOffset } from '../getASTNodeAtPosition'; diff --git a/packages/graphql-language-service-utils/src/__tests__/validateWithCustomRules-test.js b/packages/graphql-language-service-utils/src/__tests__/validateWithCustomRules-test.js index d7bd17eb533..73c8d940fae 100644 --- a/packages/graphql-language-service-utils/src/__tests__/validateWithCustomRules-test.js +++ b/packages/graphql-language-service-utils/src/__tests__/validateWithCustomRules-test.js @@ -1,11 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - */ - import { expect } from 'chai'; import { readFileSync } from 'fs'; import { GraphQLError, buildSchema, parse } from 'graphql'; diff --git a/packages/graphql-language-service-utils/src/getASTNodeAtPosition.js b/packages/graphql-language-service-utils/src/getASTNodeAtPosition.js index 0f5390af361..608a9d3862f 100644 --- a/packages/graphql-language-service-utils/src/getASTNodeAtPosition.js +++ b/packages/graphql-language-service-utils/src/getASTNodeAtPosition.js @@ -1,15 +1,8 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ import type { ASTNode } from 'graphql/language'; - import { Position } from './Range'; import { visit } from 'graphql'; diff --git a/packages/graphql-language-service-utils/src/index.js b/packages/graphql-language-service-utils/src/index.js index d5e0faa75df..12bba7d979d 100644 --- a/packages/graphql-language-service-utils/src/index.js +++ b/packages/graphql-language-service-utils/src/index.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service-utils/src/validateWithCustomRules.js b/packages/graphql-language-service-utils/src/validateWithCustomRules.js index 2d0c25fd606..0a4f6504c27 100644 --- a/packages/graphql-language-service-utils/src/validateWithCustomRules.js +++ b/packages/graphql-language-service-utils/src/validateWithCustomRules.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service/LICENSE b/packages/graphql-language-service/LICENSE index f3f2ec350d7..cd2262e3a31 100644 --- a/packages/graphql-language-service/LICENSE +++ b/packages/graphql-language-service/LICENSE @@ -1,27 +1,21 @@ -LICENSE AGREEMENT For GraphQL Language Service software +MIT License -Facebook, Inc. (“Facebook”) owns all right, title and interest, including all -intellectual property and other proprietary rights, in and to the -GraphQL Language Service software. Subject to your compliance with these terms, -you are hereby granted a non-exclusive, worldwide, royalty-free copyright license -to (1) use and copy the GraphQL Language Service software; and (2) reproduce -and distribute the GraphQL Language Service software as part of your own software -(“Your Software”). Facebook reserves all rights not expressly granted to you in -this license agreement. +Copyright (c) 2019 GraphQL Contributors -THE SOFTWARE AND DOCUMENTATION, IF ANY, ARE PROVIDED "AS IS" AND ANY EXPRESS OR -IMPLIED WARRANTIES (INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE) ARE DISCLAIMED. IN NO -EVENT SHALL FACEBOOK OR ITS AFFILIATES, OFFICES, DIRECTORS OR EMPLOYEES BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE -GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF -THE USE OF THE SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: -You will include in Your Software (e.g., in the file(s), documentation or other -materials accompanying your software): (1) the disclaimer set forth above; (2) -this sentence; and (3) the following copyright notice: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. -Copyright (c) 2015, Facebook, Inc. All rights reserved. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/graphql-language-service/bin/graphql.js b/packages/graphql-language-service/bin/graphql.js index 039e31015c1..fb44aed2659 100755 --- a/packages/graphql-language-service/bin/graphql.js +++ b/packages/graphql-language-service/bin/graphql.js @@ -1,12 +1,4 @@ #!/usr/bin/env node -/* - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the LICENSE file in - * the root directory of this source tree. - */ - if (process && process.env) { process.env.GRAPHQL_NO_NAME_WARNING = true; diff --git a/packages/graphql-language-service/package.json b/packages/graphql-language-service/package.json index 6e66b43e47b..16ca8714753 100644 --- a/packages/graphql-language-service/package.json +++ b/packages/graphql-language-service/package.json @@ -7,6 +7,7 @@ "Hyohyeon Jeong ", "Lee Byron (http://leebyron.com/)" ], + "license": "MIT", "bugs": { "url": "https://github.com/graphql/graphql-language-service/issues" }, @@ -15,7 +16,8 @@ }, "files": [ "bin", - "dist" + "dist", + "LICENSE" ], "keywords": [ "graphql", diff --git a/packages/graphql-language-service/src/__tests__/index-test.js b/packages/graphql-language-service/src/__tests__/index-test.js index 6eccad7fa64..fb1125d7066 100644 --- a/packages/graphql-language-service/src/__tests__/index-test.js +++ b/packages/graphql-language-service/src/__tests__/index-test.js @@ -1,14 +1,6 @@ -/** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - */ import { expect } from 'chai'; - describe('blinking light demo', () => { it('runs', () => { // This is just a place holder for now as all the existing tests have moved diff --git a/packages/graphql-language-service/src/cli.js b/packages/graphql-language-service/src/cli.js index 38dcb1b0ec6..bb1ce7c88dc 100644 --- a/packages/graphql-language-service/src/cli.js +++ b/packages/graphql-language-service/src/cli.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/packages/graphql-language-service/src/client.js b/packages/graphql-language-service/src/client.js index bc40753b40c..f5b8bb5b83c 100644 --- a/packages/graphql-language-service/src/client.js +++ b/packages/graphql-language-service/src/client.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */ diff --git a/resources/buildFlow.js b/resources/buildFlow.js index 7d636e82058..d8a83804a01 100644 --- a/resources/buildFlow.js +++ b/resources/buildFlow.js @@ -1,11 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - */ - 'use strict'; const { readdirSync } = require('fs'); diff --git a/resources/buildJs.js b/resources/buildJs.js index 8ce5bacad29..ff19115f12e 100644 --- a/resources/buildJs.js +++ b/resources/buildJs.js @@ -1,11 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - */ - 'use strict'; const { exec } = require('./util'); diff --git a/resources/mochaBootload.js b/resources/mochaBootload.js index 1bb81a8c2e8..6964c7c7cde 100644 --- a/resources/mochaBootload.js +++ b/resources/mochaBootload.js @@ -1,13 +1,4 @@ /* eslint-disable no-console, object-shorthand */ -/** - * Copyright (c) 2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - require('@babel/polyfill') const JSDOM = require('jsdom').JSDOM; diff --git a/resources/prepublish.js b/resources/prepublish.js index 00e7c2b98ee..1debf9d0dfb 100644 --- a/resources/prepublish.js +++ b/resources/prepublish.js @@ -1,11 +1,3 @@ -/** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - */ - 'use strict'; // NOTE: Because prepublish is also invoked on "npm install", we can't diff --git a/resources/pretty.js b/resources/pretty.js index c644bfd7f48..36bd4c66333 100755 --- a/resources/pretty.js +++ b/resources/pretty.js @@ -1,11 +1,4 @@ #!/usr/bin/env node -/** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - */ const { spawnSync } = require('child_process'); const { join } = require('path'); diff --git a/resources/util.js b/resources/util.js index 422d431c984..46a8039716a 100644 --- a/resources/util.js +++ b/resources/util.js @@ -1,10 +1,4 @@ /** - * Copyright (c) Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the license found in the - * LICENSE file in the root directory of this source tree. - * * @flow */