@design-edito/tools 0.2.41 → 0.3.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.
Files changed (98) hide show
  1. package/agnostic/arrays/is-array-of/index.js +1 -1
  2. package/agnostic/css/bem/index.js +3 -3
  3. package/agnostic/{numbers/responsive-harmonics → css/scale}/index.d.ts +7 -17
  4. package/agnostic/{numbers/responsive-harmonics → css/scale}/index.js +18 -30
  5. package/agnostic/css/scale/index.test.d.ts +1 -0
  6. package/agnostic/html/hyper-json/cast/index.js +5 -5
  7. package/agnostic/html/hyper-json/index.js +7 -7
  8. package/agnostic/html/hyper-json/serialize/index.js +1 -1
  9. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +5 -5
  10. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +5 -5
  11. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +5 -5
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +5 -5
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +5 -5
  14. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +5 -5
  15. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +5 -5
  16. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +5 -5
  17. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +5 -5
  18. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +5 -5
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +5 -5
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +5 -5
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +5 -5
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +5 -5
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +5 -5
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +5 -5
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +5 -5
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +5 -5
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +5 -5
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +5 -5
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +5 -5
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +5 -5
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +5 -5
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +5 -5
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +5 -5
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +5 -5
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +5 -5
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +5 -5
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +5 -5
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +5 -5
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +5 -5
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +5 -5
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +5 -5
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +5 -5
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +5 -5
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +5 -5
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +5 -5
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +5 -5
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +5 -5
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +5 -5
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +5 -5
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +5 -5
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +5 -5
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +5 -5
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +5 -5
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +5 -5
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +5 -5
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +5 -5
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +5 -5
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +5 -5
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +5 -5
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +5 -5
  61. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +5 -5
  62. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +5 -5
  63. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +5 -5
  64. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +5 -5
  65. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +5 -5
  66. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +5 -5
  67. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +5 -5
  68. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +5 -5
  69. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +5 -5
  70. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +5 -5
  71. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +5 -5
  72. package/agnostic/html/hyper-json/tree/index.js +5 -5
  73. package/agnostic/html/hyper-json/utils/index.js +5 -5
  74. package/agnostic/misc/crawler/index.d.ts +2 -2
  75. package/agnostic/misc/crawler/index.js +1 -1
  76. package/agnostic/misc/is-constructor-function/index.js +1 -1
  77. package/agnostic/numbers/geometric-progressions/index.d.ts +14 -0
  78. package/agnostic/numbers/geometric-progressions/index.js +7 -0
  79. package/agnostic/numbers/geometric-progressions/index.test.d.ts +1 -0
  80. package/chunks/chunk-5H3IRSOB.js +8 -0
  81. package/chunks/chunk-ASXK7XCC.js +18 -0
  82. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +3 -3
  83. package/node/cloud-storage/operations/copy-dir/index.js +6 -6
  84. package/node/cloud-storage/operations/copy-file/index.js +5 -5
  85. package/node/cloud-storage/operations/download-file/index.js +3 -3
  86. package/node/cloud-storage/operations/exists-file/index.js +3 -3
  87. package/node/cloud-storage/operations/list-dir/index.js +3 -3
  88. package/node/cloud-storage/operations/move-dir/index.js +3 -3
  89. package/node/cloud-storage/operations/move-file/index.js +3 -3
  90. package/node/cloud-storage/operations/remove-dir/index.js +3 -3
  91. package/node/cloud-storage/operations/remove-file/index.js +3 -3
  92. package/node/cloud-storage/operations/stat-file/index.js +3 -3
  93. package/node/images/transform/index.js +26 -26
  94. package/package.json +1 -1
  95. package/agnostic/misc/elo/index.d.ts +0 -29
  96. package/agnostic/misc/elo/index.js +0 -31
  97. package/chunks/chunk-RCO57B6F.js +0 -9
  98. package/chunks/{chunk-ALLCYHRY.js → chunk-7NIIWL3S.js} +12 -12
@@ -7,15 +7,15 @@ import {
7
7
  import {
8
8
  exists as exists2
9
9
  } from "../../../../chunks/chunk-JU23NBY2.js";
10
- import {
11
- exists
12
- } from "../../../../chunks/chunk-J5D4OQ5U.js";
13
10
  import {
14
11
  isFtpClient,
15
12
  isGcsBucket,
16
13
  isS3ClientWithBucket,
17
14
  isSftpClient
18
15
  } from "../../../../chunks/chunk-ISJONMNA.js";
16
+ import {
17
+ exists
18
+ } from "../../../../chunks/chunk-J5D4OQ5U.js";
19
19
  import {
20
20
  makeFailure
21
21
  } from "../../../../chunks/chunk-QEKI6WGQ.js";
@@ -7,15 +7,15 @@ import {
7
7
  import {
8
8
  list as list2
9
9
  } from "../../../../chunks/chunk-EBQRPRRC.js";
10
- import {
11
- list
12
- } from "../../../../chunks/chunk-DBNCEHTT.js";
13
10
  import {
14
11
  isFtpClient,
15
12
  isGcsBucket,
16
13
  isS3ClientWithBucket,
17
14
  isSftpClient
18
15
  } from "../../../../chunks/chunk-ISJONMNA.js";
16
+ import {
17
+ list
18
+ } from "../../../../chunks/chunk-DBNCEHTT.js";
19
19
  import {
20
20
  makeFailure
21
21
  } from "../../../../chunks/chunk-QEKI6WGQ.js";
@@ -7,15 +7,15 @@ import {
7
7
  import {
8
8
  moveDir as moveDir2
9
9
  } from "../../../../chunks/chunk-JN2UETL4.js";
10
- import {
11
- moveDir
12
- } from "../../../../chunks/chunk-PTN2V757.js";
13
10
  import {
14
11
  isFtpClient,
15
12
  isGcsBucket,
16
13
  isS3ClientWithBucket,
17
14
  isSftpClient
18
15
  } from "../../../../chunks/chunk-ISJONMNA.js";
16
+ import {
17
+ moveDir
18
+ } from "../../../../chunks/chunk-PTN2V757.js";
19
19
  import {
20
20
  makeFailure
21
21
  } from "../../../../chunks/chunk-QEKI6WGQ.js";
@@ -7,15 +7,15 @@ import {
7
7
  import {
8
8
  move as move2
9
9
  } from "../../../../chunks/chunk-VYDUHDXW.js";
10
- import {
11
- move
12
- } from "../../../../chunks/chunk-DBZAJJUF.js";
13
10
  import {
14
11
  isFtpClient,
15
12
  isGcsBucket,
16
13
  isS3ClientWithBucket,
17
14
  isSftpClient
18
15
  } from "../../../../chunks/chunk-ISJONMNA.js";
16
+ import {
17
+ move
18
+ } from "../../../../chunks/chunk-DBZAJJUF.js";
19
19
  import {
20
20
  makeFailure
21
21
  } from "../../../../chunks/chunk-QEKI6WGQ.js";
@@ -7,15 +7,15 @@ import {
7
7
  import {
8
8
  removeDir as removeDir2
9
9
  } from "../../../../chunks/chunk-6YVXSCRH.js";
10
- import {
11
- removeDir
12
- } from "../../../../chunks/chunk-W5VY535B.js";
13
10
  import {
14
11
  isFtpClient,
15
12
  isGcsBucket,
16
13
  isS3ClientWithBucket,
17
14
  isSftpClient
18
15
  } from "../../../../chunks/chunk-ISJONMNA.js";
16
+ import {
17
+ removeDir
18
+ } from "../../../../chunks/chunk-W5VY535B.js";
19
19
  import {
20
20
  makeFailure
21
21
  } from "../../../../chunks/chunk-QEKI6WGQ.js";
@@ -7,15 +7,15 @@ import {
7
7
  import {
8
8
  remove as remove2
9
9
  } from "../../../../chunks/chunk-BHGRXDTS.js";
10
- import {
11
- remove
12
- } from "../../../../chunks/chunk-S2I77NEE.js";
13
10
  import {
14
11
  isFtpClient,
15
12
  isGcsBucket,
16
13
  isS3ClientWithBucket,
17
14
  isSftpClient
18
15
  } from "../../../../chunks/chunk-ISJONMNA.js";
16
+ import {
17
+ remove
18
+ } from "../../../../chunks/chunk-S2I77NEE.js";
19
19
  import {
20
20
  makeFailure
21
21
  } from "../../../../chunks/chunk-QEKI6WGQ.js";
@@ -7,15 +7,15 @@ import {
7
7
  import {
8
8
  stat as stat2
9
9
  } from "../../../../chunks/chunk-EEPLTO3E.js";
10
- import {
11
- stat
12
- } from "../../../../chunks/chunk-BQABPH3I.js";
13
10
  import {
14
11
  isFtpClient,
15
12
  isGcsBucket,
16
13
  isS3ClientWithBucket,
17
14
  isSftpClient
18
15
  } from "../../../../chunks/chunk-ISJONMNA.js";
16
+ import {
17
+ stat
18
+ } from "../../../../chunks/chunk-BQABPH3I.js";
19
19
  import {
20
20
  makeFailure
21
21
  } from "../../../../chunks/chunk-QEKI6WGQ.js";
@@ -1,11 +1,11 @@
1
- import {
2
- isNormalizeOperationParams,
3
- normalize
4
- } from "../../../chunks/chunk-MHNUCHPP.js";
5
1
  import {
6
2
  isOverlayOperationParams,
7
3
  overlay
8
4
  } from "../../../chunks/chunk-MZYCKOLN.js";
5
+ import {
6
+ isRotateOperationParams,
7
+ rotate
8
+ } from "../../../chunks/chunk-QFBVETGF.js";
9
9
  import {
10
10
  isResizeOperationParams,
11
11
  resize
@@ -19,35 +19,39 @@ import {
19
19
  isExtractOperationParams
20
20
  } from "../../../chunks/chunk-NR7STUY3.js";
21
21
  import {
22
- flatten,
23
- isFlattenOperationParams
24
- } from "../../../chunks/chunk-HMPY32F7.js";
22
+ flop
23
+ } from "../../../chunks/chunk-YA2YCZUF.js";
25
24
  import {
26
- isLevelOperationParams,
27
- level
28
- } from "../../../chunks/chunk-IK2S6ZYP.js";
25
+ hue,
26
+ isHueOperationParams
27
+ } from "../../../chunks/chunk-ASWI3EO6.js";
29
28
  import {
30
29
  flip
31
30
  } from "../../../chunks/chunk-WNDMYNDU.js";
32
- import {
33
- flop
34
- } from "../../../chunks/chunk-YA2YCZUF.js";
35
31
  import {
36
32
  isLightenOperationParams,
37
33
  lighten
38
34
  } from "../../../chunks/chunk-65BFQP3T.js";
39
35
  import {
40
- hue,
41
- isHueOperationParams
42
- } from "../../../chunks/chunk-ASWI3EO6.js";
36
+ isLevelOperationParams,
37
+ level
38
+ } from "../../../chunks/chunk-IK2S6ZYP.js";
43
39
  import {
44
- isRotateOperationParams,
45
- rotate
46
- } from "../../../chunks/chunk-QFBVETGF.js";
40
+ flatten,
41
+ isFlattenOperationParams
42
+ } from "../../../chunks/chunk-HMPY32F7.js";
43
+ import {
44
+ isNormalizeOperationParams,
45
+ normalize
46
+ } from "../../../chunks/chunk-MHNUCHPP.js";
47
47
  import {
48
48
  blur,
49
49
  isBlurOperationParams
50
50
  } from "../../../chunks/chunk-PTJO2TGI.js";
51
+ import {
52
+ brighten,
53
+ isBrightenOperationParams
54
+ } from "../../../chunks/chunk-5CFQCSKJ.js";
51
55
  import {
52
56
  extend,
53
57
  isExtendOperationParams
@@ -55,19 +59,12 @@ import {
55
59
  import {
56
60
  toSharpInstance
57
61
  } from "../../../chunks/chunk-6KOJFWH3.js";
58
- import {
59
- brighten,
60
- isBrightenOperationParams
61
- } from "../../../chunks/chunk-5CFQCSKJ.js";
62
62
  import "../../../chunks/chunk-LFHDJTZJ.js";
63
63
  import "../../../chunks/chunk-5NTPCRFH.js";
64
64
  import {
65
65
  makeFailure,
66
66
  makeSuccess
67
67
  } from "../../../chunks/chunk-QEKI6WGQ.js";
68
- import {
69
- unknownToString
70
- } from "../../../chunks/chunk-FENXVJYO.js";
71
68
  import "../../../chunks/chunk-RNXRHCHQ.js";
72
69
  import "../../../chunks/chunk-DNIOWD7K.js";
73
70
  import "../../../chunks/chunk-OSAXBA7G.js";
@@ -76,6 +73,9 @@ import {
76
73
  isNonNullObject
77
74
  } from "../../../chunks/chunk-HQLRJ7XW.js";
78
75
  import "../../../chunks/chunk-KRYJVBO5.js";
76
+ import {
77
+ unknownToString
78
+ } from "../../../chunks/chunk-FENXVJYO.js";
79
79
  import "../../../chunks/chunk-XCBH6NLF.js";
80
80
 
81
81
  // src/node/images/transform/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-edito/tools",
3
- "version": "0.2.41",
3
+ "version": "0.3.1",
4
4
  "description": "",
5
5
  "author": "Maxime Fabas",
6
6
  "license": "ISC",
@@ -1,29 +0,0 @@
1
- export declare const K_FACTOR = 32;
2
- /**
3
- * Calcule la probabilité de gain de A en fonction des scores Elo de A et B.
4
- * @param eloA Le score Elo du joueur A.
5
- * @param eloB Le score Elo du joueur B.
6
- * @returns La probabilité que le joueur A gagne contre le joueur B.
7
- */
8
- export declare function getWinProbability(eloA: number, eloB: number): number;
9
- /**
10
- * Calcule les nouveaux classements Elo pour les scénarios de victoire de A, de B et de match nul.
11
- * @param eloA Le score Elo actuel du joueur A.
12
- * @param eloB Le score Elo actuel du joueur B.
13
- * @param kFactor Facteur K pour les calculs Elo (facultatif, valeur par défaut = 32).
14
- * @returns Un objet contenant les nouveaux classements Elo pour chaque scénario de résultat.
15
- */
16
- export declare function getOutcome(eloA: number, eloB: number, kFactor?: number): {
17
- aWins: {
18
- eloA: number;
19
- eloB: number;
20
- };
21
- bWins: {
22
- eloA: number;
23
- eloB: number;
24
- };
25
- null: {
26
- eloA: number;
27
- eloB: number;
28
- };
29
- };
@@ -1,31 +0,0 @@
1
- import "../../../chunks/chunk-XCBH6NLF.js";
2
-
3
- // src/agnostic/misc/elo/index.ts
4
- var K_FACTOR = 32;
5
- function getWinProbability(eloA, eloB) {
6
- const exponent = (eloB - eloA) / 400;
7
- return 1 / (1 + Math.pow(10, exponent));
8
- }
9
- function getOutcome(eloA, eloB, kFactor = K_FACTOR) {
10
- const probA = getWinProbability(eloA, eloB);
11
- const probB = 1 - probA;
12
- return {
13
- aWins: {
14
- eloA: Math.round(eloA + kFactor * (1 - probA)),
15
- eloB: Math.round(eloB + kFactor * (0 - probB))
16
- },
17
- bWins: {
18
- eloA: Math.round(eloA + kFactor * (0 - probA)),
19
- eloB: Math.round(eloB + kFactor * (1 - probB))
20
- },
21
- null: {
22
- eloA: Math.round(eloA + kFactor * (0.5 - probA)),
23
- eloB: Math.round(eloB + kFactor * (0.5 - probB))
24
- }
25
- };
26
- }
27
- export {
28
- K_FACTOR,
29
- getOutcome,
30
- getWinProbability
31
- };
@@ -1,9 +0,0 @@
1
- // src/agnostic/misc/is-constructor-function/index.ts
2
- function isConstructorFunction(input) {
3
- if (typeof input !== "function") return false;
4
- return "prototype" in input && "constructor" in input.prototype;
5
- }
6
-
7
- export {
8
- isConstructorFunction
9
- };
@@ -4,6 +4,9 @@ import {
4
4
  import {
5
5
  Types
6
6
  } from "./chunk-XEQ2PBT2.js";
7
+ import {
8
+ Serialize
9
+ } from "./chunk-DUCLFPGE.js";
7
10
  import {
8
11
  any
9
12
  } from "./chunk-ZKIQ753F.js";
@@ -13,9 +16,6 @@ import {
13
16
  import {
14
17
  SmartTags
15
18
  } from "./chunk-HEY7J6GI.js";
16
- import {
17
- Serialize
18
- } from "./chunk-DUCLFPGE.js";
19
19
  import {
20
20
  Transformer
21
21
  } from "./chunk-JVMFT3IT.js";
@@ -31,17 +31,17 @@ import {
31
31
  import {
32
32
  isInEnum
33
33
  } from "./chunk-E6MSDKON.js";
34
- import {
35
- isRecord
36
- } from "./chunk-YDIBNEGA.js";
37
- import {
38
- get
39
- } from "./chunk-ROWPCMQY.js";
40
34
  import {
41
35
  makeFailure,
42
36
  makeSuccess,
43
37
  outcome_exports
44
38
  } from "./chunk-QEKI6WGQ.js";
39
+ import {
40
+ get
41
+ } from "./chunk-ROWPCMQY.js";
42
+ import {
43
+ isRecord
44
+ } from "./chunk-YDIBNEGA.js";
45
45
  import {
46
46
  replaceAll
47
47
  } from "./chunk-EPUHVR7J.js";
@@ -49,12 +49,12 @@ import {
49
49
  trimEnd,
50
50
  trimStart
51
51
  } from "./chunk-6XL25OZX.js";
52
- import {
53
- unknownToString
54
- } from "./chunk-FENXVJYO.js";
55
52
  import {
56
53
  isNonNullObject
57
54
  } from "./chunk-HQLRJ7XW.js";
55
+ import {
56
+ unknownToString
57
+ } from "./chunk-FENXVJYO.js";
58
58
 
59
59
  // src/agnostic/html/hyper-json/cast/index.ts
60
60
  var Cast;