cabloy 5.1.127 → 5.1.129
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/.cabloy-version +1 -1
- package/CHANGELOG.md +23 -0
- package/cabloy-docs/backend/i18n-guide.md +86 -7
- package/e2e/specs/a-commerce/commerce.spec.ts +93 -8
- package/package.json +1 -1
- package/vona/env/.env +2 -0
- package/vona/env/.env.prod +6 -2
- package/vona/packages-cli/cabloy-cli/package.json +1 -1
- package/vona/packages-cli/cli/package.json +1 -1
- package/vona/packages-cli/cli-set-api/package.json +1 -1
- package/vona/packages-utils/module-glob/package.json +1 -1
- package/vona/packages-utils/utils/package.json +1 -1
- package/vona/packages-utils/utils/src/vona.ts +8 -1
- package/vona/packages-vona/vona/package.json +1 -1
- package/vona/packages-vona/vona-core/package.json +1 -1
- package/vona/packages-vona/vona-mock/package.json +1 -1
- package/vona/pnpm-lock.yaml +142 -21
- package/vona/pnpm-workspace.yaml +1 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/.metadata/index.ts +1 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/dto/productSelectResItem.tsx +3 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/dto/productView.tsx +3 -1
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/entity/product.tsx +23 -3
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/model/product.ts +1 -0
- package/vona/src/suite/a-commerce/modules/commerce-catalog/src/service/product.ts +7 -2
- package/vona/src/suite/a-commerce/modules/commerce-catalog/test/productPresentation.test.ts +214 -0
- package/vona/src/suite/a-commerce/modules/commerce-payment/src/bean/payScene.commerceOrder.ts +39 -3
- package/vona/src/suite/a-commerce/modules/commerce-payment/src/service/commercePayScene.ts +14 -1
- package/vona/src/suite/a-commerce/modules/commerce-payment/src/service/paymentAttempt.ts +5 -1
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/.metadata/index.ts +17 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/controller/checkout.ts +18 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/checkoutCreate.tsx +3 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/checkoutPaymentMethod.tsx +19 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/dto/checkoutPaymentMethods.tsx +17 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/src/service/order.ts +51 -0
- package/vona/src/suite/a-commerce/modules/commerce-trade/test/paymentOutcome.test.ts +2 -1
- package/vona/src/suite-vendor/a-pay/modules/a-pay/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/.metadata/index.ts +94 -55
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/bean.payScene.ts +65 -1
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/bean/meta.redlock.ts +2 -0
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/controller/paymentCallback.ts +32 -0
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/controller/paymentSession.ts +26 -8
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/paymentCallback.ts +99 -0
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/paymentSession.ts +26 -3
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/providerOperation.ts +214 -82
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/service/refundOperation.ts +27 -2
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/types/payScene.ts +9 -0
- package/vona/src/suite-vendor/a-pay/modules/a-pay/src/types/payment.ts +5 -0
- package/vona/src/suite-vendor/a-pay/modules/pay-mock/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-mock/src/bean/payProvider.mock.ts +7 -0
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/bean/payProvider.paypal.ts +395 -84
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/lib/index.ts +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/lib/paypalGateway.ts +129 -0
- package/vona/src/suite-vendor/a-pay/modules/pay-paypal/src/types/index.ts +2 -0
- package/vona/src/suite-vendor/a-pay/modules/pay-stripe/package.json +1 -1
- package/vona/src/suite-vendor/a-pay/modules/pay-stripe/src/bean/payProvider.stripe.ts +7 -0
- package/vona/src/suite-vendor/a-pay/package.json +5 -5
- package/vona/src/suite-vendor/a-vona/modules/a-core/package.json +1 -1
- package/vona/src/suite-vendor/a-vona/package.json +1 -1
- package/zova/packages-cli/cli/package.json +3 -3
- package/zova/packages-cli/cli-set-front/package.json +4 -4
- package/zova/packages-utils/zova-jsx/package.json +3 -3
- package/zova/packages-utils/zova-vite/package.json +2 -2
- package/zova/packages-zova/zova/package.json +3 -3
- package/zova/packages-zova/zova-core/package.json +2 -2
- package/zova/pnpm-lock.yaml +41 -41
- package/zova/src/suite/a-commerce/modules/commerce-member/src/api/openapi/schemas.ts +8 -0
- package/zova/src/suite/a-commerce/modules/commerce-member/src/api/openapi/types.ts +175 -0
- package/zova/src/suite/a-commerce/modules/commerce-trade/cli/openapi.config.ts +1 -0
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/commerceTradeCheckout.ts +16 -0
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/schemas.ts +8 -0
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/api/openapi/types.ts +177 -2
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/apiSchema/commerceTradeCheckout.ts +12 -1
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/model/cart.ts +11 -0
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/checkout/controller.tsx +25 -1
- package/zova/src/suite/a-commerce/modules/commerce-trade/src/page/payment/controller.tsx +27 -4
- package/zova/src/suite-vendor/a-pay/modules/a-pay/cli/openapi.config.ts +1 -1
- package/zova/src/suite-vendor/a-pay/modules/a-pay/package.json +1 -1
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/schemas.ts +20 -8
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/openapi/types.ts +292 -32
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/api/paymentSession.ts +26 -4
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/apiSchema/paymentSession.ts +5 -0
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/component/paymentNextAction/controller.tsx +2 -1
- package/zova/src/suite-vendor/a-pay/modules/a-pay/src/model/paymentSession.ts +12 -0
- package/zova/src/suite-vendor/a-pay/package.json +2 -2
- package/zova/src/suite-vendor/a-zova/modules/a-zova/package.json +4 -4
- package/zova/src/suite-vendor/a-zova/package.json +2 -2
- /package/vona/patches/{zova-core@5.1.81.patch → zova-core@5.1.82.patch} +0 -0
package/.cabloy-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.1.
|
|
1
|
+
5.1.129
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.1.129
|
|
4
|
+
|
|
5
|
+
### Improvements
|
|
6
|
+
|
|
7
|
+
- Refresh the Zova lockfile after compensation rerun preparation.
|
|
8
|
+
- Update the Vona Zova Core patch to v5.1.82.
|
|
9
|
+
|
|
10
|
+
## 5.1.128
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- Add payment session support.
|
|
15
|
+
- Combine resource name components.
|
|
16
|
+
- Add a PayPal Commerce runbook.
|
|
17
|
+
- Implement the product semantic presentation contract.
|
|
18
|
+
- Complete the PayPal Commerce payment flow.
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
- Preserve changes when resolving main branch conflicts.
|
|
23
|
+
- Enforce payment provider availability.
|
|
24
|
+
- Harden PayPal Commerce reconciliation.
|
|
25
|
+
|
|
3
26
|
## 5.1.127
|
|
4
27
|
|
|
5
28
|
### Features
|
|
@@ -127,17 +127,96 @@ declare module 'vona' {
|
|
|
127
127
|
|
|
128
128
|
In the VSCode workflow, the `recordlocale` snippet can generate the augmentation skeleton.
|
|
129
129
|
|
|
130
|
-
##
|
|
130
|
+
## Formatting locale text
|
|
131
131
|
|
|
132
|
-
Locale
|
|
132
|
+
Locale values use printf-style placeholders. Pass formatting values after the locale key:
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
-
|
|
136
|
-
|
|
134
|
+
```typescript
|
|
135
|
+
// en-us.ts
|
|
136
|
+
export default {
|
|
137
|
+
Apples_: '%d apples',
|
|
138
|
+
Greeting: '%s has %d apples',
|
|
139
|
+
};
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
```typescript
|
|
143
|
+
this.scope.locale.Apples_.locale('en-us', 2);
|
|
144
|
+
// 2 apples
|
|
145
|
+
|
|
146
|
+
this.scope.locale.Greeting.locale('en-us', 'Mike', 2);
|
|
147
|
+
// Mike has 2 apples
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Common placeholders include:
|
|
151
|
+
|
|
152
|
+
- `%s`: string
|
|
153
|
+
- `%d`: number
|
|
154
|
+
- `%i`: integer
|
|
155
|
+
- `%f`: floating-point number
|
|
156
|
+
- `%j`: JSON
|
|
157
|
+
- `%%`: literal percent sign
|
|
158
|
+
|
|
159
|
+
## Plural and value-specific support
|
|
160
|
+
|
|
161
|
+
Locale resources can express special messages for exact numeric values through key suffixes:
|
|
162
|
+
|
|
163
|
+
```typescript
|
|
164
|
+
export default {
|
|
165
|
+
Apples_: '%d apples',
|
|
166
|
+
Apples_0: 'no apples',
|
|
167
|
+
Apples_1: 'one apple',
|
|
168
|
+
};
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The suffix selects a special message based on the first formatting argument:
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
this.scope.locale.Apples_.locale('en-us', 0);
|
|
175
|
+
// no apples
|
|
176
|
+
|
|
177
|
+
this.scope.locale.Apples_.locale('en-us', 1);
|
|
178
|
+
// one apple
|
|
137
179
|
|
|
138
|
-
|
|
180
|
+
this.scope.locale.Apples_.locale('en-us', 2);
|
|
181
|
+
// 2 apples
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
The base key is used when no value-specific key matches. Therefore, it is not necessary to define a special key for every possible number.
|
|
185
|
+
|
|
186
|
+
For a numeric value that is not the first formatting argument, use this naming convention:
|
|
187
|
+
|
|
188
|
+
```text
|
|
189
|
+
<baseKey>_<matchedValue>_<argumentIndex>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
The argument index is zero-based. For example:
|
|
193
|
+
|
|
194
|
+
```typescript
|
|
195
|
+
export default {
|
|
196
|
+
NameApples_: '%s has %d apples',
|
|
197
|
+
NameApples_0_1: '%s has no apples',
|
|
198
|
+
NameApples_1_1: '%s has one apple',
|
|
199
|
+
};
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
Here:
|
|
203
|
+
|
|
204
|
+
- `NameApples_0_1` matches `args[1] === 0`, the second formatting argument;
|
|
205
|
+
- `NameApples_1_1` matches `args[1] === 1`, the second formatting argument;
|
|
206
|
+
- `NameApples_` is used for other values.
|
|
207
|
+
|
|
208
|
+
```typescript
|
|
209
|
+
this.scope.locale.NameApples_.locale('en-us', 'Mike', 0);
|
|
210
|
+
// Mike has no apples
|
|
211
|
+
|
|
212
|
+
this.scope.locale.NameApples_.locale('en-us', 'Mike', 1);
|
|
213
|
+
// Mike has one apple
|
|
214
|
+
|
|
215
|
+
this.scope.locale.NameApples_.locale('en-us', 'Mike', 2);
|
|
216
|
+
// Mike has 2 apples
|
|
217
|
+
```
|
|
139
218
|
|
|
140
|
-
This makes plural handling part of the localization model
|
|
219
|
+
This is exact numeric-value selection, not automatic `Intl.PluralRules` or CLDR plural-category resolution. It makes common plural handling part of the localization model while allowing each locale to define its own wording.
|
|
141
220
|
|
|
142
221
|
## Timezone support
|
|
143
222
|
|
|
@@ -415,7 +415,7 @@ test(
|
|
|
415
415
|
const startResponse = waitForApiResponse(
|
|
416
416
|
page,
|
|
417
417
|
'POST',
|
|
418
|
-
new RegExp(`/api/payment-session/${checkout.paymentSessionId}/start$`),
|
|
418
|
+
new RegExp(`/api/pay/payment-session/${checkout.paymentSessionId}/start$`),
|
|
419
419
|
);
|
|
420
420
|
await page.getByRole('button', { name: 'Start payment', exact: true }).click();
|
|
421
421
|
expect((await startResponse).ok()).toBeTruthy();
|
|
@@ -535,9 +535,7 @@ test(
|
|
|
535
535
|
await orderCard.getByRole('button', { name: 'View', exact: true }).click();
|
|
536
536
|
await expect(page).toHaveURL(new RegExp(`/commerce/order/${checkout.orderId}(?:/|$)`));
|
|
537
537
|
await historyDetailResponse;
|
|
538
|
-
await expect(
|
|
539
|
-
page.getByRole('heading', { name: `Order #${checkout.orderId}`, level: 1 }),
|
|
540
|
-
).toBeVisible();
|
|
538
|
+
await expect(page.getByRole('heading', { name: `Order #${checkout.orderId}` })).toBeVisible();
|
|
541
539
|
await expect(page.getByText('1 × $45.99 = $45.99')).toBeVisible();
|
|
542
540
|
await expect(page.getByRole('alert')).toHaveCount(0);
|
|
543
541
|
expect(pageErrors).toEqual([]);
|
|
@@ -586,7 +584,7 @@ test(
|
|
|
586
584
|
const startResponse = waitForApiResponse(
|
|
587
585
|
page,
|
|
588
586
|
'POST',
|
|
589
|
-
new RegExp(`/api/payment-session/${checkout.paymentSessionId}/start$`),
|
|
587
|
+
new RegExp(`/api/pay/payment-session/${checkout.paymentSessionId}/start$`),
|
|
590
588
|
);
|
|
591
589
|
await page.getByRole('button', { name: 'Start payment', exact: true }).click();
|
|
592
590
|
expect((await startResponse).ok()).toBeTruthy();
|
|
@@ -654,7 +652,7 @@ test(
|
|
|
654
652
|
const startResponse = waitForApiResponse(
|
|
655
653
|
page,
|
|
656
654
|
'POST',
|
|
657
|
-
new RegExp(`/api/payment-session/${checkout.paymentSessionId}/start$`),
|
|
655
|
+
new RegExp(`/api/pay/payment-session/${checkout.paymentSessionId}/start$`),
|
|
658
656
|
);
|
|
659
657
|
await page.getByRole('button', { name: 'Start payment', exact: true }).click();
|
|
660
658
|
expect((await startResponse).ok()).toBeTruthy();
|
|
@@ -738,8 +736,7 @@ test(
|
|
|
738
736
|
{ timeout: 40_000 },
|
|
739
737
|
)
|
|
740
738
|
.toContain('refunded');
|
|
741
|
-
|
|
742
|
-
await expect(refundedOrderRow).toContainText('refunded');
|
|
739
|
+
await expect(await getAdminOrderRow(adminPage, checkout.orderId)).toContainText('refunded');
|
|
743
740
|
expect(adminPageErrors).toEqual([]);
|
|
744
741
|
} finally {
|
|
745
742
|
await adminContext.close().catch(() => {});
|
|
@@ -1016,6 +1013,94 @@ test(
|
|
|
1016
1013
|
},
|
|
1017
1014
|
);
|
|
1018
1015
|
|
|
1016
|
+
test(
|
|
1017
|
+
'ATP-SPC-02: Product renders semantic Admin relation and publication controls',
|
|
1018
|
+
{ tag: ['@admin', '@flow', '@product'] },
|
|
1019
|
+
async ({ browser }, testInfo) => {
|
|
1020
|
+
test.setTimeout(60_000);
|
|
1021
|
+
const suffix = `${testInfo.workerIndex}-${testInfo.parallelIndex ?? testInfo.retry}-${Date.now()}`;
|
|
1022
|
+
const categoryName = `E2E Product Category ${suffix}`;
|
|
1023
|
+
const productTitle = `E2E Product ${suffix}`;
|
|
1024
|
+
const adminContext = await browser.newContext();
|
|
1025
|
+
const adminPage = await adminContext.newPage();
|
|
1026
|
+
const adminPageErrors = collectPageErrors(adminPage);
|
|
1027
|
+
const productCreatePath = '/commerce-admin/rest/resource/commerce-catalog%3Aproduct/create';
|
|
1028
|
+
const productListPath = '/commerce-admin/rest/resource/commerce-catalog%3Aproduct';
|
|
1029
|
+
const categoryActionPath = '/api/commerce/catalog/category';
|
|
1030
|
+
const productActionPath = '/api/commerce/catalog/product';
|
|
1031
|
+
let categoryId: number | string | undefined;
|
|
1032
|
+
let productId: number | string | undefined;
|
|
1033
|
+
let headers: { Authorization: string } | undefined;
|
|
1034
|
+
try {
|
|
1035
|
+
await adminPage.setViewportSize({ width: 1440, height: 900 });
|
|
1036
|
+
await login(adminPage, '/commerce-admin/', 'admin', '123456', 'commerceAdmin');
|
|
1037
|
+
const accessToken = (await adminContext.cookies()).find(
|
|
1038
|
+
cookie => cookie.name === 'token',
|
|
1039
|
+
)?.value;
|
|
1040
|
+
expect(accessToken).toBeTruthy();
|
|
1041
|
+
headers = { Authorization: `Bearer ${accessToken}` };
|
|
1042
|
+
|
|
1043
|
+
const categoryResponse = await adminPage.request.post(categoryActionPath, {
|
|
1044
|
+
data: { name: categoryName, published: true },
|
|
1045
|
+
headers,
|
|
1046
|
+
});
|
|
1047
|
+
expect(categoryResponse.ok()).toBeTruthy();
|
|
1048
|
+
categoryId = (await categoryResponse.json()).data;
|
|
1049
|
+
expectTableIdentity(categoryId);
|
|
1050
|
+
|
|
1051
|
+
await adminPage.goto(productCreatePath, { waitUntil: 'load' });
|
|
1052
|
+
const categoryPicker = adminPage
|
|
1053
|
+
.getByRole('group', { name: 'Category' })
|
|
1054
|
+
.getByRole('combobox');
|
|
1055
|
+
await expect(categoryPicker).toBeVisible();
|
|
1056
|
+
await categoryPicker.selectOption({ label: categoryName });
|
|
1057
|
+
await expect(categoryPicker).toHaveValue(String(categoryId));
|
|
1058
|
+
const publication = adminPage.getByRole('group', { name: 'Published' }).getByRole('combobox');
|
|
1059
|
+
await expect(publication).toBeVisible();
|
|
1060
|
+
await publication.selectOption({ label: 'Unpublished' });
|
|
1061
|
+
await expect(publication).toHaveValue('false');
|
|
1062
|
+
|
|
1063
|
+
const productResponse = await adminPage.request.post(productActionPath, {
|
|
1064
|
+
data: { categoryId, title: productTitle, published: false },
|
|
1065
|
+
headers,
|
|
1066
|
+
});
|
|
1067
|
+
expect(productResponse.ok()).toBeTruthy();
|
|
1068
|
+
productId = (await productResponse.json()).data;
|
|
1069
|
+
expectTableIdentity(productId);
|
|
1070
|
+
|
|
1071
|
+
await adminPage.goto(productListPath, { waitUntil: 'load' });
|
|
1072
|
+
const productRow = adminPage.getByRole('row', { name: new RegExp(productTitle) });
|
|
1073
|
+
await expect(productRow).toBeVisible();
|
|
1074
|
+
await expect(productRow.getByText(categoryName, { exact: true })).toBeVisible();
|
|
1075
|
+
await expect(productRow.getByText('Unpublished', { exact: true })).toBeVisible();
|
|
1076
|
+
|
|
1077
|
+
await adminPage.goto(`${productListPath}/${productId}`, { waitUntil: 'load' });
|
|
1078
|
+
await expect(
|
|
1079
|
+
adminPage.getByRole('group', { name: 'Category' }).getByRole('textbox'),
|
|
1080
|
+
).toHaveValue(categoryName);
|
|
1081
|
+
await expect(
|
|
1082
|
+
adminPage.getByRole('group', { name: 'Published' }).getByRole('textbox'),
|
|
1083
|
+
).toHaveValue('Unpublished');
|
|
1084
|
+
await expect(adminPage.getByRole('button', { name: 'Submit', exact: true })).toHaveCount(0);
|
|
1085
|
+
expect(adminPageErrors).toEqual([]);
|
|
1086
|
+
} finally {
|
|
1087
|
+
if (productId && headers) {
|
|
1088
|
+
const response = await adminPage.request.delete(`${productActionPath}/${productId}`, {
|
|
1089
|
+
headers,
|
|
1090
|
+
});
|
|
1091
|
+
expect(response.ok()).toBeTruthy();
|
|
1092
|
+
}
|
|
1093
|
+
if (categoryId && headers) {
|
|
1094
|
+
const response = await adminPage.request.delete(`${categoryActionPath}/${categoryId}`, {
|
|
1095
|
+
headers,
|
|
1096
|
+
});
|
|
1097
|
+
expect(response.ok()).toBeTruthy();
|
|
1098
|
+
}
|
|
1099
|
+
await adminContext.close().catch(() => {});
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
);
|
|
1103
|
+
|
|
1019
1104
|
test(
|
|
1020
1105
|
'Commerce Cart: anonymous browser is redirected to login',
|
|
1021
1106
|
{ tag: ['@web', '@cart'] },
|
package/package.json
CHANGED
package/vona/env/.env
CHANGED
package/vona/env/.env.prod
CHANGED
|
@@ -17,7 +17,14 @@ export function combineResourceNameParts(
|
|
|
17
17
|
// path
|
|
18
18
|
const res: string[] = [];
|
|
19
19
|
if (!simplifyProviderId || parts[0] !== 'a') res.push(parts[0]);
|
|
20
|
-
if (
|
|
20
|
+
if (
|
|
21
|
+
!simplify ||
|
|
22
|
+
(resourceName !== parts[1] &&
|
|
23
|
+
!resourceName.startsWith(`${parts[1]}-`) &&
|
|
24
|
+
!resourceName.startsWith(`${parts[1]}/`))
|
|
25
|
+
) {
|
|
26
|
+
res.push(parts[1]);
|
|
27
|
+
}
|
|
21
28
|
if (resourceName) res.push(resourceName);
|
|
22
29
|
return res;
|
|
23
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.85",
|
|
4
4
|
"gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
|
|
5
5
|
"description": "Vona is an intuitive, elegant and powerful Node.js framework for rapidly developing enterprise applications of any size",
|
|
6
6
|
"keywords": [
|