@wikicasa-dev/utilities 1.0.6 → 1.0.8
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/DeviceDetectionUtils.cjs +1 -1
- package/dist/DeviceDetectionUtils.js +3 -3
- package/dist/DownloadUtils.cjs +1 -0
- package/dist/DownloadUtils.js +9 -0
- package/dist/RESB_UrlBuilder.cjs +1 -1
- package/dist/RESB_UrlBuilder.js +8 -8
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -11
- package/dist/{types-CTdZJ5hY.js → types-9fLIjwrJ.js} +4 -4
- package/dist/{types-BwcfOdWy.cjs → types-TxQzMZqL.cjs} +1 -1
- package/dist/utils/DOMUtils.d.ts +2 -1
- package/dist/utils/DownloadUtils.d.ts +7 -0
- package/dist/utils/EmailUtils.d.ts +2 -1
- package/dist/utils/GAutocompleteUtils.d.ts +2 -1
- package/dist/utils/NumberUtils.d.ts +2 -2
- package/dist/utils/RESB_UrlBuilder.d.ts +2 -1
- package/package.json +9 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./types-TxQzMZqL.cjs"),t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,n=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),o=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),s=(r={sm:e.r.SMALL,md:e.r.MEDIUM,lg:e.r.LARGE,xl:e.r.EXTRA_LARGE})=>{const i=r;return window.innerWidth<i.sm?"mobile":window.innerWidth<i.lg?"tablet":"desktop"};exports.getCurrentDeviceSize=s;exports.isMobile=n;exports.isSafari=o;exports.isiOSDevice=t;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as i } from "./types-9fLIjwrJ.js";
|
|
2
2
|
const n = () => /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, o = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
3
3
|
navigator.userAgent
|
|
4
|
-
), s = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent), a = (
|
|
4
|
+
), s = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent), a = (r = {
|
|
5
5
|
sm: i.SMALL,
|
|
6
6
|
md: i.MEDIUM,
|
|
7
7
|
lg: i.LARGE,
|
|
8
8
|
xl: i.EXTRA_LARGE
|
|
9
9
|
}) => {
|
|
10
|
-
const e =
|
|
10
|
+
const e = r;
|
|
11
11
|
return window.innerWidth < e.sm ? "mobile" : window.innerWidth < e.lg ? "tablet" : "desktop";
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(t,c)=>{if(t.size===0)return;const o=URL.createObjectURL(t),e=document.createElement("a");e.href=o,e.target="_blank",e.download=c,e.click(),URL.revokeObjectURL(o)};exports.downloadFile=n;
|
package/dist/RESB_UrlBuilder.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./types-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./types-TxQzMZqL.cjs");function a(n,l,e,t,s,u,o){let r="/";return e&&(r+=(e==i.s.AUCTION?window._auctionLabel:e==i.s.RENT?window._rentLabel:window._saleLabel)+"-"),r+=`${l}/`,u&&(r+=`${u}/`),n&&(r+=`${n.replace(/^-+|-+$/g,"")}/`),t&&(r+=`${t.replace(/^_+|_+$/g,"")}/`),!t&&o&&(r+=`${o.replace(/^_+|_+$/g,"")}/`),s&&(r+=`${s.replace(/^_+|_+$/g,"")}/`),r}function d(n){const l=Object.keys(i.j).map(e=>n[e]?encodeURIComponent(i.j[e])+"="+encodeURIComponent(n[e]):null).filter(e=>e!==null);return l.length?`?${l.join("&")}`:""}function f(n){const l=Object.keys(i.K).map(e=>{if(n[e])if(Array.isArray(n[e])){const t=n[e],s=i.K[e];let u="";for(let o=0;o<t.length;o++)u+=encodeURIComponent(s)+"="+encodeURIComponent(t[o]),u+=o<t.length-1?"&":"";return u}else return encodeURIComponent(i.K[e])+"="+encodeURIComponent(n[e]);else return null}).filter(e=>e!==null);return l.length?`?${l.join("&")}`:""}exports.buildParams=d;exports.buildParamsForAgency=f;exports.buildURL=a;
|
package/dist/RESB_UrlBuilder.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function a(e,
|
|
3
|
-
let
|
|
4
|
-
return n && (
|
|
1
|
+
import { s as m, j as p, K as f } from "./types-9fLIjwrJ.js";
|
|
2
|
+
function a(e, r, n, l, u, i, t) {
|
|
3
|
+
let o = "/";
|
|
4
|
+
return n && (o += (n == m.AUCTION ? window._auctionLabel : n == m.RENT ? window._rentLabel : window._saleLabel) + "-"), o += `${r}/`, i && (o += `${i}/`), e && (o += `${e.replace(/^-+|-+$/g, "")}/`), l && (o += `${l.replace(/^_+|_+$/g, "")}/`), !l && t && (o += `${t.replace(/^_+|_+$/g, "")}/`), u && (o += `${u.replace(/^_+|_+$/g, "")}/`), o;
|
|
5
5
|
}
|
|
6
6
|
function d(e) {
|
|
7
|
-
const
|
|
8
|
-
return
|
|
7
|
+
const r = Object.keys(p).map((n) => e[n] ? encodeURIComponent(p[n]) + "=" + encodeURIComponent(e[n]) : null).filter((n) => n !== null);
|
|
8
|
+
return r.length ? `?${r.join("&")}` : "";
|
|
9
9
|
}
|
|
10
10
|
function s(e) {
|
|
11
|
-
const
|
|
11
|
+
const r = Object.keys(f).map((n) => {
|
|
12
12
|
if (e[n])
|
|
13
13
|
if (Array.isArray(e[n])) {
|
|
14
14
|
const l = e[n], u = f[n];
|
|
@@ -21,7 +21,7 @@ function s(e) {
|
|
|
21
21
|
else
|
|
22
22
|
return null;
|
|
23
23
|
}).filter((n) => n !== null);
|
|
24
|
-
return
|
|
24
|
+
return r.length ? `?${r.join("&")}` : "";
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
27
|
d as buildParams,
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./ArrayUtils.cjs"),O=require("./ColorUtils.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./ArrayUtils.cjs"),O=require("./ColorUtils.cjs"),o=require("./CookieUtils.cjs"),p=require("./CurrencyUtils.cjs"),C=require("./DateUtils.cjs"),i=require("./DeviceDetectionUtils.cjs"),s=require("./DOMUtils.cjs"),n=require("./EmailUtils.cjs"),E=require("./FunctionUtils.cjs"),c=require("./GenericUtils.cjs"),r=require("./NumberUtils.cjs"),l=require("./ObjectUtils.cjs"),R=require("./ObserverUtils.cjs"),m=require("./PermissionUtils.cjs"),a=require("./RESB_UrlBuilder.cjs"),t=require("./StringUtils.cjs"),g=require("./URLBuilderUtils.cjs"),e=require("./RegexUtils.cjs"),u=require("./GeolocationUtils.cjs"),d=require("./AdressUtils.cjs"),S=require("./GAutocompleteUtils.cjs"),U=require("./DownloadUtils.cjs");exports.isArrNullOrEmpty=b.isArrNullOrEmpty;exports.rgba=O.rgba;exports.decodeCookie=o.decodeCookie;exports.encodeCookie=o.encodeCookie;exports.getCookie=o.getCookie;exports.removeCookie=o.removeCookie;exports.formatCurrency=p.formatCurrency;exports.formatDate=C.formatDate;exports.getCurrentDeviceSize=i.getCurrentDeviceSize;exports.isMobile=i.isMobile;exports.isSafari=i.isSafari;exports.isiOSDevice=i.isiOSDevice;exports.emptyElem=s.emptyElem;exports.getSingleElement=s.getSingleElement;exports.hideElem=s.hideElem;exports.showElem=s.showElem;exports.hash256=n.hash256;exports.hashEmail=n.hashEmail;exports.debounce=E.debounce;exports.isPromise=E.isPromise;exports.awaitableSetTimeout=c.awaitableSetTimeout;exports.createCustomEvent=c.createCustomEvent;exports.formatFloat=r.formatFloat;exports.formatInteger=r.formatInteger;exports.formatLocaleNumber=r.formatLocaleNumber;exports.formatNumber=r.formatNumber;exports.formatterNumberObj=r.formatterNumberObj;exports.parseLocaleNumber=r.parseLocaleNumber;exports.deepCopy=l.deepCopy;exports.isEmptyObject=l.isEmptyObject;exports.shallowCopyObjectTo=l.shallowCopyObjectTo;exports.observeOnce=R.observeOnce;exports.addPermissionStateListener=m.addPermissionStateListener;exports.onNotificationsPermissionChange=m.onNotificationsPermissionChange;exports.buildParams=a.buildParams;exports.buildParamsForAgency=a.buildParamsForAgency;exports.buildURL=a.buildURL;exports.capitalizeFirstLetter=t.capitalizeFirstLetter;exports.cleanASCII=t.cleanASCII;exports.decodeTextWithEntities=t.decodeTextWithEntities;exports.replaceAll=t.replaceAll;exports.replaceAllTokens=t.replaceAllTokens;exports.stringToHyphened=t.stringToHyphened;exports.appendQueryString=g.appendQueryString;exports.COMPETITOR_REGEX=e.COMPETITOR_REGEX;exports.DATE_REGEX=e.DATE_REGEX;exports.EMAIL_REGEX=e.EMAIL_REGEX;exports.EMAIL_REGEX_INTO_TEXT=e.EMAIL_REGEX_INTO_TEXT;exports.EXCLUDED_REGEX=e.EXCLUDED_REGEX;exports.GLOBAL_PHONE_REGEX=e.GLOBAL_PHONE_REGEX;exports.PASSWORD_REGEX=e.PASSWORD_REGEX;exports.PHONE_REGEX=e.PHONE_REGEX;exports.ROOMS_REGEX=e.ROOMS_REGEX;exports.SQM_REGEX=e.SQM_REGEX;exports.browserSupportGeolocation=u.browserSupportGeolocation;exports.getUserPosition=u.getUserPosition;exports.formatAddress=d.formatAddress;exports.formattedAddress=d.formattedAddress;exports.googlePlaceConverter=S.googlePlaceConverter;exports.downloadFile=U.downloadFile;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { isArrNullOrEmpty as r } from "./ArrayUtils.js";
|
|
2
2
|
import { rgba as m } from "./ColorUtils.js";
|
|
3
|
-
import { decodeCookie as a, encodeCookie as E, getCookie as p, removeCookie as
|
|
3
|
+
import { decodeCookie as a, encodeCookie as E, getCookie as p, removeCookie as f } from "./CookieUtils.js";
|
|
4
4
|
import { formatCurrency as l } from "./CurrencyUtils.js";
|
|
5
5
|
import { formatDate as x } from "./DateUtils.js";
|
|
6
|
-
import { getCurrentDeviceSize as
|
|
6
|
+
import { getCurrentDeviceSize as c, isMobile as b, isSafari as u, isiOSDevice as O } from "./DeviceDetectionUtils.js";
|
|
7
7
|
import { emptyElem as R, getSingleElement as g, hideElem as S, showElem as _ } from "./DOMUtils.js";
|
|
8
8
|
import { hash256 as G, hashEmail as X } from "./EmailUtils.js";
|
|
9
9
|
import { debounce as T, isPromise as h } from "./FunctionUtils.js";
|
|
10
10
|
import { awaitableSetTimeout as y, createCustomEvent as N } from "./GenericUtils.js";
|
|
11
|
-
import { formatFloat as I, formatInteger as v, formatLocaleNumber as M, formatNumber as k, formatterNumberObj as w, parseLocaleNumber as
|
|
11
|
+
import { formatFloat as I, formatInteger as v, formatLocaleNumber as M, formatNumber as k, formatterNumberObj as w, parseLocaleNumber as F } from "./NumberUtils.js";
|
|
12
12
|
import { deepCopy as H, isEmptyObject as U, shallowCopyObjectTo as z } from "./ObjectUtils.js";
|
|
13
13
|
import { observeOnce as W } from "./ObserverUtils.js";
|
|
14
14
|
import { addPermissionStateListener as q, onNotificationsPermissionChange as J } from "./PermissionUtils.js";
|
|
15
15
|
import { buildParams as V, buildParamsForAgency as Y, buildURL as Z } from "./RESB_UrlBuilder.js";
|
|
16
16
|
import { capitalizeFirstLetter as ee, cleanASCII as oe, decodeTextWithEntities as re, replaceAll as te, replaceAllTokens as me, stringToHyphened as ie } from "./StringUtils.js";
|
|
17
17
|
import { appendQueryString as Ee } from "./URLBuilderUtils.js";
|
|
18
|
-
import { COMPETITOR_REGEX as
|
|
18
|
+
import { COMPETITOR_REGEX as fe, DATE_REGEX as se, EMAIL_REGEX as le, EMAIL_REGEX_INTO_TEXT as ne, EXCLUDED_REGEX as xe, GLOBAL_PHONE_REGEX as de, PASSWORD_REGEX as ce, PHONE_REGEX as be, ROOMS_REGEX as ue, SQM_REGEX as Oe } from "./RegexUtils.js";
|
|
19
19
|
import { browserSupportGeolocation as Re, getUserPosition as ge } from "./GeolocationUtils.js";
|
|
20
20
|
import { formatAddress as _e, formattedAddress as Ae } from "./AdressUtils.js";
|
|
21
21
|
import { googlePlaceConverter as Xe } from "./GAutocompleteUtils.js";
|
|
22
|
+
import { downloadFile as Te } from "./DownloadUtils.js";
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
fe as COMPETITOR_REGEX,
|
|
25
|
+
se as DATE_REGEX,
|
|
25
26
|
le as EMAIL_REGEX,
|
|
26
27
|
ne as EMAIL_REGEX_INTO_TEXT,
|
|
27
28
|
xe as EXCLUDED_REGEX,
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
de as GLOBAL_PHONE_REGEX,
|
|
30
|
+
ce as PASSWORD_REGEX,
|
|
30
31
|
be as PHONE_REGEX,
|
|
31
32
|
ue as ROOMS_REGEX,
|
|
32
33
|
Oe as SQM_REGEX,
|
|
@@ -44,6 +45,7 @@ export {
|
|
|
44
45
|
a as decodeCookie,
|
|
45
46
|
re as decodeTextWithEntities,
|
|
46
47
|
H as deepCopy,
|
|
48
|
+
Te as downloadFile,
|
|
47
49
|
R as emptyElem,
|
|
48
50
|
E as encodeCookie,
|
|
49
51
|
_e as formatAddress,
|
|
@@ -56,7 +58,7 @@ export {
|
|
|
56
58
|
Ae as formattedAddress,
|
|
57
59
|
w as formatterNumberObj,
|
|
58
60
|
p as getCookie,
|
|
59
|
-
|
|
61
|
+
c as getCurrentDeviceSize,
|
|
60
62
|
g as getSingleElement,
|
|
61
63
|
ge as getUserPosition,
|
|
62
64
|
Xe as googlePlaceConverter,
|
|
@@ -71,8 +73,8 @@ export {
|
|
|
71
73
|
O as isiOSDevice,
|
|
72
74
|
W as observeOnce,
|
|
73
75
|
J as onNotificationsPermissionChange,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
F as parseLocaleNumber,
|
|
77
|
+
f as removeCookie,
|
|
76
78
|
te as replaceAll,
|
|
77
79
|
me as replaceAllTokens,
|
|
78
80
|
m as rgba,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var i=(o=>(o[o.SMALL=576]="SMALL",o[o.MEDIUM=768]="MEDIUM",o[o.LARGE=992]="LARGE",o[o.EXTRA_LARGE=1200]="EXTRA_LARGE",o))(i||{}),r=(o=>(o[o.SELLING=0]="SELLING",o[o.SALE=1]="SALE",o[o.RENT=2]="RENT",o[o.AUCTION=3]="AUCTION",o))(r||{});const a={priceFrom:"PrezzoMinimo",priceTo:"PrezzoMassimo",sqMfrom:"SuperficieMinima",sqMto:"SuperficieMassima",roomsFrom:"NumeroMinimoLocali",roomsTo:"NumeroMassimoLocali",bathroomsFrom:"NumeroMinimoBagni",bathroomsTo:"NumeroMassimoBagni",conditionType:"StatoImmobile",energyClassFilter:"ClasseEnergetica",floor:"Piano",excludeAuctions:"EscludiAste",shortRentOnly:"SoloAffittiBrevi",excludeBareOwnership:"EscludiNudaProprieta",onlyPublicUser:"DaPrivato",balcony:"Balcone",terrace:"Terrazzo",balconyTerrace:"BalconeTerrazzo",boxCarSpot:"BoxPostoAuto",carSpot:"PostoAuto",box:"Box",lift:"Ascensore",privateGarden:"GiardinoPrivato",publicGarden:"GiardinoPubblico",cellar:"Cantina",airConditioning:"AriaCondizionata",furnished:"Arredato",publicTransport:"Trasporti",school:"Istruzione",market:"Supermercati",hospital:"Ospedali",pharmacy:"Farmacie",charging:"Ricarica",post:"UfficioPostale",bank:"Banche",swimmingPoolPrivate:"PiscinaPrivata",swimmingPoolPublic:"PiscinaCondominiale",luxury:"Lusso",discounted:"Sconto",filterOrderId:"Ordinamento"},e={sale:"Vendita",rent:"Affitto",auctionType:"Asta",bareOwnershipType:"NudaProprieta",typologyIdList:"Tipologia",filterOrderId:"Ordinamento"};exports.
|
|
1
|
+
"use strict";var i=(o=>(o[o.SMALL=576]="SMALL",o[o.MEDIUM=768]="MEDIUM",o[o.LARGE=992]="LARGE",o[o.EXTRA_LARGE=1200]="EXTRA_LARGE",o))(i||{}),r=(o=>(o[o.SELLING=0]="SELLING",o[o.SALE=1]="SALE",o[o.RENT=2]="RENT",o[o.AUCTION=3]="AUCTION",o))(r||{});const a={priceFrom:"PrezzoMinimo",priceTo:"PrezzoMassimo",sqMfrom:"SuperficieMinima",sqMto:"SuperficieMassima",roomsFrom:"NumeroMinimoLocali",roomsTo:"NumeroMassimoLocali",bathroomsFrom:"NumeroMinimoBagni",bathroomsTo:"NumeroMassimoBagni",conditionType:"StatoImmobile",energyClassFilter:"ClasseEnergetica",floor:"Piano",excludeAuctions:"EscludiAste",shortRentOnly:"SoloAffittiBrevi",excludeBareOwnership:"EscludiNudaProprieta",onlyPublicUser:"DaPrivato",balcony:"Balcone",terrace:"Terrazzo",balconyTerrace:"BalconeTerrazzo",boxCarSpot:"BoxPostoAuto",carSpot:"PostoAuto",box:"Box",lift:"Ascensore",privateGarden:"GiardinoPrivato",publicGarden:"GiardinoPubblico",cellar:"Cantina",airConditioning:"AriaCondizionata",furnished:"Arredato",publicTransport:"Trasporti",school:"Istruzione",market:"Supermercati",hospital:"Ospedali",pharmacy:"Farmacie",charging:"Ricarica",post:"UfficioPostale",bank:"Banche",swimmingPoolPrivate:"PiscinaPrivata",swimmingPoolPublic:"PiscinaCondominiale",luxury:"Lusso",discounted:"Sconto",filterOrderId:"Ordinamento"},e={sale:"Vendita",rent:"Affitto",auctionType:"Asta",bareOwnershipType:"NudaProprieta",typologyIdList:"Tipologia",filterOrderId:"Ordinamento"};exports.K=e;exports.j=a;exports.r=i;exports.s=r;
|
package/dist/utils/DOMUtils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Nullable } from '@wikicasa-dev/types';
|
|
2
|
+
|
|
2
3
|
export declare const getSingleElement: (selector: string) => HTMLElement;
|
|
3
4
|
export declare const emptyElem: (selectorOrElem: string | Element) => void;
|
|
4
5
|
export declare const showElem: (elem: Nullable<HTMLElement>, displayValue?: "block" | "d-flex") => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Downloads a file by creating a temporary URL for the given Blob object and triggering a download prompt for the user.
|
|
3
|
+
*
|
|
4
|
+
* @param blob - The Blob object representing the file to be downloaded.
|
|
5
|
+
* @param fileName - The name to be used for the downloaded file.
|
|
6
|
+
*/
|
|
7
|
+
export declare const downloadFile: (blob: Blob, fileName: string) => void;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @param stringNumber - the localized number
|
|
4
4
|
* @param locale - [optional] the locale that the number is represented in. Omit this parameter to use the current locale.
|
|
5
5
|
*/
|
|
6
|
-
export declare const parseLocaleNumber: (stringNumber: string
|
|
6
|
+
export declare const parseLocaleNumber: (stringNumber: string, locale?: string) => number | string | null;
|
|
7
7
|
export declare const formatLocaleNumber: (numberToFormat?: number | string, props?: {
|
|
8
8
|
currency: boolean;
|
|
9
9
|
}) => string | undefined | null;
|
|
@@ -14,5 +14,5 @@ export declare const formatterNumberObj: {
|
|
|
14
14
|
formatFn: (numberToFormat?: number | string, props?: {
|
|
15
15
|
currency: boolean;
|
|
16
16
|
}) => string | undefined | null;
|
|
17
|
-
unFormatFn: (stringNumber: string
|
|
17
|
+
unFormatFn: (stringNumber: string, locale?: string) => number | string | null;
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/utilities",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Wikicasa frontend utilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://bitbucket.org/wikicasa/wikicasa-fe#readme",
|
|
27
27
|
"devDependencies": {
|
|
28
|
+
"@jest/globals": "^29.7.0",
|
|
28
29
|
"@types/google-polyline": "^1.0.0",
|
|
29
30
|
"@types/jquery": "^3.5.16",
|
|
30
31
|
"@types/js-cookie": "^3.0.6",
|
|
@@ -34,15 +35,18 @@
|
|
|
34
35
|
"@types/leaflet.markercluster": "^1.5.1",
|
|
35
36
|
"@types/node": "^20.5.0",
|
|
36
37
|
"@types/uuid": "^9.0.2",
|
|
38
|
+
"@wikicasa-dev/types": "^1.2.14",
|
|
37
39
|
"glob": "^10.3.10",
|
|
40
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
41
|
+
"ts-jest": "^29.2.1",
|
|
38
42
|
"typescript": "^5.4.3",
|
|
39
43
|
"vite": "^5.2.3",
|
|
40
|
-
"vite-plugin-dts": "^3.7.3"
|
|
41
|
-
"@wikicasa-dev/types": "^1.2.2"
|
|
44
|
+
"vite-plugin-dts": "^3.7.3"
|
|
42
45
|
},
|
|
43
46
|
"dependencies": {
|
|
44
47
|
"axios": "^1.4.0",
|
|
45
48
|
"google-polyline": "^1.0.3",
|
|
49
|
+
"jest": "^29.7.0",
|
|
46
50
|
"js-cookie": "^3.0.5",
|
|
47
51
|
"leaflet": "^1.9.4",
|
|
48
52
|
"leaflet-control-geocoder": "^2.4.0",
|
|
@@ -54,6 +58,7 @@
|
|
|
54
58
|
"dev": "vite",
|
|
55
59
|
"build": "tsc && vite build",
|
|
56
60
|
"preview": "vite preview",
|
|
57
|
-
"prepublish": "pnpm build"
|
|
61
|
+
"prepublish": "pnpm build",
|
|
62
|
+
"test": "jest"
|
|
58
63
|
}
|
|
59
64
|
}
|