From 5aacd7107969b67653cb2e98de83d0e5e735e806 Mon Sep 17 00:00:00 2001 From: Daniel Bankhead Date: Fri, 23 Feb 2024 13:47:36 -0800 Subject: [PATCH] chore: Fix Licenses --- samples/package.json | 2 +- samples/quickstart.js | 13 +++++++++++-- samples/test/test.js | 13 +++++++++++-- src/index.ts | 13 +++++++++++-- system-test/fixtures/cloudbuild/index.js | 13 +++++++++++-- system-test/fixtures/cloudbuild/package.json | 2 +- system-test/fixtures/hook/index.js | 13 +++++++++++-- system-test/fixtures/hook/package.json | 2 +- system-test/fixtures/kitchen/src/index.ts | 13 +++++++++++-- system-test/kitchen.test.ts | 13 +++++++++++-- system-test/system.ts | 13 +++++++++++-- test/index.test.ts | 13 +++++++++++-- 12 files changed, 102 insertions(+), 21 deletions(-) diff --git a/samples/package.json b/samples/package.json index b1a789b..ea9a819 100644 --- a/samples/package.json +++ b/samples/package.json @@ -1,6 +1,6 @@ { "description": "Samples for the gcp-metadata npm module.", - "license": "MIT", + "license": "Apache-2.0", "author": "Google LLC", "engines": { "node": ">=14" diff --git a/samples/quickstart.js b/samples/quickstart.js index 2674aef..d64f856 100644 --- a/samples/quickstart.js +++ b/samples/quickstart.js @@ -1,8 +1,17 @@ /** * Copyright 2018 Google LLC * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ 'use strict'; diff --git a/samples/test/test.js b/samples/test/test.js index 13bbe87..b03533e 100644 --- a/samples/test/test.js +++ b/samples/test/test.js @@ -1,8 +1,17 @@ /** * Copyright 2018 Google LLC * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 {assert} = require('chai'); diff --git a/src/index.ts b/src/index.ts index 6b09f04..799b627 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,17 @@ /** * Copyright 2018 Google LLC * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ import {GaxiosError, GaxiosOptions, GaxiosResponse, request} from 'gaxios'; diff --git a/system-test/fixtures/cloudbuild/index.js b/system-test/fixtures/cloudbuild/index.js index f0ecb45..46c7954 100644 --- a/system-test/fixtures/cloudbuild/index.js +++ b/system-test/fixtures/cloudbuild/index.js @@ -1,8 +1,17 @@ /** * Copyright 2018 Google LLC * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 gcpMetadata = require('gcp-metadata'); diff --git a/system-test/fixtures/cloudbuild/package.json b/system-test/fixtures/cloudbuild/package.json index 8a5345a..8e0ae67 100644 --- a/system-test/fixtures/cloudbuild/package.json +++ b/system-test/fixtures/cloudbuild/package.json @@ -2,7 +2,7 @@ "name": "gcb-test-fixtures", "private": true, "main": "index.js", - "license": "MIT", + "license": "Apache-2.0", "scripts": { "start": "node index.js" }, diff --git a/system-test/fixtures/hook/index.js b/system-test/fixtures/hook/index.js index 303c950..684add2 100644 --- a/system-test/fixtures/hook/index.js +++ b/system-test/fixtures/hook/index.js @@ -1,8 +1,17 @@ /** * Copyright 2018 Google LLC * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 gcpMetadata = require('gcp-metadata'); diff --git a/system-test/fixtures/hook/package.json b/system-test/fixtures/hook/package.json index 950cd6e..e5b17dc 100644 --- a/system-test/fixtures/hook/package.json +++ b/system-test/fixtures/hook/package.json @@ -2,7 +2,7 @@ "name": "gcf-kitchen-test", "private": true, "main": "index.js", - "license": "MIT", + "license": "Apache-2.0", "engines": { "node": ">=10" }, diff --git a/system-test/fixtures/kitchen/src/index.ts b/system-test/fixtures/kitchen/src/index.ts index 15bb4c8..6189184 100644 --- a/system-test/fixtures/kitchen/src/index.ts +++ b/system-test/fixtures/kitchen/src/index.ts @@ -1,8 +1,17 @@ /** * Copyright 2018 Google LLC * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ /* eslint-disable */ diff --git a/system-test/kitchen.test.ts b/system-test/kitchen.test.ts index d257467..caa39a5 100644 --- a/system-test/kitchen.test.ts +++ b/system-test/kitchen.test.ts @@ -1,8 +1,17 @@ /** * Copyright 2018 Google LLC * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ import {ncp} from 'ncp'; diff --git a/system-test/system.ts b/system-test/system.ts index a52d5eb..94c9abb 100644 --- a/system-test/system.ts +++ b/system-test/system.ts @@ -1,8 +1,17 @@ /** * Copyright 2018 Google LLC * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ import * as assert from 'assert'; diff --git a/test/index.test.ts b/test/index.test.ts index 9b7b274..ffdaad9 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -1,8 +1,17 @@ /** * Copyright 2018 Google LLC * - * Distributed under MIT license. - * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ import * as assert from 'assert';