@ciwergrp/nuxid 1.5.4 → 1.5.6

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ciwergrp/nuxid",
3
3
  "configKey": "nuxid",
4
- "version": "1.5.4",
4
+ "version": "1.5.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -33,7 +33,7 @@ const lodashExcludes = [
33
33
  ];
34
34
 
35
35
  const lodashDefaults = {
36
- enabled: false,
36
+ enabled: true,
37
37
  mode: "factory",
38
38
  // prefix: false,
39
39
  prefix: "ki",
@@ -174,7 +174,7 @@ function resolveElementPlusOptions(input) {
174
174
  }
175
175
 
176
176
  const helperDefaults = {
177
- enabled: false,
177
+ enabled: true,
178
178
  config: {
179
179
  style: "factory",
180
180
  localeSource: "cookie",
@@ -1,5 +1,16 @@
1
- export * from './array/index.js';
2
- export * from './object/index.js';
3
- export * from './number/index.js';
4
- export * from './string/index.js';
5
- export * from './date/index.js';
1
+ export { array } from './array/index.js';
2
+ export type { ArrayHelper } from './array/index.js';
3
+ export { collapse, crossJoin, every, first, flatten, join, last, map, mapSpread, partition, random, reject, shuffle, sole, some, sort, sortDesc, take, where, whereNotNull, wrap, } from './array/index.js';
4
+ export { object } from './object/index.js';
5
+ export type { ObjectHelper } from './object/index.js';
6
+ export { add, dot, except, forget, get, has, only, set, undot, } from './object/index.js';
7
+ export { number } from './number/index.js';
8
+ export type { NumberHelper } from './number/index.js';
9
+ export { abbreviate, forHumans, clamp, currency, fileSize, format, ordinal, pairs, parse, parseFloatNumber, parseIntNumber, percentage, spell, spellOrdinal, trim, } from './number/index.js';
10
+ export { string } from './string/index.js';
11
+ export type { StringHelper } from './string/index.js';
12
+ export { after, afterLast, ascii, before, beforeLast, between, betweenFirst, camel, contains, containsAll, endsWith, finish, kebab, lcfirst, length, lower, padBoth, padLeft, padRight, plural, pluralStudly, remove, replace, replaceFirst, replaceLast, rtrim, singular, slug, snake, start, startsWith, studly, title, transliterate, ucfirst, upper, wordCount, words, } from './string/index.js';
13
+ export { defaultLocale, useLocale, withLocale, defaultCurrency, useCurrency, withCurrency, } from './state.js';
14
+ export { dt } from './date/index.js';
15
+ export type { DateHelper, DateInput, DateFormatPreset } from './date/index.js';
16
+ export { toDate, toUnix, toMillis, fromUnix, fromTimestamp, now, today, tomorrow, yesterday, dateFormat, formatISO, formatRFC3339, formatRFC7231, fromNow, diffForHumans, toDateString, toTimeString, toDateTimeString, toIsoString, toRfc3339String, toRfc7231String, dateParse, parseISO, addSecond, addSeconds, addMinute, addMinutes, addHour, addHours, addDay, addDays, addWeek, addWeeks, addMonth, addMonths, addYear, addYears, subSecond, subSeconds, subMinute, subMinutes, subHour, subHours, subDay, subDays, subWeek, subWeeks, subMonth, subMonths, subYear, subYears, startOfSecond, endOfSecond, startOfMinute, endOfMinute, startOfHour, endOfHour, startOfDay, endOfDay, startOfWeek, endOfWeek, startOfMonth, endOfMonth, startOfQuarter, endOfQuarter, startOfYear, endOfYear, diffInSeconds, diffInMinutes, diffInHours, diffInDays, diffInWeeks, diffInMonths, diffInYears, isBefore, isAfter, isEqual, isSameSecond, isSameMinute, isSameHour, isSameDay, isSameWeek, isSameMonth, isSameYear, isToday, isTomorrow, isYesterday, isWeekend, isPast, isFuture, isThisWeek, isThisMonth, isThisYear, isValid, } from './date/index.js';
@@ -1,5 +1,200 @@
1
- export * from "./array/index.js";
2
- export * from "./object/index.js";
3
- export * from "./number/index.js";
4
- export * from "./string/index.js";
5
- export * from "./date/index.js";
1
+ export { array } from "./array/index.js";
2
+ export {
3
+ collapse,
4
+ crossJoin,
5
+ every,
6
+ first,
7
+ flatten,
8
+ join,
9
+ last,
10
+ map,
11
+ mapSpread,
12
+ partition,
13
+ random,
14
+ reject,
15
+ shuffle,
16
+ sole,
17
+ some,
18
+ sort,
19
+ sortDesc,
20
+ take,
21
+ where,
22
+ whereNotNull,
23
+ wrap
24
+ } from "./array/index.js";
25
+ export { object } from "./object/index.js";
26
+ export {
27
+ add,
28
+ dot,
29
+ except,
30
+ forget,
31
+ get,
32
+ has,
33
+ only,
34
+ set,
35
+ undot
36
+ } from "./object/index.js";
37
+ export { number } from "./number/index.js";
38
+ export {
39
+ abbreviate,
40
+ forHumans,
41
+ clamp,
42
+ currency,
43
+ fileSize,
44
+ format,
45
+ ordinal,
46
+ pairs,
47
+ parse,
48
+ parseFloatNumber,
49
+ parseIntNumber,
50
+ percentage,
51
+ spell,
52
+ spellOrdinal,
53
+ trim
54
+ } from "./number/index.js";
55
+ export { string } from "./string/index.js";
56
+ export {
57
+ after,
58
+ afterLast,
59
+ ascii,
60
+ before,
61
+ beforeLast,
62
+ between,
63
+ betweenFirst,
64
+ camel,
65
+ contains,
66
+ containsAll,
67
+ endsWith,
68
+ finish,
69
+ kebab,
70
+ lcfirst,
71
+ length,
72
+ lower,
73
+ padBoth,
74
+ padLeft,
75
+ padRight,
76
+ plural,
77
+ pluralStudly,
78
+ remove,
79
+ replace,
80
+ replaceFirst,
81
+ replaceLast,
82
+ rtrim,
83
+ singular,
84
+ slug,
85
+ snake,
86
+ start,
87
+ startsWith,
88
+ studly,
89
+ title,
90
+ transliterate,
91
+ ucfirst,
92
+ upper,
93
+ wordCount,
94
+ words
95
+ } from "./string/index.js";
96
+ export {
97
+ defaultLocale,
98
+ useLocale,
99
+ withLocale,
100
+ defaultCurrency,
101
+ useCurrency,
102
+ withCurrency
103
+ } from "./state.js";
104
+ export { dt } from "./date/index.js";
105
+ export {
106
+ toDate,
107
+ toUnix,
108
+ toMillis,
109
+ fromUnix,
110
+ fromTimestamp,
111
+ now,
112
+ today,
113
+ tomorrow,
114
+ yesterday,
115
+ dateFormat,
116
+ formatISO,
117
+ formatRFC3339,
118
+ formatRFC7231,
119
+ fromNow,
120
+ diffForHumans,
121
+ toDateString,
122
+ toTimeString,
123
+ toDateTimeString,
124
+ toIsoString,
125
+ toRfc3339String,
126
+ toRfc7231String,
127
+ dateParse,
128
+ parseISO,
129
+ addSecond,
130
+ addSeconds,
131
+ addMinute,
132
+ addMinutes,
133
+ addHour,
134
+ addHours,
135
+ addDay,
136
+ addDays,
137
+ addWeek,
138
+ addWeeks,
139
+ addMonth,
140
+ addMonths,
141
+ addYear,
142
+ addYears,
143
+ subSecond,
144
+ subSeconds,
145
+ subMinute,
146
+ subMinutes,
147
+ subHour,
148
+ subHours,
149
+ subDay,
150
+ subDays,
151
+ subWeek,
152
+ subWeeks,
153
+ subMonth,
154
+ subMonths,
155
+ subYear,
156
+ subYears,
157
+ startOfSecond,
158
+ endOfSecond,
159
+ startOfMinute,
160
+ endOfMinute,
161
+ startOfHour,
162
+ endOfHour,
163
+ startOfDay,
164
+ endOfDay,
165
+ startOfWeek,
166
+ endOfWeek,
167
+ startOfMonth,
168
+ endOfMonth,
169
+ startOfQuarter,
170
+ endOfQuarter,
171
+ startOfYear,
172
+ endOfYear,
173
+ diffInSeconds,
174
+ diffInMinutes,
175
+ diffInHours,
176
+ diffInDays,
177
+ diffInWeeks,
178
+ diffInMonths,
179
+ diffInYears,
180
+ isBefore,
181
+ isAfter,
182
+ isEqual,
183
+ isSameSecond,
184
+ isSameMinute,
185
+ isSameHour,
186
+ isSameDay,
187
+ isSameWeek,
188
+ isSameMonth,
189
+ isSameYear,
190
+ isToday,
191
+ isTomorrow,
192
+ isYesterday,
193
+ isWeekend,
194
+ isPast,
195
+ isFuture,
196
+ isThisWeek,
197
+ isThisMonth,
198
+ isThisYear,
199
+ isValid
200
+ } from "./date/index.js";
@@ -1,6 +1,10 @@
1
- import slugify from "@sindresorhus/slugify";
1
+ import * as slugifyModule from "@sindresorhus/slugify";
2
2
  import { defaultLocale } from "./locale.js";
3
+ const slugify = slugifyModule.default;
3
4
  export function slug(value, separator = "-") {
5
+ if (!slugify) {
6
+ throw new Error("Slugify is unavailable.");
7
+ }
4
8
  return slugify(value, {
5
9
  separator,
6
10
  locale: defaultLocale()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciwergrp/nuxid",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "All-in-one essential modules for Nuxt",
5
5
  "repository": {
6
6
  "type": "git",