@akinon/next 1.29.0 → 1.30.1
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/CHANGELOG.md +13 -0
- package/bin/pz-check-env.js +27 -0
- package/bin/pz-predev.js +1 -0
- package/data/client/checkout.ts +3 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @akinon/next
|
|
2
2
|
|
|
3
|
+
## 1.30.1
|
|
4
|
+
|
|
5
|
+
## 1.30.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- a1d03d3: ZERO-2571:Make the sendSmsLanguage value dynamic for masterpass
|
|
10
|
+
- ff89630: ZERO-2498: Add script for env control
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 073fbd2: ZERO-2503: Add check changeset control script
|
|
15
|
+
|
|
3
16
|
## 1.29.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
|
|
5
|
+
const invalidEnvList = [
|
|
6
|
+
{ key: 'NEXT_TELEMETRY_DISABLED', value: 1 },
|
|
7
|
+
{ key: 'OTEL_SDK_DISABLED', value: true }
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
function checkEnv(invalidEnvList) {
|
|
11
|
+
if (!fs.existsSync('.env')) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const envContent = fs.readFileSync('.env', 'utf8');
|
|
16
|
+
|
|
17
|
+
invalidEnvList.forEach(({ key, value }) => {
|
|
18
|
+
const env = `${key}=${value}`;
|
|
19
|
+
|
|
20
|
+
if (envContent.includes(env)) {
|
|
21
|
+
console.error(`Remove the ${key} environment variable`);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
checkEnv(invalidEnvList);
|
package/bin/pz-predev.js
CHANGED
package/data/client/checkout.ts
CHANGED
|
@@ -93,7 +93,8 @@ const completeMasterpassPayment = async (
|
|
|
93
93
|
credentials,
|
|
94
94
|
msisdn,
|
|
95
95
|
selectedCard,
|
|
96
|
-
additionalParams
|
|
96
|
+
additionalParams,
|
|
97
|
+
language
|
|
97
98
|
} = state.masterpass ?? {};
|
|
98
99
|
|
|
99
100
|
const commonFormValues = {
|
|
@@ -104,6 +105,7 @@ const completeMasterpassPayment = async (
|
|
|
104
105
|
msisdn,
|
|
105
106
|
amount: preOrder?.unpaid_amount?.replace('.', '') ?? '',
|
|
106
107
|
additionalParams: additionalParams ?? extras?.additionalParams,
|
|
108
|
+
language,
|
|
107
109
|
installmentCount: preOrder?.installment?.installment_count ?? 1
|
|
108
110
|
};
|
|
109
111
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/next",
|
|
3
3
|
"description": "Core package for Project Zero Next",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.30.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "6.7.4",
|
|
33
33
|
"@typescript-eslint/parser": "6.7.4",
|
|
34
34
|
"eslint": "^8.14.0",
|
|
35
|
-
"@akinon/eslint-plugin-projectzero": "1.
|
|
35
|
+
"@akinon/eslint-plugin-projectzero": "1.30.1",
|
|
36
36
|
"eslint-config-prettier": "8.5.0"
|
|
37
37
|
}
|
|
38
38
|
}
|