@nyaomaru/divider 2.0.9 → 2.0.11
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 +2 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -464,7 +464,8 @@ var countUnescapedMultiChar = (text, quote) => {
|
|
|
464
464
|
const quoteLength = quote.length;
|
|
465
465
|
const escapedPairLength = escapedPair.length;
|
|
466
466
|
let count = 0;
|
|
467
|
-
|
|
467
|
+
let index = 0;
|
|
468
|
+
while (index < text.length) {
|
|
468
469
|
if (text.startsWith(escapedPair, index)) {
|
|
469
470
|
index += escapedPairLength;
|
|
470
471
|
continue;
|
package/dist/index.d.cts
CHANGED
|
@@ -280,4 +280,4 @@ declare function pathDivider(input: string, options?: PathDividerOptions): Divid
|
|
|
280
280
|
*/
|
|
281
281
|
declare function queryDivider(input: string, { mode, trim }?: QueryDividerOptions): DividerArrayResult;
|
|
282
282
|
|
|
283
|
-
export { type DividerArg, type DividerArgs, type DividerArrayResult, type DividerEmptyOptions, type DividerExcludeMode, type DividerInferredOptions, type DividerInput, type DividerLoopEmptyOptions, type DividerLoopOptions, type DividerLoopOptionsLike, type DividerOptions, type DividerResult, type DividerReturn, type DividerSeparator, type DividerSeparators, type DividerStringResult, type ExtractedDividerOptions, type NumericSeparator, type StringArrayInput, type StringInput, type StringSeparator, csvDivider, divider, dividerFirst, dividerLast, dividerLoop, dividerNumberString, emailDivider, pathDivider, queryDivider };
|
|
283
|
+
export { type CsvDividerOptions, type DividerArg, type DividerArgs, type DividerArrayResult, type DividerEmptyOptions, type DividerExcludeMode, type DividerInferredOptions, type DividerInput, type DividerLoopEmptyOptions, type DividerLoopOptions, type DividerLoopOptionsLike, type DividerOptions, type DividerResult, type DividerReturn, type DividerSeparator, type DividerSeparators, type DividerStringResult, type EmailDividerOptions, type ExtractedDividerOptions, type NumericSeparator, type PathDividerOptions, type QueryDecodeMode, type QueryDividerOptions, type StringArrayInput, type StringInput, type StringSeparator, csvDivider, divider, dividerFirst, dividerLast, dividerLoop, dividerNumberString, emailDivider, pathDivider, queryDivider };
|
package/dist/index.d.ts
CHANGED
|
@@ -280,4 +280,4 @@ declare function pathDivider(input: string, options?: PathDividerOptions): Divid
|
|
|
280
280
|
*/
|
|
281
281
|
declare function queryDivider(input: string, { mode, trim }?: QueryDividerOptions): DividerArrayResult;
|
|
282
282
|
|
|
283
|
-
export { type DividerArg, type DividerArgs, type DividerArrayResult, type DividerEmptyOptions, type DividerExcludeMode, type DividerInferredOptions, type DividerInput, type DividerLoopEmptyOptions, type DividerLoopOptions, type DividerLoopOptionsLike, type DividerOptions, type DividerResult, type DividerReturn, type DividerSeparator, type DividerSeparators, type DividerStringResult, type ExtractedDividerOptions, type NumericSeparator, type StringArrayInput, type StringInput, type StringSeparator, csvDivider, divider, dividerFirst, dividerLast, dividerLoop, dividerNumberString, emailDivider, pathDivider, queryDivider };
|
|
283
|
+
export { type CsvDividerOptions, type DividerArg, type DividerArgs, type DividerArrayResult, type DividerEmptyOptions, type DividerExcludeMode, type DividerInferredOptions, type DividerInput, type DividerLoopEmptyOptions, type DividerLoopOptions, type DividerLoopOptionsLike, type DividerOptions, type DividerResult, type DividerReturn, type DividerSeparator, type DividerSeparators, type DividerStringResult, type EmailDividerOptions, type ExtractedDividerOptions, type NumericSeparator, type PathDividerOptions, type QueryDecodeMode, type QueryDividerOptions, type StringArrayInput, type StringInput, type StringSeparator, csvDivider, divider, dividerFirst, dividerLast, dividerLoop, dividerNumberString, emailDivider, pathDivider, queryDivider };
|
package/dist/index.js
CHANGED
|
@@ -430,7 +430,8 @@ var countUnescapedMultiChar = (text, quote) => {
|
|
|
430
430
|
const quoteLength = quote.length;
|
|
431
431
|
const escapedPairLength = escapedPair.length;
|
|
432
432
|
let count = 0;
|
|
433
|
-
|
|
433
|
+
let index = 0;
|
|
434
|
+
while (index < text.length) {
|
|
434
435
|
if (text.startsWith(escapedPair, index)) {
|
|
435
436
|
index += escapedPairLength;
|
|
436
437
|
continue;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nyaomaru/divider",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.11",
|
|
5
5
|
"description": "To divide string or string[] with a given separator",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
"author": "nyaomaru",
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"devDependencies": {
|
|
38
|
+
"@swc/core": "^1.15.21",
|
|
39
|
+
"@swc/jest": "^0.2.39",
|
|
38
40
|
"@eslint/js": "^9.26.0",
|
|
39
41
|
"@types/jest": "^30.0.0",
|
|
40
42
|
"@types/node": "^22.15.12",
|
|
@@ -48,8 +50,6 @@
|
|
|
48
50
|
"knip": "^5.82.1",
|
|
49
51
|
"lefthook": "^2.0.13",
|
|
50
52
|
"prettier": "^3.5.3",
|
|
51
|
-
"ts-jest": "^29.4.5",
|
|
52
|
-
"ts-node": "^10.9.2",
|
|
53
53
|
"tsup": "^8.4.0",
|
|
54
54
|
"tsx": "^4.19.4",
|
|
55
55
|
"typedoc": "^0.28.5",
|