@quantiya/codevibe-claude-plugin 1.0.36 → 1.0.38
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/.claude-plugin/plugin.json +1 -1
- package/bin/codevibe-claude +17 -3
- package/dist/server.js +13 -13
- package/hooks/stop.sh +30 -10
- package/node_modules/@quantiya/codevibe-core/dist/auth/auth-telemetry.d.ts +56 -0
- package/node_modules/@quantiya/codevibe-core/dist/index.js +30 -30
- package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-manager.d.ts +16 -2
- package/node_modules/@quantiya/codevibe-core/dist/session/session-rekey.d.ts +40 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/session-resume.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/package.json +1 -1
- package/node_modules/body-parser/README.md +18 -18
- package/node_modules/body-parser/index.js +6 -15
- package/node_modules/body-parser/lib/read.js +17 -20
- package/node_modules/body-parser/lib/types/json.js +8 -16
- package/node_modules/body-parser/lib/types/raw.js +3 -4
- package/node_modules/body-parser/lib/types/text.js +3 -4
- package/node_modules/body-parser/lib/types/urlencoded.js +8 -8
- package/node_modules/body-parser/lib/utils.js +11 -9
- package/node_modules/body-parser/package.json +2 -2
- package/node_modules/content-disposition/README.md +7 -8
- package/node_modules/content-disposition/index.js +118 -40
- package/node_modules/content-disposition/package.json +8 -11
- package/node_modules/express/Readme.md +39 -29
- package/node_modules/express/lib/application.js +1 -1
- package/node_modules/express/lib/request.js +5 -6
- package/node_modules/express/lib/response.js +14 -0
- package/node_modules/express/lib/utils.js +3 -1
- package/node_modules/express/package.json +6 -5
- package/node_modules/finalhandler/HISTORY.md +6 -0
- package/node_modules/finalhandler/README.md +26 -23
- package/node_modules/finalhandler/package.json +13 -9
- package/node_modules/graphql/execution/execute.d.ts +14 -1
- package/node_modules/graphql/execution/execute.js +63 -13
- package/node_modules/graphql/execution/execute.mjs +63 -13
- package/node_modules/graphql/execution/subscribe.js +1 -0
- package/node_modules/graphql/execution/subscribe.mjs +2 -0
- package/node_modules/graphql/execution/values.js +4 -4
- package/node_modules/graphql/execution/values.mjs +4 -4
- package/node_modules/graphql/index.d.ts +1 -0
- package/node_modules/graphql/language/ast.d.ts +10 -1
- package/node_modules/graphql/language/ast.js +8 -1
- package/node_modules/graphql/language/ast.mjs +8 -1
- package/node_modules/graphql/language/directiveLocation.d.ts +1 -0
- package/node_modules/graphql/language/directiveLocation.js +1 -0
- package/node_modules/graphql/language/directiveLocation.mjs +1 -0
- package/node_modules/graphql/language/index.d.ts +1 -0
- package/node_modules/graphql/language/kinds.d.ts +1 -0
- package/node_modules/graphql/language/kinds.js +1 -0
- package/node_modules/graphql/language/kinds.mjs +1 -0
- package/node_modules/graphql/language/parser.d.ts +14 -0
- package/node_modules/graphql/language/parser.js +33 -0
- package/node_modules/graphql/language/parser.mjs +33 -0
- package/node_modules/graphql/language/predicates.js +3 -1
- package/node_modules/graphql/language/predicates.mjs +5 -1
- package/node_modules/graphql/language/printer.js +13 -1
- package/node_modules/graphql/language/printer.mjs +13 -1
- package/node_modules/graphql/package.json +1 -1
- package/node_modules/graphql/type/directives.d.ts +9 -1
- package/node_modules/graphql/type/directives.js +10 -1
- package/node_modules/graphql/type/directives.mjs +10 -1
- package/node_modules/graphql/type/introspection.js +24 -1
- package/node_modules/graphql/type/introspection.mjs +24 -1
- package/node_modules/graphql/utilities/buildASTSchema.js +4 -0
- package/node_modules/graphql/utilities/buildASTSchema.mjs +4 -0
- package/node_modules/graphql/utilities/buildClientSchema.js +1 -0
- package/node_modules/graphql/utilities/buildClientSchema.mjs +1 -0
- package/node_modules/graphql/utilities/coerceInputValue.js +2 -2
- package/node_modules/graphql/utilities/coerceInputValue.mjs +2 -2
- package/node_modules/graphql/utilities/extendSchema.js +58 -3
- package/node_modules/graphql/utilities/extendSchema.mjs +58 -3
- package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +16 -0
- package/node_modules/graphql/utilities/getIntrospectionQuery.js +31 -38
- package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +31 -38
- package/node_modules/graphql/utilities/introspectionFromSchema.js +1 -0
- package/node_modules/graphql/utilities/introspectionFromSchema.mjs +1 -0
- package/node_modules/graphql/utilities/printSchema.js +1 -0
- package/node_modules/graphql/utilities/printSchema.mjs +1 -0
- package/node_modules/graphql/utilities/valueFromAST.js +12 -2
- package/node_modules/graphql/utilities/valueFromAST.mjs +12 -2
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +4 -0
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +4 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +12 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +12 -0
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +5 -11
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs +5 -11
- package/node_modules/graphql/validation/validate.js +12 -0
- package/node_modules/graphql/validation/validate.mjs +13 -2
- package/node_modules/graphql/version.js +2 -2
- package/node_modules/graphql/version.mjs +2 -2
- package/node_modules/hasown/CHANGELOG.md +11 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +1 -0
- package/node_modules/hasown/package.json +14 -14
- package/node_modules/iconv-lite/lib/index.d.ts +114 -26
- package/node_modules/iconv-lite/lib/index.js +39 -40
- package/node_modules/iconv-lite/package.json +13 -2
- package/node_modules/iconv-lite/types/encodings.d.ts +423 -0
- package/node_modules/node-abi/abi_registry.json +10 -3
- package/node_modules/{semver → node-abi/node_modules/semver}/README.md +19 -4
- package/node_modules/{semver → node-abi/node_modules/semver}/bin/semver.js +14 -10
- package/node_modules/node-abi/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/{semver → node-abi/node_modules/semver}/index.js +2 -0
- package/node_modules/{semver → node-abi/node_modules/semver}/internal/re.js +1 -1
- package/node_modules/{semver → node-abi/node_modules/semver}/package.json +3 -3
- package/node_modules/{semver → node-abi/node_modules/semver}/range.bnf +5 -4
- package/node_modules/node-abi/package.json +1 -1
- package/node_modules/path-to-regexp/Readme.md +3 -3
- package/node_modules/path-to-regexp/dist/index.d.ts +3 -0
- package/node_modules/path-to-regexp/dist/index.js +215 -193
- package/node_modules/path-to-regexp/dist/index.js.map +1 -1
- package/node_modules/path-to-regexp/package.json +2 -2
- package/node_modules/qs/.editorconfig +1 -1
- package/node_modules/qs/.github/SECURITY.md +11 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/node_modules/qs/CHANGELOG.md +190 -0
- package/node_modules/qs/README.md +29 -4
- package/node_modules/qs/dist/qs.js +21 -21
- package/node_modules/qs/eslint.config.mjs +56 -0
- package/node_modules/qs/lib/parse.js +94 -49
- package/node_modules/qs/lib/utils.js +85 -11
- package/node_modules/qs/package.json +10 -9
- package/node_modules/qs/test/parse.js +391 -13
- package/node_modules/qs/test/stringify.js +16 -3
- package/node_modules/qs/test/utils.js +173 -3
- package/node_modules/send/package.json +11 -8
- package/node_modules/serve-static/README.md +23 -23
- package/node_modules/serve-static/package.json +6 -3
- package/node_modules/side-channel-list/CHANGELOG.md +25 -4
- package/node_modules/side-channel-list/index.js +1 -3
- package/node_modules/side-channel-list/package.json +8 -8
- package/node_modules/side-channel-list/test/index.js +50 -0
- package/node_modules/uuid/dist/v35.js +3 -0
- package/node_modules/uuid/dist/v6.js +3 -0
- package/node_modules/uuid/dist-node/v35.js +3 -0
- package/node_modules/uuid/dist-node/v6.js +3 -0
- package/node_modules/uuid/package.json +1 -1
- package/node_modules/ws/index.js +15 -6
- package/node_modules/ws/lib/constants.js +1 -0
- package/node_modules/ws/lib/permessage-deflate.js +6 -6
- package/node_modules/ws/lib/websocket-server.js +10 -6
- package/node_modules/ws/lib/websocket.js +19 -14
- package/node_modules/ws/package.json +4 -3
- package/node_modules/ws/wrapper.mjs +14 -1
- package/package.json +2 -2
- package/node_modules/content-disposition/HISTORY.md +0 -72
- package/node_modules/express/History.md +0 -3858
- package/node_modules/hasown/.eslintrc +0 -5
- package/node_modules/iconv-lite/Changelog.md +0 -236
- package/node_modules/qs/.eslintrc +0 -39
- package/node_modules/send/HISTORY.md +0 -580
- package/node_modules/serve-static/HISTORY.md +0 -516
- /package/node_modules/{semver → node-abi/node_modules/semver}/LICENSE +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/classes/comparator.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/classes/index.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/classes/range.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/classes/semver.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/clean.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/cmp.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/coerce.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/compare-build.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/compare-loose.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/compare.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/diff.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/eq.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/gt.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/gte.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/inc.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/lt.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/lte.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/major.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/minor.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/neq.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/parse.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/patch.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/prerelease.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/rcompare.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/rsort.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/satisfies.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/sort.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/functions/valid.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/internal/constants.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/internal/debug.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/internal/identifiers.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/internal/lrucache.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/internal/parse-options.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/preload.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/gtr.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/intersects.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/ltr.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/max-satisfying.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/min-satisfying.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/min-version.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/outside.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/simplify.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/subset.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/to-comparators.js +0 -0
- /package/node_modules/{semver → node-abi/node_modules/semver}/ranges/valid.js +0 -0
- /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/index.js +0 -0
- /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/license +0 -0
- /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/package.json +0 -0
- /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/readme.md +0 -0
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ---------------------------------------------------------------------------------------------
|
|
3
|
+
* DO NOT EDIT THIS FILE MANUALLY.
|
|
4
|
+
* THIS FILE IS AUTOMATICALLY GENERATED.
|
|
5
|
+
* TO UPDATE, RUN `npm run typegen` AND COMMIT THE CHANGES.
|
|
6
|
+
* ---------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/** A union of all supported encoding strings in `iconv-lite`. */
|
|
10
|
+
export type Encoding =
|
|
11
|
+
| "10000"
|
|
12
|
+
| "10006"
|
|
13
|
+
| "10007"
|
|
14
|
+
| "10029"
|
|
15
|
+
| "10079"
|
|
16
|
+
| "10081"
|
|
17
|
+
| "1046"
|
|
18
|
+
| "1124"
|
|
19
|
+
| "1125"
|
|
20
|
+
| "1129"
|
|
21
|
+
| "1133"
|
|
22
|
+
| "1161"
|
|
23
|
+
| "1162"
|
|
24
|
+
| "1163"
|
|
25
|
+
| "1250"
|
|
26
|
+
| "1251"
|
|
27
|
+
| "1252"
|
|
28
|
+
| "1253"
|
|
29
|
+
| "1254"
|
|
30
|
+
| "1255"
|
|
31
|
+
| "1256"
|
|
32
|
+
| "1257"
|
|
33
|
+
| "1258"
|
|
34
|
+
| "20866"
|
|
35
|
+
| "21866"
|
|
36
|
+
| "28591"
|
|
37
|
+
| "28592"
|
|
38
|
+
| "28593"
|
|
39
|
+
| "28594"
|
|
40
|
+
| "28595"
|
|
41
|
+
| "28596"
|
|
42
|
+
| "28597"
|
|
43
|
+
| "28598"
|
|
44
|
+
| "28599"
|
|
45
|
+
| "28600"
|
|
46
|
+
| "28601"
|
|
47
|
+
| "28603"
|
|
48
|
+
| "28604"
|
|
49
|
+
| "28605"
|
|
50
|
+
| "28606"
|
|
51
|
+
| "437"
|
|
52
|
+
| "737"
|
|
53
|
+
| "775"
|
|
54
|
+
| "808"
|
|
55
|
+
| "850"
|
|
56
|
+
| "852"
|
|
57
|
+
| "855"
|
|
58
|
+
| "856"
|
|
59
|
+
| "857"
|
|
60
|
+
| "858"
|
|
61
|
+
| "860"
|
|
62
|
+
| "861"
|
|
63
|
+
| "862"
|
|
64
|
+
| "863"
|
|
65
|
+
| "864"
|
|
66
|
+
| "865"
|
|
67
|
+
| "866"
|
|
68
|
+
| "869"
|
|
69
|
+
| "874"
|
|
70
|
+
| "922"
|
|
71
|
+
| "932"
|
|
72
|
+
| "936"
|
|
73
|
+
| "949"
|
|
74
|
+
| "950"
|
|
75
|
+
| "ansix34"
|
|
76
|
+
| "ansix341968"
|
|
77
|
+
| "ansix341986"
|
|
78
|
+
| "arabic"
|
|
79
|
+
| "arabic8"
|
|
80
|
+
| "armscii8"
|
|
81
|
+
| "ascii"
|
|
82
|
+
| "ascii8bit"
|
|
83
|
+
| "asmo708"
|
|
84
|
+
| "base64"
|
|
85
|
+
| "big5"
|
|
86
|
+
| "big5hkscs"
|
|
87
|
+
| "binary"
|
|
88
|
+
| "celtic"
|
|
89
|
+
| "celtic8"
|
|
90
|
+
| "cesu8"
|
|
91
|
+
| "chinese"
|
|
92
|
+
| "cn"
|
|
93
|
+
| "cnbig5"
|
|
94
|
+
| "cp1046"
|
|
95
|
+
| "cp1124"
|
|
96
|
+
| "cp1125"
|
|
97
|
+
| "cp1129"
|
|
98
|
+
| "cp1133"
|
|
99
|
+
| "cp1161"
|
|
100
|
+
| "cp1162"
|
|
101
|
+
| "cp1163"
|
|
102
|
+
| "cp1250"
|
|
103
|
+
| "cp1251"
|
|
104
|
+
| "cp1252"
|
|
105
|
+
| "cp1253"
|
|
106
|
+
| "cp1254"
|
|
107
|
+
| "cp1255"
|
|
108
|
+
| "cp1256"
|
|
109
|
+
| "cp1257"
|
|
110
|
+
| "cp1258"
|
|
111
|
+
| "cp20866"
|
|
112
|
+
| "cp21866"
|
|
113
|
+
| "cp28591"
|
|
114
|
+
| "cp28592"
|
|
115
|
+
| "cp28593"
|
|
116
|
+
| "cp28594"
|
|
117
|
+
| "cp28595"
|
|
118
|
+
| "cp28596"
|
|
119
|
+
| "cp28597"
|
|
120
|
+
| "cp28598"
|
|
121
|
+
| "cp28599"
|
|
122
|
+
| "cp28600"
|
|
123
|
+
| "cp28601"
|
|
124
|
+
| "cp28603"
|
|
125
|
+
| "cp28604"
|
|
126
|
+
| "cp28605"
|
|
127
|
+
| "cp28606"
|
|
128
|
+
| "cp367"
|
|
129
|
+
| "cp437"
|
|
130
|
+
| "cp720"
|
|
131
|
+
| "cp737"
|
|
132
|
+
| "cp775"
|
|
133
|
+
| "cp808"
|
|
134
|
+
| "cp819"
|
|
135
|
+
| "cp850"
|
|
136
|
+
| "cp852"
|
|
137
|
+
| "cp855"
|
|
138
|
+
| "cp856"
|
|
139
|
+
| "cp857"
|
|
140
|
+
| "cp858"
|
|
141
|
+
| "cp860"
|
|
142
|
+
| "cp861"
|
|
143
|
+
| "cp862"
|
|
144
|
+
| "cp863"
|
|
145
|
+
| "cp864"
|
|
146
|
+
| "cp865"
|
|
147
|
+
| "cp866"
|
|
148
|
+
| "cp869"
|
|
149
|
+
| "cp874"
|
|
150
|
+
| "cp922"
|
|
151
|
+
| "cp932"
|
|
152
|
+
| "cp936"
|
|
153
|
+
| "cp949"
|
|
154
|
+
| "cp950"
|
|
155
|
+
| "cpgr"
|
|
156
|
+
| "csascii"
|
|
157
|
+
| "csbig5"
|
|
158
|
+
| "cseuckr"
|
|
159
|
+
| "csgb2312"
|
|
160
|
+
| "cshproman8"
|
|
161
|
+
| "csibm1046"
|
|
162
|
+
| "csibm1124"
|
|
163
|
+
| "csibm1125"
|
|
164
|
+
| "csibm1129"
|
|
165
|
+
| "csibm1133"
|
|
166
|
+
| "csibm1161"
|
|
167
|
+
| "csibm1162"
|
|
168
|
+
| "csibm1163"
|
|
169
|
+
| "csibm437"
|
|
170
|
+
| "csibm737"
|
|
171
|
+
| "csibm775"
|
|
172
|
+
| "csibm850"
|
|
173
|
+
| "csibm852"
|
|
174
|
+
| "csibm855"
|
|
175
|
+
| "csibm856"
|
|
176
|
+
| "csibm857"
|
|
177
|
+
| "csibm858"
|
|
178
|
+
| "csibm860"
|
|
179
|
+
| "csibm861"
|
|
180
|
+
| "csibm862"
|
|
181
|
+
| "csibm863"
|
|
182
|
+
| "csibm864"
|
|
183
|
+
| "csibm865"
|
|
184
|
+
| "csibm866"
|
|
185
|
+
| "csibm869"
|
|
186
|
+
| "csibm922"
|
|
187
|
+
| "csiso14jisc6220ro"
|
|
188
|
+
| "csiso58gb231280"
|
|
189
|
+
| "csisolatin1"
|
|
190
|
+
| "csisolatin2"
|
|
191
|
+
| "csisolatin3"
|
|
192
|
+
| "csisolatin4"
|
|
193
|
+
| "csisolatin5"
|
|
194
|
+
| "csisolatin6"
|
|
195
|
+
| "csisolatinarabic"
|
|
196
|
+
| "csisolatincyrillic"
|
|
197
|
+
| "csisolatingreek"
|
|
198
|
+
| "csisolatinhebrew"
|
|
199
|
+
| "cskoi8r"
|
|
200
|
+
| "csksc56011987"
|
|
201
|
+
| "csmacintosh"
|
|
202
|
+
| "cspc775baltic"
|
|
203
|
+
| "cspc850multilingual"
|
|
204
|
+
| "cspc862latinhebrew"
|
|
205
|
+
| "cspc8codepage437"
|
|
206
|
+
| "cspcp852"
|
|
207
|
+
| "csshiftjis"
|
|
208
|
+
| "cyrillic"
|
|
209
|
+
| "ecma114"
|
|
210
|
+
| "ecma118"
|
|
211
|
+
| "elot928"
|
|
212
|
+
| "euccn"
|
|
213
|
+
| "eucjp"
|
|
214
|
+
| "euckr"
|
|
215
|
+
| "gb18030"
|
|
216
|
+
| "gb198880"
|
|
217
|
+
| "gb2312"
|
|
218
|
+
| "gb23121980"
|
|
219
|
+
| "gb231280"
|
|
220
|
+
| "gbk"
|
|
221
|
+
| "georgianacademy"
|
|
222
|
+
| "georgianps"
|
|
223
|
+
| "greek"
|
|
224
|
+
| "greek8"
|
|
225
|
+
| "hebrew"
|
|
226
|
+
| "hebrew8"
|
|
227
|
+
| "hex"
|
|
228
|
+
| "hproman8"
|
|
229
|
+
| "ibm1046"
|
|
230
|
+
| "ibm1051"
|
|
231
|
+
| "ibm1124"
|
|
232
|
+
| "ibm1125"
|
|
233
|
+
| "ibm1129"
|
|
234
|
+
| "ibm1133"
|
|
235
|
+
| "ibm1161"
|
|
236
|
+
| "ibm1162"
|
|
237
|
+
| "ibm1163"
|
|
238
|
+
| "ibm1168"
|
|
239
|
+
| "ibm367"
|
|
240
|
+
| "ibm437"
|
|
241
|
+
| "ibm737"
|
|
242
|
+
| "ibm775"
|
|
243
|
+
| "ibm808"
|
|
244
|
+
| "ibm819"
|
|
245
|
+
| "ibm850"
|
|
246
|
+
| "ibm852"
|
|
247
|
+
| "ibm855"
|
|
248
|
+
| "ibm856"
|
|
249
|
+
| "ibm857"
|
|
250
|
+
| "ibm858"
|
|
251
|
+
| "ibm860"
|
|
252
|
+
| "ibm861"
|
|
253
|
+
| "ibm862"
|
|
254
|
+
| "ibm863"
|
|
255
|
+
| "ibm864"
|
|
256
|
+
| "ibm865"
|
|
257
|
+
| "ibm866"
|
|
258
|
+
| "ibm869"
|
|
259
|
+
| "ibm878"
|
|
260
|
+
| "ibm922"
|
|
261
|
+
| "iso646cn"
|
|
262
|
+
| "iso646irv"
|
|
263
|
+
| "iso646jp"
|
|
264
|
+
| "iso646us"
|
|
265
|
+
| "iso88591"
|
|
266
|
+
| "iso885910"
|
|
267
|
+
| "iso885911"
|
|
268
|
+
| "iso885913"
|
|
269
|
+
| "iso885914"
|
|
270
|
+
| "iso885915"
|
|
271
|
+
| "iso885916"
|
|
272
|
+
| "iso88592"
|
|
273
|
+
| "iso88593"
|
|
274
|
+
| "iso88594"
|
|
275
|
+
| "iso88595"
|
|
276
|
+
| "iso88596"
|
|
277
|
+
| "iso88597"
|
|
278
|
+
| "iso88598"
|
|
279
|
+
| "iso88599"
|
|
280
|
+
| "isoceltic"
|
|
281
|
+
| "isoir100"
|
|
282
|
+
| "isoir101"
|
|
283
|
+
| "isoir109"
|
|
284
|
+
| "isoir110"
|
|
285
|
+
| "isoir126"
|
|
286
|
+
| "isoir127"
|
|
287
|
+
| "isoir138"
|
|
288
|
+
| "isoir14"
|
|
289
|
+
| "isoir144"
|
|
290
|
+
| "isoir148"
|
|
291
|
+
| "isoir149"
|
|
292
|
+
| "isoir157"
|
|
293
|
+
| "isoir166"
|
|
294
|
+
| "isoir179"
|
|
295
|
+
| "isoir199"
|
|
296
|
+
| "isoir203"
|
|
297
|
+
| "isoir226"
|
|
298
|
+
| "isoir57"
|
|
299
|
+
| "isoir58"
|
|
300
|
+
| "isoir6"
|
|
301
|
+
| "jisc62201969ro"
|
|
302
|
+
| "jp"
|
|
303
|
+
| "koi8r"
|
|
304
|
+
| "koi8ru"
|
|
305
|
+
| "koi8t"
|
|
306
|
+
| "koi8u"
|
|
307
|
+
| "korean"
|
|
308
|
+
| "ksc5601"
|
|
309
|
+
| "ksc56011987"
|
|
310
|
+
| "ksc56011989"
|
|
311
|
+
| "l1"
|
|
312
|
+
| "l10"
|
|
313
|
+
| "l2"
|
|
314
|
+
| "l3"
|
|
315
|
+
| "l4"
|
|
316
|
+
| "l5"
|
|
317
|
+
| "l6"
|
|
318
|
+
| "l7"
|
|
319
|
+
| "l8"
|
|
320
|
+
| "l9"
|
|
321
|
+
| "latin1"
|
|
322
|
+
| "latin10"
|
|
323
|
+
| "latin2"
|
|
324
|
+
| "latin3"
|
|
325
|
+
| "latin4"
|
|
326
|
+
| "latin5"
|
|
327
|
+
| "latin6"
|
|
328
|
+
| "latin7"
|
|
329
|
+
| "latin8"
|
|
330
|
+
| "latin9"
|
|
331
|
+
| "mac"
|
|
332
|
+
| "maccenteuro"
|
|
333
|
+
| "maccroatian"
|
|
334
|
+
| "maccyrillic"
|
|
335
|
+
| "macgreek"
|
|
336
|
+
| "maciceland"
|
|
337
|
+
| "macintosh"
|
|
338
|
+
| "macroman"
|
|
339
|
+
| "macromania"
|
|
340
|
+
| "macthai"
|
|
341
|
+
| "macturkish"
|
|
342
|
+
| "macukraine"
|
|
343
|
+
| "mik"
|
|
344
|
+
| "ms31j"
|
|
345
|
+
| "ms932"
|
|
346
|
+
| "ms936"
|
|
347
|
+
| "ms949"
|
|
348
|
+
| "ms950"
|
|
349
|
+
| "msansi"
|
|
350
|
+
| "msarab"
|
|
351
|
+
| "mscyrl"
|
|
352
|
+
| "msee"
|
|
353
|
+
| "msgreek"
|
|
354
|
+
| "mshebr"
|
|
355
|
+
| "mskanji"
|
|
356
|
+
| "msturk"
|
|
357
|
+
| "pt154"
|
|
358
|
+
| "r8"
|
|
359
|
+
| "rk1048"
|
|
360
|
+
| "roman8"
|
|
361
|
+
| "shiftjis"
|
|
362
|
+
| "sjis"
|
|
363
|
+
| "strk10482002"
|
|
364
|
+
| "tcvn"
|
|
365
|
+
| "tcvn5712"
|
|
366
|
+
| "tcvn57121"
|
|
367
|
+
| "thai"
|
|
368
|
+
| "thai8"
|
|
369
|
+
| "tis620"
|
|
370
|
+
| "tis6200"
|
|
371
|
+
| "tis62025291"
|
|
372
|
+
| "tis62025330"
|
|
373
|
+
| "turkish"
|
|
374
|
+
| "turkish8"
|
|
375
|
+
| "ucs2"
|
|
376
|
+
| "ucs4"
|
|
377
|
+
| "ucs4be"
|
|
378
|
+
| "ucs4le"
|
|
379
|
+
| "unicode11utf7"
|
|
380
|
+
| "unicode11utf8"
|
|
381
|
+
| "us"
|
|
382
|
+
| "usascii"
|
|
383
|
+
| "utf16"
|
|
384
|
+
| "utf16be"
|
|
385
|
+
| "utf16le"
|
|
386
|
+
| "utf32"
|
|
387
|
+
| "utf32be"
|
|
388
|
+
| "utf32le"
|
|
389
|
+
| "utf7"
|
|
390
|
+
| "utf7imap"
|
|
391
|
+
| "utf8"
|
|
392
|
+
| "viscii"
|
|
393
|
+
| "win1250"
|
|
394
|
+
| "win1251"
|
|
395
|
+
| "win1252"
|
|
396
|
+
| "win1253"
|
|
397
|
+
| "win1254"
|
|
398
|
+
| "win1255"
|
|
399
|
+
| "win1256"
|
|
400
|
+
| "win1257"
|
|
401
|
+
| "win1258"
|
|
402
|
+
| "win874"
|
|
403
|
+
| "winbaltrim"
|
|
404
|
+
| "windows1250"
|
|
405
|
+
| "windows1251"
|
|
406
|
+
| "windows1252"
|
|
407
|
+
| "windows1253"
|
|
408
|
+
| "windows1254"
|
|
409
|
+
| "windows1255"
|
|
410
|
+
| "windows1256"
|
|
411
|
+
| "windows1257"
|
|
412
|
+
| "windows1258"
|
|
413
|
+
| "windows31j"
|
|
414
|
+
| "windows874"
|
|
415
|
+
| "windows932"
|
|
416
|
+
| "windows936"
|
|
417
|
+
| "windows949"
|
|
418
|
+
| "windows950"
|
|
419
|
+
| "xgbk"
|
|
420
|
+
| "xroman8"
|
|
421
|
+
| "xsjis"
|
|
422
|
+
| "xxbig5"
|
|
423
|
+
| (string & {})
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
"2026-10-28",
|
|
133
133
|
"2027-10-20"
|
|
134
134
|
],
|
|
135
|
-
"future":
|
|
136
|
-
"abi": "
|
|
135
|
+
"future": false,
|
|
136
|
+
"abi": "147"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"abi": "70",
|
|
@@ -431,9 +431,16 @@
|
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
"abi": "146",
|
|
434
|
-
"future":
|
|
434
|
+
"future": false,
|
|
435
435
|
"lts": false,
|
|
436
436
|
"runtime": "electron",
|
|
437
437
|
"target": "42.0.0-alpha.1"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"abi": "148",
|
|
441
|
+
"future": true,
|
|
442
|
+
"lts": false,
|
|
443
|
+
"runtime": "electron",
|
|
444
|
+
"target": "43.0.0-alpha.1"
|
|
438
445
|
}
|
|
439
446
|
]
|
|
@@ -56,6 +56,7 @@ const semverCompareLoose = require('semver/functions/compare-loose')
|
|
|
56
56
|
const semverCompareBuild = require('semver/functions/compare-build')
|
|
57
57
|
const semverSort = require('semver/functions/sort')
|
|
58
58
|
const semverRsort = require('semver/functions/rsort')
|
|
59
|
+
const semverTruncate = require('semver/functions/truncate')
|
|
59
60
|
|
|
60
61
|
// low-level comparators between versions
|
|
61
62
|
const semverGt = require('semver/functions/gt')
|
|
@@ -399,12 +400,19 @@ nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
|
|
|
399
400
|
tilde ::= '~' partial
|
|
400
401
|
caret ::= '^' partial
|
|
401
402
|
qualifier ::= ( '-' pre )? ( '+' build )?
|
|
402
|
-
pre ::=
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
403
|
+
pre ::= prepart ( '.' prepart ) *
|
|
404
|
+
prepart ::= nr | alphanumid
|
|
405
|
+
build ::= buildid ( '.' buildid ) *
|
|
406
|
+
alphanumid ::= ( ['0'-'9'] ) * [-A-Za-z] [-0-9A-Za-z] *
|
|
407
|
+
buildid ::= [-0-9A-Za-z]+
|
|
406
408
|
```
|
|
407
409
|
|
|
410
|
+
Note: Prerelease identifiers (`pre`) use `nr` for numeric parts, which
|
|
411
|
+
disallows leading zeros (e.g., `1.2.3-00` is invalid). Build metadata
|
|
412
|
+
identifiers (`build`) allow any alphanumeric string including leading
|
|
413
|
+
zeros (e.g., `1.2.3+00` is valid). This matches the
|
|
414
|
+
[SemVer 2.0.0 specification](https://semver.org/#spec-item-9).
|
|
415
|
+
|
|
408
416
|
## Functions
|
|
409
417
|
|
|
410
418
|
All methods and classes take a final `options` object argument. All
|
|
@@ -449,6 +457,12 @@ strings that they parse.
|
|
|
449
457
|
or comparators intersect.
|
|
450
458
|
* `parse(v)`: Attempt to parse a string as a semantic version, returning either
|
|
451
459
|
a `SemVer` object or `null`.
|
|
460
|
+
* `truncate(v, releaseType)`: Return the version with components _lower_
|
|
461
|
+
than `releaseType` dropped off, e.g.:
|
|
462
|
+
* `major` removes build & prerelease info and sets minor & patch to 0.
|
|
463
|
+
* `minor` removes build & prerelease info, and sets patch to 0
|
|
464
|
+
* `patch` removes build & prerelease info
|
|
465
|
+
* All prerelease types remove build info only
|
|
452
466
|
|
|
453
467
|
### Comparison
|
|
454
468
|
|
|
@@ -650,6 +664,7 @@ The following modules are available:
|
|
|
650
664
|
* `require('semver/functions/rsort')`
|
|
651
665
|
* `require('semver/functions/satisfies')`
|
|
652
666
|
* `require('semver/functions/sort')`
|
|
667
|
+
* `require('semver/functions/truncate')`
|
|
653
668
|
* `require('semver/functions/valid')`
|
|
654
669
|
* `require('semver/ranges/gtr')`
|
|
655
670
|
* `require('semver/ranges/intersects')`
|
|
@@ -46,6 +46,7 @@ const main = () => {
|
|
|
46
46
|
a = a.slice(0, indexOfEqualSign)
|
|
47
47
|
argv.unshift(value)
|
|
48
48
|
}
|
|
49
|
+
|
|
49
50
|
switch (a) {
|
|
50
51
|
case '-rv': case '-rev': case '--rev': case '--reverse':
|
|
51
52
|
reverse = true
|
|
@@ -60,15 +61,10 @@ const main = () => {
|
|
|
60
61
|
versions.push(argv.shift())
|
|
61
62
|
break
|
|
62
63
|
case '-i': case '--inc': case '--increment':
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
inc = argv.shift()
|
|
68
|
-
break
|
|
69
|
-
default:
|
|
70
|
-
inc = 'patch'
|
|
71
|
-
break
|
|
64
|
+
if (semver.RELEASE_TYPES.includes(argv[0]) || (argv[0] === 'release')) {
|
|
65
|
+
inc = { value: argv.shift(), maybeErrantValue: null, option: a }
|
|
66
|
+
} else {
|
|
67
|
+
inc = { value: 'patch', maybeErrantValue: argv[0], option: a }
|
|
72
68
|
}
|
|
73
69
|
break
|
|
74
70
|
case '--preid':
|
|
@@ -102,6 +98,14 @@ const main = () => {
|
|
|
102
98
|
|
|
103
99
|
options = parseOptions({ loose, includePrerelease, rtl })
|
|
104
100
|
|
|
101
|
+
if (
|
|
102
|
+
inc &&
|
|
103
|
+
versions.includes(inc.maybeErrantValue) &&
|
|
104
|
+
!semver.valid(inc.maybeErrantValue, options)
|
|
105
|
+
) {
|
|
106
|
+
console.warn(`Invalid value for ${inc.option}; defaulting to 'patch'. This may become a failure in future major versions.`)
|
|
107
|
+
}
|
|
108
|
+
|
|
105
109
|
versions = versions.map((v) => {
|
|
106
110
|
return coerce ? (semver.coerce(v, options) || { version: v }).version : v
|
|
107
111
|
}).filter((v) => {
|
|
@@ -125,7 +129,7 @@ const main = () => {
|
|
|
125
129
|
versions
|
|
126
130
|
.sort((a, b) => semver[reverse ? 'rcompare' : 'compare'](a, b, options))
|
|
127
131
|
.map(v => semver.clean(v, options))
|
|
128
|
-
.map(v => inc ? semver.inc(v, inc, options, identifier, identifierBase) : v)
|
|
132
|
+
.map(v => inc ? semver.inc(v, inc.value, options, identifier, identifierBase) : v)
|
|
129
133
|
.forEach(v => console.log(v))
|
|
130
134
|
}
|
|
131
135
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const parse = require('./parse')
|
|
4
|
+
const constants = require('../internal/constants')
|
|
5
|
+
const SemVer = require('../classes/semver')
|
|
6
|
+
|
|
7
|
+
const truncate = (version, truncation, options) => {
|
|
8
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) {
|
|
9
|
+
return null
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const clonedVersion = cloneInputVersion(version, options)
|
|
13
|
+
return clonedVersion && doTruncation(clonedVersion, truncation)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const cloneInputVersion = (version, options) => {
|
|
17
|
+
const versionStringToParse = (
|
|
18
|
+
version instanceof SemVer ? version.version : version
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
return parse(versionStringToParse, options)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const doTruncation = (version, truncation) => {
|
|
25
|
+
if (isPrerelease(truncation)) {
|
|
26
|
+
return version.version
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
version.prerelease = []
|
|
30
|
+
|
|
31
|
+
switch (truncation) {
|
|
32
|
+
case 'major':
|
|
33
|
+
version.minor = 0
|
|
34
|
+
version.patch = 0
|
|
35
|
+
break
|
|
36
|
+
case 'minor':
|
|
37
|
+
version.patch = 0
|
|
38
|
+
break
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return version.format()
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const isPrerelease = (type) => {
|
|
45
|
+
return type.startsWith('pre')
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
module.exports = truncate
|
|
@@ -28,6 +28,7 @@ const gte = require('./functions/gte')
|
|
|
28
28
|
const lte = require('./functions/lte')
|
|
29
29
|
const cmp = require('./functions/cmp')
|
|
30
30
|
const coerce = require('./functions/coerce')
|
|
31
|
+
const truncate = require('./functions/truncate')
|
|
31
32
|
const Comparator = require('./classes/comparator')
|
|
32
33
|
const Range = require('./classes/range')
|
|
33
34
|
const satisfies = require('./functions/satisfies')
|
|
@@ -66,6 +67,7 @@ module.exports = {
|
|
|
66
67
|
lte,
|
|
67
68
|
cmp,
|
|
68
69
|
coerce,
|
|
70
|
+
truncate,
|
|
69
71
|
Comparator,
|
|
70
72
|
Range,
|
|
71
73
|
satisfies,
|
|
@@ -136,7 +136,7 @@ createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)
|
|
|
136
136
|
createToken('GTLT', '((?:<|>)?=?)')
|
|
137
137
|
|
|
138
138
|
// Something like "2.*" or "1.2.x".
|
|
139
|
-
// Note that "x.x" is a valid xRange
|
|
139
|
+
// Note that "x.x" is a valid xRange identifier, meaning "any version"
|
|
140
140
|
// Only the first item is strictly required.
|
|
141
141
|
createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
|
|
142
142
|
createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semver",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.0",
|
|
4
4
|
"description": "The semantic version parser used by npm.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@npmcli/eslint-config": "^6.0.0",
|
|
18
|
-
"@npmcli/template-oss": "
|
|
18
|
+
"@npmcli/template-oss": "5.0.0",
|
|
19
19
|
"benchmark": "^2.1.4",
|
|
20
20
|
"tap": "^16.0.0"
|
|
21
21
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"author": "GitHub Inc.",
|
|
53
53
|
"templateOSS": {
|
|
54
54
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
55
|
-
"version": "
|
|
55
|
+
"version": "5.0.0",
|
|
56
56
|
"engines": ">=10",
|
|
57
57
|
"distPaths": [
|
|
58
58
|
"classes/",
|
|
@@ -10,7 +10,8 @@ nr ::= '0' | [1-9] ( [0-9] ) *
|
|
|
10
10
|
tilde ::= '~' partial
|
|
11
11
|
caret ::= '^' partial
|
|
12
12
|
qualifier ::= ( '-' pre )? ( '+' build )?
|
|
13
|
-
pre ::=
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
pre ::= prepart ( '.' prepart ) *
|
|
14
|
+
prepart ::= nr | alphanumid
|
|
15
|
+
build ::= buildid ( '.' buildid ) *
|
|
16
|
+
alphanumid ::= ( [0-9] ) * [A-Za-z-] [-0-9A-Za-z] *
|
|
17
|
+
buildid ::= [-0-9A-Za-z]+
|
|
@@ -153,7 +153,7 @@ The `parse` function accepts a string and returns `TokenData`, which can be used
|
|
|
153
153
|
|
|
154
154
|
`TokenData` has two properties:
|
|
155
155
|
|
|
156
|
-
- **tokens** A sequence of tokens, currently of types `text`, `
|
|
156
|
+
- **tokens** A sequence of tokens, currently of types `text`, `param`, `wildcard`, or `group`.
|
|
157
157
|
- **originalPath** The original path used with `parse`, shown in error messages to assist debugging.
|
|
158
158
|
|
|
159
159
|
### Custom path
|
|
@@ -165,13 +165,13 @@ import { match } from "path-to-regexp";
|
|
|
165
165
|
|
|
166
166
|
const tokens = [
|
|
167
167
|
{ type: "text", value: "/" },
|
|
168
|
-
{ type: "
|
|
168
|
+
{ type: "param", name: "foo" },
|
|
169
169
|
];
|
|
170
170
|
const originalPath = "/[foo]"; // To help debug error messages.
|
|
171
171
|
const path = { tokens, originalPath };
|
|
172
172
|
const fn = match(path);
|
|
173
173
|
|
|
174
|
-
fn("/test"); //=> { path: '/test',
|
|
174
|
+
fn("/test"); //=> { path: '/test', params: { foo: 'test' } }
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
## Errors
|