@nyaomaru/divider 2.0.10 → 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 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
- for (let index = 0; index < text.length; ) {
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.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
- for (let index = 0; index < text.length; ) {
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.10",
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",