@pisell/pisellos 0.0.544 → 0.0.547
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/dist/modules/Discount/index.js +4 -3
- package/dist/modules/Discount/types.d.ts +1 -0
- package/dist/modules/Order/index.d.ts +1 -1
- package/dist/modules/Product/index.d.ts +1 -1
- package/dist/solution/BookingByStep/index.d.ts +2 -2
- package/dist/solution/ScanOrder/index.d.ts +6 -5
- package/dist/solution/ScanOrder/index.js +529 -400
- package/lib/modules/Discount/index.js +3 -2
- package/lib/modules/Discount/types.d.ts +1 -0
- package/lib/modules/Order/index.d.ts +1 -1
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/solution/BookingByStep/index.d.ts +2 -2
- package/lib/solution/ScanOrder/index.d.ts +6 -5
- package/lib/solution/ScanOrder/index.js +114 -56
- package/package.json +2 -2
|
@@ -108,11 +108,12 @@ var DiscountModule = class extends import_BaseModule.BaseModule {
|
|
|
108
108
|
code,
|
|
109
109
|
translate_flag: 1,
|
|
110
110
|
tags: ["good_pass", "product_discount_card"],
|
|
111
|
-
available: 1,
|
|
111
|
+
// available: 1,
|
|
112
112
|
relation_product: 1,
|
|
113
113
|
with: ["extensionData", "customScheduleSnapshot", "holder.detail"],
|
|
114
114
|
order_behavior_count: 1,
|
|
115
115
|
order_behavior_count_customer_id: customerId || 1,
|
|
116
|
+
unified_status_info_flag: 1,
|
|
116
117
|
...orderId ? { order_behavior_count_order_id: orderId } : {},
|
|
117
118
|
request_timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
118
119
|
});
|
|
@@ -184,7 +185,7 @@ var DiscountModule = class extends import_BaseModule.BaseModule {
|
|
|
184
185
|
usageLimitFailKey: limitFailKey
|
|
185
186
|
};
|
|
186
187
|
});
|
|
187
|
-
const availableLists = lists.filter((item) => !item.usageLimitFailKey);
|
|
188
|
+
const availableLists = lists.filter((item) => !item.usageLimitFailKey && item.unified_available_status !== 0);
|
|
188
189
|
const currentFailDiscount = lists.find((item) => item.usageLimitFailKey);
|
|
189
190
|
return {
|
|
190
191
|
discountList: availableLists,
|
|
@@ -155,6 +155,7 @@ export interface Discount {
|
|
|
155
155
|
start_time?: string;
|
|
156
156
|
discount_rule_uncheck_flag?: boolean;
|
|
157
157
|
usageLimitFailKey?: string | null;
|
|
158
|
+
unified_available_status?: number | undefined | null;
|
|
158
159
|
}
|
|
159
160
|
export interface DiscountState {
|
|
160
161
|
discountList: Discount[];
|
|
@@ -83,7 +83,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
83
83
|
enhancePayload?: SubmitPayloadEnhancer;
|
|
84
84
|
}): Promise<T>;
|
|
85
85
|
createOrder(params: CommitOrderParams['query']): {
|
|
86
|
-
type: "
|
|
86
|
+
type: "virtual" | "appointment_booking";
|
|
87
87
|
platform: string;
|
|
88
88
|
sales_channel: string;
|
|
89
89
|
order_sales_channel: string;
|
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "normal" | "duration" | "session";
|
|
53
53
|
}
|
|
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
311
311
|
date: string;
|
|
312
312
|
status: string;
|
|
313
313
|
week: string;
|
|
314
|
-
weekNum: 0 |
|
|
314
|
+
weekNum: 0 | 1 | 4 | 2 | 3 | 5 | 6;
|
|
315
315
|
}[]>;
|
|
316
316
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
317
317
|
private getScheduleDataByIds;
|
|
@@ -358,7 +358,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
358
358
|
};
|
|
359
359
|
setOtherData(key: string, value: any): void;
|
|
360
360
|
getOtherData(key: string): any;
|
|
361
|
-
getProductTypeById(id: number): Promise<"
|
|
361
|
+
getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
|
|
362
362
|
/**
|
|
363
363
|
* 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
|
|
364
364
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Module, ModuleOptions, PisellCore } from '../../types';
|
|
2
2
|
import { BaseModule } from '../../modules/BaseModule';
|
|
3
|
-
import { ScanOrderAddLogParams, ScanOrderAvailabilityInfo, ScanOrderOrderProduct, ScanOrderOrderProductIdentity, ScanOrderScanCodeResult } from './types';
|
|
3
|
+
import { ScanOrderAddLogParams, ScanOrderAvailabilityInfo, ScanOrderOrderProduct, ScanOrderOrderProductIdentity, ScanOrderScanCodeResult, ScanOrderTempOrder } from './types';
|
|
4
4
|
import type { UpdateProductInOrderParams } from '../../modules/Order/types';
|
|
5
5
|
import type { Discount } from '../../modules/Discount/types';
|
|
6
6
|
import { type CartItemSummary, type PaxInfo, type QuantityCheckResult, type QuantityLimitResult } from '../../model/strategy/adapter/itemRule';
|
|
@@ -69,7 +69,7 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
69
69
|
passed: boolean | null;
|
|
70
70
|
failures: QuantityCheckResult[];
|
|
71
71
|
};
|
|
72
|
-
getTempOrder():
|
|
72
|
+
getTempOrder(): ScanOrderTempOrder | null;
|
|
73
73
|
updateTempOrderNote(note: string): string;
|
|
74
74
|
setPickupReferenceMode(mode: 'counter_pickup' | 'table_service'): {
|
|
75
75
|
service_type: 'dine_in';
|
|
@@ -77,8 +77,8 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
77
77
|
};
|
|
78
78
|
setPickupRef(buzzer: string): string;
|
|
79
79
|
private ensureTempOrder;
|
|
80
|
-
addNewOrder(): Promise<
|
|
81
|
-
restoreOrder(): Promise<
|
|
80
|
+
addNewOrder(): Promise<ScanOrderTempOrder>;
|
|
81
|
+
restoreOrder(): Promise<ScanOrderTempOrder>;
|
|
82
82
|
getOrderProducts(): ScanOrderOrderProduct[];
|
|
83
83
|
getSummary(): Promise<import("./types").ScanOrderSummary>;
|
|
84
84
|
getDiscountList(): Discount[];
|
|
@@ -92,6 +92,7 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
92
92
|
}): Promise<void>;
|
|
93
93
|
private findReservationRuleResource;
|
|
94
94
|
private buildScanOrderResourceMetadata;
|
|
95
|
+
private prepareRetailAvailability;
|
|
95
96
|
private buildSubmitPayloadEnhancer;
|
|
96
97
|
submitScanOrder<T = any>(): Promise<T>;
|
|
97
98
|
addProductToOrder(product: Partial<ScanOrderOrderProduct> & ScanOrderOrderProductIdentity): Promise<ScanOrderOrderProduct[]>;
|
|
@@ -118,7 +119,7 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
118
119
|
private normalizeResourceState;
|
|
119
120
|
private resolveResourceSelectType;
|
|
120
121
|
private fetchResourceOccupyDetailByResourceId;
|
|
121
|
-
checkResourceAvailable(resourceId
|
|
122
|
+
checkResourceAvailable(resourceId?: string | null, hasOrderId?: boolean): Promise<ScanOrderAvailabilityInfo>;
|
|
122
123
|
getAdditionalOrderInfo(): Promise<{
|
|
123
124
|
orderId: string;
|
|
124
125
|
orderStatus: 'pending' | 'processing' | 'completed' | 'cancelled';
|
|
@@ -815,6 +815,49 @@ var _ScanOrderImpl = class extends import_BaseModule.BaseModule {
|
|
|
815
815
|
combined_resource: isCombined ? combined : null
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
|
+
async prepareRetailAvailability(params) {
|
|
819
|
+
var _a, _b;
|
|
820
|
+
const { tempOrder, hasOrderId, resourceId, reason } = params;
|
|
821
|
+
this.enabledReservationRuleProducts = [];
|
|
822
|
+
tempOrder.bookings = [];
|
|
823
|
+
tempOrder.order_id = null;
|
|
824
|
+
delete tempOrder.relation_id;
|
|
825
|
+
delete tempOrder.table_form_id;
|
|
826
|
+
delete tempOrder.resource_id;
|
|
827
|
+
delete tempOrder.table_number;
|
|
828
|
+
tempOrder.metadata = { ...tempOrder.metadata || {} };
|
|
829
|
+
delete tempOrder.metadata.table_occupancy_duration;
|
|
830
|
+
const resourceState = {
|
|
831
|
+
mode: "idle",
|
|
832
|
+
deskmate_valid: false,
|
|
833
|
+
allowSnack: false,
|
|
834
|
+
deskmateValid: false,
|
|
835
|
+
isExclusive: false,
|
|
836
|
+
isFull: false,
|
|
837
|
+
raw: null
|
|
838
|
+
};
|
|
839
|
+
this.store.resource = resourceState;
|
|
840
|
+
(_a = this.store.order) == null ? void 0 : _a.persistTempOrder();
|
|
841
|
+
await this.addNewOrder();
|
|
842
|
+
await this.setItemRuleRuntimeConfig({
|
|
843
|
+
serviceType: (_b = this.otherParams) == null ? void 0 : _b.businessCode,
|
|
844
|
+
submissionIndex: hasOrderId ? 1 : 0,
|
|
845
|
+
historicalItems: []
|
|
846
|
+
});
|
|
847
|
+
const availabilityInfo = {
|
|
848
|
+
mode: "idle",
|
|
849
|
+
deskmate_valid: false
|
|
850
|
+
};
|
|
851
|
+
this.logMethodSuccess("checkResourceAvailable", {
|
|
852
|
+
resourceId,
|
|
853
|
+
mode: availabilityInfo.mode,
|
|
854
|
+
retailMode: true,
|
|
855
|
+
retailReason: reason,
|
|
856
|
+
persistedRelationId: tempOrder.relation_id,
|
|
857
|
+
persistedResourceId: tempOrder.resource_id
|
|
858
|
+
});
|
|
859
|
+
return availabilityInfo;
|
|
860
|
+
}
|
|
818
861
|
// ScanOrder 提交 payload enhancer:
|
|
819
862
|
// - 给所有 booking 注入 appointment_status: 'started'(扫码点餐语义)
|
|
820
863
|
// - 给所有 booking 的 metadata 注入 resource_select_type(来自预约规则商品的 resource.type)
|
|
@@ -837,7 +880,17 @@ var _ScanOrderImpl = class extends import_BaseModule.BaseModule {
|
|
|
837
880
|
};
|
|
838
881
|
return (payload, { bookingUuid, tempOrder }) => {
|
|
839
882
|
var _a, _b;
|
|
840
|
-
const resourceId = tempOrder.resource_id ?? (resourceState == null ? void 0 : resourceState.relationId);
|
|
883
|
+
const resourceId = String(tempOrder.resource_id ?? (resourceState == null ? void 0 : resourceState.relationId) ?? "").trim();
|
|
884
|
+
const hasReservationBookingContext = Boolean(
|
|
885
|
+
ruleProduct && resourceState && resourceId && (tempOrder.relation_id || resourceState.relationId) && (tempOrder.table_form_id || resourceState.tableFormId)
|
|
886
|
+
);
|
|
887
|
+
if (!hasReservationBookingContext) {
|
|
888
|
+
return {
|
|
889
|
+
...payload,
|
|
890
|
+
bookings: [],
|
|
891
|
+
products: [...payload.products || []]
|
|
892
|
+
};
|
|
893
|
+
}
|
|
841
894
|
const rawCollectPax = (_a = tempOrder.metadata) == null ? void 0 : _a.collect_pax;
|
|
842
895
|
const hasCollectPaxForCapacity = rawCollectPax !== null && rawCollectPax !== void 0 && rawCollectPax !== "";
|
|
843
896
|
const resourceCapacityValue = hasCollectPaxForCapacity ? (0, import_utils2.normalizeSubmitCollectPaxValue)(rawCollectPax) : resolveResourceCapacity();
|
|
@@ -1499,10 +1552,11 @@ var _ScanOrderImpl = class extends import_BaseModule.BaseModule {
|
|
|
1499
1552
|
// 检测当前链接是否可用
|
|
1500
1553
|
// 通过 resource_id + 店铺配置
|
|
1501
1554
|
// hasOrderId 表示 url 上是否有 orderid,如果是的话,后续的流程会走加单
|
|
1502
|
-
async checkResourceAvailable(resourceId, hasOrderId) {
|
|
1555
|
+
async checkResourceAvailable(resourceId, hasOrderId = false) {
|
|
1503
1556
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
1557
|
+
const normalizedResourceId = String(resourceId ?? "").trim();
|
|
1504
1558
|
this.logMethodStart("checkResourceAvailable", {
|
|
1505
|
-
resourceId
|
|
1559
|
+
resourceId: normalizedResourceId
|
|
1506
1560
|
});
|
|
1507
1561
|
try {
|
|
1508
1562
|
const businessCode = String(((_a = this.otherParams) == null ? void 0 : _a.businessCode) ?? "").trim();
|
|
@@ -1556,62 +1610,66 @@ var _ScanOrderImpl = class extends import_BaseModule.BaseModule {
|
|
|
1556
1610
|
const reservationLinkIds = (0, import_utils.collectLinkProductIdsFromReservationRules)(
|
|
1557
1611
|
dineInConfig["fulfillment.enabled_resource_rules"]
|
|
1558
1612
|
);
|
|
1613
|
+
if (!normalizedResourceId || reservationLinkIds.length === 0) {
|
|
1614
|
+
return await this.prepareRetailAvailability({
|
|
1615
|
+
tempOrder,
|
|
1616
|
+
hasOrderId,
|
|
1617
|
+
resourceId: normalizedResourceId,
|
|
1618
|
+
reason: !normalizedResourceId ? "missing_resource_id" : "missing_enabled_resource_rules"
|
|
1619
|
+
});
|
|
1620
|
+
}
|
|
1559
1621
|
let pendingRequestEntryPax;
|
|
1560
1622
|
let pendingRequestPaxMin;
|
|
1561
1623
|
let pendingRequestPaxMax;
|
|
1562
|
-
|
|
1563
|
-
|
|
1624
|
+
tempOrder.metadata = { ...tempOrder.metadata || {} };
|
|
1625
|
+
delete tempOrder.metadata.table_occupancy_duration;
|
|
1626
|
+
const reservationProductList = new import_ProductList.ProductList(
|
|
1627
|
+
`${this.name}_reservationEnabledRules`,
|
|
1628
|
+
this.defaultVersion
|
|
1629
|
+
);
|
|
1630
|
+
await reservationProductList.initialize(this.core, {
|
|
1631
|
+
store: { list: [], selectProducts: [] },
|
|
1632
|
+
otherParams: {
|
|
1633
|
+
...this.otherParams,
|
|
1634
|
+
fatherModule: this.name,
|
|
1635
|
+
openCache: Boolean(this.cacheId),
|
|
1636
|
+
cacheId: this.cacheId
|
|
1637
|
+
}
|
|
1638
|
+
});
|
|
1639
|
+
const scheduleDate = (0, import_dayjs.default)().format("YYYY-MM-DD");
|
|
1640
|
+
const scheduleDatetime = (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss");
|
|
1641
|
+
const loaded = await reservationProductList.loadProducts({
|
|
1642
|
+
product_ids: reservationLinkIds,
|
|
1643
|
+
schedule_date: scheduleDate,
|
|
1644
|
+
schedule_datetime: scheduleDatetime,
|
|
1645
|
+
cacheId: this.cacheId
|
|
1646
|
+
});
|
|
1647
|
+
if (Array.isArray(loaded)) {
|
|
1648
|
+
this.enabledReservationRuleProducts = loaded;
|
|
1649
|
+
const occupancyMinutes = (0, import_utils.pickFirstDurationMinutesFromProducts)(loaded);
|
|
1650
|
+
if (occupancyMinutes !== void 0) {
|
|
1651
|
+
tempOrder.metadata.table_occupancy_duration = occupancyMinutes;
|
|
1652
|
+
}
|
|
1653
|
+
if ((0, import_utils.hasCustomCapacityProduct)(loaded)) {
|
|
1654
|
+
pendingRequestEntryPax = 1;
|
|
1655
|
+
const paxBounds = (0, import_utils.pickFirstCustomCapacityPaxBounds)(loaded);
|
|
1656
|
+
if ((paxBounds == null ? void 0 : paxBounds.min) !== void 0)
|
|
1657
|
+
pendingRequestPaxMin = paxBounds.min;
|
|
1658
|
+
if ((paxBounds == null ? void 0 : paxBounds.max) !== void 0)
|
|
1659
|
+
pendingRequestPaxMax = paxBounds.max;
|
|
1660
|
+
}
|
|
1564
1661
|
} else {
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
store: { list: [], selectProducts: [] },
|
|
1573
|
-
otherParams: {
|
|
1574
|
-
...this.otherParams,
|
|
1575
|
-
fatherModule: this.name,
|
|
1576
|
-
openCache: Boolean(this.cacheId),
|
|
1577
|
-
cacheId: this.cacheId
|
|
1578
|
-
}
|
|
1579
|
-
});
|
|
1580
|
-
const scheduleDate = (0, import_dayjs.default)().format("YYYY-MM-DD");
|
|
1581
|
-
const scheduleDatetime = (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss");
|
|
1582
|
-
const loaded = await reservationProductList.loadProducts({
|
|
1583
|
-
product_ids: reservationLinkIds,
|
|
1584
|
-
schedule_date: scheduleDate,
|
|
1585
|
-
schedule_datetime: scheduleDatetime,
|
|
1662
|
+
this.enabledReservationRuleProducts = [];
|
|
1663
|
+
const error = loaded instanceof Error ? loaded : new Error("预约规则商品列表接口返回异常");
|
|
1664
|
+
this.logMethodError("loadReservationRuleProducts", error, {
|
|
1665
|
+
resourceId: normalizedResourceId,
|
|
1666
|
+
reservationLinkIds,
|
|
1667
|
+
scheduleDate,
|
|
1668
|
+
scheduleDatetime,
|
|
1586
1669
|
cacheId: this.cacheId
|
|
1587
1670
|
});
|
|
1588
|
-
if (Array.isArray(loaded)) {
|
|
1589
|
-
this.enabledReservationRuleProducts = loaded;
|
|
1590
|
-
const occupancyMinutes = (0, import_utils.pickFirstDurationMinutesFromProducts)(loaded);
|
|
1591
|
-
if (occupancyMinutes !== void 0) {
|
|
1592
|
-
tempOrder.metadata.table_occupancy_duration = occupancyMinutes;
|
|
1593
|
-
}
|
|
1594
|
-
if ((0, import_utils.hasCustomCapacityProduct)(loaded)) {
|
|
1595
|
-
pendingRequestEntryPax = 1;
|
|
1596
|
-
const paxBounds = (0, import_utils.pickFirstCustomCapacityPaxBounds)(loaded);
|
|
1597
|
-
if ((paxBounds == null ? void 0 : paxBounds.min) !== void 0)
|
|
1598
|
-
pendingRequestPaxMin = paxBounds.min;
|
|
1599
|
-
if ((paxBounds == null ? void 0 : paxBounds.max) !== void 0)
|
|
1600
|
-
pendingRequestPaxMax = paxBounds.max;
|
|
1601
|
-
}
|
|
1602
|
-
} else {
|
|
1603
|
-
this.enabledReservationRuleProducts = [];
|
|
1604
|
-
const error = loaded instanceof Error ? loaded : new Error("预约规则商品列表接口返回异常");
|
|
1605
|
-
this.logMethodError("loadReservationRuleProducts", error, {
|
|
1606
|
-
resourceId,
|
|
1607
|
-
reservationLinkIds,
|
|
1608
|
-
scheduleDate,
|
|
1609
|
-
scheduleDatetime,
|
|
1610
|
-
cacheId: this.cacheId
|
|
1611
|
-
});
|
|
1612
|
-
}
|
|
1613
1671
|
}
|
|
1614
|
-
const occupyDetail = await this.fetchResourceOccupyDetailByResourceId(
|
|
1672
|
+
const occupyDetail = await this.fetchResourceOccupyDetailByResourceId(normalizedResourceId);
|
|
1615
1673
|
const resourceSelectType = this.resolveResourceSelectType(
|
|
1616
1674
|
(0, import_utils.toPositiveString)(occupyDetail == null ? void 0 : occupyDetail.form_id)
|
|
1617
1675
|
);
|
|
@@ -1643,9 +1701,9 @@ var _ScanOrderImpl = class extends import_BaseModule.BaseModule {
|
|
|
1643
1701
|
...this.store.resource.requestPaxMin !== void 0 ? { requestPaxMin: this.store.resource.requestPaxMin } : {},
|
|
1644
1702
|
...this.store.resource.requestPaxMax !== void 0 ? { requestPaxMax: this.store.resource.requestPaxMax } : {}
|
|
1645
1703
|
};
|
|
1646
|
-
tempOrder.relation_id =
|
|
1704
|
+
tempOrder.relation_id = normalizedResourceId || ((_g = this.otherParams) == null ? void 0 : _g.relation_id);
|
|
1647
1705
|
tempOrder.table_form_id = resourceState.tableFormId;
|
|
1648
|
-
tempOrder.resource_id =
|
|
1706
|
+
tempOrder.resource_id = normalizedResourceId;
|
|
1649
1707
|
(_h = this.store.order) == null ? void 0 : _h.persistTempOrder();
|
|
1650
1708
|
if (availabilityInfo.mode === "idle") {
|
|
1651
1709
|
await this.addNewOrder();
|
|
@@ -1685,7 +1743,7 @@ var _ScanOrderImpl = class extends import_BaseModule.BaseModule {
|
|
|
1685
1743
|
availabilityInfo.closed_behavior = closedBehaviorValue;
|
|
1686
1744
|
}
|
|
1687
1745
|
this.logMethodSuccess("checkResourceAvailable", {
|
|
1688
|
-
resourceId,
|
|
1746
|
+
resourceId: normalizedResourceId,
|
|
1689
1747
|
mode: availabilityInfo.mode,
|
|
1690
1748
|
orderId: availabilityInfo.order_id,
|
|
1691
1749
|
relationId: availabilityInfo.relation_id,
|
|
@@ -1700,7 +1758,7 @@ var _ScanOrderImpl = class extends import_BaseModule.BaseModule {
|
|
|
1700
1758
|
return availabilityInfo;
|
|
1701
1759
|
} catch (error) {
|
|
1702
1760
|
this.logMethodError("checkResourceAvailable", error.message, {
|
|
1703
|
-
resourceId
|
|
1761
|
+
resourceId: normalizedResourceId
|
|
1704
1762
|
});
|
|
1705
1763
|
throw error;
|
|
1706
1764
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@pisell/pisellos",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.547",
|
|
5
5
|
"description": "一个可扩展的前端模块化SDK框架,支持插件系统",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|
|
19
19
|
"changeset": "changeset",
|
|
20
20
|
"version": "changeset version",
|
|
21
|
-
"release": "changeset publish && npm run sync && git push",
|
|
21
|
+
"release": "changeset publish --registry=https://registry.npmjs.com/ && npm run sync && git push",
|
|
22
22
|
"example": "npx parcel-bundler examples/index.html",
|
|
23
23
|
"docs": "typedoc --out docs src/index.ts",
|
|
24
24
|
"sync": "node sync.js",
|