diff --git a/.eslintrc.js b/.eslintrc.js index 0d054ee3502..91f9b8abedd 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + const {readdirSync} = require('fs'); const {join} = require('path'); @@ -164,7 +170,7 @@ module.exports = { // Brackets keep code readable and `return` intentions clear. 'arrow-body-style': ['error', 'always'], // Error if comments do not adhere to `tsdoc`. - 'tsdoc/syntax': 'warn', + 'tsdoc/syntax': 'error', // Keeps array types simple only when they are simple for readability. '@typescript-eslint/array-type': ['error', {default: 'array-simple'}], 'no-unused-vars': 'off', diff --git a/.mocharc.cjs b/.mocharc.cjs index 15f7718a506..79c6c3bf65e 100644 --- a/.mocharc.cjs +++ b/.mocharc.cjs @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ let timeout = process.platform === 'win32' ? 20_000 : 10_000; diff --git a/examples/custom-event.js b/examples/custom-event.js index cedf33e999b..960bca34eed 100644 --- a/examples/custom-event.js +++ b/examples/custom-event.js @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; diff --git a/examples/oopif.js b/examples/oopif.js index a8631abc54f..6ed79f9ced1 100644 --- a/examples/oopif.js +++ b/examples/oopif.js @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; diff --git a/examples/pdf.js b/examples/pdf.js index 9f7ac92e0a1..e97cc53cdb4 100644 --- a/examples/pdf.js +++ b/examples/pdf.js @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; diff --git a/examples/proxy.js b/examples/proxy.js index 5490822b8b2..e41d0d8cd10 100644 --- a/examples/proxy.js +++ b/examples/proxy.js @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; diff --git a/examples/screenshot-fullpage.js b/examples/screenshot-fullpage.js index 95f469eb7f0..cbc3d5e7826 100644 --- a/examples/screenshot-fullpage.js +++ b/examples/screenshot-fullpage.js @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; diff --git a/examples/screenshot.js b/examples/screenshot.js index 7d54806c4c7..85c8462cb53 100644 --- a/examples/screenshot.js +++ b/examples/screenshot.js @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ 'use strict'; diff --git a/examples/search.js b/examples/search.js index df0abc213bf..7c2a081808e 100644 --- a/examples/search.js +++ b/examples/search.js @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/browsers/src/CLI.ts b/packages/browsers/src/CLI.ts index 5df3e08ada2..255f5545b48 100644 --- a/packages/browsers/src/CLI.ts +++ b/packages/browsers/src/CLI.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {stdin as input, stdout as output} from 'process'; diff --git a/packages/browsers/src/Cache.ts b/packages/browsers/src/Cache.ts index babb4b9caf4..13b465835a6 100644 --- a/packages/browsers/src/Cache.ts +++ b/packages/browsers/src/Cache.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/packages/browsers/src/browser-data/browser-data.ts b/packages/browsers/src/browser-data/browser-data.ts index 9a91216f77a..67bb4990b2f 100644 --- a/packages/browsers/src/browser-data/browser-data.ts +++ b/packages/browsers/src/browser-data/browser-data.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import * as chromeHeadlessShell from './chrome-headless-shell.js'; diff --git a/packages/browsers/src/browser-data/chrome-headless-shell.ts b/packages/browsers/src/browser-data/chrome-headless-shell.ts index cb5b48fad88..b1c6178de81 100644 --- a/packages/browsers/src/browser-data/chrome-headless-shell.ts +++ b/packages/browsers/src/browser-data/chrome-headless-shell.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import path from 'path'; diff --git a/packages/browsers/src/browser-data/chrome.ts b/packages/browsers/src/browser-data/chrome.ts index 30df6768306..c6329255c37 100644 --- a/packages/browsers/src/browser-data/chrome.ts +++ b/packages/browsers/src/browser-data/chrome.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import path from 'path'; diff --git a/packages/browsers/src/browser-data/chromedriver.ts b/packages/browsers/src/browser-data/chromedriver.ts index 0518d2eed0e..290598d0d76 100644 --- a/packages/browsers/src/browser-data/chromedriver.ts +++ b/packages/browsers/src/browser-data/chromedriver.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import path from 'path'; diff --git a/packages/browsers/src/browser-data/chromium.ts b/packages/browsers/src/browser-data/chromium.ts index 4215d34127f..09cfc987a8c 100644 --- a/packages/browsers/src/browser-data/chromium.ts +++ b/packages/browsers/src/browser-data/chromium.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import path from 'path'; diff --git a/packages/browsers/src/browser-data/firefox.ts b/packages/browsers/src/browser-data/firefox.ts index 69cc7a9be74..ccc30fa1b50 100644 --- a/packages/browsers/src/browser-data/firefox.ts +++ b/packages/browsers/src/browser-data/firefox.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/packages/browsers/src/browser-data/types.ts b/packages/browsers/src/browser-data/types.ts index d13b39c234d..ac72661a2d2 100644 --- a/packages/browsers/src/browser-data/types.ts +++ b/packages/browsers/src/browser-data/types.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/browsers/src/debug.ts b/packages/browsers/src/debug.ts index eee0a347e8e..491097f41d6 100644 --- a/packages/browsers/src/debug.ts +++ b/packages/browsers/src/debug.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import debug from 'debug'; diff --git a/packages/browsers/src/detectPlatform.ts b/packages/browsers/src/detectPlatform.ts index fed8c2e2ea6..df644c38b7a 100644 --- a/packages/browsers/src/detectPlatform.ts +++ b/packages/browsers/src/detectPlatform.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import os from 'os'; diff --git a/packages/browsers/src/fileUtil.ts b/packages/browsers/src/fileUtil.ts index 6139accd49c..50a68978537 100644 --- a/packages/browsers/src/fileUtil.ts +++ b/packages/browsers/src/fileUtil.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {exec as execChildProcess} from 'child_process'; diff --git a/packages/browsers/src/httpUtil.ts b/packages/browsers/src/httpUtil.ts index efbf57ad45e..96f7fc9f365 100644 --- a/packages/browsers/src/httpUtil.ts +++ b/packages/browsers/src/httpUtil.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {createWriteStream} from 'fs'; diff --git a/packages/browsers/src/install.ts b/packages/browsers/src/install.ts index bf71ec28dbc..375c75babc1 100644 --- a/packages/browsers/src/install.ts +++ b/packages/browsers/src/install.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/src/launch.ts b/packages/browsers/src/launch.ts index 35053242331..dfb0fbf6339 100644 --- a/packages/browsers/src/launch.ts +++ b/packages/browsers/src/launch.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import childProcess from 'child_process'; diff --git a/packages/browsers/src/main-cli.ts b/packages/browsers/src/main-cli.ts index a086c1c3b97..9919a4dfb71 100644 --- a/packages/browsers/src/main-cli.ts +++ b/packages/browsers/src/main-cli.ts @@ -1,19 +1,9 @@ #!/usr/bin/env node /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {CLI} from './CLI.js'; diff --git a/packages/browsers/src/main.ts b/packages/browsers/src/main.ts index e5501d08f59..df93de530dc 100644 --- a/packages/browsers/src/main.ts +++ b/packages/browsers/src/main.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export type { diff --git a/packages/browsers/test/src/chrome-headless-shell/chrome-headless-shell-data.spec.ts b/packages/browsers/test/src/chrome-headless-shell/chrome-headless-shell-data.spec.ts index 751ee427a40..65008b5edb3 100644 --- a/packages/browsers/test/src/chrome-headless-shell/chrome-headless-shell-data.spec.ts +++ b/packages/browsers/test/src/chrome-headless-shell/chrome-headless-shell-data.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chrome-headless-shell/cli.spec.ts b/packages/browsers/test/src/chrome-headless-shell/cli.spec.ts index a514628e3a6..445d0f700e5 100644 --- a/packages/browsers/test/src/chrome-headless-shell/cli.spec.ts +++ b/packages/browsers/test/src/chrome-headless-shell/cli.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chrome-headless-shell/install.spec.ts b/packages/browsers/test/src/chrome-headless-shell/install.spec.ts index 6270887171e..88f9fae7fc3 100644 --- a/packages/browsers/test/src/chrome-headless-shell/install.spec.ts +++ b/packages/browsers/test/src/chrome-headless-shell/install.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chrome/chrome-data.spec.ts b/packages/browsers/test/src/chrome/chrome-data.spec.ts index ef06380f442..510afa84540 100644 --- a/packages/browsers/test/src/chrome/chrome-data.spec.ts +++ b/packages/browsers/test/src/chrome/chrome-data.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chrome/cli.spec.ts b/packages/browsers/test/src/chrome/cli.spec.ts index a9a08c9d621..bdda9d9aa94 100644 --- a/packages/browsers/test/src/chrome/cli.spec.ts +++ b/packages/browsers/test/src/chrome/cli.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chrome/install.spec.ts b/packages/browsers/test/src/chrome/install.spec.ts index f20ceabb15e..8103ff3612d 100644 --- a/packages/browsers/test/src/chrome/install.spec.ts +++ b/packages/browsers/test/src/chrome/install.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chrome/launch.spec.ts b/packages/browsers/test/src/chrome/launch.spec.ts index cef690a6bba..983b6d1e47e 100644 --- a/packages/browsers/test/src/chrome/launch.spec.ts +++ b/packages/browsers/test/src/chrome/launch.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chromedriver/chromedriver-data.spec.ts b/packages/browsers/test/src/chromedriver/chromedriver-data.spec.ts index 0b2cf4e8bed..62522d88f4a 100644 --- a/packages/browsers/test/src/chromedriver/chromedriver-data.spec.ts +++ b/packages/browsers/test/src/chromedriver/chromedriver-data.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chromedriver/cli.spec.ts b/packages/browsers/test/src/chromedriver/cli.spec.ts index d2d10a04e31..d407062a881 100644 --- a/packages/browsers/test/src/chromedriver/cli.spec.ts +++ b/packages/browsers/test/src/chromedriver/cli.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chromedriver/install.spec.ts b/packages/browsers/test/src/chromedriver/install.spec.ts index 6270887171e..88f9fae7fc3 100644 --- a/packages/browsers/test/src/chromedriver/install.spec.ts +++ b/packages/browsers/test/src/chromedriver/install.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chromium/chromium-data.spec.ts b/packages/browsers/test/src/chromium/chromium-data.spec.ts index 0f5c2d22567..601efccc474 100644 --- a/packages/browsers/test/src/chromium/chromium-data.spec.ts +++ b/packages/browsers/test/src/chromium/chromium-data.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/chromium/launch.spec.ts b/packages/browsers/test/src/chromium/launch.spec.ts index 7fade9e52de..abaef10c0e1 100644 --- a/packages/browsers/test/src/chromium/launch.spec.ts +++ b/packages/browsers/test/src/chromium/launch.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/firefox/cli.spec.ts b/packages/browsers/test/src/firefox/cli.spec.ts index ce44810f87a..134b432641a 100644 --- a/packages/browsers/test/src/firefox/cli.spec.ts +++ b/packages/browsers/test/src/firefox/cli.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/firefox/firefox-data.spec.ts b/packages/browsers/test/src/firefox/firefox-data.spec.ts index cad4ef5fa39..d0bb056090b 100644 --- a/packages/browsers/test/src/firefox/firefox-data.spec.ts +++ b/packages/browsers/test/src/firefox/firefox-data.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/firefox/install.spec.ts b/packages/browsers/test/src/firefox/install.spec.ts index 29d5974c73b..1bada437297 100644 --- a/packages/browsers/test/src/firefox/install.spec.ts +++ b/packages/browsers/test/src/firefox/install.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/firefox/launch.spec.ts b/packages/browsers/test/src/firefox/launch.spec.ts index 88388d8d6d8..69372f5ba39 100644 --- a/packages/browsers/test/src/firefox/launch.spec.ts +++ b/packages/browsers/test/src/firefox/launch.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/tsdoc.json b/packages/browsers/test/src/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/packages/browsers/test/src/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/packages/browsers/test/src/uninstall.spec.ts b/packages/browsers/test/src/uninstall.spec.ts index 584b08771f0..0ef8a20fdeb 100644 --- a/packages/browsers/test/src/uninstall.spec.ts +++ b/packages/browsers/test/src/uninstall.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/browsers/test/src/utils.ts b/packages/browsers/test/src/utils.ts index 9afb1bb7631..d68a054169f 100644 --- a/packages/browsers/test/src/utils.ts +++ b/packages/browsers/test/src/utils.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {execSync} from 'child_process'; diff --git a/packages/browsers/test/src/versions.ts b/packages/browsers/test/src/versions.ts index 7955bc5726f..3e13b8fc617 100644 --- a/packages/browsers/test/src/versions.ts +++ b/packages/browsers/test/src/versions.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export const testChromeBuildId = '113.0.5672.0'; diff --git a/packages/browsers/tools/downloadTestBrowsers.mjs b/packages/browsers/tools/downloadTestBrowsers.mjs index 1d42f158b64..477137dcd9c 100644 --- a/packages/browsers/tools/downloadTestBrowsers.mjs +++ b/packages/browsers/tools/downloadTestBrowsers.mjs @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** @@ -22,11 +12,11 @@ import {existsSync, mkdirSync, copyFileSync, rmSync} from 'fs'; import {normalize, join, dirname} from 'path'; -import {BrowserPlatform, install} from '@puppeteer/browsers'; - import {downloadPaths} from '../lib/esm/browser-data/browser-data.js'; import * as versions from '../test/build/versions.js'; +import {BrowserPlatform, install} from '@puppeteer/browsers'; + function getBrowser(str) { const regex = /test(.+)BuildId/; const match = str.match(regex); diff --git a/packages/browsers/tools/updateVersions.mjs b/packages/browsers/tools/updateVersions.mjs index 974358df33a..5807d146ebb 100644 --- a/packages/browsers/tools/updateVersions.mjs +++ b/packages/browsers/tools/updateVersions.mjs @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'node:fs/promises'; diff --git a/packages/browsers/tsdoc.json b/packages/browsers/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/packages/browsers/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/packages/ng-schematics/src/builders/puppeteer/types.ts b/packages/ng-schematics/src/builders/puppeteer/types.ts index 95aec7c157a..6258a955c01 100644 --- a/packages/ng-schematics/src/builders/puppeteer/types.ts +++ b/packages/ng-schematics/src/builders/puppeteer/types.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {JsonObject} from '@angular-devkit/core'; diff --git a/packages/ng-schematics/src/schematics/config/index.ts b/packages/ng-schematics/src/schematics/config/index.ts index d64986d5e9d..8ca620591fb 100644 --- a/packages/ng-schematics/src/schematics/config/index.ts +++ b/packages/ng-schematics/src/schematics/config/index.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/packages/ng-schematics/src/schematics/e2e/index.ts b/packages/ng-schematics/src/schematics/e2e/index.ts index 5dc40d6808e..6e2c2b5d4fd 100644 --- a/packages/ng-schematics/src/schematics/e2e/index.ts +++ b/packages/ng-schematics/src/schematics/e2e/index.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/packages/ng-schematics/src/schematics/ng-add/index.ts b/packages/ng-schematics/src/schematics/ng-add/index.ts index 4031f237286..aa0ddb541d2 100644 --- a/packages/ng-schematics/src/schematics/ng-add/index.ts +++ b/packages/ng-schematics/src/schematics/ng-add/index.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/packages/ng-schematics/src/schematics/utils/files.ts b/packages/ng-schematics/src/schematics/utils/files.ts index 349406fbaf5..551ff1ed1de 100644 --- a/packages/ng-schematics/src/schematics/utils/files.ts +++ b/packages/ng-schematics/src/schematics/utils/files.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {relative, resolve} from 'path'; diff --git a/packages/ng-schematics/src/schematics/utils/json.ts b/packages/ng-schematics/src/schematics/utils/json.ts index 50b5fd11fad..2b9b29b319f 100644 --- a/packages/ng-schematics/src/schematics/utils/json.ts +++ b/packages/ng-schematics/src/schematics/utils/json.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {SchematicsException, type Tree} from '@angular-devkit/schematics'; diff --git a/packages/ng-schematics/src/schematics/utils/packages.ts b/packages/ng-schematics/src/schematics/utils/packages.ts index 3380d264f58..c2e1c2f2c73 100644 --- a/packages/ng-schematics/src/schematics/utils/packages.ts +++ b/packages/ng-schematics/src/schematics/utils/packages.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {get} from 'https'; diff --git a/packages/ng-schematics/src/schematics/utils/types.ts b/packages/ng-schematics/src/schematics/utils/types.ts index 63809b123c5..60540f1226e 100644 --- a/packages/ng-schematics/src/schematics/utils/types.ts +++ b/packages/ng-schematics/src/schematics/utils/types.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export enum TestRunner { diff --git a/packages/ng-schematics/tools/copySchemaFiles.mjs b/packages/ng-schematics/tools/copySchemaFiles.mjs index f64ec05cf2b..2bd88f229ac 100644 --- a/packages/ng-schematics/tools/copySchemaFiles.mjs +++ b/packages/ng-schematics/tools/copySchemaFiles.mjs @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs/promises'; diff --git a/packages/ng-schematics/tsdoc.json b/packages/ng-schematics/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/packages/ng-schematics/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/packages/puppeteer-core/src/api/Browser.ts b/packages/puppeteer-core/src/api/Browser.ts index f0aa06680ce..b5dc47639d0 100644 --- a/packages/puppeteer-core/src/api/Browser.ts +++ b/packages/puppeteer-core/src/api/Browser.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ChildProcess} from 'child_process'; diff --git a/packages/puppeteer-core/src/api/BrowserContext.ts b/packages/puppeteer-core/src/api/BrowserContext.ts index 02be7be7802..79335eb9eda 100644 --- a/packages/puppeteer-core/src/api/BrowserContext.ts +++ b/packages/puppeteer-core/src/api/BrowserContext.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {EventEmitter, type EventType} from '../common/EventEmitter.js'; diff --git a/packages/puppeteer-core/src/api/Dialog.ts b/packages/puppeteer-core/src/api/Dialog.ts index 48a7dfd4ea4..ff70eec4881 100644 --- a/packages/puppeteer-core/src/api/Dialog.ts +++ b/packages/puppeteer-core/src/api/Dialog.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/api/ElementHandle.ts b/packages/puppeteer-core/src/api/ElementHandle.ts index 12aca3e67ae..4a27cc55d21 100644 --- a/packages/puppeteer-core/src/api/ElementHandle.ts +++ b/packages/puppeteer-core/src/api/ElementHandle.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/api/ElementHandleSymbol.ts b/packages/puppeteer-core/src/api/ElementHandleSymbol.ts index 4bf8a4721b9..6e5087b773e 100644 --- a/packages/puppeteer-core/src/api/ElementHandleSymbol.ts +++ b/packages/puppeteer-core/src/api/ElementHandleSymbol.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/api/Environment.ts b/packages/puppeteer-core/src/api/Environment.ts index fd337c158bf..c5a8d73d00e 100644 --- a/packages/puppeteer-core/src/api/Environment.ts +++ b/packages/puppeteer-core/src/api/Environment.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {CDPSession} from './CDPSession.js'; diff --git a/packages/puppeteer-core/src/api/Frame.ts b/packages/puppeteer-core/src/api/Frame.ts index fd8afce2325..28c8243c45a 100644 --- a/packages/puppeteer-core/src/api/Frame.ts +++ b/packages/puppeteer-core/src/api/Frame.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type Protocol from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/api/HTTPRequest.ts b/packages/puppeteer-core/src/api/HTTPRequest.ts index cf0d043e6ec..3c952371eef 100644 --- a/packages/puppeteer-core/src/api/HTTPRequest.ts +++ b/packages/puppeteer-core/src/api/HTTPRequest.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/api/HTTPResponse.ts b/packages/puppeteer-core/src/api/HTTPResponse.ts index e82bc261476..906479eb43a 100644 --- a/packages/puppeteer-core/src/api/HTTPResponse.ts +++ b/packages/puppeteer-core/src/api/HTTPResponse.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type Protocol from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/api/Input.ts b/packages/puppeteer-core/src/api/Input.ts index 22b9a7cfe50..6b41ca8fe1f 100644 --- a/packages/puppeteer-core/src/api/Input.ts +++ b/packages/puppeteer-core/src/api/Input.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/api/JSHandle.ts b/packages/puppeteer-core/src/api/JSHandle.ts index 1ef8021edf3..52ca7fe8f88 100644 --- a/packages/puppeteer-core/src/api/JSHandle.ts +++ b/packages/puppeteer-core/src/api/JSHandle.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type Protocol from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/api/Page.ts b/packages/puppeteer-core/src/api/Page.ts index da3e66b80bb..b7664c4cfe6 100644 --- a/packages/puppeteer-core/src/api/Page.ts +++ b/packages/puppeteer-core/src/api/Page.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Readable} from 'stream'; diff --git a/packages/puppeteer-core/src/api/Realm.ts b/packages/puppeteer-core/src/api/Realm.ts index beaa81edab6..eee1f2c1dd9 100644 --- a/packages/puppeteer-core/src/api/Realm.ts +++ b/packages/puppeteer-core/src/api/Realm.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {TimeoutSettings} from '../common/TimeoutSettings.js'; diff --git a/packages/puppeteer-core/src/api/Target.ts b/packages/puppeteer-core/src/api/Target.ts index 67d664dadab..f91b91df12f 100644 --- a/packages/puppeteer-core/src/api/Target.ts +++ b/packages/puppeteer-core/src/api/Target.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Browser} from './Browser.js'; diff --git a/packages/puppeteer-core/src/api/WebWorker.ts b/packages/puppeteer-core/src/api/WebWorker.ts index ba9d8714569..4de287f146c 100644 --- a/packages/puppeteer-core/src/api/WebWorker.ts +++ b/packages/puppeteer-core/src/api/WebWorker.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {EventEmitter, type EventType} from '../common/EventEmitter.js'; diff --git a/packages/puppeteer-core/src/api/api.ts b/packages/puppeteer-core/src/api/api.ts index 7f82c1f1c1e..d2bf832a6d9 100644 --- a/packages/puppeteer-core/src/api/api.ts +++ b/packages/puppeteer-core/src/api/api.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export * from './Browser.js'; diff --git a/packages/puppeteer-core/src/api/locators/locators.ts b/packages/puppeteer-core/src/api/locators/locators.ts index 2faae1189e3..7626a0017b2 100644 --- a/packages/puppeteer-core/src/api/locators/locators.ts +++ b/packages/puppeteer-core/src/api/locators/locators.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type { Observable, diff --git a/packages/puppeteer-core/src/bidi/BidiOverCdp.ts b/packages/puppeteer-core/src/bidi/BidiOverCdp.ts index 379a2403b06..9cb2270e3e0 100644 --- a/packages/puppeteer-core/src/bidi/BidiOverCdp.ts +++ b/packages/puppeteer-core/src/bidi/BidiOverCdp.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import * as BidiMapper from 'chromium-bidi/lib/cjs/bidiMapper/BidiMapper.js'; diff --git a/packages/puppeteer-core/src/bidi/Browser.ts b/packages/puppeteer-core/src/bidi/Browser.ts index 1911bbdeed7..7a148f022e4 100644 --- a/packages/puppeteer-core/src/bidi/Browser.ts +++ b/packages/puppeteer-core/src/bidi/Browser.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ChildProcess} from 'child_process'; diff --git a/packages/puppeteer-core/src/bidi/BrowserConnector.ts b/packages/puppeteer-core/src/bidi/BrowserConnector.ts index 95f2d6b737a..66531a7a6f6 100644 --- a/packages/puppeteer-core/src/bidi/BrowserConnector.ts +++ b/packages/puppeteer-core/src/bidi/BrowserConnector.ts @@ -1,17 +1,7 @@ -/* - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/** + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {BrowserCloseCallback} from '../api/Browser.js'; diff --git a/packages/puppeteer-core/src/bidi/BrowserContext.ts b/packages/puppeteer-core/src/bidi/BrowserContext.ts index eb932a93082..4f0ad5e4080 100644 --- a/packages/puppeteer-core/src/bidi/BrowserContext.ts +++ b/packages/puppeteer-core/src/bidi/BrowserContext.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/Connection.test.ts b/packages/puppeteer-core/src/bidi/Connection.test.ts index e92e52aaa0a..9f37e38661e 100644 --- a/packages/puppeteer-core/src/bidi/Connection.test.ts +++ b/packages/puppeteer-core/src/bidi/Connection.test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {describe, it} from 'node:test'; diff --git a/packages/puppeteer-core/src/bidi/Connection.ts b/packages/puppeteer-core/src/bidi/Connection.ts index f695c983c8d..0284d1af65a 100644 --- a/packages/puppeteer-core/src/bidi/Connection.ts +++ b/packages/puppeteer-core/src/bidi/Connection.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/Deserializer.ts b/packages/puppeteer-core/src/bidi/Deserializer.ts index 2a00e9043eb..14b87d403be 100644 --- a/packages/puppeteer-core/src/bidi/Deserializer.ts +++ b/packages/puppeteer-core/src/bidi/Deserializer.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/Dialog.ts b/packages/puppeteer-core/src/bidi/Dialog.ts index 7e862b9aad9..4bf741cc4ea 100644 --- a/packages/puppeteer-core/src/bidi/Dialog.ts +++ b/packages/puppeteer-core/src/bidi/Dialog.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/ElementHandle.ts b/packages/puppeteer-core/src/bidi/ElementHandle.ts index fb0d03e0596..fd886e8c262 100644 --- a/packages/puppeteer-core/src/bidi/ElementHandle.ts +++ b/packages/puppeteer-core/src/bidi/ElementHandle.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/EmulationManager.ts b/packages/puppeteer-core/src/bidi/EmulationManager.ts index 5006ff9c928..de956957856 100644 --- a/packages/puppeteer-core/src/bidi/EmulationManager.ts +++ b/packages/puppeteer-core/src/bidi/EmulationManager.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Viewport} from '../common/Viewport.js'; diff --git a/packages/puppeteer-core/src/bidi/ExposedFunction.ts b/packages/puppeteer-core/src/bidi/ExposedFunction.ts index 6ca9f556c6c..d385ffedbb0 100644 --- a/packages/puppeteer-core/src/bidi/ExposedFunction.ts +++ b/packages/puppeteer-core/src/bidi/ExposedFunction.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/Frame.ts b/packages/puppeteer-core/src/bidi/Frame.ts index 36e39bb1c56..b8990487300 100644 --- a/packages/puppeteer-core/src/bidi/Frame.ts +++ b/packages/puppeteer-core/src/bidi/Frame.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/HTTPRequest.ts b/packages/puppeteer-core/src/bidi/HTTPRequest.ts index 92856905d0d..57cb801b8c2 100644 --- a/packages/puppeteer-core/src/bidi/HTTPRequest.ts +++ b/packages/puppeteer-core/src/bidi/HTTPRequest.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/HTTPResponse.ts b/packages/puppeteer-core/src/bidi/HTTPResponse.ts index dd0368197a0..ce28820a65f 100644 --- a/packages/puppeteer-core/src/bidi/HTTPResponse.ts +++ b/packages/puppeteer-core/src/bidi/HTTPResponse.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; import type Protocol from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/bidi/Input.ts b/packages/puppeteer-core/src/bidi/Input.ts index 8b52cf5797d..5406556d642 100644 --- a/packages/puppeteer-core/src/bidi/Input.ts +++ b/packages/puppeteer-core/src/bidi/Input.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/JSHandle.ts b/packages/puppeteer-core/src/bidi/JSHandle.ts index 9155d9ae5b8..71046015533 100644 --- a/packages/puppeteer-core/src/bidi/JSHandle.ts +++ b/packages/puppeteer-core/src/bidi/JSHandle.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/NetworkManager.ts b/packages/puppeteer-core/src/bidi/NetworkManager.ts index 982657ac6f4..2caaf0ad502 100644 --- a/packages/puppeteer-core/src/bidi/NetworkManager.ts +++ b/packages/puppeteer-core/src/bidi/NetworkManager.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/Page.ts b/packages/puppeteer-core/src/bidi/Page.ts index 6e972b8f48c..b45aec691f4 100644 --- a/packages/puppeteer-core/src/bidi/Page.ts +++ b/packages/puppeteer-core/src/bidi/Page.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Readable} from 'stream'; diff --git a/packages/puppeteer-core/src/bidi/Sandbox.ts b/packages/puppeteer-core/src/bidi/Sandbox.ts index a2780ebe16d..4411b3dbcd1 100644 --- a/packages/puppeteer-core/src/bidi/Sandbox.ts +++ b/packages/puppeteer-core/src/bidi/Sandbox.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {JSHandle} from '../api/JSHandle.js'; diff --git a/packages/puppeteer-core/src/bidi/Serializer.ts b/packages/puppeteer-core/src/bidi/Serializer.ts index 077f3e025b3..c147ec92816 100644 --- a/packages/puppeteer-core/src/bidi/Serializer.ts +++ b/packages/puppeteer-core/src/bidi/Serializer.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/Target.ts b/packages/puppeteer-core/src/bidi/Target.ts index 694074cbfb6..5823e1012cb 100644 --- a/packages/puppeteer-core/src/bidi/Target.ts +++ b/packages/puppeteer-core/src/bidi/Target.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {CDPSession} from '../api/CDPSession.js'; diff --git a/packages/puppeteer-core/src/bidi/bidi.ts b/packages/puppeteer-core/src/bidi/bidi.ts index 8d5b787ee43..373d6d999c6 100644 --- a/packages/puppeteer-core/src/bidi/bidi.ts +++ b/packages/puppeteer-core/src/bidi/bidi.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export * from './BidiOverCdp.js'; diff --git a/packages/puppeteer-core/src/bidi/lifecycle.ts b/packages/puppeteer-core/src/bidi/lifecycle.ts index f28b6c2f76b..73b86cba9c2 100644 --- a/packages/puppeteer-core/src/bidi/lifecycle.ts +++ b/packages/puppeteer-core/src/bidi/lifecycle.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/bidi/util.ts b/packages/puppeteer-core/src/bidi/util.ts index be15436416b..c799f21d0c4 100644 --- a/packages/puppeteer-core/src/bidi/util.ts +++ b/packages/puppeteer-core/src/bidi/util.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type * as Bidi from 'chromium-bidi/lib/cjs/protocol/protocol.js'; diff --git a/packages/puppeteer-core/src/cdp/Accessibility.ts b/packages/puppeteer-core/src/cdp/Accessibility.ts index bd7382a15f0..d0279e3ddad 100644 --- a/packages/puppeteer-core/src/cdp/Accessibility.ts +++ b/packages/puppeteer-core/src/cdp/Accessibility.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/AriaQueryHandler.ts b/packages/puppeteer-core/src/cdp/AriaQueryHandler.ts index 8e91566fd2f..2286723758c 100644 --- a/packages/puppeteer-core/src/cdp/AriaQueryHandler.ts +++ b/packages/puppeteer-core/src/cdp/AriaQueryHandler.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/Browser.ts b/packages/puppeteer-core/src/cdp/Browser.ts index 601ab4925a4..ea7e8b82915 100644 --- a/packages/puppeteer-core/src/cdp/Browser.ts +++ b/packages/puppeteer-core/src/cdp/Browser.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ChildProcess} from 'child_process'; diff --git a/packages/puppeteer-core/src/cdp/BrowserConnector.ts b/packages/puppeteer-core/src/cdp/BrowserConnector.ts index e48b8a78c01..ef4aebe7473 100644 --- a/packages/puppeteer-core/src/cdp/BrowserConnector.ts +++ b/packages/puppeteer-core/src/cdp/BrowserConnector.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ConnectionTransport} from '../common/ConnectionTransport.js'; diff --git a/packages/puppeteer-core/src/cdp/CDPSession.ts b/packages/puppeteer-core/src/cdp/CDPSession.ts index aed38a606cc..324d092a552 100644 --- a/packages/puppeteer-core/src/cdp/CDPSession.ts +++ b/packages/puppeteer-core/src/cdp/CDPSession.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ProtocolMapping} from 'devtools-protocol/types/protocol-mapping.js'; diff --git a/packages/puppeteer-core/src/cdp/ChromeTargetManager.ts b/packages/puppeteer-core/src/cdp/ChromeTargetManager.ts index 87ab9242e22..7fd6cac59dc 100644 --- a/packages/puppeteer-core/src/cdp/ChromeTargetManager.ts +++ b/packages/puppeteer-core/src/cdp/ChromeTargetManager.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/Connection.ts b/packages/puppeteer-core/src/cdp/Connection.ts index c725edfb6eb..0a11cf4ead9 100644 --- a/packages/puppeteer-core/src/cdp/Connection.ts +++ b/packages/puppeteer-core/src/cdp/Connection.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/Coverage.ts b/packages/puppeteer-core/src/cdp/Coverage.ts index 4c115970edb..db995fb45b6 100644 --- a/packages/puppeteer-core/src/cdp/Coverage.ts +++ b/packages/puppeteer-core/src/cdp/Coverage.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/DeviceRequestPrompt.test.ts b/packages/puppeteer-core/src/cdp/DeviceRequestPrompt.test.ts index 7ffb7ee053f..7d75e97eaf5 100644 --- a/packages/puppeteer-core/src/cdp/DeviceRequestPrompt.test.ts +++ b/packages/puppeteer-core/src/cdp/DeviceRequestPrompt.test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {describe, it} from 'node:test'; diff --git a/packages/puppeteer-core/src/cdp/DeviceRequestPrompt.ts b/packages/puppeteer-core/src/cdp/DeviceRequestPrompt.ts index 34505eff68f..f5bd73bf72e 100644 --- a/packages/puppeteer-core/src/cdp/DeviceRequestPrompt.ts +++ b/packages/puppeteer-core/src/cdp/DeviceRequestPrompt.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type Protocol from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/Dialog.ts b/packages/puppeteer-core/src/cdp/Dialog.ts index ebdd729bdea..77ea8aa4506 100644 --- a/packages/puppeteer-core/src/cdp/Dialog.ts +++ b/packages/puppeteer-core/src/cdp/Dialog.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/ElementHandle.ts b/packages/puppeteer-core/src/cdp/ElementHandle.ts index b044d0a1f4d..a47d546a877 100644 --- a/packages/puppeteer-core/src/cdp/ElementHandle.ts +++ b/packages/puppeteer-core/src/cdp/ElementHandle.ts @@ -1,17 +1,7 @@ /** - * Copyright 2019 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2019 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type Path from 'path'; diff --git a/packages/puppeteer-core/src/cdp/EmulationManager.ts b/packages/puppeteer-core/src/cdp/EmulationManager.ts index 52a5cbc5106..8598967fe73 100644 --- a/packages/puppeteer-core/src/cdp/EmulationManager.ts +++ b/packages/puppeteer-core/src/cdp/EmulationManager.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/ExecutionContext.ts b/packages/puppeteer-core/src/cdp/ExecutionContext.ts index c87b6a5efcc..59fdd8870e4 100644 --- a/packages/puppeteer-core/src/cdp/ExecutionContext.ts +++ b/packages/puppeteer-core/src/cdp/ExecutionContext.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/FirefoxTargetManager.ts b/packages/puppeteer-core/src/cdp/FirefoxTargetManager.ts index 0b4c7e0dc08..631610cf9e0 100644 --- a/packages/puppeteer-core/src/cdp/FirefoxTargetManager.ts +++ b/packages/puppeteer-core/src/cdp/FirefoxTargetManager.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/Frame.ts b/packages/puppeteer-core/src/cdp/Frame.ts index cf6270325bd..844120d7ffa 100644 --- a/packages/puppeteer-core/src/cdp/Frame.ts +++ b/packages/puppeteer-core/src/cdp/Frame.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/FrameManager.ts b/packages/puppeteer-core/src/cdp/FrameManager.ts index 28d107b7006..48ed9ac2f5e 100644 --- a/packages/puppeteer-core/src/cdp/FrameManager.ts +++ b/packages/puppeteer-core/src/cdp/FrameManager.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/FrameManagerEvents.ts b/packages/puppeteer-core/src/cdp/FrameManagerEvents.ts index f61402e79d0..645dd86d717 100644 --- a/packages/puppeteer-core/src/cdp/FrameManagerEvents.ts +++ b/packages/puppeteer-core/src/cdp/FrameManagerEvents.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {EventType} from '../common/EventEmitter.js'; diff --git a/packages/puppeteer-core/src/cdp/FrameTree.ts b/packages/puppeteer-core/src/cdp/FrameTree.ts index f7510c866cd..7ee1b86b5fa 100644 --- a/packages/puppeteer-core/src/cdp/FrameTree.ts +++ b/packages/puppeteer-core/src/cdp/FrameTree.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Frame} from '../api/Frame.js'; diff --git a/packages/puppeteer-core/src/cdp/HTTPRequest.ts b/packages/puppeteer-core/src/cdp/HTTPRequest.ts index 92d39e0fa42..029e77470b4 100644 --- a/packages/puppeteer-core/src/cdp/HTTPRequest.ts +++ b/packages/puppeteer-core/src/cdp/HTTPRequest.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/HTTPResponse.ts b/packages/puppeteer-core/src/cdp/HTTPResponse.ts index 471b9ef1f2a..2b2264ffd46 100644 --- a/packages/puppeteer-core/src/cdp/HTTPResponse.ts +++ b/packages/puppeteer-core/src/cdp/HTTPResponse.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/Input.ts b/packages/puppeteer-core/src/cdp/Input.ts index 4e0f0b7bf54..9bfafddcf3d 100644 --- a/packages/puppeteer-core/src/cdp/Input.ts +++ b/packages/puppeteer-core/src/cdp/Input.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/IsolatedWorld.ts b/packages/puppeteer-core/src/cdp/IsolatedWorld.ts index 56db86171ef..c944d79dfa8 100644 --- a/packages/puppeteer-core/src/cdp/IsolatedWorld.ts +++ b/packages/puppeteer-core/src/cdp/IsolatedWorld.ts @@ -1,17 +1,7 @@ /** - * Copyright 2019 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2019 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/IsolatedWorlds.ts b/packages/puppeteer-core/src/cdp/IsolatedWorlds.ts index bf6ee30b112..ddb6c2381d6 100644 --- a/packages/puppeteer-core/src/cdp/IsolatedWorlds.ts +++ b/packages/puppeteer-core/src/cdp/IsolatedWorlds.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/cdp/JSHandle.ts b/packages/puppeteer-core/src/cdp/JSHandle.ts index f1db31d3f5f..6cde1e42970 100644 --- a/packages/puppeteer-core/src/cdp/JSHandle.ts +++ b/packages/puppeteer-core/src/cdp/JSHandle.ts @@ -1,17 +1,7 @@ /** - * Copyright 2019 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2019 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/LifecycleWatcher.ts b/packages/puppeteer-core/src/cdp/LifecycleWatcher.ts index 798d57bc15d..a4f5aaa4687 100644 --- a/packages/puppeteer-core/src/cdp/LifecycleWatcher.ts +++ b/packages/puppeteer-core/src/cdp/LifecycleWatcher.ts @@ -1,17 +1,7 @@ /** - * Copyright 2019 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2019 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type Protocol from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/NetworkEventManager.ts b/packages/puppeteer-core/src/cdp/NetworkEventManager.ts index 494835b8426..2aadd21d259 100644 --- a/packages/puppeteer-core/src/cdp/NetworkEventManager.ts +++ b/packages/puppeteer-core/src/cdp/NetworkEventManager.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/NetworkManager.test.ts b/packages/puppeteer-core/src/cdp/NetworkManager.test.ts index 67cced584d6..c3e9a8f609e 100644 --- a/packages/puppeteer-core/src/cdp/NetworkManager.test.ts +++ b/packages/puppeteer-core/src/cdp/NetworkManager.test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {describe, it} from 'node:test'; diff --git a/packages/puppeteer-core/src/cdp/NetworkManager.ts b/packages/puppeteer-core/src/cdp/NetworkManager.ts index db840ecdd5c..8b24b9a748b 100644 --- a/packages/puppeteer-core/src/cdp/NetworkManager.ts +++ b/packages/puppeteer-core/src/cdp/NetworkManager.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/Page.ts b/packages/puppeteer-core/src/cdp/Page.ts index a233688b29c..5fc819a39e7 100644 --- a/packages/puppeteer-core/src/cdp/Page.ts +++ b/packages/puppeteer-core/src/cdp/Page.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Readable} from 'stream'; diff --git a/packages/puppeteer-core/src/cdp/PredefinedNetworkConditions.ts b/packages/puppeteer-core/src/cdp/PredefinedNetworkConditions.ts index 447689e3692..df035ae52b2 100644 --- a/packages/puppeteer-core/src/cdp/PredefinedNetworkConditions.ts +++ b/packages/puppeteer-core/src/cdp/PredefinedNetworkConditions.ts @@ -1,17 +1,7 @@ /** - * Copyright 2021 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2021 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {NetworkConditions} from './NetworkManager.js'; diff --git a/packages/puppeteer-core/src/cdp/Target.ts b/packages/puppeteer-core/src/cdp/Target.ts index 37ef07e4a20..8509c0984b2 100644 --- a/packages/puppeteer-core/src/cdp/Target.ts +++ b/packages/puppeteer-core/src/cdp/Target.ts @@ -1,17 +1,7 @@ /** - * Copyright 2019 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2019 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/TargetManager.ts b/packages/puppeteer-core/src/cdp/TargetManager.ts index 64935efae4c..248f63539d8 100644 --- a/packages/puppeteer-core/src/cdp/TargetManager.ts +++ b/packages/puppeteer-core/src/cdp/TargetManager.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/Tracing.ts b/packages/puppeteer-core/src/cdp/Tracing.ts index c700fe29afd..22eae9a5d4b 100644 --- a/packages/puppeteer-core/src/cdp/Tracing.ts +++ b/packages/puppeteer-core/src/cdp/Tracing.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {CDPSession} from '../api/CDPSession.js'; import { diff --git a/packages/puppeteer-core/src/cdp/WebWorker.ts b/packages/puppeteer-core/src/cdp/WebWorker.ts index c4a25eebb05..552e8a6cf5c 100644 --- a/packages/puppeteer-core/src/cdp/WebWorker.ts +++ b/packages/puppeteer-core/src/cdp/WebWorker.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/cdp/cdp.ts b/packages/puppeteer-core/src/cdp/cdp.ts index 1a78ada9f53..a39952cb085 100644 --- a/packages/puppeteer-core/src/cdp/cdp.ts +++ b/packages/puppeteer-core/src/cdp/cdp.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export * from './Accessibility.js'; diff --git a/packages/puppeteer-core/src/common/BrowserConnector.ts b/packages/puppeteer-core/src/common/BrowserConnector.ts index c9a2bdc9534..217e53bedd9 100644 --- a/packages/puppeteer-core/src/common/BrowserConnector.ts +++ b/packages/puppeteer-core/src/common/BrowserConnector.ts @@ -1,17 +1,7 @@ -/* - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/** + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Browser} from '../api/Browser.js'; diff --git a/packages/puppeteer-core/src/common/BrowserWebSocketTransport.ts b/packages/puppeteer-core/src/common/BrowserWebSocketTransport.ts index 0829ab4e62b..cc0f81cb064 100644 --- a/packages/puppeteer-core/src/common/BrowserWebSocketTransport.ts +++ b/packages/puppeteer-core/src/common/BrowserWebSocketTransport.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ConnectionTransport} from './ConnectionTransport.js'; diff --git a/packages/puppeteer-core/src/common/CallbackRegistry.ts b/packages/puppeteer-core/src/common/CallbackRegistry.ts index 0c4ef536604..fc8b18a5cbf 100644 --- a/packages/puppeteer-core/src/common/CallbackRegistry.ts +++ b/packages/puppeteer-core/src/common/CallbackRegistry.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {Deferred} from '../util/Deferred.js'; diff --git a/packages/puppeteer-core/src/common/Configuration.ts b/packages/puppeteer-core/src/common/Configuration.ts index a6f9619f0d2..9a677aa02f7 100644 --- a/packages/puppeteer-core/src/common/Configuration.ts +++ b/packages/puppeteer-core/src/common/Configuration.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Product} from './Product.js'; diff --git a/packages/puppeteer-core/src/common/ConnectOptions.ts b/packages/puppeteer-core/src/common/ConnectOptions.ts index 71b6e032583..ce465851623 100644 --- a/packages/puppeteer-core/src/common/ConnectOptions.ts +++ b/packages/puppeteer-core/src/common/ConnectOptions.ts @@ -1,17 +1,7 @@ -/* - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. +/** + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type { diff --git a/packages/puppeteer-core/src/common/ConnectionTransport.ts b/packages/puppeteer-core/src/common/ConnectionTransport.ts index 753379fd569..ff36a2557ac 100644 --- a/packages/puppeteer-core/src/common/ConnectionTransport.ts +++ b/packages/puppeteer-core/src/common/ConnectionTransport.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/common/ConsoleMessage.ts b/packages/puppeteer-core/src/common/ConsoleMessage.ts index 34ed72fa214..85d2db9f753 100644 --- a/packages/puppeteer-core/src/common/ConsoleMessage.ts +++ b/packages/puppeteer-core/src/common/ConsoleMessage.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {JSHandle} from '../api/JSHandle.js'; diff --git a/packages/puppeteer-core/src/common/CustomQueryHandler.ts b/packages/puppeteer-core/src/common/CustomQueryHandler.ts index 527c6585da0..33e5f889c1b 100644 --- a/packages/puppeteer-core/src/common/CustomQueryHandler.ts +++ b/packages/puppeteer-core/src/common/CustomQueryHandler.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type PuppeteerUtil from '../injected/injected.js'; diff --git a/packages/puppeteer-core/src/common/Debug.ts b/packages/puppeteer-core/src/common/Debug.ts index a7ce6fb80cb..06ac9f58f9c 100644 --- a/packages/puppeteer-core/src/common/Debug.ts +++ b/packages/puppeteer-core/src/common/Debug.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type Debug from 'debug'; diff --git a/packages/puppeteer-core/src/common/Device.ts b/packages/puppeteer-core/src/common/Device.ts index cd041343cfa..dbf5c13c95c 100644 --- a/packages/puppeteer-core/src/common/Device.ts +++ b/packages/puppeteer-core/src/common/Device.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Viewport} from './Viewport.js'; diff --git a/packages/puppeteer-core/src/common/Errors.ts b/packages/puppeteer-core/src/common/Errors.ts index 1ec136e8ccb..8225d64f070 100644 --- a/packages/puppeteer-core/src/common/Errors.ts +++ b/packages/puppeteer-core/src/common/Errors.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/common/EventEmitter.test.ts b/packages/puppeteer-core/src/common/EventEmitter.test.ts index ec70e540ac1..c6b58bd4da7 100644 --- a/packages/puppeteer-core/src/common/EventEmitter.test.ts +++ b/packages/puppeteer-core/src/common/EventEmitter.test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {describe, it, beforeEach} from 'node:test'; diff --git a/packages/puppeteer-core/src/common/EventEmitter.ts b/packages/puppeteer-core/src/common/EventEmitter.ts index 802e55e81dd..9a39cc0a848 100644 --- a/packages/puppeteer-core/src/common/EventEmitter.ts +++ b/packages/puppeteer-core/src/common/EventEmitter.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import mitt, { diff --git a/packages/puppeteer-core/src/common/FileChooser.ts b/packages/puppeteer-core/src/common/FileChooser.ts index 1bced69c6e1..2e4fd14fa7b 100644 --- a/packages/puppeteer-core/src/common/FileChooser.ts +++ b/packages/puppeteer-core/src/common/FileChooser.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/common/GetQueryHandler.ts b/packages/puppeteer-core/src/common/GetQueryHandler.ts index 3c1de3d9c10..1d8bb014146 100644 --- a/packages/puppeteer-core/src/common/GetQueryHandler.ts +++ b/packages/puppeteer-core/src/common/GetQueryHandler.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {ARIAQueryHandler} from '../cdp/AriaQueryHandler.js'; diff --git a/packages/puppeteer-core/src/common/HandleIterator.ts b/packages/puppeteer-core/src/common/HandleIterator.ts index 44c72af1045..c88003ed715 100644 --- a/packages/puppeteer-core/src/common/HandleIterator.ts +++ b/packages/puppeteer-core/src/common/HandleIterator.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {JSHandle} from '../api/JSHandle.js'; diff --git a/packages/puppeteer-core/src/common/LazyArg.ts b/packages/puppeteer-core/src/common/LazyArg.ts index 4829c4d6cb2..ed30281dd80 100644 --- a/packages/puppeteer-core/src/common/LazyArg.ts +++ b/packages/puppeteer-core/src/common/LazyArg.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {JSHandle} from '../api/JSHandle.js'; diff --git a/packages/puppeteer-core/src/common/NetworkManagerEvents.ts b/packages/puppeteer-core/src/common/NetworkManagerEvents.ts index e98f0e96155..eae26252d1d 100644 --- a/packages/puppeteer-core/src/common/NetworkManagerEvents.ts +++ b/packages/puppeteer-core/src/common/NetworkManagerEvents.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {HTTPRequest} from '../api/HTTPRequest.js'; diff --git a/packages/puppeteer-core/src/common/PDFOptions.ts b/packages/puppeteer-core/src/common/PDFOptions.ts index 29326e61c09..33d4a494e24 100644 --- a/packages/puppeteer-core/src/common/PDFOptions.ts +++ b/packages/puppeteer-core/src/common/PDFOptions.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/common/PQueryHandler.ts b/packages/puppeteer-core/src/common/PQueryHandler.ts index 0d576b60e98..db9b832d776 100644 --- a/packages/puppeteer-core/src/common/PQueryHandler.ts +++ b/packages/puppeteer-core/src/common/PQueryHandler.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/packages/puppeteer-core/src/common/PierceQueryHandler.ts b/packages/puppeteer-core/src/common/PierceQueryHandler.ts index 941f762c82e..36ddbe7f3ec 100644 --- a/packages/puppeteer-core/src/common/PierceQueryHandler.ts +++ b/packages/puppeteer-core/src/common/PierceQueryHandler.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type PuppeteerUtil from '../injected/injected.js'; diff --git a/packages/puppeteer-core/src/common/Product.ts b/packages/puppeteer-core/src/common/Product.ts index 58a62fad3e2..dcd75aceb6b 100644 --- a/packages/puppeteer-core/src/common/Product.ts +++ b/packages/puppeteer-core/src/common/Product.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/common/Puppeteer.ts b/packages/puppeteer-core/src/common/Puppeteer.ts index 7a712a965d9..844a3622bd0 100644 --- a/packages/puppeteer-core/src/common/Puppeteer.ts +++ b/packages/puppeteer-core/src/common/Puppeteer.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Browser} from '../api/Browser.js'; diff --git a/packages/puppeteer-core/src/common/QueryHandler.ts b/packages/puppeteer-core/src/common/QueryHandler.ts index 7ce1f1fb093..1655c7dba2c 100644 --- a/packages/puppeteer-core/src/common/QueryHandler.ts +++ b/packages/puppeteer-core/src/common/QueryHandler.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ElementHandle} from '../api/ElementHandle.js'; diff --git a/packages/puppeteer-core/src/common/SecurityDetails.ts b/packages/puppeteer-core/src/common/SecurityDetails.ts index d4c89ed511a..188eeea9ad3 100644 --- a/packages/puppeteer-core/src/common/SecurityDetails.ts +++ b/packages/puppeteer-core/src/common/SecurityDetails.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/common/TaskQueue.ts b/packages/puppeteer-core/src/common/TaskQueue.ts index 97cfe7c769c..3ad1409c1b2 100644 --- a/packages/puppeteer-core/src/common/TaskQueue.ts +++ b/packages/puppeteer-core/src/common/TaskQueue.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/common/TextQueryHandler.ts b/packages/puppeteer-core/src/common/TextQueryHandler.ts index 39f7035241d..450ed069575 100644 --- a/packages/puppeteer-core/src/common/TextQueryHandler.ts +++ b/packages/puppeteer-core/src/common/TextQueryHandler.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {QueryHandler, type QuerySelectorAll} from './QueryHandler.js'; diff --git a/packages/puppeteer-core/src/common/TimeoutSettings.ts b/packages/puppeteer-core/src/common/TimeoutSettings.ts index 97acc701478..7789d89b754 100644 --- a/packages/puppeteer-core/src/common/TimeoutSettings.ts +++ b/packages/puppeteer-core/src/common/TimeoutSettings.ts @@ -1,17 +1,7 @@ /** - * Copyright 2019 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2019 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ const DEFAULT_TIMEOUT = 30000; diff --git a/packages/puppeteer-core/src/common/USKeyboardLayout.ts b/packages/puppeteer-core/src/common/USKeyboardLayout.ts index f6a042e5cea..0a6d2f2e18a 100644 --- a/packages/puppeteer-core/src/common/USKeyboardLayout.ts +++ b/packages/puppeteer-core/src/common/USKeyboardLayout.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the 'License'); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/common/Viewport.ts b/packages/puppeteer-core/src/common/Viewport.ts index 9f53759faa7..46a937a88f1 100644 --- a/packages/puppeteer-core/src/common/Viewport.ts +++ b/packages/puppeteer-core/src/common/Viewport.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/common/WaitTask.ts b/packages/puppeteer-core/src/common/WaitTask.ts index ad50fce89c4..d0c1e2a0389 100644 --- a/packages/puppeteer-core/src/common/WaitTask.ts +++ b/packages/puppeteer-core/src/common/WaitTask.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ElementHandle} from '../api/ElementHandle.js'; diff --git a/packages/puppeteer-core/src/common/XPathQueryHandler.ts b/packages/puppeteer-core/src/common/XPathQueryHandler.ts index 6b0d2f44f94..b6e3a67badd 100644 --- a/packages/puppeteer-core/src/common/XPathQueryHandler.ts +++ b/packages/puppeteer-core/src/common/XPathQueryHandler.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/packages/puppeteer-core/src/common/common.ts b/packages/puppeteer-core/src/common/common.ts index 2fa52d8235e..6ef89256054 100644 --- a/packages/puppeteer-core/src/common/common.ts +++ b/packages/puppeteer-core/src/common/common.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export * from './BrowserWebSocketTransport.js'; diff --git a/packages/puppeteer-core/src/common/fetch.ts b/packages/puppeteer-core/src/common/fetch.ts index 5f13a352885..6c7a2b451c1 100644 --- a/packages/puppeteer-core/src/common/fetch.ts +++ b/packages/puppeteer-core/src/common/fetch.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/common/types.ts b/packages/puppeteer-core/src/common/types.ts index 7fc6e6c1d1a..9dab58cfdb7 100644 --- a/packages/puppeteer-core/src/common/types.ts +++ b/packages/puppeteer-core/src/common/types.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ElementHandle} from '../api/ElementHandle.js'; diff --git a/packages/puppeteer-core/src/common/util.ts b/packages/puppeteer-core/src/common/util.ts index 28ea5a2ef90..13395148352 100644 --- a/packages/puppeteer-core/src/common/util.ts +++ b/packages/puppeteer-core/src/common/util.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type FS from 'fs/promises'; diff --git a/packages/puppeteer-core/src/environment.ts b/packages/puppeteer-core/src/environment.ts index 80258c67fed..828752729e1 100644 --- a/packages/puppeteer-core/src/environment.ts +++ b/packages/puppeteer-core/src/environment.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/injected/ARIAQuerySelector.ts b/packages/puppeteer-core/src/injected/ARIAQuerySelector.ts index 90168e2dd21..972b6a6c642 100644 --- a/packages/puppeteer-core/src/injected/ARIAQuerySelector.ts +++ b/packages/puppeteer-core/src/injected/ARIAQuerySelector.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ declare global { diff --git a/packages/puppeteer-core/src/injected/CustomQuerySelector.ts b/packages/puppeteer-core/src/injected/CustomQuerySelector.ts index 41bb1a84089..ccd041deea5 100644 --- a/packages/puppeteer-core/src/injected/CustomQuerySelector.ts +++ b/packages/puppeteer-core/src/injected/CustomQuerySelector.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {CustomQueryHandler} from '../common/CustomQueryHandler.js'; diff --git a/packages/puppeteer-core/src/injected/PQuerySelector.ts b/packages/puppeteer-core/src/injected/PQuerySelector.ts index 597cbe8b936..11499c072f3 100644 --- a/packages/puppeteer-core/src/injected/PQuerySelector.ts +++ b/packages/puppeteer-core/src/injected/PQuerySelector.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {AwaitableIterable} from '../common/types.js'; diff --git a/packages/puppeteer-core/src/injected/PSelectorParser.ts b/packages/puppeteer-core/src/injected/PSelectorParser.ts index cea099240a0..8044562348c 100644 --- a/packages/puppeteer-core/src/injected/PSelectorParser.ts +++ b/packages/puppeteer-core/src/injected/PSelectorParser.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {type Token, tokenize, TOKENS, stringify} from 'parsel-js'; diff --git a/packages/puppeteer-core/src/injected/PierceQuerySelector.ts b/packages/puppeteer-core/src/injected/PierceQuerySelector.ts index d72d8913bb6..c224ee83249 100644 --- a/packages/puppeteer-core/src/injected/PierceQuerySelector.ts +++ b/packages/puppeteer-core/src/injected/PierceQuerySelector.ts @@ -1,16 +1,8 @@ -// Copyright 2022 Google Inc. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/** + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ /** * @internal diff --git a/packages/puppeteer-core/src/injected/Poller.ts b/packages/puppeteer-core/src/injected/Poller.ts index 518277df06d..68b9f1812ba 100644 --- a/packages/puppeteer-core/src/injected/Poller.ts +++ b/packages/puppeteer-core/src/injected/Poller.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {assert} from '../util/assert.js'; diff --git a/packages/puppeteer-core/src/injected/TextContent.ts b/packages/puppeteer-core/src/injected/TextContent.ts index 1916cf5c798..ffe8980d5e5 100644 --- a/packages/puppeteer-core/src/injected/TextContent.ts +++ b/packages/puppeteer-core/src/injected/TextContent.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ interface NonTrivialValueNode extends Node { diff --git a/packages/puppeteer-core/src/injected/TextQuerySelector.ts b/packages/puppeteer-core/src/injected/TextQuerySelector.ts index eebd59f6756..debc423ccf8 100644 --- a/packages/puppeteer-core/src/injected/TextQuerySelector.ts +++ b/packages/puppeteer-core/src/injected/TextQuerySelector.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/packages/puppeteer-core/src/injected/XPathQuerySelector.ts b/packages/puppeteer-core/src/injected/XPathQuerySelector.ts index 229299a60d4..039bfa5e541 100644 --- a/packages/puppeteer-core/src/injected/XPathQuerySelector.ts +++ b/packages/puppeteer-core/src/injected/XPathQuerySelector.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/injected/injected.ts b/packages/puppeteer-core/src/injected/injected.ts index f7408848378..e81d274290a 100644 --- a/packages/puppeteer-core/src/injected/injected.ts +++ b/packages/puppeteer-core/src/injected/injected.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {Deferred} from '../util/Deferred.js'; diff --git a/packages/puppeteer-core/src/node/ChromeLauncher.test.ts b/packages/puppeteer-core/src/node/ChromeLauncher.test.ts index b1f919905b0..9abd3697f7b 100644 --- a/packages/puppeteer-core/src/node/ChromeLauncher.test.ts +++ b/packages/puppeteer-core/src/node/ChromeLauncher.test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {describe, it} from 'node:test'; diff --git a/packages/puppeteer-core/src/node/ChromeLauncher.ts b/packages/puppeteer-core/src/node/ChromeLauncher.ts index 389b2ed6064..474469c0761 100644 --- a/packages/puppeteer-core/src/node/ChromeLauncher.ts +++ b/packages/puppeteer-core/src/node/ChromeLauncher.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {mkdtemp} from 'fs/promises'; diff --git a/packages/puppeteer-core/src/node/FirefoxLauncher.test.ts b/packages/puppeteer-core/src/node/FirefoxLauncher.test.ts index ec11967dec8..b0b1f812498 100644 --- a/packages/puppeteer-core/src/node/FirefoxLauncher.test.ts +++ b/packages/puppeteer-core/src/node/FirefoxLauncher.test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {describe, it} from 'node:test'; diff --git a/packages/puppeteer-core/src/node/FirefoxLauncher.ts b/packages/puppeteer-core/src/node/FirefoxLauncher.ts index f91f613fe74..695eae53e87 100644 --- a/packages/puppeteer-core/src/node/FirefoxLauncher.ts +++ b/packages/puppeteer-core/src/node/FirefoxLauncher.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/packages/puppeteer-core/src/node/LaunchOptions.ts b/packages/puppeteer-core/src/node/LaunchOptions.ts index 826b293c283..28e0b595df0 100644 --- a/packages/puppeteer-core/src/node/LaunchOptions.ts +++ b/packages/puppeteer-core/src/node/LaunchOptions.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {BrowserConnectOptions} from '../common/ConnectOptions.js'; diff --git a/packages/puppeteer-core/src/node/NodeWebSocketTransport.ts b/packages/puppeteer-core/src/node/NodeWebSocketTransport.ts index b8785f5dec3..f4ac592e4f1 100644 --- a/packages/puppeteer-core/src/node/NodeWebSocketTransport.ts +++ b/packages/puppeteer-core/src/node/NodeWebSocketTransport.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import NodeWebSocket from 'ws'; diff --git a/packages/puppeteer-core/src/node/PipeTransport.ts b/packages/puppeteer-core/src/node/PipeTransport.ts index b5ff6310c17..616f164d826 100644 --- a/packages/puppeteer-core/src/node/PipeTransport.ts +++ b/packages/puppeteer-core/src/node/PipeTransport.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ConnectionTransport} from '../common/ConnectionTransport.js'; import {EventSubscription} from '../common/EventEmitter.js'; diff --git a/packages/puppeteer-core/src/node/ProductLauncher.ts b/packages/puppeteer-core/src/node/ProductLauncher.ts index c6a238323d8..1d3cbe42574 100644 --- a/packages/puppeteer-core/src/node/ProductLauncher.ts +++ b/packages/puppeteer-core/src/node/ProductLauncher.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {existsSync} from 'fs'; import {tmpdir} from 'os'; diff --git a/packages/puppeteer-core/src/node/PuppeteerNode.ts b/packages/puppeteer-core/src/node/PuppeteerNode.ts index f6e3038e181..e50e09acdb4 100644 --- a/packages/puppeteer-core/src/node/PuppeteerNode.ts +++ b/packages/puppeteer-core/src/node/PuppeteerNode.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/packages/puppeteer-core/src/node/ScreenRecorder.ts b/packages/puppeteer-core/src/node/ScreenRecorder.ts index 761b5eb1846..556b156bee8 100644 --- a/packages/puppeteer-core/src/node/ScreenRecorder.ts +++ b/packages/puppeteer-core/src/node/ScreenRecorder.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ChildProcessWithoutNullStreams} from 'child_process'; diff --git a/packages/puppeteer-core/src/node/node.ts b/packages/puppeteer-core/src/node/node.ts index 687297a24aa..373449ec0fe 100644 --- a/packages/puppeteer-core/src/node/node.ts +++ b/packages/puppeteer-core/src/node/node.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export * from './ChromeLauncher.js'; diff --git a/packages/puppeteer-core/src/node/util/fs.ts b/packages/puppeteer-core/src/node/util/fs.ts index ae0419a91d4..d18c76d6dcf 100644 --- a/packages/puppeteer-core/src/node/util/fs.ts +++ b/packages/puppeteer-core/src/node/util/fs.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/packages/puppeteer-core/src/puppeteer-core.ts b/packages/puppeteer-core/src/puppeteer-core.ts index 58c5a4ed298..d19162b4a31 100644 --- a/packages/puppeteer-core/src/puppeteer-core.ts +++ b/packages/puppeteer-core/src/puppeteer-core.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export type {Protocol} from 'devtools-protocol'; diff --git a/packages/puppeteer-core/src/revisions.ts b/packages/puppeteer-core/src/revisions.ts index fd39a0a2d0c..7c7687e09d8 100644 --- a/packages/puppeteer-core/src/revisions.ts +++ b/packages/puppeteer-core/src/revisions.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/util/AsyncIterableUtil.ts b/packages/puppeteer-core/src/util/AsyncIterableUtil.ts index f83f33f335a..4d96d0cdf42 100644 --- a/packages/puppeteer-core/src/util/AsyncIterableUtil.ts +++ b/packages/puppeteer-core/src/util/AsyncIterableUtil.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {AwaitableIterable} from '../common/types.js'; diff --git a/packages/puppeteer-core/src/util/Deferred.test.ts b/packages/puppeteer-core/src/util/Deferred.test.ts index e5db7e243c1..b989e3a8883 100644 --- a/packages/puppeteer-core/src/util/Deferred.test.ts +++ b/packages/puppeteer-core/src/util/Deferred.test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {describe, it} from 'node:test'; diff --git a/packages/puppeteer-core/src/util/ErrorLike.ts b/packages/puppeteer-core/src/util/ErrorLike.ts index afe8acbd47d..d4ab3044ab0 100644 --- a/packages/puppeteer-core/src/util/ErrorLike.ts +++ b/packages/puppeteer-core/src/util/ErrorLike.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ProtocolError} from '../common/Errors.js'; diff --git a/packages/puppeteer-core/src/util/Function.test.ts b/packages/puppeteer-core/src/util/Function.test.ts index 93d3938cc1a..c6da4cdf279 100644 --- a/packages/puppeteer-core/src/util/Function.test.ts +++ b/packages/puppeteer-core/src/util/Function.test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {describe, it} from 'node:test'; diff --git a/packages/puppeteer-core/src/util/Function.ts b/packages/puppeteer-core/src/util/Function.ts index 325bb61d239..41db98830b4 100644 --- a/packages/puppeteer-core/src/util/Function.ts +++ b/packages/puppeteer-core/src/util/Function.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ const createdFunctions = new Map unknown>(); diff --git a/packages/puppeteer-core/src/util/assert.ts b/packages/puppeteer-core/src/util/assert.ts index bd8b10e7318..7800b3be40e 100644 --- a/packages/puppeteer-core/src/util/assert.ts +++ b/packages/puppeteer-core/src/util/assert.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/src/util/decorators.test.ts b/packages/puppeteer-core/src/util/decorators.test.ts index 27ab2a53174..4cdaf15d5b8 100644 --- a/packages/puppeteer-core/src/util/decorators.test.ts +++ b/packages/puppeteer-core/src/util/decorators.test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {describe, it} from 'node:test'; diff --git a/packages/puppeteer-core/src/util/decorators.ts b/packages/puppeteer-core/src/util/decorators.ts index f2c790847bf..3c6a706c2af 100644 --- a/packages/puppeteer-core/src/util/decorators.ts +++ b/packages/puppeteer-core/src/util/decorators.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {Disposed, Moveable} from '../common/types.js'; diff --git a/packages/puppeteer-core/src/util/disposable.ts b/packages/puppeteer-core/src/util/disposable.ts index ce6e97b394b..a1848f38609 100644 --- a/packages/puppeteer-core/src/util/disposable.ts +++ b/packages/puppeteer-core/src/util/disposable.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ declare global { diff --git a/packages/puppeteer-core/src/util/util.ts b/packages/puppeteer-core/src/util/util.ts index 3861d720d4e..e256b8077d2 100644 --- a/packages/puppeteer-core/src/util/util.ts +++ b/packages/puppeteer-core/src/util/util.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export * from './assert.js'; diff --git a/packages/puppeteer-core/third_party/mitt/mitt.ts b/packages/puppeteer-core/third_party/mitt/mitt.ts index b4833b79e4c..c20aaa83426 100644 --- a/packages/puppeteer-core/third_party/mitt/mitt.ts +++ b/packages/puppeteer-core/third_party/mitt/mitt.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export * from 'mitt'; diff --git a/packages/puppeteer-core/third_party/rxjs/rxjs.ts b/packages/puppeteer-core/third_party/rxjs/rxjs.ts index c8b693e4f65..07aaebed823 100644 --- a/packages/puppeteer-core/third_party/rxjs/rxjs.ts +++ b/packages/puppeteer-core/third_party/rxjs/rxjs.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export { bufferCount, diff --git a/packages/puppeteer-core/tools/ensure-correct-devtools-protocol-package.ts b/packages/puppeteer-core/tools/ensure-correct-devtools-protocol-package.ts index 6f17bf71cb4..ca230716b32 100644 --- a/packages/puppeteer-core/tools/ensure-correct-devtools-protocol-package.ts +++ b/packages/puppeteer-core/tools/ensure-correct-devtools-protocol-package.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer-core/tsdoc.json b/packages/puppeteer-core/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/packages/puppeteer-core/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/packages/puppeteer/install.mjs b/packages/puppeteer/install.mjs index f5833674afc..9265ebd9688 100755 --- a/packages/puppeteer/install.mjs +++ b/packages/puppeteer/install.mjs @@ -1,19 +1,9 @@ #!/usr/bin/env node /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/packages/puppeteer/src/getConfiguration.ts b/packages/puppeteer/src/getConfiguration.ts index 94b7cffce96..709fe5741ba 100644 --- a/packages/puppeteer/src/getConfiguration.ts +++ b/packages/puppeteer/src/getConfiguration.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {homedir} from 'os'; diff --git a/packages/puppeteer/src/node/cli.ts b/packages/puppeteer/src/node/cli.ts index d0520d7f8f2..c846cfeed8d 100644 --- a/packages/puppeteer/src/node/cli.ts +++ b/packages/puppeteer/src/node/cli.ts @@ -1,19 +1,9 @@ #!/usr/bin/env node /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {CLI, Browser} from '@puppeteer/browsers'; diff --git a/packages/puppeteer/src/node/install.ts b/packages/puppeteer/src/node/install.ts index 5a1a410d825..526148e2c86 100644 --- a/packages/puppeteer/src/node/install.ts +++ b/packages/puppeteer/src/node/install.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/packages/puppeteer/src/puppeteer.ts b/packages/puppeteer/src/puppeteer.ts index f1645eb6b80..4f4321bc6c3 100644 --- a/packages/puppeteer/src/puppeteer.ts +++ b/packages/puppeteer/src/puppeteer.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export type {Protocol} from 'puppeteer-core'; diff --git a/packages/puppeteer/tsdoc.json b/packages/puppeteer/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/packages/puppeteer/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/packages/testserver/src/index.ts b/packages/testserver/src/index.ts index 6301e746224..2618fd4d0de 100644 --- a/packages/testserver/src/index.ts +++ b/packages/testserver/src/index.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/packages/testserver/tsdoc.json b/packages/testserver/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/packages/testserver/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/test/installation/.mocharc.cjs b/test/installation/.mocharc.cjs index f84e852fd89..5a797716e06 100644 --- a/test/installation/.mocharc.cjs +++ b/test/installation/.mocharc.cjs @@ -1,16 +1,8 @@ -// Copyright 2022 Google Inc. All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +/** + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 + */ /** * @type {import('mocha').MochaOptions} diff --git a/test/installation/assets/puppeteer-core/imports.js b/test/installation/assets/puppeteer-core/imports.js index 0446da820a9..8f8fb329e7d 100644 --- a/test/installation/assets/puppeteer-core/imports.js +++ b/test/installation/assets/puppeteer-core/imports.js @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import 'puppeteer-core'; diff --git a/test/installation/assets/puppeteer-core/launch.js b/test/installation/assets/puppeteer-core/launch.js index c635de59c4a..4776d7e2611 100644 --- a/test/installation/assets/puppeteer-core/launch.js +++ b/test/installation/assets/puppeteer-core/launch.js @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import puppeteer from 'puppeteer-core'; diff --git a/test/installation/assets/puppeteer-core/requires.cjs b/test/installation/assets/puppeteer-core/requires.cjs index a82551b8d18..f4276f2589d 100644 --- a/test/installation/assets/puppeteer-core/requires.cjs +++ b/test/installation/assets/puppeteer-core/requires.cjs @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ require('puppeteer-core'); diff --git a/test/installation/assets/puppeteer/basic.js b/test/installation/assets/puppeteer/basic.js index 475adc52483..9e6ce241b2c 100644 --- a/test/installation/assets/puppeteer/basic.js +++ b/test/installation/assets/puppeteer/basic.js @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import puppeteer from 'puppeteer'; diff --git a/test/installation/assets/puppeteer/basic.ts b/test/installation/assets/puppeteer/basic.ts index 0d726331945..28396d0096c 100644 --- a/test/installation/assets/puppeteer/basic.ts +++ b/test/installation/assets/puppeteer/basic.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import puppeteer from 'puppeteer'; diff --git a/test/installation/assets/puppeteer/bidi.js b/test/installation/assets/puppeteer/bidi.js index e412a0f3c4e..3e1df936549 100644 --- a/test/installation/assets/puppeteer/bidi.js +++ b/test/installation/assets/puppeteer/bidi.js @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import puppeteer from 'puppeteer'; diff --git a/test/installation/assets/puppeteer/imports.js b/test/installation/assets/puppeteer/imports.js index 7416522ba31..cd742bafd52 100644 --- a/test/installation/assets/puppeteer/imports.js +++ b/test/installation/assets/puppeteer/imports.js @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import 'puppeteer'; diff --git a/test/installation/assets/puppeteer/installCanary.js b/test/installation/assets/puppeteer/installCanary.js index fb402cdf20b..39a0113de98 100644 --- a/test/installation/assets/puppeteer/installCanary.js +++ b/test/installation/assets/puppeteer/installCanary.js @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import { diff --git a/test/installation/assets/puppeteer/requires.cjs b/test/installation/assets/puppeteer/requires.cjs index e44f5aeabda..208eee90211 100644 --- a/test/installation/assets/puppeteer/requires.cjs +++ b/test/installation/assets/puppeteer/requires.cjs @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ require('puppeteer'); diff --git a/test/installation/assets/puppeteer/trimCache.js b/test/installation/assets/puppeteer/trimCache.js index 52090ff4d17..a810e2aac20 100644 --- a/test/installation/assets/puppeteer/trimCache.js +++ b/test/installation/assets/puppeteer/trimCache.js @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import puppeteer from 'puppeteer'; diff --git a/test/installation/assets/puppeteer/webpack/webpack.config.js b/test/installation/assets/puppeteer/webpack/webpack.config.js index 8986461686f..30de2a4890f 100644 --- a/test/installation/assets/puppeteer/webpack/webpack.config.js +++ b/test/installation/assets/puppeteer/webpack/webpack.config.js @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ export default { diff --git a/test/installation/src/browsers.spec.ts b/test/installation/src/browsers.spec.ts index ed274f07faf..0c917314554 100644 --- a/test/installation/src/browsers.spec.ts +++ b/test/installation/src/browsers.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/installation/src/constants.ts b/test/installation/src/constants.ts index 01262a18d3d..2b66b792d54 100644 --- a/test/installation/src/constants.ts +++ b/test/installation/src/constants.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {dirname, join, resolve} from 'path'; diff --git a/test/installation/src/puppeteer-cli.spec.ts b/test/installation/src/puppeteer-cli.spec.ts index c5815fc8d49..650cbc1832e 100644 --- a/test/installation/src/puppeteer-cli.spec.ts +++ b/test/installation/src/puppeteer-cli.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/installation/src/puppeteer-configuration.spec.ts b/test/installation/src/puppeteer-configuration.spec.ts index acabdd0c4a3..70d77bedd48 100644 --- a/test/installation/src/puppeteer-configuration.spec.ts +++ b/test/installation/src/puppeteer-configuration.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/installation/src/puppeteer-core.spec.ts b/test/installation/src/puppeteer-core.spec.ts index 03a57d5437a..9df19e1c853 100644 --- a/test/installation/src/puppeteer-core.spec.ts +++ b/test/installation/src/puppeteer-core.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {configureSandbox} from './sandbox.js'; diff --git a/test/installation/src/puppeteer-firefox.spec.ts b/test/installation/src/puppeteer-firefox.spec.ts index 9f7720bd729..b599af01dca 100644 --- a/test/installation/src/puppeteer-firefox.spec.ts +++ b/test/installation/src/puppeteer-firefox.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/installation/src/puppeteer-typescript.spec.ts b/test/installation/src/puppeteer-typescript.spec.ts index 1775bd289ec..fc8ff133fbd 100644 --- a/test/installation/src/puppeteer-typescript.spec.ts +++ b/test/installation/src/puppeteer-typescript.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {readFile, writeFile} from 'fs/promises'; diff --git a/test/installation/src/puppeteer-webpack.spec.ts b/test/installation/src/puppeteer-webpack.spec.ts index d0b97bf75f4..93902aec329 100644 --- a/test/installation/src/puppeteer-webpack.spec.ts +++ b/test/installation/src/puppeteer-webpack.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {readFile, rm, writeFile} from 'fs/promises'; diff --git a/test/installation/src/puppeteer.spec.ts b/test/installation/src/puppeteer.spec.ts index 64109251c8a..db78170f55d 100644 --- a/test/installation/src/puppeteer.spec.ts +++ b/test/installation/src/puppeteer.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/installation/src/sandbox.ts b/test/installation/src/sandbox.ts index c3ce41d37d1..fde30dfcf93 100644 --- a/test/installation/src/sandbox.ts +++ b/test/installation/src/sandbox.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import crypto from 'crypto'; import {mkdtemp, rm, writeFile} from 'fs/promises'; diff --git a/test/installation/src/util.ts b/test/installation/src/util.ts index 404691840ab..c975fd61e3e 100644 --- a/test/installation/src/util.ts +++ b/test/installation/src/util.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {execFile as execFileAsync} from 'child_process'; diff --git a/test/installation/tsdoc.json b/test/installation/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/test/installation/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/test/src/accessibility.spec.ts b/test/src/accessibility.spec.ts index 703a9f6d32a..09e9c90b967 100644 --- a/test/src/accessibility.spec.ts +++ b/test/src/accessibility.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/src/ariaqueryhandler.spec.ts b/test/src/ariaqueryhandler.spec.ts index cf401014c24..05a856bbd87 100644 --- a/test/src/ariaqueryhandler.spec.ts +++ b/test/src/ariaqueryhandler.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/src/autofill.spec.ts b/test/src/autofill.spec.ts index 848b9005a1b..a04e4b8e8b8 100644 --- a/test/src/autofill.spec.ts +++ b/test/src/autofill.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/browser.spec.ts b/test/src/browser.spec.ts index 5d53e9d5cb8..c0826bafc8b 100644 --- a/test/src/browser.spec.ts +++ b/test/src/browser.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/browsercontext.spec.ts b/test/src/browsercontext.spec.ts index 4da8adb8a2f..e8bc668c785 100644 --- a/test/src/browsercontext.spec.ts +++ b/test/src/browsercontext.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/cdp/CDPSession.spec.ts b/test/src/cdp/CDPSession.spec.ts index ad0aa1f0231..596f39248fe 100644 --- a/test/src/cdp/CDPSession.spec.ts +++ b/test/src/cdp/CDPSession.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/cdp/TargetManager.spec.ts b/test/src/cdp/TargetManager.spec.ts index 45a206581d2..d1f89925307 100644 --- a/test/src/cdp/TargetManager.spec.ts +++ b/test/src/cdp/TargetManager.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/cdp/bfcache.spec.ts b/test/src/cdp/bfcache.spec.ts index f13e2ffa681..211f93cd6b8 100644 --- a/test/src/cdp/bfcache.spec.ts +++ b/test/src/cdp/bfcache.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/cdp/prerender.spec.ts b/test/src/cdp/prerender.spec.ts index 5993a9462e2..4e0fb30da94 100644 --- a/test/src/cdp/prerender.spec.ts +++ b/test/src/cdp/prerender.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {statSync} from 'fs'; diff --git a/test/src/cdp/queryObjects.spec.ts b/test/src/cdp/queryObjects.spec.ts index 292df099dee..405303fb6bb 100644 --- a/test/src/cdp/queryObjects.spec.ts +++ b/test/src/cdp/queryObjects.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/chromiumonly.spec.ts b/test/src/chromiumonly.spec.ts index 38c1139dcbc..e0c41317aa9 100644 --- a/test/src/chromiumonly.spec.ts +++ b/test/src/chromiumonly.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2019 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2019 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {IncomingMessage} from 'http'; diff --git a/test/src/click.spec.ts b/test/src/click.spec.ts index 8379bb133dd..15f1869cd93 100644 --- a/test/src/click.spec.ts +++ b/test/src/click.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/cookies.spec.ts b/test/src/cookies.spec.ts index 5924f0cbd2c..f232831b722 100644 --- a/test/src/cookies.spec.ts +++ b/test/src/cookies.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/coverage.spec.ts b/test/src/coverage.spec.ts index 635d9c4cad1..6a95db541ca 100644 --- a/test/src/coverage.spec.ts +++ b/test/src/coverage.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/defaultbrowsercontext.spec.ts b/test/src/defaultbrowsercontext.spec.ts index 7bb60060c29..69a5a069afa 100644 --- a/test/src/defaultbrowsercontext.spec.ts +++ b/test/src/defaultbrowsercontext.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/device-request-prompt.spec.ts b/test/src/device-request-prompt.spec.ts index 38a96d1c5a1..e6e2cdd65ee 100644 --- a/test/src/device-request-prompt.spec.ts +++ b/test/src/device-request-prompt.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; import {TimeoutError} from 'puppeteer'; diff --git a/test/src/dialog.spec.ts b/test/src/dialog.spec.ts index e899ee54b58..e137ccf5178 100644 --- a/test/src/dialog.spec.ts +++ b/test/src/dialog.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; import sinon from 'sinon'; diff --git a/test/src/drag-and-drop.spec.ts b/test/src/drag-and-drop.spec.ts index 2a5b73222e0..cfe18b55a49 100644 --- a/test/src/drag-and-drop.spec.ts +++ b/test/src/drag-and-drop.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2021 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2021 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/src/elementhandle.spec.ts b/test/src/elementhandle.spec.ts index 3a8650a7a44..9aaf9142247 100644 --- a/test/src/elementhandle.spec.ts +++ b/test/src/elementhandle.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/emulation.spec.ts b/test/src/emulation.spec.ts index 3fd9a156c91..f29dc48844a 100644 --- a/test/src/emulation.spec.ts +++ b/test/src/emulation.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/evaluation.spec.ts b/test/src/evaluation.spec.ts index ab90f5e2152..f1ddf4dce22 100644 --- a/test/src/evaluation.spec.ts +++ b/test/src/evaluation.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/fixtures.spec.ts b/test/src/fixtures.spec.ts index 1e7d0ec07d1..ca11e94cace 100644 --- a/test/src/fixtures.spec.ts +++ b/test/src/fixtures.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2019 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2019 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {spawn, execSync} from 'child_process'; diff --git a/test/src/frame.spec.ts b/test/src/frame.spec.ts index d9ab4cdabc9..3b2456821af 100644 --- a/test/src/frame.spec.ts +++ b/test/src/frame.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/golden-utils.ts b/test/src/golden-utils.ts index 279daa2a350..939f69c968a 100644 --- a/test/src/golden-utils.ts +++ b/test/src/golden-utils.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; import fs from 'fs'; diff --git a/test/src/headful.spec.ts b/test/src/headful.spec.ts index f58ddded85f..a3a47c8f1e6 100644 --- a/test/src/headful.spec.ts +++ b/test/src/headful.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {mkdtemp} from 'fs/promises'; diff --git a/test/src/idle_override.spec.ts b/test/src/idle_override.spec.ts index 141b6480ecc..cbcfd34640d 100644 --- a/test/src/idle_override.spec.ts +++ b/test/src/idle_override.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/ignorehttpserrors.spec.ts b/test/src/ignorehttpserrors.spec.ts index 09d2e5946db..8fb557cb888 100644 --- a/test/src/ignorehttpserrors.spec.ts +++ b/test/src/ignorehttpserrors.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {TLSSocket} from 'tls'; diff --git a/test/src/injected.spec.ts b/test/src/injected.spec.ts index ed89b99ae4a..5f3696d3f6b 100644 --- a/test/src/injected.spec.ts +++ b/test/src/injected.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/input.spec.ts b/test/src/input.spec.ts index 0ed4a903d1a..7e4cae6709c 100644 --- a/test/src/input.spec.ts +++ b/test/src/input.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import path from 'path'; diff --git a/test/src/jshandle.spec.ts b/test/src/jshandle.spec.ts index 5bfff885b2f..28097811e41 100644 --- a/test/src/jshandle.spec.ts +++ b/test/src/jshandle.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/keyboard.spec.ts b/test/src/keyboard.spec.ts index 2fe75df2beb..9157465242c 100644 --- a/test/src/keyboard.spec.ts +++ b/test/src/keyboard.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import os from 'os'; diff --git a/test/src/launcher.spec.ts b/test/src/launcher.spec.ts index d26697cc916..c0a8ae17435 100644 --- a/test/src/launcher.spec.ts +++ b/test/src/launcher.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; import fs from 'fs'; diff --git a/test/src/locator.spec.ts b/test/src/locator.spec.ts index 3502399505c..9b00cc2d7cf 100644 --- a/test/src/locator.spec.ts +++ b/test/src/locator.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/mocha-utils.ts b/test/src/mocha-utils.ts index 474fa3669b2..5659ab7fe5d 100644 --- a/test/src/mocha-utils.ts +++ b/test/src/mocha-utils.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/test/src/mouse.spec.ts b/test/src/mouse.spec.ts index a5d447c484b..69229eb1471 100644 --- a/test/src/mouse.spec.ts +++ b/test/src/mouse.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import os from 'os'; diff --git a/test/src/navigation.spec.ts b/test/src/navigation.spec.ts index d2fdaa50482..1f3a51f58af 100644 --- a/test/src/navigation.spec.ts +++ b/test/src/navigation.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ServerResponse} from 'http'; diff --git a/test/src/network.spec.ts b/test/src/network.spec.ts index dbc1591c899..b381aa3124a 100644 --- a/test/src/network.spec.ts +++ b/test/src/network.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/test/src/oopif.spec.ts b/test/src/oopif.spec.ts index f783edbd06c..ddb98a6b33c 100644 --- a/test/src/oopif.spec.ts +++ b/test/src/oopif.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/page.spec.ts b/test/src/page.spec.ts index e1ac64ca31a..dc6c11f19f0 100644 --- a/test/src/page.spec.ts +++ b/test/src/page.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; import fs from 'fs'; diff --git a/test/src/proxy.spec.ts b/test/src/proxy.spec.ts index b865d1d3261..07b73cdd0db 100644 --- a/test/src/proxy.spec.ts +++ b/test/src/proxy.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2021 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2021 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {IncomingMessage, Server, ServerResponse} from 'http'; diff --git a/test/src/queryhandler.spec.ts b/test/src/queryhandler.spec.ts index af118582f53..05f201a9be0 100644 --- a/test/src/queryhandler.spec.ts +++ b/test/src/queryhandler.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/src/queryselector.spec.ts b/test/src/queryselector.spec.ts index 9f7b4dcad1d..7fd27f914f0 100644 --- a/test/src/queryselector.spec.ts +++ b/test/src/queryselector.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; import {Puppeteer} from 'puppeteer'; diff --git a/test/src/requestinterception-experimental.spec.ts b/test/src/requestinterception-experimental.spec.ts index 090b5fafc04..d85de4d4d69 100644 --- a/test/src/requestinterception-experimental.spec.ts +++ b/test/src/requestinterception-experimental.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2021 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2021 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/test/src/requestinterception.spec.ts b/test/src/requestinterception.spec.ts index 088ceb21729..45827bb3cfd 100644 --- a/test/src/requestinterception.spec.ts +++ b/test/src/requestinterception.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/test/src/screencast.spec.ts b/test/src/screencast.spec.ts index 0f7e787f62e..b645f55da7a 100644 --- a/test/src/screencast.spec.ts +++ b/test/src/screencast.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {statSync} from 'fs'; diff --git a/test/src/screenshot.spec.ts b/test/src/screenshot.spec.ts index b2fcb93c23a..239c9040bf7 100644 --- a/test/src/screenshot.spec.ts +++ b/test/src/screenshot.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/src/stacktrace.spec.ts b/test/src/stacktrace.spec.ts index d3e0a0579c9..b36ee566612 100644 --- a/test/src/stacktrace.spec.ts +++ b/test/src/stacktrace.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'assert'; diff --git a/test/src/target.spec.ts b/test/src/target.spec.ts index a8824de2185..28d17a4030f 100644 --- a/test/src/target.spec.ts +++ b/test/src/target.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import type {ServerResponse} from 'http'; diff --git a/test/src/touchscreen.spec.ts b/test/src/touchscreen.spec.ts index 708b795912a..28a18ec4490 100644 --- a/test/src/touchscreen.spec.ts +++ b/test/src/touchscreen.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/tracing.spec.ts b/test/src/tracing.spec.ts index 9504335d2b7..2c0a5aff192 100644 --- a/test/src/tracing.spec.ts +++ b/test/src/tracing.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/test/src/utils.ts b/test/src/utils.ts index 7e786d15da8..f2037e0f074 100644 --- a/test/src/utils.ts +++ b/test/src/utils.ts @@ -1,17 +1,7 @@ /** - * Copyright 2017 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2017 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {rm} from 'fs/promises'; diff --git a/test/src/waittask.spec.ts b/test/src/waittask.spec.ts index 2ea379c3ecc..8ff52db16fc 100644 --- a/test/src/waittask.spec.ts +++ b/test/src/waittask.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2018 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2018 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/src/worker.spec.ts b/test/src/worker.spec.ts index 24208bbc605..254ff4a5146 100644 --- a/test/src/worker.spec.ts +++ b/test/src/worker.spec.ts @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import expect from 'expect'; diff --git a/test/tsdoc.json b/test/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/test/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/tools/chmod.ts b/tools/chmod.ts index 9ad2c66de50..da15b64fae5 100644 --- a/tools/chmod.ts +++ b/tools/chmod.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/tools/cp.ts b/tools/cp.ts index 438c6ccd547..2915389e195 100644 --- a/tools/cp.ts +++ b/tools/cp.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/tools/docgen/src/custom_markdown_documenter.ts b/tools/docgen/src/custom_markdown_documenter.ts index ab919414ccc..d63a8b96efa 100644 --- a/tools/docgen/src/custom_markdown_documenter.ts +++ b/tools/docgen/src/custom_markdown_documenter.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the diff --git a/tools/docgen/src/docgen.ts b/tools/docgen/src/docgen.ts index 9df03717398..c7bafdab3d8 100644 --- a/tools/docgen/src/docgen.ts +++ b/tools/docgen/src/docgen.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {ApiModel} from '@microsoft/api-extractor-model'; diff --git a/tools/docgen/tsdoc.json b/tools/docgen/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/tools/docgen/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/tools/doctest/src/doctest.ts b/tools/doctest/src/doctest.ts index e78cbf2fde2..34349ef7664 100644 --- a/tools/doctest/src/doctest.ts +++ b/tools/doctest/src/doctest.ts @@ -1,19 +1,9 @@ #! /usr/bin/env -S node --test-reporter spec /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /** diff --git a/tools/doctest/tsdoc.json b/tools/doctest/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/tools/doctest/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/tools/download_chrome_bidi.mjs b/tools/download_chrome_bidi.mjs index daa91ff56bd..9a1f0121c3c 100644 --- a/tools/download_chrome_bidi.mjs +++ b/tools/download_chrome_bidi.mjs @@ -1,22 +1,11 @@ -/* eslint-disable no-console */ - /** - * Copyright 2023 Google LLC. - * Copyright (c) Microsoft Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ +/* eslint-disable no-console */ + /** * @fileoverview Installs a browser defined in `.browser` for Chromium-BiDi using * `@puppeteer/browsers` to the directory provided as the first argument diff --git a/tools/ensure-pinned-deps.ts b/tools/ensure-pinned-deps.ts index aa85bb689c0..eb21fc647b6 100644 --- a/tools/ensure-pinned-deps.ts +++ b/tools/ensure-pinned-deps.ts @@ -1,17 +1,7 @@ /** - * Copyright 2021 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2021 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {readdirSync, readFileSync} from 'fs'; diff --git a/tools/eslint/src/extensions.ts b/tools/eslint/src/extensions.ts index 68f236983f3..89b92796258 100644 --- a/tools/eslint/src/extensions.ts +++ b/tools/eslint/src/extensions.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {ESLintUtils} from '@typescript-eslint/utils'; diff --git a/tools/eslint/src/prettier-comments.js b/tools/eslint/src/prettier-comments.js index b024d714118..3cbaad2909d 100644 --- a/tools/eslint/src/prettier-comments.js +++ b/tools/eslint/src/prettier-comments.js @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ // @ts-nocheck diff --git a/tools/eslint/src/use-using.ts b/tools/eslint/src/use-using.ts index 386f3d868ca..0c727a43343 100644 --- a/tools/eslint/src/use-using.ts +++ b/tools/eslint/src/use-using.ts @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {ESLintUtils, TSESTree} from '@typescript-eslint/utils'; diff --git a/tools/eslint/tsdoc.json b/tools/eslint/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/tools/eslint/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/tools/generate_module_package_json.ts b/tools/generate_module_package_json.ts index cced7951b91..f13672e9d3d 100644 --- a/tools/generate_module_package_json.ts +++ b/tools/generate_module_package_json.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {mkdirSync, writeFileSync} from 'fs'; diff --git a/tools/get_deprecated_version_range.js b/tools/get_deprecated_version_range.js index 495a8843c66..bac40e36773 100644 --- a/tools/get_deprecated_version_range.js +++ b/tools/get_deprecated_version_range.js @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ const { diff --git a/tools/mocha-runner/src/interface.ts b/tools/mocha-runner/src/interface.ts index 476c5138117..fe0f7e18b56 100644 --- a/tools/mocha-runner/src/interface.ts +++ b/tools/mocha-runner/src/interface.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import Mocha from 'mocha'; diff --git a/tools/mocha-runner/src/mocha-runner.ts b/tools/mocha-runner/src/mocha-runner.ts index bba489b537a..114cfdeb250 100644 --- a/tools/mocha-runner/src/mocha-runner.ts +++ b/tools/mocha-runner/src/mocha-runner.ts @@ -1,19 +1,9 @@ #! /usr/bin/env -S node /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {randomUUID} from 'crypto'; diff --git a/tools/mocha-runner/src/reporter.ts b/tools/mocha-runner/src/reporter.ts index 37ca5862153..7acd5319feb 100644 --- a/tools/mocha-runner/src/reporter.ts +++ b/tools/mocha-runner/src/reporter.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import Mocha from 'mocha'; diff --git a/tools/mocha-runner/src/test.ts b/tools/mocha-runner/src/test.ts index e31c6c4a140..1ddd5475355 100644 --- a/tools/mocha-runner/src/test.ts +++ b/tools/mocha-runner/src/test.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import assert from 'node:assert/strict'; import {describe, it} from 'node:test'; diff --git a/tools/mocha-runner/src/types.ts b/tools/mocha-runner/src/types.ts index 2a1ea03dd6b..01dc4d6be61 100644 --- a/tools/mocha-runner/src/types.ts +++ b/tools/mocha-runner/src/types.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {z} from 'zod'; diff --git a/tools/mocha-runner/src/utils.ts b/tools/mocha-runner/src/utils.ts index f78e02140e8..e60dae3166c 100644 --- a/tools/mocha-runner/src/utils.ts +++ b/tools/mocha-runner/src/utils.ts @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import fs from 'fs'; diff --git a/tools/mocha-runner/tsdoc.json b/tools/mocha-runner/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/tools/mocha-runner/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/tools/sort-test-expectations.mjs b/tools/sort-test-expectations.mjs index 6e89211e2ad..d1c8588d8a2 100644 --- a/tools/sort-test-expectations.mjs +++ b/tools/sort-test-expectations.mjs @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ // TODO: this could be an eslint rule probably. diff --git a/tools/tsdoc.json b/tools/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/tools/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/tools/update_chrome_revision.mjs b/tools/update_chrome_revision.mjs index 0d0429742f1..6e8580a1de2 100644 --- a/tools/update_chrome_revision.mjs +++ b/tools/update_chrome_revision.mjs @@ -1,17 +1,7 @@ /** - * Copyright 2023 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2023 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ import {execSync, exec} from 'child_process'; diff --git a/tsdoc.json b/tsdoc.json new file mode 100644 index 00000000000..f5b91f4af69 --- /dev/null +++ b/tsdoc.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + + "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "modifier", + "allowMultiple": false + } + ], + "supportForTags": { + "@license": true + } +} diff --git a/versions.js b/versions.js index 5e34631a321..bc2357c1a8d 100644 --- a/versions.js +++ b/versions.js @@ -1,17 +1,7 @@ /** - * Copyright 2020 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2020 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ const versionsPerRelease = new Map([ diff --git a/website/babel.config.js b/website/babel.config.js index 960fd4dddd1..39e2c7e5483 100644 --- a/website/babel.config.js +++ b/website/babel.config.js @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ module.exports = { diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index eb1c0f8ec6f..0625f1de0e3 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ // @ts-check diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 3a8b4f9eaab..133b6a8c02c 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -1,17 +1,7 @@ /** - * Copyright 2022 Google Inc. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @license + * Copyright 2022 Google Inc. + * SPDX-License-Identifier: Apache-2.0 */ /* You can override the default Infima variables here. */