From 91785d97f334a147ad13b3115582950a8ebc59b1 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 28 Jul 2017 01:09:26 -0700 Subject: [PATCH] Add missing LICENSE headers to the source files This patch: - adds missing LICENSE headers to the source files - set's puppeteer version to 0.1.0 - set's repository field in package.json --- package-lock.json | 2 +- package.json | 3 ++- test/frame-utils.js | 16 ++++++++++++++++ utils/doclint/Documentation.js | 16 ++++++++++++++++ utils/doclint/JSBuilder.js | 16 ++++++++++++++++ utils/doclint/MDBuilder.js | 16 ++++++++++++++++ utils/doclint/cli.js | 15 +++++++++++++++ utils/doclint/lint.js | 16 ++++++++++++++++ utils/doclint/test/test.js | 16 ++++++++++++++++ 9 files changed, 114 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8cc1c15c..9bd5af1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "puppeteer", - "version": "0.0.1", + "version": "0.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3798cf0f..1fc5b2d8 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "puppeteer", - "version": "0.0.1", + "version": "0.1.0", "description": "", "main": "index.js", + "repository": "github:GoogleChrome/puppeteer", "engines": { "node": ">=7.10.0" }, diff --git a/test/frame-utils.js b/test/frame-utils.js index ee2064b3..e6d947ff 100644 --- a/test/frame-utils.js +++ b/test/frame-utils.js @@ -1,3 +1,19 @@ +/** + * 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. + */ + const utils = module.exports = { /** * @param {!Page} page diff --git a/utils/doclint/Documentation.js b/utils/doclint/Documentation.js index c20672ed..eb6ed731 100644 --- a/utils/doclint/Documentation.js +++ b/utils/doclint/Documentation.js @@ -1,3 +1,19 @@ +/** + * 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. + */ + class Documentation { /** * @param {!Array} clasesArray diff --git a/utils/doclint/JSBuilder.js b/utils/doclint/JSBuilder.js index d5ea17cb..7da17a1d 100644 --- a/utils/doclint/JSBuilder.js +++ b/utils/doclint/JSBuilder.js @@ -1,3 +1,19 @@ +/** + * 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. + */ + const fs = require('fs'); const path = require('path'); const esprima = require('esprima'); diff --git a/utils/doclint/MDBuilder.js b/utils/doclint/MDBuilder.js index 5a8ff473..04ac88b6 100644 --- a/utils/doclint/MDBuilder.js +++ b/utils/doclint/MDBuilder.js @@ -1,3 +1,19 @@ +/** + * 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. + */ + const fs = require('fs'); const path = require('path'); const Documentation = require('./Documentation'); diff --git a/utils/doclint/cli.js b/utils/doclint/cli.js index c7aae289..27ea8efc 100755 --- a/utils/doclint/cli.js +++ b/utils/doclint/cli.js @@ -1,4 +1,19 @@ #!/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. + */ const Browser = require('../../lib/Browser'); const path = require('path'); diff --git a/utils/doclint/lint.js b/utils/doclint/lint.js index 58225b12..8983cd4e 100644 --- a/utils/doclint/lint.js +++ b/utils/doclint/lint.js @@ -1,3 +1,19 @@ +/** + * 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. + */ + const jsBuilder = require('./JSBuilder'); const mdBuilder = require('./MDBuilder'); const Documentation = require('./Documentation'); diff --git a/utils/doclint/test/test.js b/utils/doclint/test/test.js index 6fb05525..2056493d 100644 --- a/utils/doclint/test/test.js +++ b/utils/doclint/test/test.js @@ -1,3 +1,19 @@ +/** + * 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. + */ + const fs = require('fs'); const rm = require('rimraf').sync; const path = require('path');