es-toolkit 1.32.0-dev.1013 → 1.32.0-dev.1015

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.
@@ -67,6 +67,7 @@ export { withTimeout } from '../promise/withTimeout.mjs';
67
67
  export { capitalize } from '../string/capitalize.mjs';
68
68
  export { constantCase } from '../string/constantCase.mjs';
69
69
  export { pascalCase } from '../string/pascalCase.mjs';
70
+ export { reverseString } from '../string/reverseString.mjs';
70
71
  export { invariant } from '../util/invariant.mjs';
71
72
  export { castArray } from './array/castArray.mjs';
72
73
  export { chunk } from './array/chunk.mjs';
@@ -67,6 +67,7 @@ export { withTimeout } from '../promise/withTimeout.js';
67
67
  export { capitalize } from '../string/capitalize.js';
68
68
  export { constantCase } from '../string/constantCase.js';
69
69
  export { pascalCase } from '../string/pascalCase.js';
70
+ export { reverseString } from '../string/reverseString.js';
70
71
  export { invariant } from '../util/invariant.js';
71
72
  export { castArray } from './array/castArray.js';
72
73
  export { chunk } from './array/chunk.js';
@@ -13,7 +13,7 @@ const toMerged = require('../_chunk/toMerged-BQTfB8.js');
13
13
  const isPlainObject$1 = require('../_chunk/isPlainObject-Xaozpc.js');
14
14
  const isWeakSet$1 = require('../_chunk/isWeakSet-DoHqUM.js');
15
15
  const promise_index = require('../promise/index.js');
16
- const upperFirst$1 = require('../_chunk/upperFirst-CorAVn.js');
16
+ const upperFirst$1 = require('../_chunk/upperFirst-nA5L7X.js');
17
17
  const util_index = require('../util/index.js');
18
18
 
19
19
  function castArray(value) {
@@ -3385,6 +3385,7 @@ exports.withTimeout = promise_index.withTimeout;
3385
3385
  exports.capitalize = upperFirst$1.capitalize;
3386
3386
  exports.constantCase = upperFirst$1.constantCase;
3387
3387
  exports.pascalCase = upperFirst$1.pascalCase;
3388
+ exports.reverseString = upperFirst$1.reverseString;
3388
3389
  exports.invariant = util_index.invariant;
3389
3390
  exports.add = add;
3390
3391
  exports.after = after;
@@ -69,6 +69,7 @@ export { capitalize } from '../string/capitalize.mjs';
69
69
  export { constantCase } from '../string/constantCase.mjs';
70
70
  import '../string/deburr.mjs';
71
71
  export { pascalCase } from '../string/pascalCase.mjs';
72
+ export { reverseString } from '../string/reverseString.mjs';
72
73
  export { invariant } from '../util/invariant.mjs';
73
74
  export { castArray } from './array/castArray.mjs';
74
75
  export { chunk } from './array/chunk.mjs';
package/dist/index.d.mts CHANGED
@@ -152,6 +152,7 @@ export { lowerCase } from './string/lowerCase.mjs';
152
152
  export { lowerFirst } from './string/lowerFirst.mjs';
153
153
  export { pad } from './string/pad.mjs';
154
154
  export { pascalCase } from './string/pascalCase.mjs';
155
+ export { reverseString } from './string/reverseString.mjs';
155
156
  export { snakeCase } from './string/snakeCase.mjs';
156
157
  export { startCase } from './string/startCase.mjs';
157
158
  export { trim } from './string/trim.mjs';
package/dist/index.d.ts CHANGED
@@ -152,6 +152,7 @@ export { lowerCase } from './string/lowerCase.js';
152
152
  export { lowerFirst } from './string/lowerFirst.js';
153
153
  export { pad } from './string/pad.js';
154
154
  export { pascalCase } from './string/pascalCase.js';
155
+ export { reverseString } from './string/reverseString.js';
155
156
  export { snakeCase } from './string/snakeCase.js';
156
157
  export { startCase } from './string/startCase.js';
157
158
  export { trim } from './string/trim.js';
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ const predicate_index = require('./predicate/index.js');
19
19
  const isPlainObject = require('./_chunk/isPlainObject-Xaozpc.js');
20
20
  const delay = require('./_chunk/delay-_VMfFa.js');
21
21
  const promise_index = require('./promise/index.js');
22
- const upperFirst = require('./_chunk/upperFirst-CorAVn.js');
22
+ const upperFirst = require('./_chunk/upperFirst-nA5L7X.js');
23
23
  const string_index = require('./string/index.js');
24
24
  const util_index = require('./util/index.js');
25
25
 
@@ -181,6 +181,7 @@ exports.lowerCase = upperFirst.lowerCase;
181
181
  exports.lowerFirst = upperFirst.lowerFirst;
182
182
  exports.pad = upperFirst.pad;
183
183
  exports.pascalCase = upperFirst.pascalCase;
184
+ exports.reverseString = upperFirst.reverseString;
184
185
  exports.snakeCase = upperFirst.snakeCase;
185
186
  exports.trim = upperFirst.trim;
186
187
  exports.trimEnd = upperFirst.trimEnd;
package/dist/index.mjs CHANGED
@@ -152,6 +152,7 @@ export { lowerCase } from './string/lowerCase.mjs';
152
152
  export { lowerFirst } from './string/lowerFirst.mjs';
153
153
  export { pad } from './string/pad.mjs';
154
154
  export { pascalCase } from './string/pascalCase.mjs';
155
+ export { reverseString } from './string/reverseString.mjs';
155
156
  export { snakeCase } from './string/snakeCase.mjs';
156
157
  export { startCase } from './string/startCase.mjs';
157
158
  export { trim } from './string/trim.mjs';
@@ -1,7 +1,7 @@
1
1
  interface FlattenObjectOptions {
2
2
  /**
3
3
  * The delimiter to use between nested keys.
4
- * @default '.''
4
+ * @default '.'
5
5
  */
6
6
  delimiter?: string;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  interface FlattenObjectOptions {
2
2
  /**
3
3
  * The delimiter to use between nested keys.
4
- * @default '.''
4
+ * @default '.'
5
5
  */
6
6
  delimiter?: string;
7
7
  }
@@ -9,6 +9,7 @@ export { lowerCase } from './lowerCase.mjs';
9
9
  export { lowerFirst } from './lowerFirst.mjs';
10
10
  export { pad } from './pad.mjs';
11
11
  export { pascalCase } from './pascalCase.mjs';
12
+ export { reverseString } from './reverseString.mjs';
12
13
  export { snakeCase } from './snakeCase.mjs';
13
14
  export { startCase } from './startCase.mjs';
14
15
  export { trim } from './trim.mjs';
@@ -9,6 +9,7 @@ export { lowerCase } from './lowerCase.js';
9
9
  export { lowerFirst } from './lowerFirst.js';
10
10
  export { pad } from './pad.js';
11
11
  export { pascalCase } from './pascalCase.js';
12
+ export { reverseString } from './reverseString.js';
12
13
  export { snakeCase } from './snakeCase.js';
13
14
  export { startCase } from './startCase.js';
14
15
  export { trim } from './trim.js';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const upperFirst = require('../_chunk/upperFirst-CorAVn.js');
5
+ const upperFirst = require('../_chunk/upperFirst-nA5L7X.js');
6
6
 
7
7
  function startCase(str) {
8
8
  const words = upperFirst.words(str.trim());
@@ -28,6 +28,7 @@ exports.lowerCase = upperFirst.lowerCase;
28
28
  exports.lowerFirst = upperFirst.lowerFirst;
29
29
  exports.pad = upperFirst.pad;
30
30
  exports.pascalCase = upperFirst.pascalCase;
31
+ exports.reverseString = upperFirst.reverseString;
31
32
  exports.snakeCase = upperFirst.snakeCase;
32
33
  exports.trim = upperFirst.trim;
33
34
  exports.trimEnd = upperFirst.trimEnd;
@@ -9,6 +9,7 @@ export { lowerCase } from './lowerCase.mjs';
9
9
  export { lowerFirst } from './lowerFirst.mjs';
10
10
  export { pad } from './pad.mjs';
11
11
  export { pascalCase } from './pascalCase.mjs';
12
+ export { reverseString } from './reverseString.mjs';
12
13
  export { snakeCase } from './snakeCase.mjs';
13
14
  export { startCase } from './startCase.mjs';
14
15
  export { trim } from './trim.mjs';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Reverses a given string.
3
+ *
4
+ * This function takes a string as input and returns a new string that is the reverse of the input.
5
+ *
6
+ * @param {string} value - The string that is to be reversed.
7
+ * @returns {string} - The reversed string.
8
+ *
9
+ * @example
10
+ * const reversedStr1 = reverseString('hello') // returns 'olleh'
11
+ * const reversedStr2 = reverseString('PascalCase') // returns 'esaClaP'
12
+ * const reversedStr3 = reverseString('foo 😄 bar') // returns 'rab 😄 oof'
13
+ */
14
+ declare function reverseString(value: string): string;
15
+
16
+ export { reverseString };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Reverses a given string.
3
+ *
4
+ * This function takes a string as input and returns a new string that is the reverse of the input.
5
+ *
6
+ * @param {string} value - The string that is to be reversed.
7
+ * @returns {string} - The reversed string.
8
+ *
9
+ * @example
10
+ * const reversedStr1 = reverseString('hello') // returns 'olleh'
11
+ * const reversedStr2 = reverseString('PascalCase') // returns 'esaClaP'
12
+ * const reversedStr3 = reverseString('foo 😄 bar') // returns 'rab 😄 oof'
13
+ */
14
+ declare function reverseString(value: string): string;
15
+
16
+ export { reverseString };
@@ -0,0 +1,5 @@
1
+ function reverseString(value) {
2
+ return [...value].reverse().join('');
3
+ }
4
+
5
+ export { reverseString };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "es-toolkit",
3
3
  "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.",
4
- "version": "1.32.0-dev.1013+77e1c89d",
4
+ "version": "1.32.0-dev.1015+8d034252",
5
5
  "homepage": "https://es-toolkit.slash.page",
6
6
  "bugs": "https://github.com/toss/es-toolkit/issues",
7
7
  "repository": {