@drawbridge/drawbridge-utils 0.0.4 → 0.0.5

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.cjs CHANGED
@@ -34,6 +34,7 @@ __export(index_exports, {
34
34
  infinite: () => infinite,
35
35
  isInfinite: () => isInfinite,
36
36
  megabyte: () => megabyte,
37
+ nanoid: () => nanoid,
37
38
  percentage: () => percentage,
38
39
  reducers: () => reducers,
39
40
  regex: () => regex,
@@ -42,6 +43,7 @@ __export(index_exports, {
42
43
  });
43
44
  module.exports = __toCommonJS(index_exports);
44
45
  var import_currency_codes = require("currency-codes");
46
+ var import_nanoid = require("nanoid");
45
47
 
46
48
  // lib/constants.js
47
49
  var font = {
@@ -219,6 +221,7 @@ var constants_default = {
219
221
  };
220
222
 
221
223
  // index.js
224
+ var nanoid = (0, import_nanoid.customAlphabet)("0123456789abcdefghijklmnopqrstuvwxyz", 8);
222
225
  var constants = constants_default;
223
226
  var infinite = 1e300;
224
227
  var isInfinite = (value) => value === infinite;
@@ -399,6 +402,7 @@ var currency = (val) => (0, import_currency_codes.code)(val);
399
402
  infinite,
400
403
  isInfinite,
401
404
  megabyte,
405
+ nanoid,
402
406
  percentage,
403
407
  reducers,
404
408
  regex,
package/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { data, code } from 'currency-codes';
2
+ import { customAlphabet } from 'nanoid';
2
3
 
3
4
  const font = {
4
5
  family : 'Roboto Flex',
@@ -175,6 +176,8 @@ var constantsData = {
175
176
  }
176
177
  };
177
178
 
179
+ const nanoid = customAlphabet( '0123456789abcdefghijklmnopqrstuvwxyz', 8 );
180
+
178
181
  const constants = constantsData;
179
182
 
180
183
  const infinite = 1e300;
@@ -407,4 +410,4 @@ const currencies = data.map( ( item ) => ({
407
410
 
408
411
  const currency = ( val ) => code( val );
409
412
 
410
- export { bytesToGB, bytesToMB, capitalize, constants, currencies, currency, expiredPaymentMethod, formatCurrency, formatDateString, formatNumber, getPlanFeature, gigabyte, infinite, isInfinite, megabyte, percentage, reducers, regex, shareUrls, urlRoot };
413
+ export { bytesToGB, bytesToMB, capitalize, constants, currencies, currency, expiredPaymentMethod, formatCurrency, formatDateString, formatNumber, getPlanFeature, gigabyte, infinite, isInfinite, megabyte, nanoid, percentage, reducers, regex, shareUrls, urlRoot };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { data, code } from 'currency-codes';
2
+ import { customAlphabet } from 'nanoid';
2
3
 
3
4
  const font = {
4
5
  family : 'Roboto Flex',
@@ -175,6 +176,8 @@ var constantsData = {
175
176
  }
176
177
  };
177
178
 
179
+ const nanoid = customAlphabet( '0123456789abcdefghijklmnopqrstuvwxyz', 8 );
180
+
178
181
  const constants = constantsData;
179
182
 
180
183
  const infinite = 1e300;
@@ -407,4 +410,4 @@ const currencies = data.map( ( item ) => ({
407
410
 
408
411
  const currency = ( val ) => code( val );
409
412
 
410
- export { bytesToGB, bytesToMB, capitalize, constants, currencies, currency, expiredPaymentMethod, formatCurrency, formatDateString, formatNumber, getPlanFeature, gigabyte, infinite, isInfinite, megabyte, percentage, reducers, regex, shareUrls, urlRoot };
413
+ export { bytesToGB, bytesToMB, capitalize, constants, currencies, currency, expiredPaymentMethod, formatCurrency, formatDateString, formatNumber, getPlanFeature, gigabyte, infinite, isInfinite, megabyte, nanoid, percentage, reducers, regex, shareUrls, urlRoot };
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // index.js
2
2
  import { code, data } from "currency-codes";
3
+ import { customAlphabet } from "nanoid";
3
4
 
4
5
  // lib/constants.js
5
6
  var font = {
@@ -177,6 +178,7 @@ var constants_default = {
177
178
  };
178
179
 
179
180
  // index.js
181
+ var nanoid = customAlphabet("0123456789abcdefghijklmnopqrstuvwxyz", 8);
180
182
  var constants = constants_default;
181
183
  var infinite = 1e300;
182
184
  var isInfinite = (value) => value === infinite;
@@ -356,6 +358,7 @@ export {
356
358
  infinite,
357
359
  isInfinite,
358
360
  megabyte,
361
+ nanoid,
359
362
  percentage,
360
363
  reducers,
361
364
  regex,
package/package.json CHANGED
@@ -2,6 +2,7 @@
2
2
  "type": "module",
3
3
  "dependencies": {
4
4
  "currency-codes": "2.2.0",
5
+ "nanoid": "3.3.8",
5
6
  "tsup": "8.5.1",
6
7
  "typescript": "5.9.3"
7
8
  },
@@ -31,5 +32,5 @@
31
32
  "build": "tsup && npm publish"
32
33
  },
33
34
  "types": "dist/index.d.ts",
34
- "version": "0.0.4"
35
+ "version": "0.0.5"
35
36
  }