From db519fbaa6f8ad02c19cbecba5d4f28ba1ee81aa Mon Sep 17 00:00:00 2001 From: Sebastian Rindom Date: Wed, 9 Sep 2020 09:15:58 +0200 Subject: [PATCH] fix: updates license --- LICENSE | 21 +++++++++++++++++++ lerna.json | 14 +++++++++++++ packages/medusa-cli/package.json | 2 +- packages/medusa-core-utils/package.json | 2 +- packages/medusa-file-spaces/package.json | 2 +- .../medusa-fulfillment-manual/package.json | 2 +- packages/medusa-interfaces/package.json | 2 +- packages/medusa-payment-adyen/package.json | 2 +- packages/medusa-payment-klarna/package.json | 2 +- packages/medusa-payment-stripe/package.json | 2 +- .../medusa-plugin-brightpearl/package.json | 2 +- .../medusa-plugin-contentful/package.json | 2 +- packages/medusa-plugin-economic/package.json | 2 +- packages/medusa-plugin-ip-lookup/package.json | 2 +- .../medusa-plugin-permissions/package.json | 2 +- packages/medusa-plugin-segment/package.json | 2 +- packages/medusa-plugin-sendgrid/package.json | 2 +- .../package.json | 2 +- packages/medusa-plugin-wishlist/package.json | 2 +- packages/medusa-test-utils/package.json | 2 +- packages/medusa/package.json | 2 +- packages/medusa/src/services/event-bus.js | 2 ++ 22 files changed, 56 insertions(+), 19 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000..39b4ac051a171 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2020 Medusajs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lerna.json b/lerna.json index 0f79b9cb96afb..7f55fcefb222c 100644 --- a/lerna.json +++ b/lerna.json @@ -3,6 +3,20 @@ "packages": [ "packages/*" ], + "command": { + "publish": { + "allowBranch": "master", + "bump": "patch", + "conventionalCommits": true, + "message": "chore(release): Publish" + } + }, "registry": "https://registry.npmjs.org/", + "ignoreChanges": [ + "CHANGELOG.md", + "**/__tests__/**", + "**/__mocks__/**", + "**/__testfixtures__/**" + ], "version": "1.0.9" } diff --git a/packages/medusa-cli/package.json b/packages/medusa-cli/package.json index b3a3001d0f402..17aa31a4700c3 100644 --- a/packages/medusa-cli/package.json +++ b/packages/medusa-cli/package.json @@ -20,7 +20,7 @@ "watch": "babel -w src --out-dir dist/ --ignore **/__tests__" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-core-utils/package.json b/packages/medusa-core-utils/package.json index 3d68155f09380..aefb5930faee0 100644 --- a/packages/medusa-core-utils/package.json +++ b/packages/medusa-core-utils/package.json @@ -14,7 +14,7 @@ "watch": "babel -w src --out-dir dist/ --ignore **/__tests__" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-file-spaces/package.json b/packages/medusa-file-spaces/package.json index b57e098d926ad..4b60f15a3ddda 100644 --- a/packages/medusa-file-spaces/package.json +++ b/packages/medusa-file-spaces/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-file-spaces" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-fulfillment-manual/package.json b/packages/medusa-fulfillment-manual/package.json index 70fe80ffd2d86..855609700408f 100644 --- a/packages/medusa-fulfillment-manual/package.json +++ b/packages/medusa-fulfillment-manual/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-fulfillment-manual" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-interfaces/package.json b/packages/medusa-interfaces/package.json index 0650fd472d2dc..85fb4775bac6d 100644 --- a/packages/medusa-interfaces/package.json +++ b/packages/medusa-interfaces/package.json @@ -15,7 +15,7 @@ "test": "jest" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-payment-adyen/package.json b/packages/medusa-payment-adyen/package.json index 6056aef045d14..4bcc99e07db2e 100644 --- a/packages/medusa-payment-adyen/package.json +++ b/packages/medusa-payment-adyen/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-payment-adyen" }, "author": "Oliver Juhl", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-payment-klarna/package.json b/packages/medusa-payment-klarna/package.json index 99f1879e5827d..858ce3eb4aeb3 100644 --- a/packages/medusa-payment-klarna/package.json +++ b/packages/medusa-payment-klarna/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-payment-klarna" }, "author": "Oliver Juhl", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-payment-stripe/package.json b/packages/medusa-payment-stripe/package.json index 3b17a1fad2055..2b64f5a81f3ce 100644 --- a/packages/medusa-payment-stripe/package.json +++ b/packages/medusa-payment-stripe/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-payment-stripe" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-plugin-brightpearl/package.json b/packages/medusa-plugin-brightpearl/package.json index e8f9adc5ebd77..fd160b2e01821 100644 --- a/packages/medusa-plugin-brightpearl/package.json +++ b/packages/medusa-plugin-brightpearl/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-plugin-brightpearl" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-plugin-contentful/package.json b/packages/medusa-plugin-contentful/package.json index c77f7af5c2e06..3d79d39527b4d 100644 --- a/packages/medusa-plugin-contentful/package.json +++ b/packages/medusa-plugin-contentful/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-plugin-contentful" }, "author": "Oliver Juhl", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-plugin-economic/package.json b/packages/medusa-plugin-economic/package.json index edcb91e890b69..93b76b8a9351f 100644 --- a/packages/medusa-plugin-economic/package.json +++ b/packages/medusa-plugin-economic/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-plugin-economic" }, "author": "Oliver Juhl", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-plugin-ip-lookup/package.json b/packages/medusa-plugin-ip-lookup/package.json index c558b93cb9c86..50e90758f9fff 100644 --- a/packages/medusa-plugin-ip-lookup/package.json +++ b/packages/medusa-plugin-ip-lookup/package.json @@ -15,7 +15,7 @@ "test": "jest" }, "author": "Oliver Juhl", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-plugin-permissions/package.json b/packages/medusa-plugin-permissions/package.json index 1f9fa97d73d20..e33790495ecde 100644 --- a/packages/medusa-plugin-permissions/package.json +++ b/packages/medusa-plugin-permissions/package.json @@ -15,7 +15,7 @@ "test": "jest" }, "author": "Oliver Juhl", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-plugin-segment/package.json b/packages/medusa-plugin-segment/package.json index dd11c3c51ae3b..45726e79e02aa 100644 --- a/packages/medusa-plugin-segment/package.json +++ b/packages/medusa-plugin-segment/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-plugin-segment" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-plugin-sendgrid/package.json b/packages/medusa-plugin-sendgrid/package.json index 5e05ae618c3f7..38c91c2c228e8 100644 --- a/packages/medusa-plugin-sendgrid/package.json +++ b/packages/medusa-plugin-sendgrid/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-plugin-sendgrid" }, "author": "Oliver Juhl", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-plugin-slack-notification/package.json b/packages/medusa-plugin-slack-notification/package.json index 28a57618d216d..8759874ee193a 100644 --- a/packages/medusa-plugin-slack-notification/package.json +++ b/packages/medusa-plugin-slack-notification/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-plugin-slack-notification" }, "author": "Oliver Juhl", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-plugin-wishlist/package.json b/packages/medusa-plugin-wishlist/package.json index 546b939421a77..9cdcba8de6941 100644 --- a/packages/medusa-plugin-wishlist/package.json +++ b/packages/medusa-plugin-wishlist/package.json @@ -9,7 +9,7 @@ "directory": "packages/medusa-plugin-wishlist" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa-test-utils/package.json b/packages/medusa-test-utils/package.json index f7b4397abdf8e..1a62aea9b0c2f 100644 --- a/packages/medusa-test-utils/package.json +++ b/packages/medusa-test-utils/package.json @@ -14,7 +14,7 @@ "watch": "babel -w src --out-dir dist/ --ignore **/__tests__" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa/package.json b/packages/medusa/package.json index 8f2d7021c447f..e235da70370bd 100644 --- a/packages/medusa/package.json +++ b/packages/medusa/package.json @@ -12,7 +12,7 @@ "access": "public" }, "author": "Sebastian Rindom", - "license": "AGPL-3.0-or-later", + "license": "MIT", "devDependencies": { "@babel/cli": "^7.7.5", "@babel/core": "^7.7.5", diff --git a/packages/medusa/src/services/event-bus.js b/packages/medusa/src/services/event-bus.js index f6784474d7711..a2517f3f6c764 100644 --- a/packages/medusa/src/services/event-bus.js +++ b/packages/medusa/src/services/event-bus.js @@ -89,6 +89,8 @@ class EventBusService { return this.queue_.add({ eventName, data, + }, { + removeOnComplete: true }) }