diff --git a/.eslintrc.js b/.eslintrc.js index 0d054ee35021d..91f9b8abedd5e 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 15f7718a50664..79c6c3bf65ece 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 cedf33e999b1e..960bca34eed87 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 a8631abc54f63..6ed79f9ced107 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 9f7ac92e0a1f5..e97cc53cdb41a 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 5490822b8b27b..e41d0d8cd1049 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 95f469eb7f0e0..cbc3d5e7826d3 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 7d54806c4c7b2..85c8462cb53da 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 df0abc213bfab..7c2a081808eaf 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 5df3e08ada29e..255f5545b4849 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 babb4b9caf487..13b465835a61b 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 9a91216f77afe..67bb4990b2f48 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 cb5b48fad88a5..b1c6178de8193 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 30df67683066b..c6329255c37fc 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 0518d2eed0e82..290598d0d760d 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 4215d34127fe3..09cfc987a8c44 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 69cc7a9be7406..ccc30fa1b50f2 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 d13b39c234d65..ac72661a2d2db 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 eee0a347e8e9f..491097f41d6eb 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 fed8c2e2ea665..df644c38b7a1b 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 6139accd49c75..50a68978537d1 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 efbf57ad45efe..96f7fc9f36533 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 bf71ec28dbc16..375c75babc1c4 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 350532423317e..dfb0fbf633924 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 a086c1c3b9767..9919a4dfb7105 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 e5501d08f593d..df93de530dca0 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 751ee427a40ce..65008b5edb3f5 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 a514628e3a6a2..445d0f700e576 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 6270887171e1e..88f9fae7fc3a9 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 ef06380f4424c..510afa84540ff 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 a9a08c9d6218d..bdda9d9aa94a8 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 f20ceabb15edb..8103ff3612d56 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 cef690a6bba88..983b6d1e47e04 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 0b2cf4e8bedc3..62522d88f4aab 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 d2d10a04e317b..d407062a881a0 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 6270887171e1e..88f9fae7fc3a9 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 0f5c2d2256764..601efccc4745d 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 7fade9e52deb1..abaef10c0e138 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 ce44810f87adc..134b432641a76 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 cad4ef5fa394e..d0bb056090b3e 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 29d5974c73b15..1bada43729742 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 88388d8d6d89c..69372f5ba3931 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 0000000000000..f5b91f4af69b1 --- /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 584b08771f0d2..0ef8a20fdeb86 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 9afb1bb76312a..d68a054169fb8 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 7955bc5726fbe..3e13b8fc61779 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 1d42f158b646d..477137dcd9c00 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 974358df33afb..5807d146ebb62 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 0000000000000..f5b91f4af69b1 --- /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 95aec7c157a4d..6258a955c01b4 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 d64986d5e9d5b..8ca620591fb28 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 5dc40d6808ec6..6e2c2b5d4fd01 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 4031f237286eb..aa0ddb541d235 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 349406fbaf5fc..551ff1ed1debd 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 50b5fd11fadd1..2b9b29b319f93 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 3380d264f5845..c2e1c2f2c736f 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 63809b123c5fa..60540f1226ebd 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 f64ec05cf2b27..2bd88f229ac82 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 0000000000000..f5b91f4af69b1 --- /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 f0aa06680ce6f..b5dc47639d0e9 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 02be7be7802c7..79335eb9eda43 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 48a7dfd4ea44e..ff70eec488187 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 12aca3e67ae0a..4a27cc55d2102 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 4bf8a4721b91d..6e5087b773ee9 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 fd337c158bf80..c5a8d73d00ee2 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 fd8afce2325e3..28c8243c45a09 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 cf0d043e6ec21..3c952371eef35 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 e82bc261476bc..906479eb43aa4 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 22b9a7cfe501b..6b41ca8fe1fc3 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 1ef8021edf35b..52ca7fe8f88a9 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 da3e66b80bb3f..b7664c4cfe664 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 beaa81edab620..eee1f2c1dd929 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 67d664dadab66..f91b91df12ff3 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 ba9d87145695c..4de287f146c30 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 7f82c1f1c1ea8..d2bf832a6d915 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 2faae1189e3dd..7626a0017b2c1 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 379a2403b06b6..9cb2270e3e0fc 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 1911bbdeed717..7a148f022e491 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 95f2d6b737ac3..66531a7a6f646 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 eb932a930826c..4f0ad5e4080ab 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 e92e52aaa0a47..9f37e38661e2e 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 f695c983c8d8a..0284d1af65a58 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 2a00e9043eb94..14b87d403be96 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 7e862b9aad907..4bf741cc4eafc 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 fb0d03e05967b..fd886e8c2620b 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 5006ff9c928cf..de95695785684 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 6ca9f556c6c43..d385ffedbb0b9 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 36e39bb1c566b..b89904873003f 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 92856905d0ddd..57cb801b8c299 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 dd0368197a07c..ce28820a65f7a 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 8b52cf5797df4..5406556d64221 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 9155d9ae5b82c..71046015533cc 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 982657ac6f455..2caaf0ad50214 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 6e972b8f48cbc..b45aec691f4de 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 a2780ebe16dfe..4411b3dbcd1ea 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 077f3e025b34e..c147ec9281680 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 694074cbfb609..5823e1012cb93 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 8d5b787ee4366..373d6d999c6d3 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 f28b6c2f76b76..73b86cba9c2f4 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 be15436416b44..c799f21d0c42d 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 bd7382a15f058..d0279e3ddad08 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 8e91566fd2f9a..2286723758c80 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 601ab4925a434..ea7e8b8291542 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 e48b8a78c0172..ef4aebe7473ac 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 aed38a606cc6c..324d092a5522b 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 87ab9242e22fa..7fd6cac59dcf5 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 c725edfb6eb54..0a11cf4ead951 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 4c115970edbd6..db995fb45b642 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 7ffb7ee053fd7..7d75e97eaf590 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 34505eff68f2f..f5bd73bf72e4e 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 ebdd729bdea83..77ea8aa4506eb 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 b044d0a1f4db6..a47d546a87714 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 52a5cbc5106df..8598967fe73e5 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 c87b6a5efcca0..59fdd8870e49f 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 0b4c7e0dc08ab..631610cf9e0a5 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 cf6270325bd38..844120d7ffa58 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 28d107b700624..48ed9ac2f5e7d 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 f61402e79d0c1..645dd86d71753 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 f7510c866cd85..7ee1b86b5fa47 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 92d39e0fa421d..029e77470b4fb 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 471b9ef1f2af1..2b2264ffd4670 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 4e0f0b7bf54f1..9bfafddcf3d5e 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 56db86171ef05..c944d79dfa8f3 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 bf6ee30b11285..ddb6c2381d678 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 f1db31d3f5f36..6cde1e4297028 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 798d57bc15d2a..a4f5aaa468784 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 494835b8426b8..2aadd21d25949 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 67cced584d672..c3e9a8f609e89 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 db840ecdd5cef..8b24b9a748b85 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 a233688b29c06..5fc819a39e75c 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 447689e369260..df035ae52b28c 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 37ef07e4a2096..8509c0984b2c1 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 64935efae4ccb..248f63539d827 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 c700fe29afda2..22eae9a5d4b16 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 c4a25eebb051f..552e8a6cf5c71 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 1a78ada9f53d8..a39952cb0859e 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 c9a2bdc953493..217e53bedd9cd 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 0829ab4e62bfe..cc0f81cb06458 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 0c4ef5366045f..fc8b18a5cbf99 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 a6f9619f0d2ce..9a677aa02f764 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 71b6e032583f4..ce465851623f9 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 753379fd569bd..ff36a2557ac3d 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 34ed72fa214fb..85d2db9f753e8 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 527c6585da023..33e5f889c1b3f 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 a7ce6fb80cb6e..06ac9f58f9c77 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 cd041343cfabe..dbf5c13c95ca9 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 1ec136e8ccb47..8225d64f070c3 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 ec70e540ac19e..c6b58bd4da700 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 802e55e81dde3..9a39cc0a8484a 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 1bced69c6e1de..2e4fd14fa7b1a 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 3c1de3d9c105f..1d8bb01414625 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 44c72af104598..c88003ed71561 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 4829c4d6cb296..ed30281dd806e 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 e98f0e961553d..eae26252d1d43 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 29326e61c09da..33d4a494e2401 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 0d576b60e980f..db9b832d7765d 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 941f762c82eb2..36ddbe7f3ec3f 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 58a62fad3e225..dcd75aceb6bdc 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 7a712a965d9ec..844a3622bd0e1 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 7ce1f1fb09386..1655c7dba2c24 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 d4c89ed511a11..188eeea9ad3d7 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 97cfe7c769c6f..3ad1409c1b271 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 39f7035241d94..450ed069575f0 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 97acc70147871..7789d89b754dc 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 f6a042e5cea59..0a6d2f2e18ab8 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 9f53759faa7c2..46a937a88f137 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 ad50fce89c47d..d0c1e2a038986 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 6b0d2f44f9480..b6e3a67baddf2 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 2fa52d8235e25..6ef89256054f0 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 5f13a352885fe..6c7a2b451c10c 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 7fc6e6c1d1a45..9dab58cfdb7c3 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 28ea5a2ef9036..1339514835223 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 80258c67fedd9..828752729e103 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 90168e2dd21b4..972b6a6c642f2 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 41bb1a84089cd..ccd041deea556 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 597cbe8b93657..11499c072f388 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 cea099240a06a..8044562348c5d 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 d72d8913bb6fe..c224ee8324964 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 518277df06d60..68b9f1812ba11 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 1916cf5c7983c..ffe8980d5e5f3 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 eebd59f675678..debc423ccf850 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 229299a60d442..039bfa5e54181 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 f740884837853..e81d274290a34 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 b1f919905b093..9abd3697f7bd7 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 389b2ed60647d..474469c076109 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 ec11967dec830..b0b1f812498af 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 f91f613fe74d9..695eae53e8715 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 826b293c283dd..28e0b595df0ab 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 b8785f5dec30c..f4ac592e4f166 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 b5ff6310c174a..616f164d826f0 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 c6a238323d894..1d3cbe4257435 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 f6e3038e18159..e50e09acdb46f 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 761b5eb18462e..556b156bee8a6 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 687297a24aa4a..373449ec0fe13 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 ae0419a91d45d..d18c76d6dcfc8 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 58c5a4ed298e7..d19162b4a31ff 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 fd39a0a2d0c3f..7c7687e09d89d 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 f83f33f335a8c..4d96d0cdf4251 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 e5db7e243c133..b989e3a88839c 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 afe8acbd47daf..d4ab3044ab027 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 93d3938cc1a17..c6da4cdf27919 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 325bb61d239b1..41db98830b4c4 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 bd8b10e731829..7800b3be40e06 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 27ab2a5317402..4cdaf15d5b807 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 f2c790847bf26..3c6a706c2afca 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 ce6e97b394bed..a1848f38609ce 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 3861d720d4e17..e256b8077d2fa 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 b4833b79e4cb2..c20aaa83426e9 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 c8b693e4f653c..07aaebed82315 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 6f17bf71cb401..ca230716b32ef 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 0000000000000..f5b91f4af69b1 --- /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 f5833674afc4a..9265ebd968838 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 94b7cffce9643..709fe5741ba46 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 d0520d7f8f28b..c846cfeed8d96 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 5a1a410d82519..526148e2c8678 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 f1645eb6b8055..4f4321bc6c358 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 0000000000000..f5b91f4af69b1 --- /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 6301e7462248b..2618fd4d0de64 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 0000000000000..f5b91f4af69b1 --- /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 f84e852fd890a..5a797716e0650 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 0446da820a91e..8f8fb329e7df4 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 c635de59c4ad0..4776d7e2611e3 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 a82551b8d186f..f4276f2589d08 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 475adc524831e..9e6ce241b2cab 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 0d7263319451f..28396d0096c44 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 e412a0f3c4e79..3e1df93654997 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 7416522ba318f..cd742bafd5220 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 fb402cdf20bd2..39a0113de98ce 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 e44f5aeabdad2..208eee90211b7 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 52090ff4d1745..a810e2aac20cd 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 8986461686fad..30de2a4890f79 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 ed274f07faffa..0c917314554be 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 01262a18d3daf..2b66b792d54bf 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 c5815fc8d4939..650cbc1832e50 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 acabdd0c4a3fe..70d77bedd4847 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 03a57d5437aed..9df19e1c8534b 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 9f7720bd729b4..b599af01dca89 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 1775bd289ec47..fc8ff133fbd94 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 d0b97bf75f4e8..93902aec329ae 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 64109251c8ae4..db78170f55d95 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 c3ce41d37d1e0..fde30dfcf9359 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 404691840ab12..c975fd61e3ecd 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 0000000000000..f5b91f4af69b1 --- /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 703a9f6d32ac8..09e9c90b967a6 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 cf401014c2476..05a856bbd874f 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 848b9005a1be3..a04e4b8e8b821 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 5d53e9d5cb8af..c0826bafc8b5e 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 4da8adb8a2f8a..e8bc668c7852b 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 ad0aa1f0231c4..596f39248feda 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 45a206581d2ca..d1f899253071a 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 f13e2ffa6813d..211f93cd6b832 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 5993a9462e20e..4e0fb30da94ea 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 292df099dee50..405303fb6bb49 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 38c1139dcbc64..e0c41317aa9c3 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 8379bb133dd20..15f1869cd93c8 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 5924f0cbd2c82..f232831b722e5 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 635d9c4cad1bc..6a95db541cae9 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 7bb60060c2950..69a5a069afab0 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 38a96d1c5a1bc..e6e2cdd65ee14 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 e899ee54b586c..e137ccf517838 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 2a5b73222e00d..cfe18b55a4949 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 3a8650a7a44ae..9aaf9142247b0 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 3fd9a156c9100..f29dc48844ae1 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 ab90f5e2152a2..f1ddf4dce2257 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 1e7d0ec07d18d..ca11e94cacee3 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 d9ab4cdabc9fa..3b2456821aff3 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 279daa2a350fa..939f69c968a07 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 f58ddded85f8a..a3a47c8f1e6a1 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 141b6480ecc99..cbcfd34640d8c 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 09d2e5946db71..8fb557cb88811 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 ed89b99ae4a6c..5f3696d3f6be0 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 0ed4a903d1a99..7e4cae6709ca5 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 5bfff885b2fd5..28097811e41ca 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 2fe75df2beb65..9157465242c52 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 d26697cc9169e..c0a8ae174354b 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 3502399505ca1..9b00cc2d7cf1d 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 474fa3669b27d..5659ab7fe5d30 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 a5d447c484b26..69229eb1471e8 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 d2fdaa5048279..1f3a51f58afe4 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 dbc1591c899a7..b381aa3124a9f 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 f783edbd06cb0..ddb98a6b33c4e 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 e1ac64ca31aa4..dc6c11f19f061 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 b865d1d3261b9..07b73cdd0db54 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 af118582f5312..05f201a9be02c 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 9f7b4dcad1d3b..7fd27f914f0a5 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 090b5fafc0448..d85de4d4d6921 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 088ceb2172920..45827bb3cfd2b 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 0f7e787f62e59..b645f55da7ac0 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 b2fcb93c23a80..239c9040bf7ad 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 d3e0a0579c9c4..b36ee56661206 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 a8824de218539..28d17a4030f32 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 708b795912a17..28a18ec44902b 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 9504335d2b741..2c0a5aff1927a 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 7e786d15da8f5..f2037e0f07408 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 2ea379c3ecc91..8ff52db16fc9a 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 24208bbc60507..254ff4a51465c 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 0000000000000..f5b91f4af69b1 --- /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 9ad2c66de5082..da15b64fae5a8 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 438c6ccd547fa..2915389e195fa 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 ab919414cccf8..d63a8b96efa9c 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 9df0371739839..c7bafdab3d865 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 0000000000000..f5b91f4af69b1 --- /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 e78cbf2fde2e6..34349ef76649a 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 0000000000000..f5b91f4af69b1 --- /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 daa91ff56bd49..9a1f0121c3c5e 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 aa85bb689c010..eb21fc647b606 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 68f236983f352..89b9279625825 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 b024d7141186d..3cbaad2909de6 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 386f3d868cabe..0c727a4334349 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 0000000000000..f5b91f4af69b1 --- /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 cced7951b911d..f13672e9d3d70 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 495a8843c6653..bac40e3677361 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 476c513811756..fe0f7e18b560f 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 bba489b537ad1..114cfdeb25094 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 37ca58621532b..7acd5319febe2 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 e31c6c4a140ff..1ddd547535572 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 2a1ea03dd6b8c..01dc4d6be613a 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 f78e02140e88b..e60dae3166ce5 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 0000000000000..f5b91f4af69b1 --- /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 6e89211e2ad17..d1c8588d8a240 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 0000000000000..f5b91f4af69b1 --- /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 0d0429742f17b..6e8580a1de257 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 0000000000000..f5b91f4af69b1 --- /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 5e34631a321b4..bc2357c1a8d77 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 960fd4dddd123..39e2c7e5483d1 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 eb1c0f8ec6fd0..0625f1de0e3ea 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 3a8b4f9eaab63..133b6a8c02c84 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. */