File tree Expand file tree Collapse file tree 9 files changed +61
-35
lines changed Expand file tree Collapse file tree 9 files changed +61
-35
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ name : build
2
+ on :
3
+ # run on push but only for the master branch
4
+ push :
5
+ branches :
6
+ - master
7
+ # run for every pull request
8
+ pull_request : {}
9
+ jobs :
10
+ main :
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ matrix :
14
+ node : [10.13, 12, 14]
15
+ steps :
16
+ - name : ⬇️ Checkout repo
17
+ uses : actions/checkout@v2
18
+
19
+ - name : ⎔ Setup node
20
+ uses : actions/setup-node@v1
21
+ with :
22
+ node-version : ${{ matrix.node }}
23
+
24
+ - name : 📥 Download deps
25
+ uses : bahmutov/npm-install@v1
26
+ with :
27
+ useLockFile : false
28
+
29
+ - name : ▶️ Run flow-typed script
30
+ run : npm run flow-typed
31
+
32
+ - name : ▶️ Run build script
33
+ run : npm run build
34
+
35
+ - name : ⬆️ Upload coverage report
36
+ uses : codecov/codecov-action@v1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
Apache License
2
2
Version 2.0, January 2004
3
- http ://www.apache.org/licenses/
3
+ https ://www.apache.org/licenses/
4
4
5
5
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
6
175
175
176
176
END OF TERMS AND CONDITIONS
177
177
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "{}"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
178
Copyright 2016 PayPal
190
179
191
180
Licensed under the Apache License, Version 2.0 (the "License");
192
181
you may not use this file except in compliance with the License.
193
182
You may obtain a copy of the License at
194
183
195
- http ://www.apache.org/licenses/LICENSE-2.0
184
+ https ://www.apache.org/licenses/LICENSE-2.0
196
185
197
186
Unless required by applicable law or agreed to in writing, software
198
187
distributed under the License is distributed on an "AS IS" BASIS,
Original file line number Diff line number Diff line change 1
1
PayPal Common Components
2
2
------------------------
3
3
4
- [ ![ npm version] ( https://img.shields.io/npm/v/@paypal/common-components.svg?style=flat-square )] ( https://www.npmjs.com/package/@paypal/common-components ) [ ![ build status] ( https://img.shields.io/travis/paypal/paypal-common-components/master.svg?style=flat-square )] ( https://travis-ci.org/paypal/paypal-common-components )
5
-
6
- [ ![ dependencies Status] ( https://david-dm.org/paypal/paypal-common-components/status.svg )] ( https://david-dm.org/paypal/paypal-common-components ) [ ![ devDependencies Status] ( https://david-dm.org/paypal/paypal-common-components/dev-status.svg )] ( https://david-dm.org/paypal/paypal-common-components?type=dev )
4
+ [ ![ build status] [ build-badge ]] [ build ]
5
+ [ ![ code coverage] [ coverage-badge ]] [ coverage ]
6
+ [ ![ npm version] [ version-badge ]] [ package ]
7
+ [ ![ apache license] [ license-badge ]] [ license ]
8
+
9
+ [ build-badge ] : https://img.shields.io/github/workflow/status/paypal/paypal-common-components/build?logo=github&style=flat-square
10
+ [ build ] : https://github.com/paypal/paypal-common-components/actions?query=workflow%3Abuild
11
+ [ coverage-badge ] : https://img.shields.io/codecov/c/github/paypal/paypal-common-components.svg?style=flat-square
12
+ [ coverage ] : https://codecov.io/github/paypal/paypal-common-components/
13
+ [ version-badge ] : https://img.shields.io/npm/v/@paypal/common-components.svg?style=flat-square
14
+ [ package ] : https://www.npmjs.com/package/@paypal/common-components
15
+ [ license-badge ] : https://img.shields.io/npm/l/@paypal/common-components.svg?style=flat-square
16
+ [ license ] : https://github.com/paypal/paypal-common-components/blob/master/LICENSE
7
17
8
18
Common components for the PayPal JavaScript SDK
9
19
Original file line number Diff line number Diff line change 1
1
/* @flow */
2
2
/* eslint import/no-commonjs: off */
3
3
4
+ // $FlowFixMe
4
5
module . exports = {
5
-
6
+
6
7
} ;
Original file line number Diff line number Diff line change @@ -13,9 +13,11 @@ function protectedExport<T>(xport : T) : ?T {
13
13
}
14
14
15
15
export const ThreeDomainSecure = {
16
+ // $FlowFixMe
16
17
__get__ : ( ) => protectedExport ( getThreeDomainSecureComponent ( ) )
17
18
} ;
18
19
19
20
export const postRobot = {
21
+ // $FlowFixMe
20
22
__get__ : ( ) => protectedExport ( postRobotModule )
21
23
} ;
Original file line number Diff line number Diff line change @@ -76,12 +76,12 @@ export const fundingEligibility = {
76
76
export const testGlobals = {
77
77
__paypal_checkout__ : {
78
78
serverConfig : {
79
- fundingEligibility : ( ) => `window.__TEST_FUNDING_ELIGIBILITY__ || ${ JSON . stringify ( fundingEligibility ) } `
79
+ fundingEligibility : ( ) : string => `window.__TEST_FUNDING_ELIGIBILITY__ || ${ JSON . stringify ( fundingEligibility ) } `
80
80
}
81
81
} ,
82
82
83
83
__PAYPAL_CHECKOUT__ : {
84
- __REMEMBERED_FUNDING__ : ( ) => 'window.__TEST_REMEMBERED_FUNDING__ || []'
84
+ __REMEMBERED_FUNDING__ : ( ) : string => 'window.__TEST_REMEMBERED_FUNDING__ || []'
85
85
} ,
86
86
87
87
__PORT__ : 8000 ,
Original file line number Diff line number Diff line change 1
1
/* @flow */
2
2
/* eslint import/no-nodejs-modules: off, import/no-default-export: off */
3
3
4
+ import type { WebpackConfig } from 'grumbler-scripts/config/types' ;
4
5
import { getWebpackConfig } from 'grumbler-scripts/config/webpack.config' ;
5
6
6
7
import { testGlobals } from './test/globals' ;
7
8
import globals from './globals' ;
8
9
9
10
const MODULE_NAME = 'paypal' ;
10
11
11
- export const WEBPACK_CONFIG_UI = getWebpackConfig ( {
12
+ export const WEBPACK_CONFIG_UI : WebpackConfig = getWebpackConfig ( {
12
13
context : __dirname ,
13
14
entry : './src/ui' ,
14
15
filename : 'ui' ,
@@ -19,7 +20,7 @@ export const WEBPACK_CONFIG_UI = getWebpackConfig({
19
20
vars : globals
20
21
} ) ;
21
22
22
- export const WEBPACK_CONFIG_UI_MIN = getWebpackConfig ( {
23
+ export const WEBPACK_CONFIG_UI_MIN : WebpackConfig = getWebpackConfig ( {
23
24
context : __dirname ,
24
25
entry : './src/ui' ,
25
26
filename : 'ui' ,
@@ -29,7 +30,7 @@ export const WEBPACK_CONFIG_UI_MIN = getWebpackConfig({
29
30
vars : globals
30
31
} ) ;
31
32
32
- export const WEBPACK_CONFIG_TEST = getWebpackConfig ( {
33
+ export const WEBPACK_CONFIG_TEST : WebpackConfig = getWebpackConfig ( {
33
34
entry : './test/paypal.js' ,
34
35
libraryTarget : 'window' ,
35
36
You can’t perform that action at this time.
0 commit comments