@design-edito/tools 0.4.0 → 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/arrays/index.d.ts +1 -1
- package/agnostic/arrays/index.js +1 -1
- package/agnostic/colors/index.d.ts +5 -5
- package/agnostic/colors/index.js +5 -5
- package/agnostic/css/bem/index.js +3 -3
- package/agnostic/css/index.d.ts +2 -2
- package/agnostic/css/index.js +2 -2
- package/agnostic/css/scale/index.js +3 -3
- package/agnostic/html/hyper-json/cast/index.js +11 -12
- package/agnostic/html/hyper-json/index.js +13 -14
- package/agnostic/html/hyper-json/method/index.d.ts +2 -2
- package/agnostic/html/hyper-json/serialize/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +11 -12
- 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 +11 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +1 -1
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +1 -1
- 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 +11 -12
- 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 +11 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +11 -12
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +11 -12
- 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.js +11 -12
- package/agnostic/html/hyper-json/types/index.d.ts +4 -4
- package/agnostic/html/hyper-json/utils/index.js +11 -12
- package/agnostic/html/index.d.ts +1 -1
- package/agnostic/html/index.js +1 -1
- package/agnostic/index.d.ts +4 -4
- package/agnostic/index.js +4 -4
- package/agnostic/misc/crossenv/index.d.ts +1 -1
- package/agnostic/misc/crossenv/index.js +1 -1
- package/agnostic/misc/index.d.ts +1 -1
- package/agnostic/misc/index.js +1 -1
- package/agnostic/misc/logs/index.d.ts +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/numbers/index.d.ts +2 -2
- package/agnostic/numbers/index.js +2 -2
- package/agnostic/objects/index.d.ts +1 -1
- package/agnostic/objects/index.js +1 -1
- package/agnostic/strings/index.d.ts +2 -2
- package/agnostic/strings/index.js +2 -2
- package/agnostic/strings/replace-all/index.js +14 -3
- package/agnostic/time/index.d.ts +1 -1
- package/agnostic/time/index.js +1 -1
- package/chunks/{chunk-FJH35B3Q.js → chunk-B4HGXMP3.js} +2 -2
- package/chunks/{chunk-3JPY46VO.js → chunk-E33STMH3.js} +41 -46
- 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/Scrllgngn/index.js +5 -5
- package/components/index.d.ts +5 -5
- package/components/index.js +5 -5
- package/node/@aws-s3/storage/file/index.d.ts +3 -3
- package/node/@aws-s3/storage/file/index.js +3 -3
- package/node/@google-cloud/storage/file/index.d.ts +2 -2
- package/node/@google-cloud/storage/file/index.js +2 -2
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +3 -3
- package/node/cloud-storage/operations/index.d.ts +2 -2
- package/node/cloud-storage/operations/index.js +2 -2
- package/node/files/index.d.ts +1 -1
- package/node/files/index.js +1 -1
- package/node/ftps/file/index.d.ts +3 -3
- package/node/ftps/file/index.js +3 -3
- package/node/images/transform/index.js +23 -23
- package/node/images/transform/operations/index.d.ts +4 -4
- package/node/images/transform/operations/index.js +4 -4
- 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/node/sftp/file/index.d.ts +1 -1
- package/node/sftp/file/index.js +1 -1
- package/package.json +1 -1
- package/chunks/chunk-EPUHVR7J.js +0 -17
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isRotateOperationParams,
|
|
3
|
-
rotate
|
|
4
|
-
} from "../../../chunks/chunk-U6SGKHHA.js";
|
|
5
1
|
import {
|
|
6
2
|
isSaturateOperationParams,
|
|
7
3
|
saturate
|
|
8
4
|
} from "../../../chunks/chunk-MDVGDZU6.js";
|
|
9
5
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "../../../chunks/chunk-
|
|
6
|
+
isNormalizeOperationParams,
|
|
7
|
+
normalize
|
|
8
|
+
} from "../../../chunks/chunk-TNZGRXKJ.js";
|
|
13
9
|
import {
|
|
14
10
|
flop
|
|
15
11
|
} from "../../../chunks/chunk-YA2YCZUF.js";
|
|
12
|
+
import {
|
|
13
|
+
flatten,
|
|
14
|
+
isFlattenOperationParams
|
|
15
|
+
} from "../../../chunks/chunk-I5MRXMHR.js";
|
|
16
16
|
import {
|
|
17
17
|
hue,
|
|
18
18
|
isHueOperationParams
|
|
19
19
|
} from "../../../chunks/chunk-OT7QXCH6.js";
|
|
20
|
-
import {
|
|
21
|
-
isLevelOperationParams,
|
|
22
|
-
level
|
|
23
|
-
} from "../../../chunks/chunk-VPBZS3S4.js";
|
|
24
20
|
import {
|
|
25
21
|
isLightenOperationParams,
|
|
26
22
|
lighten
|
|
27
23
|
} from "../../../chunks/chunk-W7PJ5NQQ.js";
|
|
28
24
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "../../../chunks/chunk-
|
|
25
|
+
isLevelOperationParams,
|
|
26
|
+
level
|
|
27
|
+
} from "../../../chunks/chunk-VPBZS3S4.js";
|
|
32
28
|
import {
|
|
33
29
|
isOverlayOperationParams,
|
|
34
30
|
overlay
|
|
35
31
|
} from "../../../chunks/chunk-3RNLPW7B.js";
|
|
32
|
+
import {
|
|
33
|
+
isRotateOperationParams,
|
|
34
|
+
rotate
|
|
35
|
+
} from "../../../chunks/chunk-U6SGKHHA.js";
|
|
36
36
|
import {
|
|
37
37
|
isResizeOperationParams,
|
|
38
38
|
resize
|
|
39
39
|
} from "../../../chunks/chunk-NIBRPZJD.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} from "../../../chunks/chunk-
|
|
41
|
+
brighten,
|
|
42
|
+
isBrightenOperationParams
|
|
43
|
+
} from "../../../chunks/chunk-OFYGPRWE.js";
|
|
44
44
|
import {
|
|
45
45
|
extend,
|
|
46
46
|
isExtendOperationParams
|
|
47
47
|
} from "../../../chunks/chunk-ML22TIBW.js";
|
|
48
48
|
import {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} from "../../../chunks/chunk-
|
|
52
|
-
import {
|
|
53
|
-
flip
|
|
54
|
-
} from "../../../chunks/chunk-WNDMYNDU.js";
|
|
49
|
+
blur,
|
|
50
|
+
isBlurOperationParams
|
|
51
|
+
} from "../../../chunks/chunk-RART44AF.js";
|
|
55
52
|
import {
|
|
56
53
|
extract,
|
|
57
54
|
isExtractOperationParams
|
|
58
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
|
|
@@ -2,14 +2,14 @@ export * as blur from './blur/index.js'
|
|
|
2
2
|
export * as brighten from './brighten/index.js'
|
|
3
3
|
export * as extend from './extend/index.js'
|
|
4
4
|
export * as extract from './extract/index.js'
|
|
5
|
+
export * as flatten from './flatten/index.js'
|
|
5
6
|
export * as flip from './flip/index.js'
|
|
6
7
|
export * as flop from './flop/index.js'
|
|
7
|
-
export * as level from './level/index.js'
|
|
8
|
-
export * as flatten from './flatten/index.js'
|
|
9
8
|
export * as hue from './hue/index.js'
|
|
9
|
+
export * as level from './level/index.js'
|
|
10
10
|
export * as lighten from './lighten/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
|
-
export * as saturate from './saturate/index.js'
|
|
15
14
|
export * as rotate from './rotate/index.js'
|
|
15
|
+
export * as saturate from './saturate/index.js'
|
|
@@ -2,14 +2,14 @@ export * as blur from './blur/index.js'
|
|
|
2
2
|
export * as brighten from './brighten/index.js'
|
|
3
3
|
export * as extend from './extend/index.js'
|
|
4
4
|
export * as extract from './extract/index.js'
|
|
5
|
+
export * as flatten from './flatten/index.js'
|
|
5
6
|
export * as flip from './flip/index.js'
|
|
6
7
|
export * as flop from './flop/index.js'
|
|
7
|
-
export * as level from './level/index.js'
|
|
8
|
-
export * as flatten from './flatten/index.js'
|
|
9
8
|
export * as hue from './hue/index.js'
|
|
9
|
+
export * as level from './level/index.js'
|
|
10
10
|
export * as lighten from './lighten/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
|
-
export * as saturate from './saturate/index.js'
|
|
15
14
|
export * as rotate from './rotate/index.js'
|
|
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
2
|
export * as designEdito from './@design-edito/index.js'
|
|
3
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
|
-
export * as googleCloud from './@google-cloud/index.js'
|
|
10
|
-
export * as sftp from './sftp/index.js'
|
|
11
10
|
export * as process from './process/index.js'
|
|
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
2
|
export * as designEdito from './@design-edito/index.js'
|
|
3
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
|
-
export * as googleCloud from './@google-cloud/index.js'
|
|
10
|
-
export * as sftp from './sftp/index.js'
|
|
11
10
|
export * as process from './process/index.js'
|
|
11
|
+
export * as sftp from './sftp/index.js'
|
package/node/process/index.d.ts
CHANGED
package/node/process/index.js
CHANGED
|
@@ -2,6 +2,6 @@ export * as copy from './copy/index.js'
|
|
|
2
2
|
export * as download from './download/index.js'
|
|
3
3
|
export * as exists from './exists/index.js'
|
|
4
4
|
export * as move from './move/index.js'
|
|
5
|
+
export * as remove from './remove/index.js'
|
|
5
6
|
export * as stat from './stat/index.js'
|
|
6
7
|
export * as upload from './upload/index.js'
|
|
7
|
-
export * as remove from './remove/index.js'
|
package/node/sftp/file/index.js
CHANGED
|
@@ -2,6 +2,6 @@ export * as copy from './copy/index.js'
|
|
|
2
2
|
export * as download from './download/index.js'
|
|
3
3
|
export * as exists from './exists/index.js'
|
|
4
4
|
export * as move from './move/index.js'
|
|
5
|
+
export * as remove from './remove/index.js'
|
|
5
6
|
export * as stat from './stat/index.js'
|
|
6
7
|
export * as upload from './upload/index.js'
|
|
7
|
-
export * as remove from './remove/index.js'
|
package/package.json
CHANGED
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
|
-
};
|