@paypal/sdk-release 5.0.359 → 5.0.360

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,4 @@
1
- PayPal Braintree Client SDK
2
- ---------------------------
1
+ ## PayPal Braintree Client SDK
3
2
 
4
3
  [![build status][build-badge]][build]
5
4
  [![npm version][version-badge]][package]
package/index.js CHANGED
@@ -1,9 +1,13 @@
1
1
  /* @flow */
2
2
  /* eslint import/no-default-export: off */
3
3
 
4
- import { setupSDK, type SetupComponent } from '@paypal/sdk-client/src';
4
+ import { setupSDK, type SetupComponent } from "@paypal/sdk-client/src";
5
5
 
6
- // $FlowFixMe
7
- export default (namespace : string, verison : string, components : $ReadOnlyArray<SetupComponent<mixed>>) => {
8
- return setupSDK(components);
6
+ export default (
7
+ namespace: string,
8
+ verison: string,
9
+ components: $ReadOnlyArray<SetupComponent<mixed>>
10
+ // $FlowFixMe
11
+ ) => {
12
+ return setupSDK(components);
9
13
  };
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypal/sdk-release",
3
- "version": "5.0.359",
3
+ "version": "5.0.360",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
@@ -118,9 +118,9 @@
118
118
  }
119
119
  },
120
120
  "@paypal/checkout-components": {
121
- "version": "5.0.260",
122
- "resolved": "https://registry.npmjs.org/@paypal/checkout-components/-/checkout-components-5.0.260.tgz",
123
- "integrity": "sha512-kyGML22SjYlWnd9yXPr/yGvkrXfzQOFMPoLMRcZnwfPxyHH2niQJ+voZJ9TSeNNK5h2k7DKyWn0B9skhYG6t+Q==",
121
+ "version": "5.0.262",
122
+ "resolved": "https://registry.npmjs.org/@paypal/checkout-components/-/checkout-components-5.0.262.tgz",
123
+ "integrity": "sha512-z0Q5FIwrnKEVajsZapseBgFQICHAOLsE9CkZGinv56i3D8t3QRE+S4/HF2vszCfhqUAXZa2oLp0EMHD+4QyEYg==",
124
124
  "requires": {
125
125
  "@krakenjs/belter": "^2.0.0",
126
126
  "@krakenjs/cross-domain-utils": "^3.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paypal/sdk-release",
3
- "version": "5.0.359",
3
+ "version": "5.0.360",
4
4
  "description": "Unified SDK wrapper module for tests, shared build config, and deploy.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -10,8 +10,10 @@
10
10
  "cdnify": "grabthar-cdnify --recursive --cdn='https://www.paypalobjects.com'",
11
11
  "reinstall": "rm -f ./package-lock.json && rm -rf ./node_modules && npm install && git checkout package-lock.json && git checkout package.json",
12
12
  "flow-typed": "rm -rf ./flow-typed && flow-typed install",
13
- "lint": "eslint test/ *.js",
13
+ "lint": "npm run format:check && eslint test/ *.js",
14
14
  "flow": "flow check",
15
+ "format": "prettier --write --ignore-unknown .",
16
+ "format:check": "prettier --check .",
15
17
  "karma": "cross-env NODE_ENV=test babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/karma start",
16
18
  "test": "npm run lint && npm run flow-typed && npm run flow && npm run validate-components && npm run validate-flat",
17
19
  "add": "grabthar-add",
@@ -20,10 +22,14 @@
20
22
  "release": "grabthar-release",
21
23
  "release:dry-run": "DRY_RUN=true grabthar-release",
22
24
  "postrelease": "npm run cdnify -- --commitonly",
25
+ "prepare": "husky install",
23
26
  "flatten": "grabthar-flatten",
24
27
  "prepublishOnly": "npm run validate-components-for-publish",
25
28
  "cdn-check": "babel-node ./scripts/sdk-logos-cdn-check.js"
26
29
  },
30
+ "lint-staged": {
31
+ "**/*": "prettier --write --ignore-unknown"
32
+ },
27
33
  "files": [
28
34
  "package-lock.json",
29
35
  "index.js"
@@ -59,7 +65,10 @@
59
65
  "flow-bin": "0.135.0",
60
66
  "flow-typed": "^3.8.0",
61
67
  "flowgen": "1.11.0",
62
- "jest": "^29.3.1"
68
+ "husky": "^8.0.3",
69
+ "jest": "^29.3.1",
70
+ "lint-staged": "^13.2.0",
71
+ "prettier": "2.8.4"
63
72
  },
64
73
  "dependencies": {
65
74
  "@braintree/browser-detection": "1.7.0",
@@ -77,7 +86,7 @@
77
86
  "@krakenjs/zoid": "10.1.0",
78
87
  "@paypal/applepay-components": "1.5.0",
79
88
  "@paypal/card-components": "1.0.54",
80
- "@paypal/checkout-components": "5.0.260",
89
+ "@paypal/checkout-components": "5.0.262",
81
90
  "@paypal/common-components": "1.0.35",
82
91
  "@paypal/example-components": "1.0.28",
83
92
  "@paypal/funding-components": "1.0.31",