@keymanapp/developer-utils 19.0.146-alpha → 19.0.152-alpha

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/README.md CHANGED
@@ -1,13 +1,13 @@
1
- # @keymanapp/developer-utils
2
-
3
- This is a helper library for @keymanapp/kmc and other @keymanapp modules,
4
- containing helper functions such as:
5
-
6
- * `spawnChild()`
7
- * Sentry integration
8
- * MIT license text validation
9
-
10
- It is not intended for separate use.
11
-
12
- **Note:** developer/server depends on this module; adding extra dependencies may
1
+ # @keymanapp/developer-utils
2
+
3
+ This is a helper library for @keymanapp/kmc and other @keymanapp modules,
4
+ containing helper functions such as:
5
+
6
+ * `spawnChild()`
7
+ * Sentry integration
8
+ * MIT license text validation
9
+
10
+ It is not intended for separate use.
11
+
12
+ **Note:** developer/server depends on this module; adding extra dependencies may
13
13
  impact the bundling for that module too (#10872).
@@ -1,5 +1,5 @@
1
- {
2
- "sha": "e1d37acce5dae468c414172be53b666d58d45be8",
3
- "description": "release-46",
4
- "date": "Thu, 30 Jan 2025 21:17:01 +0000"
5
- }
1
+ {
2
+ "sha": "e1d37acce5dae468c414172be53b666d58d45be8",
3
+ "description": "release-46",
4
+ "date": "Thu, 30 Jan 2025 21:17:01 +0000"
5
+ }
@@ -1,80 +1,80 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- Copyright © 1991-2024 Unicode, Inc.
4
- For terms of use, see http://www.unicode.org/copyright.html
5
- SPDX-License-Identifier: Unicode-3.0
6
- CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
7
- -->
8
- <!--
9
- This is the implied import for implied keys.
10
- Please note that any implied keys may be overridden by keyboard layouts.
11
- -->
12
- <!DOCTYPE keys SYSTEM "../dtd/ldmlKeyboard3.dtd">
13
- <keys>
14
-
15
- <key id="gap" gap="true" width="1"/>
16
- <key id="space" output="\u{0020}" stretch="true" width="1"/>
17
-
18
- <key id="0" output="0"/>
19
- <key id="1" output="1"/>
20
- <key id="2" output="2"/>
21
- <key id="3" output="3"/>
22
- <key id="4" output="4"/>
23
- <key id="5" output="5"/>
24
- <key id="6" output="6"/>
25
- <key id="7" output="7"/>
26
- <key id="8" output="8"/>
27
- <key id="9" output="9"/>
28
- <key id="A" output="A"/>
29
- <key id="B" output="B"/>
30
- <key id="C" output="C"/>
31
- <key id="D" output="D"/>
32
- <key id="E" output="E"/>
33
- <key id="F" output="F"/>
34
- <key id="G" output="G"/>
35
- <key id="H" output="H"/>
36
- <key id="I" output="I"/>
37
- <key id="J" output="J"/>
38
- <key id="K" output="K"/>
39
- <key id="L" output="L"/>
40
- <key id="M" output="M"/>
41
- <key id="N" output="N"/>
42
- <key id="O" output="O"/>
43
- <key id="P" output="P"/>
44
- <key id="Q" output="Q"/>
45
- <key id="R" output="R"/>
46
- <key id="S" output="S"/>
47
- <key id="T" output="T"/>
48
- <key id="U" output="U"/>
49
- <key id="V" output="V"/>
50
- <key id="W" output="W"/>
51
- <key id="X" output="X"/>
52
- <key id="Y" output="Y"/>
53
- <key id="Z" output="Z"/>
54
- <key id="a" output="a"/>
55
- <key id="b" output="b"/>
56
- <key id="c" output="c"/>
57
- <key id="d" output="d"/>
58
- <key id="e" output="e"/>
59
- <key id="f" output="f"/>
60
- <key id="g" output="g"/>
61
- <key id="h" output="h"/>
62
- <key id="i" output="i"/>
63
- <key id="j" output="j"/>
64
- <key id="k" output="k"/>
65
- <key id="l" output="l"/>
66
- <key id="m" output="m"/>
67
- <key id="n" output="n"/>
68
- <key id="o" output="o"/>
69
- <key id="p" output="p"/>
70
- <key id="q" output="q"/>
71
- <key id="r" output="r"/>
72
- <key id="s" output="s"/>
73
- <key id="t" output="t"/>
74
- <key id="u" output="u"/>
75
- <key id="v" output="v"/>
76
- <key id="w" output="w"/>
77
- <key id="x" output="x"/>
78
- <key id="y" output="y"/>
79
- <key id="z" output="z"/>
80
- </keys>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Copyright © 1991-2024 Unicode, Inc.
4
+ For terms of use, see http://www.unicode.org/copyright.html
5
+ SPDX-License-Identifier: Unicode-3.0
6
+ CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
7
+ -->
8
+ <!--
9
+ This is the implied import for implied keys.
10
+ Please note that any implied keys may be overridden by keyboard layouts.
11
+ -->
12
+ <!DOCTYPE keys SYSTEM "../dtd/ldmlKeyboard3.dtd">
13
+ <keys>
14
+
15
+ <key id="gap" gap="true" width="1"/>
16
+ <key id="space" output="\u{0020}" stretch="true" width="1"/>
17
+
18
+ <key id="0" output="0"/>
19
+ <key id="1" output="1"/>
20
+ <key id="2" output="2"/>
21
+ <key id="3" output="3"/>
22
+ <key id="4" output="4"/>
23
+ <key id="5" output="5"/>
24
+ <key id="6" output="6"/>
25
+ <key id="7" output="7"/>
26
+ <key id="8" output="8"/>
27
+ <key id="9" output="9"/>
28
+ <key id="A" output="A"/>
29
+ <key id="B" output="B"/>
30
+ <key id="C" output="C"/>
31
+ <key id="D" output="D"/>
32
+ <key id="E" output="E"/>
33
+ <key id="F" output="F"/>
34
+ <key id="G" output="G"/>
35
+ <key id="H" output="H"/>
36
+ <key id="I" output="I"/>
37
+ <key id="J" output="J"/>
38
+ <key id="K" output="K"/>
39
+ <key id="L" output="L"/>
40
+ <key id="M" output="M"/>
41
+ <key id="N" output="N"/>
42
+ <key id="O" output="O"/>
43
+ <key id="P" output="P"/>
44
+ <key id="Q" output="Q"/>
45
+ <key id="R" output="R"/>
46
+ <key id="S" output="S"/>
47
+ <key id="T" output="T"/>
48
+ <key id="U" output="U"/>
49
+ <key id="V" output="V"/>
50
+ <key id="W" output="W"/>
51
+ <key id="X" output="X"/>
52
+ <key id="Y" output="Y"/>
53
+ <key id="Z" output="Z"/>
54
+ <key id="a" output="a"/>
55
+ <key id="b" output="b"/>
56
+ <key id="c" output="c"/>
57
+ <key id="d" output="d"/>
58
+ <key id="e" output="e"/>
59
+ <key id="f" output="f"/>
60
+ <key id="g" output="g"/>
61
+ <key id="h" output="h"/>
62
+ <key id="i" output="i"/>
63
+ <key id="j" output="j"/>
64
+ <key id="k" output="k"/>
65
+ <key id="l" output="l"/>
66
+ <key id="m" output="m"/>
67
+ <key id="n" output="n"/>
68
+ <key id="o" output="o"/>
69
+ <key id="p" output="p"/>
70
+ <key id="q" output="q"/>
71
+ <key id="r" output="r"/>
72
+ <key id="s" output="s"/>
73
+ <key id="t" output="t"/>
74
+ <key id="u" output="u"/>
75
+ <key id="v" output="v"/>
76
+ <key id="w" output="w"/>
77
+ <key id="x" output="x"/>
78
+ <key id="y" output="y"/>
79
+ <key id="z" output="z"/>
80
+ </keys>
@@ -1,15 +1,15 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- Copyright © 1991-2024 Unicode, Inc.
4
- SPDX-License-Identifier: Unicode-3.0
5
- CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
6
- -->
7
- <!DOCTYPE keys SYSTEM "../dtd/ldmlKeyboard3.dtd">
8
- <keys>
9
- <key id="dollar" output="$" />
10
- <key id="euro" output="€" />
11
- <key id="pound" output="£" />
12
- <key id="yen" output="¥" />
13
- <key id="cruzeiro" output="₢" />
14
- <key id="cent" output="¢" />
15
- </keys>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Copyright © 1991-2024 Unicode, Inc.
4
+ SPDX-License-Identifier: Unicode-3.0
5
+ CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
6
+ -->
7
+ <!DOCTYPE keys SYSTEM "../dtd/ldmlKeyboard3.dtd">
8
+ <keys>
9
+ <key id="dollar" output="$" />
10
+ <key id="euro" output="€" />
11
+ <key id="pound" output="£" />
12
+ <key id="yen" output="¥" />
13
+ <key id="cruzeiro" output="₢" />
14
+ <key id="cent" output="¢" />
15
+ </keys>
@@ -1,45 +1,45 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- Copyright © 1991-2024 Unicode, Inc.
4
- SPDX-License-Identifier: Unicode-3.0
5
- CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
6
- -->
7
- <!DOCTYPE keys SYSTEM "../dtd/ldmlKeyboard3.dtd">
8
- <keys>
9
- <!-- General Symbols -->
10
- <key id="amp" output="\u{0026}" />
11
- <key id="apos" output="'" />
12
- <key id="asterisk" output="*" />
13
- <key id="at" output="@" />
14
- <key id="backslash" output="\u{005C}" />
15
- <key id="bang" output="!" />
16
- <key id="caret" output="^" />
17
- <key id="close-angle" output=">" />
18
- <key id="close-curly" output="}" />
19
- <key id="close-paren" output=")" />
20
- <key id="close-square" output="]" />
21
- <key id="colon" output=":" />
22
- <key id="comma" output="," />
23
- <key id="degree" output="°" />
24
- <key id="double-quote" output="\u{0022}" />
25
- <key id="equal" output="=" />
26
- <key id="grave" output="`" />
27
- <key id="hash" output="#" />
28
- <key id="hyphen" output="-" />
29
- <key id="micro" output="µ" />
30
- <key id="not" output="¬" />
31
- <key id="open-angle" output="\u{003C}" />
32
- <key id="open-curly" output="{" />
33
- <key id="open-paren" output="(" />
34
- <key id="open-square" output="[" />
35
- <key id="percent" output="%" />
36
- <key id="period" output="." />
37
- <key id="pipe" output="|" />
38
- <key id="plus" output="+" />
39
- <key id="question" output="?" />
40
- <key id="section" output="§" />
41
- <key id="semi-colon" output=";" />
42
- <key id="slash" output="/" />
43
- <key id="tilde" output="~" />
44
- <key id="underscore" output="_" />
45
- </keys>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Copyright © 1991-2024 Unicode, Inc.
4
+ SPDX-License-Identifier: Unicode-3.0
5
+ CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
6
+ -->
7
+ <!DOCTYPE keys SYSTEM "../dtd/ldmlKeyboard3.dtd">
8
+ <keys>
9
+ <!-- General Symbols -->
10
+ <key id="amp" output="\u{0026}" />
11
+ <key id="apos" output="'" />
12
+ <key id="asterisk" output="*" />
13
+ <key id="at" output="@" />
14
+ <key id="backslash" output="\u{005C}" />
15
+ <key id="bang" output="!" />
16
+ <key id="caret" output="^" />
17
+ <key id="close-angle" output=">" />
18
+ <key id="close-curly" output="}" />
19
+ <key id="close-paren" output=")" />
20
+ <key id="close-square" output="]" />
21
+ <key id="colon" output=":" />
22
+ <key id="comma" output="," />
23
+ <key id="degree" output="°" />
24
+ <key id="double-quote" output="\u{0022}" />
25
+ <key id="equal" output="=" />
26
+ <key id="grave" output="`" />
27
+ <key id="hash" output="#" />
28
+ <key id="hyphen" output="-" />
29
+ <key id="micro" output="µ" />
30
+ <key id="not" output="¬" />
31
+ <key id="open-angle" output="\u{003C}" />
32
+ <key id="open-curly" output="{" />
33
+ <key id="open-paren" output="(" />
34
+ <key id="open-square" output="[" />
35
+ <key id="percent" output="%" />
36
+ <key id="period" output="." />
37
+ <key id="pipe" output="|" />
38
+ <key id="plus" output="+" />
39
+ <key id="question" output="?" />
40
+ <key id="section" output="§" />
41
+ <key id="semi-colon" output=";" />
42
+ <key id="slash" output="/" />
43
+ <key id="tilde" output="~" />
44
+ <key id="underscore" output="_" />
45
+ </keys>
@@ -1,53 +1,53 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <forms>
3
- <!--
4
- These are the implied form values for hardware layouts.
5
- Per the spec, this file is assumed to be imported into
6
- every keyboard file.
7
-
8
- Each row is a separate scanCodes element.
9
- Values are space separated hex bytes.
10
- Frame keys are not included.
11
- -->
12
-
13
- <form id="us">
14
- <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D" /> <!-- 13 keys, ` to = -->
15
- <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B 2B" /> <!-- 13 keys, Q to \ -->
16
- <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28" /> <!-- 11 keys, A to ' -->
17
- <scanCodes codes="2C 2D 2E 2F 30 31 32 33 34 35" /> <!-- 10 keys, Z to / -->
18
- <scanCodes codes="39" /> <!-- 1 key, spacebar -->
19
- </form>
20
- <form id="iso">
21
- <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D" /> <!-- 13 keys -->
22
- <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
23
- <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28 2B" /> <!-- 12 keys -->
24
- <scanCodes codes="56 2C 2D 2E 2F 30 31 32 33 34 35" /> <!-- 11 keys-->
25
- <scanCodes codes="39" /> <!-- 1 key, spacebar -->
26
- </form>
27
- <form id="abnt2">
28
- <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D" /> <!-- 13 keys -->
29
- <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
30
- <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28 2B" /> <!-- 12 keys -->
31
- <scanCodes codes="56 2C 2D 2E 2F 30 31 32 33 34 35 73" /> <!-- 12 keys-->
32
- <scanCodes codes="39" /> <!-- 1 key, spacebar -->
33
- </form>
34
- <form id="jis">
35
- <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D 7D" /> <!-- 14 keys -->
36
- <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
37
- <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28 2B" /> <!-- 12 keys -->
38
- <scanCodes codes="2C 2D 2E 2F 30 31 32 33 34 35 73" /> <!-- 11 keys-->
39
- <scanCodes codes="39" /> <!-- 1 key, spacebar -->
40
- </form>
41
- <form id="ks">
42
- <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D 2B" /> <!-- 14 keys -->
43
- <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
44
- <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28" /> <!-- 11 keys -->
45
- <scanCodes codes="2C 2D 2E 2F 30 31 32 33 34 35" /> <!-- 10 keys, Z to / -->
46
- <scanCodes codes="39" /> <!-- 1 key, spacebar -->
47
- </form>
48
-
49
- <!--
50
- "touch" is not a hardware layout form, and so is not defined here.
51
- <form id="touch"/>
52
- -->
53
- </forms>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <forms>
3
+ <!--
4
+ These are the implied form values for hardware layouts.
5
+ Per the spec, this file is assumed to be imported into
6
+ every keyboard file.
7
+
8
+ Each row is a separate scanCodes element.
9
+ Values are space separated hex bytes.
10
+ Frame keys are not included.
11
+ -->
12
+
13
+ <form id="us">
14
+ <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D" /> <!-- 13 keys, ` to = -->
15
+ <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B 2B" /> <!-- 13 keys, Q to \ -->
16
+ <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28" /> <!-- 11 keys, A to ' -->
17
+ <scanCodes codes="2C 2D 2E 2F 30 31 32 33 34 35" /> <!-- 10 keys, Z to / -->
18
+ <scanCodes codes="39" /> <!-- 1 key, spacebar -->
19
+ </form>
20
+ <form id="iso">
21
+ <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D" /> <!-- 13 keys -->
22
+ <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
23
+ <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28 2B" /> <!-- 12 keys -->
24
+ <scanCodes codes="56 2C 2D 2E 2F 30 31 32 33 34 35" /> <!-- 11 keys-->
25
+ <scanCodes codes="39" /> <!-- 1 key, spacebar -->
26
+ </form>
27
+ <form id="abnt2">
28
+ <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D" /> <!-- 13 keys -->
29
+ <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
30
+ <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28 2B" /> <!-- 12 keys -->
31
+ <scanCodes codes="56 2C 2D 2E 2F 30 31 32 33 34 35 73" /> <!-- 12 keys-->
32
+ <scanCodes codes="39" /> <!-- 1 key, spacebar -->
33
+ </form>
34
+ <form id="jis">
35
+ <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D 7D" /> <!-- 14 keys -->
36
+ <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
37
+ <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28 2B" /> <!-- 12 keys -->
38
+ <scanCodes codes="2C 2D 2E 2F 30 31 32 33 34 35 73" /> <!-- 11 keys-->
39
+ <scanCodes codes="39" /> <!-- 1 key, spacebar -->
40
+ </form>
41
+ <form id="ks">
42
+ <scanCodes codes="29 02 03 04 05 06 07 08 09 0A 0B 0C 0D 2B" /> <!-- 14 keys -->
43
+ <scanCodes codes="10 11 12 13 14 15 16 17 18 19 1A 1B" /> <!-- 12 keys -->
44
+ <scanCodes codes="1E 1F 20 21 22 23 24 25 26 27 28" /> <!-- 11 keys -->
45
+ <scanCodes codes="2C 2D 2E 2F 30 31 32 33 34 35" /> <!-- 10 keys, Z to / -->
46
+ <scanCodes codes="39" /> <!-- 1 key, spacebar -->
47
+ </form>
48
+
49
+ <!--
50
+ "touch" is not a hardware layout form, and so is not defined here.
51
+ <form id="touch"/>
52
+ -->
53
+ </forms>
@@ -15,20 +15,20 @@ export function validateMITLicense(license) {
15
15
  const clauses = [
16
16
  `The MIT License (MIT)`,
17
17
  `Copyright ...`, // Copyright is tested separately below
18
- `Permission is hereby granted, free of charge, to any person obtaining a copy
19
- of this software and associated documentation files (the "Software"), to deal
20
- in the Software without restriction, including without limitation the rights
21
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
- copies of the Software, and to permit persons to whom the Software is
18
+ `Permission is hereby granted, free of charge, to any person obtaining a copy
19
+ of this software and associated documentation files (the "Software"), to deal
20
+ in the Software without restriction, including without limitation the rights
21
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
22
+ copies of the Software, and to permit persons to whom the Software is
23
23
  furnished to do so, subject to the following conditions:`,
24
- `The above copyright notice and this permission notice shall be included in all
24
+ `The above copyright notice and this permission notice shall be included in all
25
25
  copies or substantial portions of the Software.`,
26
- `THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ `THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
32
  SOFTWARE.`
33
33
  ]
34
34
  .map(clause => clause.split('\n').map(line => line.trim()).join(' '));