You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by hu...@apache.org on 2021/06/23 16:03:24 UTC

[dubbo-js] 03/03: fixed: check-license and add license

This is an automated email from the ASF dual-hosted git repository.

hufeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-js.git

commit 5671badfb73f72c2d4b5f78aa0960a948f460320
Author: hufeng <fe...@gmail.com>
AuthorDate: Wed Jun 23 23:52:34 2021 +0800

    fixed: check-license and add license
---
 jest.config.js                                    | 17 +++++++++++++++++
 package.json                                      |  1 +
 packages/dubbo-service/src/__tests__/port-test.ts | 17 +++++++++++++++++
 yarn.lock                                         |  7 +++++++
 4 files changed, 42 insertions(+)

diff --git a/jest.config.js b/jest.config.js
index 9718ff6..0cef6ea 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 module.exports = {
   preset: 'ts-jest',
   testEnvironment: 'node',
diff --git a/package.json b/package.json
index ffe337c..5d9c76d 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
     "prepare": "husky install"
   },
   "devDependencies": {
+    "@types/fs-extra": "9.0.11",
     "@types/dateformat": "1.0.1",
     "@types/debug": "^0.0.30",
     "@types/glob": "^7.1.3",
diff --git a/packages/dubbo-service/src/__tests__/port-test.ts b/packages/dubbo-service/src/__tests__/port-test.ts
index f3087d7..aeab76f 100644
--- a/packages/dubbo-service/src/__tests__/port-test.ts
+++ b/packages/dubbo-service/src/__tests__/port-test.ts
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 getPort from 'get-port'
 
 it('test get port', async () => {
diff --git a/yarn.lock b/yarn.lock
index 492634f..b6ed1de 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -574,6 +574,13 @@
   resolved "https://registry.npm.taobao.org/@types/debug/download/@types/debug-0.0.30.tgz?cache=0&sync_timestamp=1613378490981&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fdebug%2Fdownload%2F%40types%2Fdebug-0.0.30.tgz#dc1e40f7af3b9c815013a7860e6252f6352a84df"
   integrity sha1-3B5A9687nIFQE6eGDmJS9jUqhN8=
 
+"@types/fs-extra@9.0.11":
+  version "9.0.11"
+  resolved "https://registry.nlark.com/@types/fs-extra/download/@types/fs-extra-9.0.11.tgz?cache=0&sync_timestamp=1621241200090&other_urls=https%3A%2F%2Fregistry.nlark.com%2F%40types%2Ffs-extra%2Fdownload%2F%40types%2Ffs-extra-9.0.11.tgz#8cc99e103499eab9f347dbc6ca4e99fb8d2c2b87"
+  integrity sha1-jMmeEDSZ6rnzR9vGyk6Z+40sK4c=
+  dependencies:
+    "@types/node" "*"
+
 "@types/glob@^7.1.3":
   version "7.1.3"
   resolved "https://registry.npm.taobao.org/@types/glob/download/@types/glob-7.1.3.tgz#e6ba80f36b7daad2c685acd9266382e68985c183"