@akinon/projectzero 1.116.0-rc.11 → 1.116.0-rc.13

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.116.0-rc.13
4
+
5
+ ### Minor Changes
6
+
7
+ - d7ec6b08: ZERO-3988: Add Google Pay option to plugin selection
8
+
9
+ ## 1.116.0-rc.12
10
+
3
11
  ## 1.116.0-rc.11
4
12
 
5
13
  ## 1.116.0-rc.10
@@ -1,5 +1,69 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.116.0-rc.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d7ec6b08]
8
+ - @akinon/next@1.116.0-rc.13
9
+ - @akinon/pz-akifast@1.116.0-rc.13
10
+ - @akinon/pz-apple-pay@1.116.0-rc.13
11
+ - @akinon/pz-b2b@1.116.0-rc.13
12
+ - @akinon/pz-basket-gift-pack@1.116.0-rc.13
13
+ - @akinon/pz-bkm@1.116.0-rc.13
14
+ - @akinon/pz-checkout-gift-pack@1.116.0-rc.13
15
+ - @akinon/pz-click-collect@1.116.0-rc.13
16
+ - @akinon/pz-credit-payment@1.116.0-rc.13
17
+ - @akinon/pz-cybersource-uc@1.116.0-rc.13
18
+ - @akinon/pz-flow-payment@1.116.0-rc.13
19
+ - @akinon/pz-google-pay@1.116.0-rc.13
20
+ - @akinon/pz-gpay@1.116.0-rc.13
21
+ - @akinon/pz-haso@1.116.0-rc.13
22
+ - @akinon/pz-hepsipay@1.116.0-rc.13
23
+ - @akinon/pz-masterpass@1.116.0-rc.13
24
+ - @akinon/pz-masterpass-rest@1.116.0-rc.13
25
+ - @akinon/pz-multi-basket@1.116.0-rc.13
26
+ - @akinon/pz-one-click-checkout@1.116.0-rc.13
27
+ - @akinon/pz-otp@1.116.0-rc.13
28
+ - @akinon/pz-pay-on-delivery@1.116.0-rc.13
29
+ - @akinon/pz-saved-card@1.116.0-rc.13
30
+ - @akinon/pz-similar-products@1.116.0-rc.13
31
+ - @akinon/pz-tabby-extension@1.116.0-rc.13
32
+ - @akinon/pz-tamara-extension@1.116.0-rc.13
33
+ - @akinon/pz-virtual-try-on@1.116.0-rc.13
34
+
35
+ ## 1.116.0-rc.12
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [88cb4f62]
40
+ - @akinon/pz-masterpass@1.116.0-rc.12
41
+ - @akinon/next@1.116.0-rc.12
42
+ - @akinon/pz-akifast@1.116.0-rc.12
43
+ - @akinon/pz-apple-pay@1.116.0-rc.12
44
+ - @akinon/pz-b2b@1.116.0-rc.12
45
+ - @akinon/pz-basket-gift-pack@1.116.0-rc.12
46
+ - @akinon/pz-bkm@1.116.0-rc.12
47
+ - @akinon/pz-checkout-gift-pack@1.116.0-rc.12
48
+ - @akinon/pz-click-collect@1.116.0-rc.12
49
+ - @akinon/pz-credit-payment@1.116.0-rc.12
50
+ - @akinon/pz-cybersource-uc@1.116.0-rc.12
51
+ - @akinon/pz-flow-payment@1.116.0-rc.12
52
+ - @akinon/pz-google-pay@1.116.0-rc.12
53
+ - @akinon/pz-gpay@1.116.0-rc.12
54
+ - @akinon/pz-haso@1.116.0-rc.12
55
+ - @akinon/pz-hepsipay@1.116.0-rc.12
56
+ - @akinon/pz-masterpass-rest@1.116.0-rc.12
57
+ - @akinon/pz-multi-basket@1.116.0-rc.12
58
+ - @akinon/pz-one-click-checkout@1.116.0-rc.12
59
+ - @akinon/pz-otp@1.116.0-rc.12
60
+ - @akinon/pz-pay-on-delivery@1.116.0-rc.12
61
+ - @akinon/pz-saved-card@1.116.0-rc.12
62
+ - @akinon/pz-similar-products@1.116.0-rc.12
63
+ - @akinon/pz-tabby-extension@1.116.0-rc.12
64
+ - @akinon/pz-tamara-extension@1.116.0-rc.12
65
+ - @akinon/pz-virtual-try-on@1.116.0-rc.12
66
+
3
67
  ## 1.116.0-rc.11
4
68
 
5
69
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.116.0-rc.11",
3
+ "version": "1.116.0-rc.13",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -24,31 +24,32 @@
24
24
  "test:middleware": "jest middleware-matcher.test.ts --bail"
25
25
  },
26
26
  "dependencies": {
27
- "@akinon/next": "1.116.0-rc.11",
28
- "@akinon/pz-akifast": "1.116.0-rc.11",
29
- "@akinon/pz-apple-pay": "1.116.0-rc.11",
30
- "@akinon/pz-b2b": "1.116.0-rc.11",
31
- "@akinon/pz-basket-gift-pack": "1.116.0-rc.11",
32
- "@akinon/pz-bkm": "1.116.0-rc.11",
33
- "@akinon/pz-checkout-gift-pack": "1.116.0-rc.11",
34
- "@akinon/pz-click-collect": "1.116.0-rc.11",
35
- "@akinon/pz-credit-payment": "1.116.0-rc.11",
36
- "@akinon/pz-cybersource-uc": "1.116.0-rc.11",
37
- "@akinon/pz-flow-payment": "1.116.0-rc.11",
38
- "@akinon/pz-gpay": "1.116.0-rc.11",
39
- "@akinon/pz-haso": "1.116.0-rc.11",
40
- "@akinon/pz-hepsipay": "1.116.0-rc.11",
41
- "@akinon/pz-masterpass": "1.116.0-rc.11",
42
- "@akinon/pz-masterpass-rest": "1.116.0-rc.11",
43
- "@akinon/pz-multi-basket": "1.116.0-rc.11",
44
- "@akinon/pz-one-click-checkout": "1.116.0-rc.11",
45
- "@akinon/pz-otp": "1.116.0-rc.11",
46
- "@akinon/pz-pay-on-delivery": "1.116.0-rc.11",
47
- "@akinon/pz-saved-card": "1.116.0-rc.11",
48
- "@akinon/pz-similar-products": "1.116.0-rc.11",
49
- "@akinon/pz-tabby-extension": "1.116.0-rc.11",
50
- "@akinon/pz-tamara-extension": "1.116.0-rc.11",
51
- "@akinon/pz-virtual-try-on": "1.116.0-rc.11",
27
+ "@akinon/next": "1.116.0-rc.13",
28
+ "@akinon/pz-akifast": "1.116.0-rc.13",
29
+ "@akinon/pz-apple-pay": "1.116.0-rc.13",
30
+ "@akinon/pz-b2b": "1.116.0-rc.13",
31
+ "@akinon/pz-basket-gift-pack": "1.116.0-rc.13",
32
+ "@akinon/pz-bkm": "1.116.0-rc.13",
33
+ "@akinon/pz-checkout-gift-pack": "1.116.0-rc.13",
34
+ "@akinon/pz-click-collect": "1.116.0-rc.13",
35
+ "@akinon/pz-credit-payment": "1.116.0-rc.13",
36
+ "@akinon/pz-cybersource-uc": "1.116.0-rc.13",
37
+ "@akinon/pz-flow-payment": "1.116.0-rc.13",
38
+ "@akinon/pz-google-pay": "1.116.0-rc.13",
39
+ "@akinon/pz-gpay": "1.116.0-rc.13",
40
+ "@akinon/pz-haso": "1.116.0-rc.13",
41
+ "@akinon/pz-hepsipay": "1.116.0-rc.13",
42
+ "@akinon/pz-masterpass": "1.116.0-rc.13",
43
+ "@akinon/pz-masterpass-rest": "1.116.0-rc.13",
44
+ "@akinon/pz-multi-basket": "1.116.0-rc.13",
45
+ "@akinon/pz-one-click-checkout": "1.116.0-rc.13",
46
+ "@akinon/pz-otp": "1.116.0-rc.13",
47
+ "@akinon/pz-pay-on-delivery": "1.116.0-rc.13",
48
+ "@akinon/pz-saved-card": "1.116.0-rc.13",
49
+ "@akinon/pz-similar-products": "1.116.0-rc.13",
50
+ "@akinon/pz-tabby-extension": "1.116.0-rc.13",
51
+ "@akinon/pz-tamara-extension": "1.116.0-rc.13",
52
+ "@akinon/pz-virtual-try-on": "1.116.0-rc.13",
52
53
  "@hookform/resolvers": "2.9.0",
53
54
  "@next/third-parties": "14.1.0",
54
55
  "@react-google-maps/api": "2.17.1",
@@ -71,7 +72,7 @@
71
72
  "yup": "0.32.11"
72
73
  },
73
74
  "devDependencies": {
74
- "@akinon/eslint-plugin-projectzero": "1.116.0-rc.11",
75
+ "@akinon/eslint-plugin-projectzero": "1.116.0-rc.13",
75
76
  "@semantic-release/changelog": "6.0.2",
76
77
  "@semantic-release/exec": "6.0.3",
77
78
  "@semantic-release/git": "10.0.1",
@@ -164,6 +164,10 @@ export default async () => {
164
164
  {
165
165
  name: 'Haso Payment Gateway',
166
166
  value: 'pz-haso'
167
+ },
168
+ {
169
+ name: 'Google Pay',
170
+ value: 'pz-google-pay'
167
171
  }
168
172
  ];
169
173
 
@@ -1,208 +1,280 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
1
+ 'use strict';
2
+ var __createBinding =
3
+ (this && this.__createBinding) ||
4
+ (Object.create
5
+ ? function (o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (
9
+ !desc ||
10
+ ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)
11
+ ) {
12
+ desc = {
13
+ enumerable: true,
14
+ get: function () {
15
+ return m[k];
16
+ }
17
+ };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }
21
+ : function (o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ o[k2] = m[k];
24
+ });
25
+ var __setModuleDefault =
26
+ (this && this.__setModuleDefault) ||
27
+ (Object.create
28
+ ? function (o, v) {
29
+ Object.defineProperty(o, 'default', { enumerable: true, value: v });
30
+ }
31
+ : function (o, v) {
32
+ o['default'] = v;
33
+ });
34
+ var __importStar =
35
+ (this && this.__importStar) ||
36
+ function (mod) {
19
37
  if (mod && mod.__esModule) return mod;
20
38
  var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
39
+ if (mod != null)
40
+ for (var k in mod)
41
+ if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k))
42
+ __createBinding(result, mod, k);
22
43
  __setModuleDefault(result, mod);
23
44
  return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
45
+ };
46
+ var __awaiter =
47
+ (this && this.__awaiter) ||
48
+ function (thisArg, _arguments, P, generator) {
49
+ function adopt(value) {
50
+ return value instanceof P
51
+ ? value
52
+ : new P(function (resolve) {
53
+ resolve(value);
54
+ });
55
+ }
27
56
  return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- const fs = __importStar(require("fs"));
39
- const path_1 = __importDefault(require("path"));
40
- const child_process_1 = require("child_process");
41
- const semver_1 = __importDefault(require("semver"));
42
- const prompts_1 = require("@inquirer/prompts");
43
- const rootDir = path_1.default.resolve(process.cwd());
44
- function checkVersion(pkg) {
45
- return __awaiter(this, void 0, void 0, function* () {
46
- const packageName = '@akinon/next';
47
- const registryUrl = `https://registry.npmjs.org/${packageName}`;
57
+ function fulfilled(value) {
48
58
  try {
49
- const response = yield fetch(registryUrl);
50
- const pkgInfo = (yield response.json());
51
- const latestVersion = pkgInfo['dist-tags'].latest;
52
- if (!semver_1.default.satisfies(pkg.dependencies['@akinon/next'], latestVersion)) {
53
- console.warn(`\x1b[43mWarning: The "${packageName}" package is currently at version ${pkg.dependencies['@akinon/next']}. Please upgrade it to the latest version (${latestVersion}) to ensure plugin compatibility.`, '\x1b[0m\n');
54
- }
59
+ step(generator.next(value));
60
+ } catch (e) {
61
+ reject(e);
55
62
  }
56
- catch (error) {
57
- console.error(`\x1b[41mError: ${error === null || error === void 0 ? void 0 : error.message}`, '\x1b[0m\n');
63
+ }
64
+ function rejected(value) {
65
+ try {
66
+ step(generator['throw'](value));
67
+ } catch (e) {
68
+ reject(e);
58
69
  }
70
+ }
71
+ function step(result) {
72
+ result.done
73
+ ? resolve(result.value)
74
+ : adopt(result.value).then(fulfilled, rejected);
75
+ }
76
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
59
77
  });
78
+ };
79
+ var __importDefault =
80
+ (this && this.__importDefault) ||
81
+ function (mod) {
82
+ return mod && mod.__esModule ? mod : { default: mod };
83
+ };
84
+ Object.defineProperty(exports, '__esModule', { value: true });
85
+ const fs = __importStar(require('fs'));
86
+ const path_1 = __importDefault(require('path'));
87
+ const child_process_1 = require('child_process');
88
+ const semver_1 = __importDefault(require('semver'));
89
+ const prompts_1 = require('@inquirer/prompts');
90
+ const rootDir = path_1.default.resolve(process.cwd());
91
+ function checkVersion(pkg) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ const packageName = '@akinon/next';
94
+ const registryUrl = `https://registry.npmjs.org/${packageName}`;
95
+ try {
96
+ const response = yield fetch(registryUrl);
97
+ const pkgInfo = yield response.json();
98
+ const latestVersion = pkgInfo['dist-tags'].latest;
99
+ if (
100
+ !semver_1.default.satisfies(
101
+ pkg.dependencies['@akinon/next'],
102
+ latestVersion
103
+ )
104
+ ) {
105
+ console.warn(
106
+ `\x1b[43mWarning: The "${packageName}" package is currently at version ${pkg.dependencies['@akinon/next']}. Please upgrade it to the latest version (${latestVersion}) to ensure plugin compatibility.`,
107
+ '\x1b[0m\n'
108
+ );
109
+ }
110
+ } catch (error) {
111
+ console.error(
112
+ `\x1b[41mError: ${error === null || error === void 0 ? void 0 : error.message}`,
113
+ '\x1b[0m\n'
114
+ );
115
+ }
116
+ });
60
117
  }
61
- exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
118
+ exports.default = () =>
119
+ __awaiter(void 0, void 0, void 0, function* () {
62
120
  function findPluginsFilePath() {
63
- const option1 = path_1.default.resolve(rootDir, './src/plugins.js');
64
- const option2 = path_1.default.resolve(rootDir, './packages/akinon-next/plugins.js');
65
- if (fs.existsSync(option1)) {
66
- return option1;
67
- }
68
- else if (fs.existsSync(option2)) {
69
- return option2;
70
- }
71
- else {
72
- throw new Error('plugins.js was not found in either of the expected locations.');
73
- }
121
+ const option1 = path_1.default.resolve(rootDir, './src/plugins.js');
122
+ const option2 = path_1.default.resolve(
123
+ rootDir,
124
+ './packages/akinon-next/plugins.js'
125
+ );
126
+ if (fs.existsSync(option1)) {
127
+ return option1;
128
+ } else if (fs.existsSync(option2)) {
129
+ return option2;
130
+ } else {
131
+ throw new Error(
132
+ 'plugins.js was not found in either of the expected locations.'
133
+ );
134
+ }
74
135
  }
75
136
  const pkg = require(path_1.default.resolve(rootDir, './package.json'));
76
137
  yield checkVersion(pkg);
77
138
  const pluginsFilePath = findPluginsFilePath();
78
139
  let installedPlugins = [];
79
140
  try {
80
- installedPlugins = require(pluginsFilePath);
81
- }
82
- catch (error) {
83
- console.error('Error loading installed plugins:', error);
84
- process.exit(1);
141
+ installedPlugins = require(pluginsFilePath);
142
+ } catch (error) {
143
+ console.error('Error loading installed plugins:', error);
144
+ process.exit(1);
85
145
  }
86
146
  const definedPlugins = [
87
- {
88
- name: 'Akifast',
89
- value: 'pz-akifast'
90
- },
91
- {
92
- name: 'Apple Pay',
93
- value: 'pz-apple-pay'
94
- },
95
- {
96
- name: 'B2B',
97
- value: 'pz-b2b'
98
- },
99
- {
100
- name: 'Basket Gift Pack',
101
- value: 'pz-basket-gift-pack'
102
- },
103
- {
104
- name: 'BKM Express',
105
- value: 'pz-bkm'
106
- },
107
- {
108
- name: 'Checkout Gift Pack',
109
- value: 'pz-checkout-gift-pack'
110
- },
111
- {
112
- name: 'Click & Collect',
113
- value: 'pz-click-collect'
114
- },
115
- {
116
- name: 'Credit Payment',
117
- value: 'pz-credit-payment'
118
- },
119
- {
120
- name: 'Garanti Pay',
121
- value: 'pz-gpay'
122
- },
123
- {
124
- name: 'Masterpass',
125
- value: 'pz-masterpass'
126
- },
127
- {
128
- name: 'Multi Basket',
129
- value: 'pz-multi-basket'
130
- },
131
- {
132
- name: 'One Click Checkout',
133
- value: 'pz-one-click-checkout'
134
- },
135
- {
136
- name: 'Otp',
137
- value: 'pz-otp'
138
- },
139
- {
140
- name: 'Pay On Delivery',
141
- value: 'pz-pay-on-delivery'
142
- },
143
- {
144
- name: 'Saved Card',
145
- value: 'pz-saved-card'
146
- },
147
- {
148
- name: 'Tabby Payment Extension',
149
- value: 'pz-tabby-extension'
150
- },
151
- {
152
- name: 'Tamara Payment Extension',
153
- value: 'pz-tamara-extension'
154
- },
155
- {
156
- name: 'Similar Products',
157
- value: 'pz-similar-products'
158
- },
159
- {
160
- name: 'Hepsipay',
161
- value: 'pz-hepsipay'
162
- },
163
- {
164
- name: 'Flow Payment',
165
- value: 'pz-flow-payment'
166
- },
167
- {
168
- name: 'Virtual Try-On',
169
- value: 'pz-virtual-try-on'
170
- },
171
- {
172
- name: 'Masterpass Rest',
173
- value: 'pz-masterpass-rest'
174
- },
175
- {
176
- name: 'Similar Products',
177
- value: 'pz-similar-products'
178
- },
179
- {
180
- name: 'Haso Payment Gateway',
181
- value: 'pz-haso'
182
- }
147
+ {
148
+ name: 'Akifast',
149
+ value: 'pz-akifast'
150
+ },
151
+ {
152
+ name: 'Apple Pay',
153
+ value: 'pz-apple-pay'
154
+ },
155
+ {
156
+ name: 'B2B',
157
+ value: 'pz-b2b'
158
+ },
159
+ {
160
+ name: 'Basket Gift Pack',
161
+ value: 'pz-basket-gift-pack'
162
+ },
163
+ {
164
+ name: 'BKM Express',
165
+ value: 'pz-bkm'
166
+ },
167
+ {
168
+ name: 'Checkout Gift Pack',
169
+ value: 'pz-checkout-gift-pack'
170
+ },
171
+ {
172
+ name: 'Click & Collect',
173
+ value: 'pz-click-collect'
174
+ },
175
+ {
176
+ name: 'Credit Payment',
177
+ value: 'pz-credit-payment'
178
+ },
179
+ {
180
+ name: 'Garanti Pay',
181
+ value: 'pz-gpay'
182
+ },
183
+ {
184
+ name: 'Masterpass',
185
+ value: 'pz-masterpass'
186
+ },
187
+ {
188
+ name: 'Multi Basket',
189
+ value: 'pz-multi-basket'
190
+ },
191
+ {
192
+ name: 'One Click Checkout',
193
+ value: 'pz-one-click-checkout'
194
+ },
195
+ {
196
+ name: 'Otp',
197
+ value: 'pz-otp'
198
+ },
199
+ {
200
+ name: 'Pay On Delivery',
201
+ value: 'pz-pay-on-delivery'
202
+ },
203
+ {
204
+ name: 'Saved Card',
205
+ value: 'pz-saved-card'
206
+ },
207
+ {
208
+ name: 'Tabby Payment Extension',
209
+ value: 'pz-tabby-extension'
210
+ },
211
+ {
212
+ name: 'Tamara Payment Extension',
213
+ value: 'pz-tamara-extension'
214
+ },
215
+ {
216
+ name: 'Similar Products',
217
+ value: 'pz-similar-products'
218
+ },
219
+ {
220
+ name: 'Hepsipay',
221
+ value: 'pz-hepsipay'
222
+ },
223
+ {
224
+ name: 'Flow Payment',
225
+ value: 'pz-flow-payment'
226
+ },
227
+ {
228
+ name: 'Virtual Try-On',
229
+ value: 'pz-virtual-try-on'
230
+ },
231
+ {
232
+ name: 'Masterpass Rest',
233
+ value: 'pz-masterpass-rest'
234
+ },
235
+ {
236
+ name: 'Similar Products',
237
+ value: 'pz-similar-products'
238
+ },
239
+ {
240
+ name: 'Haso Payment Gateway',
241
+ value: 'pz-haso'
242
+ },
243
+ {
244
+ name: 'Google Pay',
245
+ value: 'pz-google-pay'
246
+ }
183
247
  ];
184
248
  try {
185
- const answers = yield (0, prompts_1.checkbox)({
186
- message: 'Please check/uncheck plugins to install/uninstall.',
187
- choices: definedPlugins.map((plugin) => ({
188
- name: plugin.name,
189
- value: plugin.value,
190
- checked: installedPlugins.includes(plugin.value)
191
- }))
192
- });
193
- if (!answers.length) {
194
- console.log('\x1b[33m%s\x1b[0m', `\nUninstalling all plugins.`);
249
+ const answers = yield (0, prompts_1.checkbox)({
250
+ message: 'Please check/uncheck plugins to install/uninstall.',
251
+ choices: definedPlugins.map((plugin) => ({
252
+ name: plugin.name,
253
+ value: plugin.value,
254
+ checked: installedPlugins.includes(plugin.value)
255
+ }))
256
+ });
257
+ if (!answers.length) {
258
+ console.log('\x1b[33m%s\x1b[0m', `\nUninstalling all plugins.`);
259
+ }
260
+ console.log('\x1b[36m%s\x1b[0m', `\nPlease wait...`);
261
+ fs.writeFileSync(
262
+ pluginsFilePath,
263
+ `module.exports = ${JSON.stringify(answers)};\n`,
264
+ {
265
+ encoding: 'utf-8'
195
266
  }
196
- console.log('\x1b[36m%s\x1b[0m', `\nPlease wait...`);
197
- fs.writeFileSync(pluginsFilePath, `module.exports = ${JSON.stringify(answers)};\n`, {
198
- encoding: 'utf-8'
199
- });
200
- (0, child_process_1.execSync)('yarn install', { stdio: 'pipe' });
201
- console.log('\x1b[32m%s\x1b[0m', `\n✓ ${answers.length
267
+ );
268
+ (0, child_process_1.execSync)('yarn install', { stdio: 'pipe' });
269
+ console.log(
270
+ '\x1b[32m%s\x1b[0m',
271
+ `\n✓ ${
272
+ answers.length
202
273
  ? 'Installed selected plugins'
203
- : 'Uninstalled all plugins'}.\n`);
204
- }
205
- catch (error) {
206
- process.exit(1);
274
+ : 'Uninstalled all plugins'
275
+ }.\n`
276
+ );
277
+ } catch (error) {
278
+ process.exit(1);
207
279
  }
208
- });
280
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.116.0-rc.11",
3
+ "version": "1.116.0-rc.13",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {