@azzas/azzas-tracker-web 1.0.82 → 1.0.84
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 +130 -130
- package/dist/mod.cjs +11 -9
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.d.cts +0 -0
- package/dist/mod.d.ts +0 -0
- package/dist/mod.global.js +11 -9
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +11 -9
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +44 -42
- package/package.json +38 -38
package/dist/mod.vtex.global.js
CHANGED
|
@@ -723,7 +723,7 @@ var AzzasTracker = function() {
|
|
|
723
723
|
4,
|
|
724
724
|
Promise.all(items.map(function(item) {
|
|
725
725
|
return _async_to_generator(function() {
|
|
726
|
-
var _item_additionalInfo, _item_additionalInfo1,
|
|
726
|
+
var _item_additionalInfo, _item_additionalInfo1, _item_skuName_split_, _item_skuName, _item_skuName_split_1, _item_skuName1, _tmp;
|
|
727
727
|
return _ts_generator(this, function(_state) {
|
|
728
728
|
switch(_state.label){
|
|
729
729
|
case 0:
|
|
@@ -744,7 +744,7 @@ var AzzasTracker = function() {
|
|
|
744
744
|
case 1:
|
|
745
745
|
return [
|
|
746
746
|
2,
|
|
747
|
-
(_tmp.item_sku = _state.sent() ||
|
|
747
|
+
(_tmp.item_sku = _state.sent() || null, _tmp.item_name = (item === null || item === void 0 ? void 0 : item.name.replace(item === null || item === void 0 ? void 0 : item.skuName, "").trim()) || item.name || null, _tmp.item_category = getItemCategory(item) || null, _tmp.item_variant = (item === null || item === void 0 ? void 0 : (_item_skuName = item.skuName) === null || _item_skuName === void 0 ? void 0 : (_item_skuName_split_ = _item_skuName.split(" - ")[0]) === null || _item_skuName_split_ === void 0 ? void 0 : _item_skuName_split_.trim()) || "", _tmp.item_variant2 = (item === null || item === void 0 ? void 0 : (_item_skuName1 = item.skuName) === null || _item_skuName1 === void 0 ? void 0 : (_item_skuName_split_1 = _item_skuName1.split(" - ")[1]) === null || _item_skuName_split_1 === void 0 ? void 0 : _item_skuName_split_1.trim()) || "", _tmp.item_url = "https://www.farmrio.com.br".concat(item.detailUrl) || null, _tmp.discount = getDiscount(item), _tmp.image_url = resizeVtexImage(item === null || item === void 0 ? void 0 : item.image) || resizeVtexImage(item === null || item === void 0 ? void 0 : item.imageUrl) || null, _tmp)
|
|
748
748
|
];
|
|
749
749
|
}
|
|
750
750
|
});
|
|
@@ -918,7 +918,7 @@ var AzzasTracker = function() {
|
|
|
918
918
|
var itemsFromItem = // src/params/resolvers/items/fromItem.ts
|
|
919
919
|
function itemsFromItem(context, event) {
|
|
920
920
|
return _async_to_generator(function() {
|
|
921
|
-
var _item_additionalProperty, _item_itemOffered, _item_itemOffered1, _item_additionalInfo, _item_brand, _item_itemOffered_brand, _item_itemOffered2, _item_itemOffered3, _item_name, _item_item_name, _item_itemOffered_isVariantOf_name, _item_itemOffered_isVariantOf, _item_itemOffered4, _item_itemAttributes,
|
|
921
|
+
var _item_additionalProperty, _item_itemOffered, _item_itemOffered1, _item_additionalInfo, _item_brand, _item_itemOffered_brand, _item_itemOffered2, _item_itemOffered3, _item_name, _item_name1, _item_item_name, _item_itemOffered_isVariantOf_name, _item_itemOffered_isVariantOf, _item_itemOffered4, _split_, _item_itemAttributes, _split_1, _this, item, orderForm, itemListName, resolvedListName, resolvedItemId, _tmp, _tmp1;
|
|
922
922
|
return _ts_generator(this, function(_state) {
|
|
923
923
|
switch(_state.label){
|
|
924
924
|
case 0:
|
|
@@ -961,7 +961,9 @@ var AzzasTracker = function() {
|
|
|
961
961
|
return [
|
|
962
962
|
2,
|
|
963
963
|
[
|
|
964
|
-
(_tmp.item_sku = _tmp1 || null, _tmp.item_name = (item === null || item === void 0 ? void 0 : (_item_name = item.name) === null || _item_name === void 0 ? void 0 : _item_name.
|
|
964
|
+
(_tmp.item_sku = _tmp1 || null, _tmp.item_name = (item === null || item === void 0 ? void 0 : (_item_name = item.name) === null || _item_name === void 0 ? void 0 : _item_name.replace(item === null || item === void 0 ? void 0 : item.skuName, "").trim()) || (item === null || item === void 0 ? void 0 : (_item_name1 = item.name) === null || _item_name1 === void 0 ? void 0 : _item_name1.split(" - ").shift()) || (item === null || item === void 0 ? void 0 : (_item_item_name = item.item_name) === null || _item_item_name === void 0 ? void 0 : _item_item_name.split(" - ").shift()) || (item === null || item === void 0 ? void 0 : (_item_itemOffered4 = item.itemOffered) === null || _item_itemOffered4 === void 0 ? void 0 : (_item_itemOffered_isVariantOf = _item_itemOffered4.isVariantOf) === null || _item_itemOffered_isVariantOf === void 0 ? void 0 : (_item_itemOffered_isVariantOf_name = _item_itemOffered_isVariantOf.name) === null || _item_itemOffered_isVariantOf_name === void 0 ? void 0 : _item_itemOffered_isVariantOf_name.split(" - ").shift()) || null, _tmp.item_category = getItemCategory(item) || null, _tmp.// item_variant: (item?.skuName || item?.item_variant || item?.name || item?.itemOffered.name).split(/[-/]/)[0].trim() || null,
|
|
965
|
+
item_variant = ((_split_ = ((item === null || item === void 0 ? void 0 : item.skuName) || (item === null || item === void 0 ? void 0 : item.item_variant) || (item === null || item === void 0 ? void 0 : item.name) || (item === null || item === void 0 ? void 0 : item.itemOffered.name)).split(" - ")[0]) === null || _split_ === void 0 ? void 0 : _split_.trim()) || null, _tmp.// item_variant2: item?.size || item?.itemAttributes?.size || (item?.skuName || item?.name || item?.itemOffered.name)?.split(/[-/]/).pop()?.trim() || null,
|
|
966
|
+
item_variant2 = (item === null || item === void 0 ? void 0 : item.size) || (item === null || item === void 0 ? void 0 : (_item_itemAttributes = item.itemAttributes) === null || _item_itemAttributes === void 0 ? void 0 : _item_itemAttributes.size) || ((_this = (item === null || item === void 0 ? void 0 : item.skuName) || (item === null || item === void 0 ? void 0 : item.name) || (item === null || item === void 0 ? void 0 : item.itemOffered.name)) === null || _this === void 0 ? void 0 : (_split_1 = _this.split(" - ")[1]) === null || _split_1 === void 0 ? void 0 : _split_1.trim()) || null, _tmp.discount = getDiscount(item), _tmp.item_list_name = resolvedListName, _tmp.item_url = (item === null || item === void 0 ? void 0 : item.item_url) || null, _tmp.// add_to_cart dito
|
|
965
967
|
image_url = resizeVtexImage(item === null || item === void 0 ? void 0 : item.image) || resizeVtexImage(item === null || item === void 0 ? void 0 : item.imageUrl) || null, _tmp)
|
|
966
968
|
]
|
|
967
969
|
];
|
|
@@ -1279,20 +1281,20 @@ var AzzasTracker = function() {
|
|
|
1279
1281
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
1280
1282
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1281
1283
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
1282
|
-
var __export = function
|
|
1284
|
+
var __export = function(target, all) {
|
|
1283
1285
|
for(var name in all)__defProp(target, name, {
|
|
1284
1286
|
get: all[name],
|
|
1285
1287
|
enumerable: true
|
|
1286
1288
|
});
|
|
1287
1289
|
};
|
|
1288
|
-
var __copyProps = function
|
|
1290
|
+
var __copyProps = function(to, from, except, desc) {
|
|
1289
1291
|
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
1290
1292
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
1291
1293
|
try {
|
|
1292
1294
|
var _loop = function() {
|
|
1293
1295
|
var key = _step.value;
|
|
1294
1296
|
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
1295
|
-
get: function
|
|
1297
|
+
get: function() {
|
|
1296
1298
|
return from[key];
|
|
1297
1299
|
},
|
|
1298
1300
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
@@ -1316,7 +1318,7 @@ var AzzasTracker = function() {
|
|
|
1316
1318
|
}
|
|
1317
1319
|
return to;
|
|
1318
1320
|
};
|
|
1319
|
-
var __toCommonJS = function
|
|
1321
|
+
var __toCommonJS = function(mod) {
|
|
1320
1322
|
return __copyProps(__defProp({}, "__esModule", {
|
|
1321
1323
|
value: true
|
|
1322
1324
|
}), mod);
|
|
@@ -1324,13 +1326,13 @@ var AzzasTracker = function() {
|
|
|
1324
1326
|
// src/index.ts
|
|
1325
1327
|
var src_exports = {};
|
|
1326
1328
|
__export(src_exports, {
|
|
1327
|
-
EVENTS: function
|
|
1329
|
+
EVENTS: function() {
|
|
1328
1330
|
return EVENTS;
|
|
1329
1331
|
},
|
|
1330
|
-
default: function
|
|
1332
|
+
default: function() {
|
|
1331
1333
|
return src_default;
|
|
1332
1334
|
},
|
|
1333
|
-
trackWebEvent: function
|
|
1335
|
+
trackWebEvent: function() {
|
|
1334
1336
|
return trackWebEvent;
|
|
1335
1337
|
}
|
|
1336
1338
|
});
|
|
@@ -1781,16 +1783,16 @@ var AzzasTracker = function() {
|
|
|
1781
1783
|
"cart\xE3o"
|
|
1782
1784
|
]
|
|
1783
1785
|
];
|
|
1784
|
-
var toNum = function
|
|
1786
|
+
var toNum = function(val) {
|
|
1785
1787
|
return typeof val === "string" ? Number(val.replace(/[^\d,]/g, "").replace(",", ".")) : val;
|
|
1786
1788
|
};
|
|
1787
|
-
var setLocalStorage = function
|
|
1789
|
+
var setLocalStorage = function(key, value) {
|
|
1788
1790
|
localStorage.setItem(key, value);
|
|
1789
1791
|
};
|
|
1790
|
-
var getLocalStorage = function
|
|
1792
|
+
var getLocalStorage = function(key) {
|
|
1791
1793
|
return localStorage.getItem(key);
|
|
1792
1794
|
};
|
|
1793
|
-
var documentToHash = function
|
|
1795
|
+
var documentToHash = function(document2) {
|
|
1794
1796
|
return _async_to_generator(function() {
|
|
1795
1797
|
var encoder, data, hashBuffer, hashArray;
|
|
1796
1798
|
return _ts_generator(this, function(_state) {
|
|
@@ -1835,7 +1837,7 @@ var AzzasTracker = function() {
|
|
|
1835
1837
|
brand: getBrand,
|
|
1836
1838
|
items: getItems,
|
|
1837
1839
|
payment_type: getPaymentType,
|
|
1838
|
-
user_info: function
|
|
1840
|
+
user_info: function(context, eventName) {
|
|
1839
1841
|
return _async_to_generator(function() {
|
|
1840
1842
|
var _PROD_DOMAINS_, PROD_DOMAINS, domain, api, response, res, cpfFromStorage, hashedDocument, _;
|
|
1841
1843
|
return _ts_generator(this, function(_state) {
|
|
@@ -1966,13 +1968,13 @@ var AzzasTracker = function() {
|
|
|
1966
1968
|
});
|
|
1967
1969
|
})();
|
|
1968
1970
|
},
|
|
1969
|
-
content_type: function
|
|
1971
|
+
content_type: function(context, eventName) {
|
|
1970
1972
|
return "regiao".concat(":" + context.category).concat(context.subcategory ? ":" + context.subcategory : "").concat(":" + context.componentName) || null;
|
|
1971
1973
|
},
|
|
1972
|
-
region: function
|
|
1974
|
+
region: function(context, eventName) {
|
|
1973
1975
|
return context.region || null;
|
|
1974
1976
|
},
|
|
1975
|
-
line_items: function
|
|
1977
|
+
line_items: function(context, eventName) {
|
|
1976
1978
|
if (context === null || context === void 0 ? void 0 : context.lineItems) return context.lineItems;
|
|
1977
1979
|
if (context === null || context === void 0 ? void 0 : context.item) {
|
|
1978
1980
|
return [
|
|
@@ -1988,7 +1990,7 @@ var AzzasTracker = function() {
|
|
|
1988
1990
|
return item.productId;
|
|
1989
1991
|
}).join(",");
|
|
1990
1992
|
},
|
|
1991
|
-
currency: function
|
|
1993
|
+
currency: function(context, eventName) {
|
|
1992
1994
|
var _context_orderForm_storePreferencesData, _context_orderForm;
|
|
1993
1995
|
if (context === null || context === void 0 ? void 0 : context.currency) return context.currency;
|
|
1994
1996
|
if (context === null || context === void 0 ? void 0 : context.bannerUrl) return "BRL";
|
|
@@ -1998,12 +2000,12 @@ var AzzasTracker = function() {
|
|
|
1998
2000
|
}
|
|
1999
2001
|
return ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_storePreferencesData = _context_orderForm.storePreferencesData) === null || _context_orderForm_storePreferencesData === void 0 ? void 0 : _context_orderForm_storePreferencesData.currencyCode) || null;
|
|
2000
2002
|
},
|
|
2001
|
-
value: function
|
|
2003
|
+
value: function(context, eventName) {
|
|
2002
2004
|
var _context_item, _context_orderForm;
|
|
2003
2005
|
if (context === null || context === void 0 ? void 0 : context.value) return toNum(context.value);
|
|
2004
2006
|
return context.item ? toNum((_context_item = context.item) === null || _context_item === void 0 ? void 0 : _context_item.price) : ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.value) != null ? context.orderForm.value / 100 : null;
|
|
2005
2007
|
},
|
|
2006
|
-
total_discount: function
|
|
2008
|
+
total_discount: function(context, eventName) {
|
|
2007
2009
|
var _context_orderForm, _context_orderForm1;
|
|
2008
2010
|
if (context === null || context === void 0 ? void 0 : context.totalDiscount) return context.totalDiscount;
|
|
2009
2011
|
var totalsList = ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.totalizers) || ((_context_orderForm1 = context.orderForm) === null || _context_orderForm1 === void 0 ? void 0 : _context_orderForm1.totals) || [];
|
|
@@ -2017,7 +2019,7 @@ var AzzasTracker = function() {
|
|
|
2017
2019
|
});
|
|
2018
2020
|
return Math.abs(((discounts === null || discounts === void 0 ? void 0 : discounts.value) || 0) + totalDiscount) / 100 || null;
|
|
2019
2021
|
},
|
|
2020
|
-
subtotal: function
|
|
2022
|
+
subtotal: function(context, eventName) {
|
|
2021
2023
|
var _context_orderForm, _context_orderForm1;
|
|
2022
2024
|
var totalsList = ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.totalizers) || ((_context_orderForm1 = context.orderForm) === null || _context_orderForm1 === void 0 ? void 0 : _context_orderForm1.totals) || [];
|
|
2023
2025
|
var subtotal = totalsList.filter(function(t) {
|
|
@@ -2027,7 +2029,7 @@ var AzzasTracker = function() {
|
|
|
2027
2029
|
}, 0) / 100 || 0;
|
|
2028
2030
|
return subtotal;
|
|
2029
2031
|
},
|
|
2030
|
-
coupon_message: function
|
|
2032
|
+
coupon_message: function(context, eventName) {
|
|
2031
2033
|
var _context_orderForm;
|
|
2032
2034
|
if (context.couponMessage) return context.couponMessage;
|
|
2033
2035
|
var messages = ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.messages) || [];
|
|
@@ -2040,44 +2042,44 @@ var AzzasTracker = function() {
|
|
|
2040
2042
|
return msg.text;
|
|
2041
2043
|
}).join(" | ");
|
|
2042
2044
|
},
|
|
2043
|
-
seller_cod_name: function
|
|
2045
|
+
seller_cod_name: function(context, eventName) {
|
|
2044
2046
|
return context.appliedSellerCodName || (context === null || context === void 0 ? void 0 : context.orderForm.marketingData.utmiCampaign) || null;
|
|
2045
2047
|
},
|
|
2046
|
-
coupon: function
|
|
2048
|
+
coupon: function(context, eventName) {
|
|
2047
2049
|
var _context_orderForm_marketingData, _context_orderForm;
|
|
2048
2050
|
return context.appliedCoupon || (context === null || context === void 0 ? void 0 : (_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_marketingData = _context_orderForm.marketingData) === null || _context_orderForm_marketingData === void 0 ? void 0 : _context_orderForm_marketingData.coupon) || null;
|
|
2049
2051
|
},
|
|
2050
|
-
pre_filled: function
|
|
2052
|
+
pre_filled: function(context, eventName) {
|
|
2051
2053
|
return !!context.preFilled;
|
|
2052
2054
|
},
|
|
2053
|
-
search_term: function
|
|
2055
|
+
search_term: function(context, eventName) {
|
|
2054
2056
|
return context.searchTerm || null;
|
|
2055
2057
|
},
|
|
2056
|
-
search_found: function
|
|
2058
|
+
search_found: function(context, eventName) {
|
|
2057
2059
|
return !!context.searchFound;
|
|
2058
2060
|
},
|
|
2059
|
-
search_quantity: function
|
|
2061
|
+
search_quantity: function(context, eventName) {
|
|
2060
2062
|
return context.searchQuantity || 0;
|
|
2061
2063
|
},
|
|
2062
|
-
promotion_name: function
|
|
2064
|
+
promotion_name: function(context, eventName) {
|
|
2063
2065
|
return context.promotionName || null;
|
|
2064
2066
|
},
|
|
2065
|
-
creative_name: function
|
|
2067
|
+
creative_name: function(context, eventName) {
|
|
2066
2068
|
return context.creativeName || null;
|
|
2067
2069
|
},
|
|
2068
|
-
creative_slot: function
|
|
2070
|
+
creative_slot: function(context, eventName) {
|
|
2069
2071
|
return context.creativeSlot || null;
|
|
2070
2072
|
},
|
|
2071
|
-
zipcode: function
|
|
2073
|
+
zipcode: function(context, eventName) {
|
|
2072
2074
|
return context.zipCode || null;
|
|
2073
2075
|
},
|
|
2074
|
-
size: function
|
|
2076
|
+
size: function(context, eventName) {
|
|
2075
2077
|
return context.size || null;
|
|
2076
2078
|
},
|
|
2077
|
-
item_ref: function
|
|
2079
|
+
item_ref: function(context, eventName) {
|
|
2078
2080
|
return context.itemRef || null;
|
|
2079
2081
|
},
|
|
2080
|
-
flag_pickup: function
|
|
2082
|
+
flag_pickup: function(context, eventName) {
|
|
2081
2083
|
var _orderForm_shippingData;
|
|
2082
2084
|
var orderForm = context.orderForm;
|
|
2083
2085
|
if (!orderForm) return null;
|
|
@@ -2090,7 +2092,7 @@ var AzzasTracker = function() {
|
|
|
2090
2092
|
});
|
|
2091
2093
|
return hasPickup;
|
|
2092
2094
|
},
|
|
2093
|
-
shippings: function
|
|
2095
|
+
shippings: function(context, eventName) {
|
|
2094
2096
|
var orderForm = context.orderForm;
|
|
2095
2097
|
if (!orderForm) return null;
|
|
2096
2098
|
var groupShipping = {};
|
|
@@ -2154,7 +2156,7 @@ var AzzasTracker = function() {
|
|
|
2154
2156
|
});
|
|
2155
2157
|
return shippings || null;
|
|
2156
2158
|
},
|
|
2157
|
-
shipping: function
|
|
2159
|
+
shipping: function(context, eventName) {
|
|
2158
2160
|
var _ref;
|
|
2159
2161
|
var _context_orderForm_shippingData, _context_orderForm;
|
|
2160
2162
|
var logistics = (_ref = context === null || context === void 0 ? void 0 : (_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_shippingData = _context_orderForm.shippingData) === null || _context_orderForm_shippingData === void 0 ? void 0 : _context_orderForm_shippingData.logisticsInfo) !== null && _ref !== void 0 ? _ref : [];
|
|
@@ -2167,7 +2169,7 @@ var AzzasTracker = function() {
|
|
|
2167
2169
|
return total + ((_ref = selected === null || selected === void 0 ? void 0 : selected.price) !== null && _ref !== void 0 ? _ref : 0);
|
|
2168
2170
|
}, 0);
|
|
2169
2171
|
},
|
|
2170
|
-
shipping_tier: function
|
|
2172
|
+
shipping_tier: function(context, eventName) {
|
|
2171
2173
|
var _ref;
|
|
2172
2174
|
var _context_orderForm_shippingData, _context_orderForm;
|
|
2173
2175
|
var logistics = (_ref = context === null || context === void 0 ? void 0 : (_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_shippingData = _context_orderForm.shippingData) === null || _context_orderForm_shippingData === void 0 ? void 0 : _context_orderForm_shippingData.logisticsInfo) !== null && _ref !== void 0 ? _ref : [];
|
|
@@ -2202,11 +2204,11 @@ var AzzasTracker = function() {
|
|
|
2202
2204
|
}).filter(Boolean).join(", ");
|
|
2203
2205
|
return shippingTier || null;
|
|
2204
2206
|
},
|
|
2205
|
-
transaction_id: function
|
|
2207
|
+
transaction_id: function(context, eventName) {
|
|
2206
2208
|
var _context_orderForm_orderGroup, _context_orderForm;
|
|
2207
2209
|
return ((_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : (_context_orderForm_orderGroup = _context_orderForm.orderGroup) === null || _context_orderForm_orderGroup === void 0 ? void 0 : _context_orderForm_orderGroup.toString()) || null;
|
|
2208
2210
|
},
|
|
2209
|
-
available_grid: function
|
|
2211
|
+
available_grid: function(context, eventName) {
|
|
2210
2212
|
return context.availableGrid || null;
|
|
2211
2213
|
}
|
|
2212
2214
|
};
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@azzas/azzas-tracker-web",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/mod.cjs",
|
|
6
|
-
"module": "./dist/mod.js",
|
|
7
|
-
"types": "./dist/mod.d.ts",
|
|
8
|
-
"unpkg": "./dist/mod.global.js",
|
|
9
|
-
"jsdelivr": "./dist/mod.global.js",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"import": "./dist/mod.js",
|
|
13
|
-
"require": "./dist/mod.cjs",
|
|
14
|
-
"default": "./dist/legacy/mod.cjs"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"dist"
|
|
19
|
-
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsup",
|
|
22
|
-
"prepublishOnly": "npm run build",
|
|
23
|
-
"release:homolog": "npm run build && npm version prepatch --preid=beta && npm publish --tag beta --access public",
|
|
24
|
-
"release:prod": "npm run build && npm version patch && npm publish --access public",
|
|
25
|
-
"pack:copy": "node -e \"const v=require('./package.json').version,e=require('child_process').execSync;e('npm pack',{stdio:'inherit'});e('tar -xzf azzas-azzas-tracker-web-'+v+'.tgz',{stdio:'inherit'})\"",
|
|
26
|
-
"start:deno": "deno run --allow-net --allow-read https://deno.land/std@0.207.0/http/file_server.ts ./package",
|
|
27
|
-
"dev:deno": "npm run build && npm run pack:copy && npm run start:deno",
|
|
28
|
-
"dev:npm": "npm run build -- --watch"
|
|
29
|
-
},
|
|
30
|
-
"publishConfig": {
|
|
31
|
-
"access": "public"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@swc/core": "^1.15.7",
|
|
35
|
-
"tsup": "^8.5.0",
|
|
36
|
-
"typescript": "^5.9.2"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@azzas/azzas-tracker-web",
|
|
3
|
+
"version": "1.0.84",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/mod.cjs",
|
|
6
|
+
"module": "./dist/mod.js",
|
|
7
|
+
"types": "./dist/mod.d.ts",
|
|
8
|
+
"unpkg": "./dist/mod.global.js",
|
|
9
|
+
"jsdelivr": "./dist/mod.global.js",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/mod.js",
|
|
13
|
+
"require": "./dist/mod.cjs",
|
|
14
|
+
"default": "./dist/legacy/mod.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup",
|
|
22
|
+
"prepublishOnly": "npm run build",
|
|
23
|
+
"release:homolog": "npm run build && npm version prepatch --preid=beta && npm publish --tag beta --access public",
|
|
24
|
+
"release:prod": "npm run build && npm version patch && npm publish --access public",
|
|
25
|
+
"pack:copy": "node -e \"const v=require('./package.json').version,e=require('child_process').execSync;e('npm pack',{stdio:'inherit'});e('tar -xzf azzas-azzas-tracker-web-'+v+'.tgz',{stdio:'inherit'})\"",
|
|
26
|
+
"start:deno": "deno run --allow-net --allow-read https://deno.land/std@0.207.0/http/file_server.ts ./package",
|
|
27
|
+
"dev:deno": "npm run build && npm run pack:copy && npm run start:deno",
|
|
28
|
+
"dev:npm": "npm run build -- --watch"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@swc/core": "^1.15.7",
|
|
35
|
+
"tsup": "^8.5.0",
|
|
36
|
+
"typescript": "^5.9.2"
|
|
37
|
+
}
|
|
38
|
+
}
|