@design-edito/tools 0.3.17 → 0.4.1
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/agnostic/colors/index.d.ts +1 -1
- package/agnostic/colors/index.js +1 -1
- package/agnostic/css/bem/index.js +3 -3
- package/agnostic/css/index.d.ts +1 -1
- package/agnostic/css/index.js +1 -1
- package/agnostic/css/scale/index.js +3 -3
- package/agnostic/html/hyper-json/cast/index.js +8 -9
- package/agnostic/html/hyper-json/index.d.ts +1 -0
- package/agnostic/html/hyper-json/index.js +13 -12
- package/agnostic/html/hyper-json/method/index.d.ts +2 -2
- package/agnostic/html/hyper-json/serialize/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +6 -6
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/index.d.ts +8 -1
- package/agnostic/html/hyper-json/smart-tags/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +2 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +2 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +2 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +3 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +8 -9
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +8 -9
- package/agnostic/html/hyper-json/transformer/index.d.ts +7 -7
- package/agnostic/html/hyper-json/transformer/index.js +1 -1
- package/agnostic/html/hyper-json/tree/index.d.ts +3 -5
- package/agnostic/html/hyper-json/tree/index.js +8 -9
- package/agnostic/html/hyper-json/types/index.d.ts +4 -10
- package/agnostic/html/hyper-json/utils/index.js +8 -9
- package/agnostic/html/index.d.ts +2 -2
- package/agnostic/html/index.js +2 -2
- package/agnostic/index.d.ts +4 -4
- package/agnostic/index.js +4 -4
- package/agnostic/misc/index.d.ts +5 -5
- package/agnostic/misc/index.js +5 -5
- package/agnostic/misc/logs/index.d.ts +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/numbers/index.d.ts +1 -1
- package/agnostic/numbers/index.js +1 -1
- package/agnostic/objects/index.d.ts +3 -3
- package/agnostic/objects/index.js +3 -3
- package/agnostic/optim/index.d.ts +1 -1
- package/agnostic/optim/index.js +1 -1
- package/agnostic/sanitization/index.d.ts +1 -1
- package/agnostic/sanitization/index.js +1 -1
- package/agnostic/strings/index.d.ts +3 -3
- package/agnostic/strings/index.js +3 -3
- package/agnostic/strings/replace-all/index.js +14 -3
- package/chunks/{chunk-FJH35B3Q.js → chunk-B4HGXMP3.js} +2 -2
- package/chunks/{chunk-QQPOSZFR.js → chunk-E33STMH3.js} +37 -64
- package/chunks/{chunk-QDHET2TE.js → chunk-HYGUIF2O.js} +5 -2
- package/chunks/{chunk-4STX5SQX.js → chunk-LEBGVBYD.js} +9 -2
- package/chunks/{chunk-FCABYQRX.js → chunk-MSU7JU63.js} +13 -1
- package/chunks/{chunk-H4KLHV6B.js → chunk-O32IRXDX.js} +1 -1
- package/chunks/{chunk-DU6U226H.js → chunk-RJRNYRPM.js} +2 -2
- package/components/index.d.ts +2 -2
- package/components/index.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/node/@aws-s3/storage/file/index.d.ts +2 -2
- package/node/@aws-s3/storage/file/index.js +2 -2
- package/node/@google-cloud/storage/directory/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/index.js +1 -1
- package/node/@google-cloud/storage/file/index.d.ts +3 -3
- package/node/@google-cloud/storage/file/index.js +3 -3
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +3 -3
- package/node/cloud-storage/index.d.ts +1 -1
- package/node/cloud-storage/index.js +1 -1
- package/node/cloud-storage/operations/index.d.ts +2 -2
- package/node/cloud-storage/operations/index.js +2 -2
- package/node/ftps/file/index.d.ts +2 -2
- package/node/ftps/file/index.js +2 -2
- package/node/images/transform/index.js +28 -28
- package/node/images/transform/operations/index.d.ts +5 -5
- package/node/images/transform/operations/index.js +5 -5
- package/node/index.d.ts +2 -2
- package/node/index.js +2 -2
- package/node/process/index.d.ts +1 -1
- package/node/process/index.js +1 -1
- package/node/sftp/directory/index.d.ts +1 -1
- package/node/sftp/directory/index.js +1 -1
- package/package.json +1 -8
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +0 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +0 -25
- package/chunks/chunk-EPUHVR7J.js +0 -17
|
@@ -1,49 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isRotateOperationParams,
|
|
3
|
-
rotate
|
|
4
|
-
} from "../../../chunks/chunk-U6SGKHHA.js";
|
|
5
|
-
import {
|
|
6
|
-
isOverlayOperationParams,
|
|
7
|
-
overlay
|
|
8
|
-
} from "../../../chunks/chunk-3RNLPW7B.js";
|
|
9
1
|
import {
|
|
10
2
|
isSaturateOperationParams,
|
|
11
3
|
saturate
|
|
12
4
|
} from "../../../chunks/chunk-MDVGDZU6.js";
|
|
13
5
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "../../../chunks/chunk-
|
|
6
|
+
isNormalizeOperationParams,
|
|
7
|
+
normalize
|
|
8
|
+
} from "../../../chunks/chunk-TNZGRXKJ.js";
|
|
17
9
|
import {
|
|
18
|
-
|
|
19
|
-
} from "../../../chunks/chunk-
|
|
10
|
+
flop
|
|
11
|
+
} from "../../../chunks/chunk-YA2YCZUF.js";
|
|
20
12
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "../../../chunks/chunk-
|
|
13
|
+
flatten,
|
|
14
|
+
isFlattenOperationParams
|
|
15
|
+
} from "../../../chunks/chunk-I5MRXMHR.js";
|
|
24
16
|
import {
|
|
25
17
|
hue,
|
|
26
18
|
isHueOperationParams
|
|
27
19
|
} from "../../../chunks/chunk-OT7QXCH6.js";
|
|
28
20
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
21
|
+
isLightenOperationParams,
|
|
22
|
+
lighten
|
|
23
|
+
} from "../../../chunks/chunk-W7PJ5NQQ.js";
|
|
31
24
|
import {
|
|
32
25
|
isLevelOperationParams,
|
|
33
26
|
level
|
|
34
27
|
} from "../../../chunks/chunk-VPBZS3S4.js";
|
|
35
28
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "../../../chunks/chunk-
|
|
29
|
+
isOverlayOperationParams,
|
|
30
|
+
overlay
|
|
31
|
+
} from "../../../chunks/chunk-3RNLPW7B.js";
|
|
32
|
+
import {
|
|
33
|
+
isRotateOperationParams,
|
|
34
|
+
rotate
|
|
35
|
+
} from "../../../chunks/chunk-U6SGKHHA.js";
|
|
39
36
|
import {
|
|
40
37
|
isResizeOperationParams,
|
|
41
38
|
resize
|
|
42
39
|
} from "../../../chunks/chunk-NIBRPZJD.js";
|
|
43
|
-
import {
|
|
44
|
-
blur,
|
|
45
|
-
isBlurOperationParams
|
|
46
|
-
} from "../../../chunks/chunk-RART44AF.js";
|
|
47
40
|
import {
|
|
48
41
|
brighten,
|
|
49
42
|
isBrightenOperationParams
|
|
@@ -53,9 +46,16 @@ import {
|
|
|
53
46
|
isExtendOperationParams
|
|
54
47
|
} from "../../../chunks/chunk-ML22TIBW.js";
|
|
55
48
|
import {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} from "../../../chunks/chunk-
|
|
49
|
+
blur,
|
|
50
|
+
isBlurOperationParams
|
|
51
|
+
} from "../../../chunks/chunk-RART44AF.js";
|
|
52
|
+
import {
|
|
53
|
+
extract,
|
|
54
|
+
isExtractOperationParams
|
|
55
|
+
} from "../../../chunks/chunk-ZJR5ASR3.js";
|
|
56
|
+
import {
|
|
57
|
+
flip
|
|
58
|
+
} from "../../../chunks/chunk-WNDMYNDU.js";
|
|
59
59
|
import "../../../chunks/chunk-5NTPCRFH.js";
|
|
60
60
|
import {
|
|
61
61
|
toSharpInstance
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
export * as blur from './blur/index.js'
|
|
1
2
|
export * as brighten from './brighten/index.js'
|
|
2
|
-
export * as extract from './extract/index.js'
|
|
3
3
|
export * as extend from './extend/index.js'
|
|
4
|
+
export * as extract from './extract/index.js'
|
|
5
|
+
export * as flatten from './flatten/index.js'
|
|
4
6
|
export * as flip from './flip/index.js'
|
|
5
7
|
export * as flop from './flop/index.js'
|
|
6
|
-
export * as
|
|
8
|
+
export * as hue from './hue/index.js'
|
|
7
9
|
export * as level from './level/index.js'
|
|
8
|
-
export * as flatten from './flatten/index.js'
|
|
9
10
|
export * as lighten from './lighten/index.js'
|
|
10
|
-
export * as hue from './hue/index.js'
|
|
11
|
-
export * as overlay from './overlay/index.js'
|
|
12
11
|
export * as normalize from './normalize/index.js'
|
|
12
|
+
export * as overlay from './overlay/index.js'
|
|
13
13
|
export * as resize from './resize/index.js'
|
|
14
14
|
export * as rotate from './rotate/index.js'
|
|
15
15
|
export * as saturate from './saturate/index.js'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
export * as blur from './blur/index.js'
|
|
1
2
|
export * as brighten from './brighten/index.js'
|
|
2
|
-
export * as extract from './extract/index.js'
|
|
3
3
|
export * as extend from './extend/index.js'
|
|
4
|
+
export * as extract from './extract/index.js'
|
|
5
|
+
export * as flatten from './flatten/index.js'
|
|
4
6
|
export * as flip from './flip/index.js'
|
|
5
7
|
export * as flop from './flop/index.js'
|
|
6
|
-
export * as
|
|
8
|
+
export * as hue from './hue/index.js'
|
|
7
9
|
export * as level from './level/index.js'
|
|
8
|
-
export * as flatten from './flatten/index.js'
|
|
9
10
|
export * as lighten from './lighten/index.js'
|
|
10
|
-
export * as hue from './hue/index.js'
|
|
11
|
-
export * as overlay from './overlay/index.js'
|
|
12
11
|
export * as normalize from './normalize/index.js'
|
|
12
|
+
export * as overlay from './overlay/index.js'
|
|
13
13
|
export * as resize from './resize/index.js'
|
|
14
14
|
export * as rotate from './rotate/index.js'
|
|
15
15
|
export * as saturate from './saturate/index.js'
|
package/node/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * as awsS3 from './@aws-s3/index.js'
|
|
2
|
-
export * as express from './@express/index.js'
|
|
3
2
|
export * as designEdito from './@design-edito/index.js'
|
|
3
|
+
export * as express from './@express/index.js'
|
|
4
|
+
export * as googleCloud from './@google-cloud/index.js'
|
|
4
5
|
export * as cloudStorage from './cloud-storage/index.js'
|
|
5
6
|
export * as encryption from './encryption/index.js'
|
|
6
7
|
export * as files from './files/index.js'
|
|
7
8
|
export * as ftps from './ftps/index.js'
|
|
8
9
|
export * as images from './images/index.js'
|
|
9
10
|
export * as process from './process/index.js'
|
|
10
|
-
export * as googleCloud from './@google-cloud/index.js'
|
|
11
11
|
export * as sftp from './sftp/index.js'
|
package/node/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * as awsS3 from './@aws-s3/index.js'
|
|
2
|
-
export * as express from './@express/index.js'
|
|
3
2
|
export * as designEdito from './@design-edito/index.js'
|
|
3
|
+
export * as express from './@express/index.js'
|
|
4
|
+
export * as googleCloud from './@google-cloud/index.js'
|
|
4
5
|
export * as cloudStorage from './cloud-storage/index.js'
|
|
5
6
|
export * as encryption from './encryption/index.js'
|
|
6
7
|
export * as files from './files/index.js'
|
|
7
8
|
export * as ftps from './ftps/index.js'
|
|
8
9
|
export * as images from './images/index.js'
|
|
9
10
|
export * as process from './process/index.js'
|
|
10
|
-
export * as googleCloud from './@google-cloud/index.js'
|
|
11
11
|
export * as sftp from './sftp/index.js'
|
package/node/process/index.d.ts
CHANGED
package/node/process/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design-edito/tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Maxime Fabas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -711,13 +711,6 @@
|
|
|
711
711
|
"./agnostic/html/hyper-json/smart-tags/isolated/get/index.js": {
|
|
712
712
|
"import": "./agnostic/html/hyper-json/smart-tags/isolated/get/index.js"
|
|
713
713
|
},
|
|
714
|
-
"./agnostic/html/hyper-json/smart-tags/isolated/global": {
|
|
715
|
-
"import": "./agnostic/html/hyper-json/smart-tags/isolated/global/index.js",
|
|
716
|
-
"types": "./agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts"
|
|
717
|
-
},
|
|
718
|
-
"./agnostic/html/hyper-json/smart-tags/isolated/global/index.js": {
|
|
719
|
-
"import": "./agnostic/html/hyper-json/smart-tags/isolated/global/index.js"
|
|
720
|
-
},
|
|
721
714
|
"./agnostic/html/hyper-json/smart-tags/isolated/guess": {
|
|
722
715
|
"import": "./agnostic/html/hyper-json/smart-tags/isolated/guess/index.js",
|
|
723
716
|
"types": "./agnostic/html/hyper-json/smart-tags/isolated/guess/index.d.ts"
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
global
|
|
3
|
-
} from "../../../../../../chunks/chunk-QQPOSZFR.js";
|
|
4
|
-
import "../../../../../../chunks/chunk-FJH35B3Q.js";
|
|
5
|
-
import "../../../../../../chunks/chunk-DU6U226H.js";
|
|
6
|
-
import "../../../../../../chunks/chunk-QDHET2TE.js";
|
|
7
|
-
import "../../../../../../chunks/chunk-FCABYQRX.js";
|
|
8
|
-
import "../../../../../../chunks/chunk-H4KLHV6B.js";
|
|
9
|
-
import "../../../../../../chunks/chunk-4STX5SQX.js";
|
|
10
|
-
import "../../../../../../chunks/chunk-RW7VAKJW.js";
|
|
11
|
-
import "../../../../../../chunks/chunk-XEQ2PBT2.js";
|
|
12
|
-
import "../../../../../../chunks/chunk-XA4HVHJ4.js";
|
|
13
|
-
import "../../../../../../chunks/chunk-XNF5MLCQ.js";
|
|
14
|
-
import "../../../../../../chunks/chunk-E6MSDKON.js";
|
|
15
|
-
import "../../../../../../chunks/chunk-YDIBNEGA.js";
|
|
16
|
-
import "../../../../../../chunks/chunk-6XL25OZX.js";
|
|
17
|
-
import "../../../../../../chunks/chunk-EPUHVR7J.js";
|
|
18
|
-
import "../../../../../../chunks/chunk-LUAYN7VJ.js";
|
|
19
|
-
import "../../../../../../chunks/chunk-57YKZBJR.js";
|
|
20
|
-
import "../../../../../../chunks/chunk-HQLRJ7XW.js";
|
|
21
|
-
import "../../../../../../chunks/chunk-PUQUSA6S.js";
|
|
22
|
-
import "../../../../../../chunks/chunk-WSFCRVEQ.js";
|
|
23
|
-
export {
|
|
24
|
-
global
|
|
25
|
-
};
|
package/chunks/chunk-EPUHVR7J.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// src/agnostic/strings/replace-all/index.ts
|
|
2
|
-
function replaceAll(input, pattern, replacer) {
|
|
3
|
-
console.warn("[DEPRECATED] Use String.replaceAll instead");
|
|
4
|
-
const found = Array.from(input.match(pattern) ?? []);
|
|
5
|
-
const foundReplaced = typeof replacer === "string" ? found.map(() => replacer) : found.map((e) => replacer(e));
|
|
6
|
-
const splitted = input.split(pattern);
|
|
7
|
-
const replaced = splitted.map((chunk, chunkPos) => {
|
|
8
|
-
const isLast = chunkPos === splitted.length - 1;
|
|
9
|
-
if (isLast) return [chunk];
|
|
10
|
-
return [chunk, foundReplaced[chunkPos] ?? ""];
|
|
11
|
-
}).flat().join("");
|
|
12
|
-
return replaced;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
replaceAll
|
|
17
|
-
};
|