es-toolkit 1.24.0-dev.781 → 1.24.0-dev.783
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/browser.global.js +1 -1
- package/dist/browser.global.js.map +1 -1
- package/dist/compat/index.d.mts +1 -1
- package/dist/compat/index.d.ts +1 -1
- package/dist/compat/index.js +5 -1
- package/dist/compat/index.mjs +1 -1
- package/dist/compat/string/escape.d.mts +3 -0
- package/dist/compat/string/escape.d.ts +3 -0
- package/dist/compat/string/escape.mjs +8 -0
- package/package.json +1 -1
package/dist/compat/index.d.mts
CHANGED
|
@@ -74,7 +74,6 @@ export { withTimeout } from '../promise/withTimeout.mjs';
|
|
|
74
74
|
export { capitalize } from '../string/capitalize.mjs';
|
|
75
75
|
export { constantCase } from '../string/constantCase.mjs';
|
|
76
76
|
export { deburr } from '../string/deburr.mjs';
|
|
77
|
-
export { escape } from '../string/escape.mjs';
|
|
78
77
|
export { escapeRegExp } from '../string/escapeRegExp.mjs';
|
|
79
78
|
export { lowerFirst } from '../string/lowerFirst.mjs';
|
|
80
79
|
export { pascalCase } from '../string/pascalCase.mjs';
|
|
@@ -190,6 +189,7 @@ export { matches } from './predicate/matches.mjs';
|
|
|
190
189
|
export { matchesProperty } from './predicate/matchesProperty.mjs';
|
|
191
190
|
export { camelCase } from './string/camelCase.mjs';
|
|
192
191
|
export { endsWith } from './string/endsWith.mjs';
|
|
192
|
+
export { escape } from './string/escape.mjs';
|
|
193
193
|
export { kebabCase } from './string/kebabCase.mjs';
|
|
194
194
|
export { lowerCase } from './string/lowerCase.mjs';
|
|
195
195
|
export { pad } from './string/pad.mjs';
|
package/dist/compat/index.d.ts
CHANGED
|
@@ -74,7 +74,6 @@ export { withTimeout } from '../promise/withTimeout.js';
|
|
|
74
74
|
export { capitalize } from '../string/capitalize.js';
|
|
75
75
|
export { constantCase } from '../string/constantCase.js';
|
|
76
76
|
export { deburr } from '../string/deburr.js';
|
|
77
|
-
export { escape } from '../string/escape.js';
|
|
78
77
|
export { escapeRegExp } from '../string/escapeRegExp.js';
|
|
79
78
|
export { lowerFirst } from '../string/lowerFirst.js';
|
|
80
79
|
export { pascalCase } from '../string/pascalCase.js';
|
|
@@ -190,6 +189,7 @@ export { matches } from './predicate/matches.js';
|
|
|
190
189
|
export { matchesProperty } from './predicate/matchesProperty.js';
|
|
191
190
|
export { camelCase } from './string/camelCase.js';
|
|
192
191
|
export { endsWith } from './string/endsWith.js';
|
|
192
|
+
export { escape } from './string/escape.js';
|
|
193
193
|
export { kebabCase } from './string/kebabCase.js';
|
|
194
194
|
export { lowerCase } from './string/lowerCase.js';
|
|
195
195
|
export { pad } from './string/pad.js';
|
package/dist/compat/index.js
CHANGED
|
@@ -2020,6 +2020,10 @@ function endsWith(str, target, position = str.length) {
|
|
|
2020
2020
|
return str.endsWith(target, position);
|
|
2021
2021
|
}
|
|
2022
2022
|
|
|
2023
|
+
function escape(string) {
|
|
2024
|
+
return upperFirst.escape(toString(string));
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2023
2027
|
function kebabCase(str) {
|
|
2024
2028
|
return upperFirst.kebabCase(normalizeForCase(str));
|
|
2025
2029
|
}
|
|
@@ -2260,7 +2264,6 @@ exports.isUndefined = isWeakSet$1.isUndefined;
|
|
|
2260
2264
|
exports.capitalize = upperFirst.capitalize;
|
|
2261
2265
|
exports.constantCase = upperFirst.constantCase;
|
|
2262
2266
|
exports.deburr = upperFirst.deburr;
|
|
2263
|
-
exports.escape = upperFirst.escape;
|
|
2264
2267
|
exports.escapeRegExp = upperFirst.escapeRegExp;
|
|
2265
2268
|
exports.lowerFirst = upperFirst.lowerFirst;
|
|
2266
2269
|
exports.pascalCase = upperFirst.pascalCase;
|
|
@@ -2294,6 +2297,7 @@ exports.dropRight = dropRight;
|
|
|
2294
2297
|
exports.dropRightWhile = dropRightWhile;
|
|
2295
2298
|
exports.dropWhile = dropWhile;
|
|
2296
2299
|
exports.endsWith = endsWith;
|
|
2300
|
+
exports.escape = escape;
|
|
2297
2301
|
exports.every = every;
|
|
2298
2302
|
exports.fill = fill;
|
|
2299
2303
|
exports.filter = filter;
|
package/dist/compat/index.mjs
CHANGED
|
@@ -76,7 +76,6 @@ export { withTimeout } from '../promise/withTimeout.mjs';
|
|
|
76
76
|
export { capitalize } from '../string/capitalize.mjs';
|
|
77
77
|
export { constantCase } from '../string/constantCase.mjs';
|
|
78
78
|
export { deburr } from '../string/deburr.mjs';
|
|
79
|
-
export { escape } from '../string/escape.mjs';
|
|
80
79
|
export { escapeRegExp } from '../string/escapeRegExp.mjs';
|
|
81
80
|
export { lowerFirst } from '../string/lowerFirst.mjs';
|
|
82
81
|
export { pascalCase } from '../string/pascalCase.mjs';
|
|
@@ -191,6 +190,7 @@ export { matches } from './predicate/matches.mjs';
|
|
|
191
190
|
export { matchesProperty } from './predicate/matchesProperty.mjs';
|
|
192
191
|
export { camelCase } from './string/camelCase.mjs';
|
|
193
192
|
export { endsWith } from './string/endsWith.mjs';
|
|
193
|
+
export { escape } from './string/escape.mjs';
|
|
194
194
|
export { kebabCase } from './string/kebabCase.mjs';
|
|
195
195
|
export { lowerCase } from './string/lowerCase.mjs';
|
|
196
196
|
export { pad } from './string/pad.mjs';
|
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.24.0-dev.
|
|
4
|
+
"version": "1.24.0-dev.783+61f5f880",
|
|
5
5
|
"homepage": "https://es-toolkit.slash.page",
|
|
6
6
|
"bugs": "https://github.com/toss/es-toolkit/issues",
|
|
7
7
|
"repository": {
|