@stacksjs/strings 0.52.0 → 0.52.2

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/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  export { camelCase, capitalCase, constantCase, dotCase, headerCase, paramCase as kebabCase, noCase, paramCase, pascalCase, pathCase, sentenceCase, snakeCase } from 'change-case';
2
2
  export { titleCase } from 'title-case';
3
3
  import pluralize from 'pluralize';
4
- import { HashAlgorithm } from '@stacksjs/types';
5
4
 
6
5
  interface SlugOptions {
7
6
  replacement?: string;
@@ -88,50 +87,4 @@ declare const addSingularRule: typeof pluralize.addSingularRule;
88
87
  declare const addIrregularRule: typeof pluralize.addIrregularRule;
89
88
  declare const addUncountableRule: typeof pluralize.addUncountableRule;
90
89
 
91
- declare function isEmail(email: string): boolean;
92
- declare function isStrongPassword(password: string): boolean;
93
- declare function isAlphanumeric(username: string): boolean;
94
- declare function validateUsername(username: string): boolean;
95
- declare function isURL(url: string): boolean;
96
- declare function isMobilePhone(phoneNumber: string): boolean;
97
- declare function isAlpha(name: string): boolean;
98
- declare function isPostalCode(zipCode: string): boolean;
99
- declare function isDate(date: string): boolean;
100
- declare function isNumeric(number: string): boolean;
101
- declare function isBoolean(boolean: string): boolean;
102
- declare function isHexColor(color: string): boolean;
103
- declare function isHexadecimal(hex: string): boolean;
104
- declare function isBase64(base64: string): boolean;
105
- declare function isUUID(uuid: string): boolean;
106
- declare function isJSON(json: string): boolean;
107
- declare function isCreditCard(creditCard: string): boolean;
108
- declare function isISBN(isbn: string): boolean;
109
- declare function isIP(ip: string): boolean;
110
- declare function isIPRange(ip: string): boolean;
111
- declare function isMACAddress(macAddress: string): boolean;
112
- declare function isLatLong(latitude: string): boolean;
113
- declare function isLatitude(longitude: string): boolean;
114
- declare function isLongitude(longitude: string): boolean;
115
- declare function isCurrency(currency: string): boolean;
116
- declare function isDataURI(dataURI: string): boolean;
117
- declare function isMimeType(mimeType: string): boolean;
118
- declare function isJWT(jwt: string): boolean;
119
- declare function isMongoId(mongoId: string): boolean;
120
- declare function isAscii(ascii: string): boolean;
121
- declare function isBase32(base32: string): boolean;
122
- declare function isByteLength(byteLength: string): boolean;
123
- declare function isFQDN(fqdn: string): boolean;
124
- declare function isFullWidth(fullWidth: string): boolean;
125
- declare function isHalfWidth(halfWidth: string): boolean;
126
- declare function isHash(hash: string, algorithm: HashAlgorithm): boolean;
127
- declare function isHSL(hsl: string): boolean;
128
- declare function isIBAN(iban: string): boolean;
129
- declare function isIdentityCard(identityCard: string): boolean;
130
- declare function isISIN(isin: string): boolean;
131
- declare function isISO8601(iso8601: string): boolean;
132
- declare function isISRC(isrc: string): boolean;
133
- declare function isISSN(issn: string): boolean;
134
- declare function isISO31661Alpha2(iso31661Alpha2: string): boolean;
135
- declare function isISO31661Alpha3(iso31661Alpha3: string): boolean;
136
-
137
- export { addIrregularRule, addPluralRule, addSingularRule, addUncountableRule, capitalize, ensurePrefix, ensureSuffix, isAlpha, isAlphanumeric, isAscii, isBase32, isBase64, isBoolean, isByteLength, isCreditCard, isCurrency, isDataURI, isDate, isEmail, isFQDN, isFullWidth, isHSL, isHalfWidth, isHash, isHexColor, isHexadecimal, isIBAN, isIP, isIPRange, isISBN, isISIN, isISO31661Alpha2, isISO31661Alpha3, isISO8601, isISRC, isISSN, isIdentityCard, isJSON, isJWT, isLatLong, isLatitude, isLongitude, isMACAddress, isMimeType, isMobilePhone, isMongoId, isNumeric, isPlural, isPostalCode, isSingular, isStrongPassword, isURL, isUUID, plural, randomStr, singular, slash, slug, template, validateUsername };
90
+ export { addIrregularRule, addPluralRule, addSingularRule, addUncountableRule, capitalize, ensurePrefix, ensureSuffix, isPlural, isSingular, plural, randomStr, singular, slash, slug, template };
package/dist/index.mjs CHANGED
@@ -2,7 +2,6 @@ export { camelCase, capitalCase, constantCase, dotCase, headerCase, paramCase as
2
2
  export { titleCase } from 'title-case';
3
3
  import slugify from 'slugify';
4
4
  import pluralize from 'pluralize';
5
- import validator from 'validator';
6
5
 
7
6
  const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
8
7
  function slash(str) {
@@ -48,140 +47,4 @@ function slug(str, options) {
48
47
 
49
48
  const { plural, singular, isPlural, isSingular, addPluralRule, addSingularRule, addIrregularRule, addUncountableRule } = pluralize;
50
49
 
51
- function isEmail(email) {
52
- return validator.isEmail(email);
53
- }
54
- function isStrongPassword(password) {
55
- return validator.isStrongPassword(password);
56
- }
57
- function isAlphanumeric(username) {
58
- return validator.isAlphanumeric(username);
59
- }
60
- function validateUsername(username) {
61
- return isAlphanumeric(username);
62
- }
63
- function isURL(url) {
64
- return validator.isURL(url);
65
- }
66
- function isMobilePhone(phoneNumber) {
67
- return validator.isMobilePhone(phoneNumber);
68
- }
69
- function isAlpha(name) {
70
- return validator.isAlpha(name);
71
- }
72
- function isPostalCode(zipCode) {
73
- return validator.isPostalCode(zipCode, "any");
74
- }
75
- function isDate(date) {
76
- return validator.isDate(date);
77
- }
78
- function isNumeric(number) {
79
- return validator.isNumeric(number);
80
- }
81
- function isBoolean(boolean) {
82
- return validator.isBoolean(boolean);
83
- }
84
- function isHexColor(color) {
85
- return validator.isHexColor(color);
86
- }
87
- function isHexadecimal(hex) {
88
- return validator.isHexadecimal(hex);
89
- }
90
- function isBase64(base64) {
91
- return validator.isBase64(base64);
92
- }
93
- function isUUID(uuid) {
94
- return validator.isUUID(uuid);
95
- }
96
- function isJSON(json) {
97
- return validator.isJSON(json);
98
- }
99
- function isCreditCard(creditCard) {
100
- return validator.isCreditCard(creditCard);
101
- }
102
- function isISBN(isbn) {
103
- return validator.isISBN(isbn);
104
- }
105
- function isIP(ip) {
106
- return validator.isIP(ip);
107
- }
108
- function isIPRange(ip) {
109
- return validator.isIPRange(ip);
110
- }
111
- function isMACAddress(macAddress) {
112
- return validator.isMACAddress(macAddress);
113
- }
114
- function isLatLong(latitude) {
115
- return validator.isLatLong(latitude);
116
- }
117
- function isLatitude(longitude) {
118
- return validator.isLatLong(longitude);
119
- }
120
- function isLongitude(longitude) {
121
- return validator.isLatLong(longitude);
122
- }
123
- function isCurrency(currency) {
124
- return validator.isCurrency(currency);
125
- }
126
- function isDataURI(dataURI) {
127
- return validator.isDataURI(dataURI);
128
- }
129
- function isMimeType(mimeType) {
130
- return validator.isMimeType(mimeType);
131
- }
132
- function isJWT(jwt) {
133
- return validator.isJWT(jwt);
134
- }
135
- function isMongoId(mongoId) {
136
- return validator.isMongoId(mongoId);
137
- }
138
- function isAscii(ascii) {
139
- return validator.isAscii(ascii);
140
- }
141
- function isBase32(base32) {
142
- return validator.isBase32(base32);
143
- }
144
- function isByteLength(byteLength) {
145
- return validator.isByteLength(byteLength);
146
- }
147
- function isFQDN(fqdn) {
148
- return validator.isFQDN(fqdn);
149
- }
150
- function isFullWidth(fullWidth) {
151
- return validator.isFullWidth(fullWidth);
152
- }
153
- function isHalfWidth(halfWidth) {
154
- return validator.isHalfWidth(halfWidth);
155
- }
156
- function isHash(hash, algorithm) {
157
- return validator.isHash(hash, algorithm);
158
- }
159
- function isHSL(hsl) {
160
- return validator.isHSL(hsl);
161
- }
162
- function isIBAN(iban) {
163
- return validator.isIBAN(iban);
164
- }
165
- function isIdentityCard(identityCard) {
166
- return validator.isIdentityCard(identityCard);
167
- }
168
- function isISIN(isin) {
169
- return validator.isISIN(isin);
170
- }
171
- function isISO8601(iso8601) {
172
- return validator.isISO8601(iso8601);
173
- }
174
- function isISRC(isrc) {
175
- return validator.isISRC(isrc);
176
- }
177
- function isISSN(issn) {
178
- return validator.isISSN(issn);
179
- }
180
- function isISO31661Alpha2(iso31661Alpha2) {
181
- return validator.isISO31661Alpha2(iso31661Alpha2);
182
- }
183
- function isISO31661Alpha3(iso31661Alpha3) {
184
- return validator.isISO31661Alpha3(iso31661Alpha3);
185
- }
186
-
187
- export { addIrregularRule, addPluralRule, addSingularRule, addUncountableRule, capitalize, ensurePrefix, ensureSuffix, isAlpha, isAlphanumeric, isAscii, isBase32, isBase64, isBoolean, isByteLength, isCreditCard, isCurrency, isDataURI, isDate, isEmail, isFQDN, isFullWidth, isHSL, isHalfWidth, isHash, isHexColor, isHexadecimal, isIBAN, isIP, isIPRange, isISBN, isISIN, isISO31661Alpha2, isISO31661Alpha3, isISO8601, isISRC, isISSN, isIdentityCard, isJSON, isJWT, isLatLong, isLatitude, isLongitude, isMACAddress, isMimeType, isMobilePhone, isMongoId, isNumeric, isPlural, isPostalCode, isSingular, isStrongPassword, isURL, isUUID, plural, randomStr, singular, slash, slug, template, validateUsername };
50
+ export { addIrregularRule, addPluralRule, addSingularRule, addUncountableRule, capitalize, ensurePrefix, ensureSuffix, isPlural, isSingular, plural, randomStr, singular, slash, slug, template };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/strings",
3
3
  "type": "module",
4
- "version": "0.52.0",
4
+ "version": "0.52.2",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks string utilities.",
7
7
  "author": "Chris Breuer",
@@ -57,11 +57,11 @@
57
57
  "slugify": "^1.6.6",
58
58
  "title-case": "^3.0.3",
59
59
  "validator": "^13.9.0",
60
- "@stacksjs/alias": "0.52.0",
61
- "@stacksjs/types": "0.52.0"
60
+ "@stacksjs/alias": "0.52.2",
61
+ "@stacksjs/types": "0.52.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@stacksjs/development": "0.52.0"
64
+ "@stacksjs/development": "0.52.2"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",