Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the namespace of gomage to adobe #4396

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: npm-publish
on:
push:
branches:
- PWA-3420

jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Navigate to specific package
run: cd packages/extensions/adobe-plugin-braintree-three-d-secure

- name: Install dependencies
run: |
cd packages/extensions/adobe-plugin-braintree-three-d-secure
npm install --legacy-peer-deps --ignore-scripts

- name: Publish package
uses: JS-DevTools/npm-publish@v1
with:
package: "packages/extensions/adobe-plugin-braintree-three-d-secure/package.json" # Explicitly specify the package
access: "public"
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function localIntercept(targets) {
* import 3d secure plugin
*/
brainTreeDropIn.addImport(
'{useBraintreeThreeDSecure} from "@gomage/plugin-braintree-three-d-secure"'
'{useBraintreeThreeDSecure} from "@adobe/plugin-braintree-three-d-secure"'
);
brainTreeDropIn.addImport(
'{usePriceSummary} from "@magento/peregrine/lib/talons/CartPage/PriceSummary/usePriceSummary"'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# GoMage Braintree 3D Secure
# Adobe Braintree 3D Secure

GoMage Braintree 3D Secure
Adobe Braintree 3D Secure

That plugin works only as a fix bugs of PWA Studio and adds 3d secure part.

If you need to disable the module, you can add to the .env parameter CHECKOUT_BRAINTREE_3D=false, or remove the plugin.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @param targets
*/
function localIntercept(targets) {
require('@gomage/plugin-braintree-three-d-secure/Intercepts/brainTreeDropIn')(
require('@adobe/plugin-braintree-three-d-secure/Intercepts/brainTreeDropIn')(
targets
);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"name": "@gomage/plugin-braintree-three-d-secure",
"name": "@adobe/plugin-braintree-three-d-secure",
"version": "3.94.0",
"publishConfig": {
"access": "public"
},
"description": "GoMage Braintree 3D Secure",
"description": "Adobe Braintree 3D Secure",
"main": "./index.js",
"author": "GoMage",
"author": "Adobe",
"dependencies": {
"braintree-web-drop-in": "~1.43.0"
},
"engines": {
"node": ">=18.x",
"yarn": ">=1.12.0"
},
"scripts": {
"clean": " "
},
Expand Down
9 changes: 3 additions & 6 deletions packages/venia-concept/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"homepage": "https://github.com/magento/pwa-studio/tree/main/packages/venia-concept#readme",
"dependencies": {
"@gomage/plugin-braintree-three-d-secure": "~3.94.0",
"@adobe/plugin-braintree-three-d-secure": "~3.94.0",
"@magento/pwa-buildpack": "11.5.4-alpha.6"
},
"devDependencies": {
Expand All @@ -51,7 +51,7 @@
"@babel/plugin-transform-runtime": "~7.4.4",
"@babel/preset-env": "~7.16.0",
"@babel/runtime": "~7.15.3",
"@gomage/plugin-braintree-three-d-secure": "~3.94.0",
"@adobe/plugin-braintree-three-d-secure": "~3.94.0",
"@magento/babel-preset-peregrine": "~1.3.3",
"@magento/eslint-config": "~1.5.0",
"@magento/pagebuilder": "9.3.3-alpha.6",
Expand Down Expand Up @@ -146,9 +146,6 @@
"pwa-studio": {
"targets": {
"intercept": "./local-intercept.js"
},
"trusted-vendors": [
"@gomage"
]
}
}
}
5,168 changes: 2,663 additions & 2,505 deletions yarn.lock

Large diffs are not rendered by default.

Loading