@ancon/wildcat-utils 1.8.3 → 1.9.0

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/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/enums.cjs"),r=require("./shared/isWithinFlag.cjs"),t=require("./shared/generateId.cjs"),n=require("./outlet/getListOutletOpeningHoursTable.cjs"),i=require("./versioning/isVersionALessThanB.cjs"),s=require("./versioning/cleanVersionString.cjs"),o=require("./api/getUrlAndParams.cjs"),a=require("./api/getEndpointWithVersion.cjs"),l=require("./string/slugify.cjs"),u=require("./color/lighten.cjs"),g=require("./color/brighten.cjs"),c=require("./color/darken.cjs"),q=require("./user/getFullName.cjs");require("moment");require("compare-versions");require("tinycolor2");exports.DayOfWeek=e.DayOfWeek;exports.IntervalState=e.IntervalState;exports.IntervalType=e.IntervalType;exports.OrderFormat=e.OrderFormat;exports.isWithinFlag=r;exports.generateId=t;exports.getListOutletOpeningHoursTable=n;exports.isVersionALessThanB=i;exports.cleanVersionString=s;exports.getUrlAndParams=o;exports.getEndpointWithVersion=a;exports.slugify=l;exports.lighten=u;exports.brighten=g;exports.darken=c;exports.getFullName=q.getFullName;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./shared/enums.cjs"),r=require("./shared/isWithinFlag.cjs"),t=require("./shared/generateId.cjs"),n=require("./outlet/getListOutletOpeningHoursTable.cjs"),i=require("./versioning/isVersionALessThanB.cjs"),s=require("./versioning/cleanVersionString.cjs"),o=require("./api/getUrlAndParams.cjs"),l=require("./api/getEndpointWithVersion.cjs"),a=require("./string/slugify.cjs"),u=require("./color/lighten.cjs"),g=require("./color/brighten.cjs"),c=require("./color/darken.cjs"),d=require("./user/getFullName.cjs"),q=require("./user/getFullAddressString.cjs");require("moment");require("compare-versions");require("tinycolor2");exports.DayOfWeek=e.DayOfWeek;exports.IntervalState=e.IntervalState;exports.IntervalType=e.IntervalType;exports.OrderFormat=e.OrderFormat;exports.isWithinFlag=r;exports.generateId=t;exports.getListOutletOpeningHoursTable=n;exports.isVersionALessThanB=i;exports.cleanVersionString=s;exports.getUrlAndParams=o;exports.getEndpointWithVersion=l;exports.slugify=a;exports.lighten=u;exports.brighten=g;exports.darken=c;exports.getFullName=d.getFullName;exports.getFullAddressString=q.getFullAddressString;
package/index.js CHANGED
@@ -3,14 +3,15 @@ import { default as i } from "./shared/isWithinFlag.js";
3
3
  import { default as d } from "./shared/generateId.js";
4
4
  import { default as x } from "./outlet/getListOutletOpeningHoursTable.js";
5
5
  import { default as h } from "./versioning/isVersionALessThanB.js";
6
- import { default as y } from "./versioning/cleanVersionString.js";
7
- import { default as I } from "./api/getUrlAndParams.js";
8
- import { default as V } from "./api/getEndpointWithVersion.js";
9
- import { default as b } from "./string/slugify.js";
10
- import { default as v } from "./color/lighten.js";
11
- import { default as L } from "./color/brighten.js";
6
+ import { default as O } from "./versioning/cleanVersionString.js";
7
+ import { default as A } from "./api/getUrlAndParams.js";
8
+ import { default as S } from "./api/getEndpointWithVersion.js";
9
+ import { default as V } from "./string/slugify.js";
10
+ import { default as b } from "./color/lighten.js";
11
+ import { default as v } from "./color/brighten.js";
12
12
  import { default as c } from "./color/darken.js";
13
13
  import { getFullName as D } from "./user/getFullName.js";
14
+ import { getFullAddressString as H } from "./user/getFullAddressString.js";
14
15
  import "moment";
15
16
  import "compare-versions";
16
17
  import "tinycolor2";
@@ -19,16 +20,17 @@ export {
19
20
  l as IntervalState,
20
21
  s as IntervalType,
21
22
  m as OrderFormat,
22
- L as brighten,
23
- y as cleanVersionString,
23
+ v as brighten,
24
+ O as cleanVersionString,
24
25
  c as darken,
25
26
  d as generateId,
26
- V as getEndpointWithVersion,
27
+ S as getEndpointWithVersion,
28
+ H as getFullAddressString,
27
29
  D as getFullName,
28
30
  x as getListOutletOpeningHoursTable,
29
- I as getUrlAndParams,
31
+ A as getUrlAndParams,
30
32
  h as isVersionALessThanB,
31
33
  i as isWithinFlag,
32
- v as lighten,
33
- b as slugify
34
+ b as lighten,
35
+ V as slugify
34
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancon/wildcat-utils",
3
- "version": "1.8.3",
3
+ "version": "1.9.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "index.cjs",
@@ -75,6 +75,10 @@
75
75
  "import": "./string/slugify.js",
76
76
  "require": "./string/slugify.cjs"
77
77
  },
78
+ "./user/getFullAddressString": {
79
+ "import": "./user/getFullAddressString.js",
80
+ "require": "./user/getFullAddressString.cjs"
81
+ },
78
82
  "./user/getFullName": {
79
83
  "import": "./user/getFullName.js",
80
84
  "require": "./user/getFullName.cjs"
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&[t.street,t.city,t.state,t.zipCode].filter(Boolean).join(", ")||""}exports.getFullAddressString=e;
@@ -0,0 +1,9 @@
1
+ import type { Nullable } from '@ancon/wildcat-types';
2
+ declare type Address = {
3
+ street: string;
4
+ city: string;
5
+ state: string;
6
+ zipCode: string;
7
+ };
8
+ export declare function getFullAddressString<T extends Nullable<Partial<Address>>>(address: T | null | undefined): string;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return t && [t.street, t.city, t.state, t.zipCode].filter(Boolean).join(", ") || "";
3
+ }
4
+ export {
5
+ e as getFullAddressString
6
+ };
package/user/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./getFullName.cjs");exports.getFullName=e.getFullName;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./getFullName.cjs"),t=require("./getFullAddressString.cjs");exports.getFullName=e.getFullName;exports.getFullAddressString=t.getFullAddressString;
package/user/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { getFullName } from './getFullName';
2
+ export { getFullAddressString } from './getFullAddressString';
package/user/index.js CHANGED
@@ -1,4 +1,6 @@
1
- import { getFullName as m } from "./getFullName.js";
1
+ import { getFullName as t } from "./getFullName.js";
2
+ import { getFullAddressString as o } from "./getFullAddressString.js";
2
3
  export {
3
- m as getFullName
4
+ o as getFullAddressString,
5
+ t as getFullName
4
6
  };