@twin.org/crypto-cli 0.0.1-next.8 → 0.0.1-next.9
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/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/locales/en.json +74 -68
- package/docs/changelog.md +1 -1
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -185,7 +185,7 @@ class CLI extends cliCore.CLIBase {
|
|
|
185
185
|
return this.execute({
|
|
186
186
|
title: "TWIN Crypto",
|
|
187
187
|
appName: "twin-crypto",
|
|
188
|
-
version: "0.0.1-next.
|
|
188
|
+
version: "0.0.1-next.9",
|
|
189
189
|
icon: "🌍",
|
|
190
190
|
supportsEnvFiles: true,
|
|
191
191
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/esm/index.mjs
CHANGED
|
@@ -182,7 +182,7 @@ class CLI extends CLIBase {
|
|
|
182
182
|
return this.execute({
|
|
183
183
|
title: "TWIN Crypto",
|
|
184
184
|
appName: "twin-crypto",
|
|
185
|
-
version: "0.0.1-next.
|
|
185
|
+
version: "0.0.1-next.9",
|
|
186
186
|
icon: "🌍",
|
|
187
187
|
supportsEnvFiles: true,
|
|
188
188
|
overrideOutputWidth: options?.overrideOutputWidth
|
package/dist/locales/en.json
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"error": {
|
|
3
3
|
"commands": {
|
|
4
|
-
"address": {
|
|
5
|
-
"seedMissingEnv": "The seed does not appear to be hex or base64, assuming it is an environment variable, but there is no environment variable with the name \"{env}\" set.",
|
|
6
|
-
"seedInvalidEnv": "The seed does not appear to be hex or base64, assuming it is an environment variable, but there the environment variable is neither hex or base64. \"{envValue}\"",
|
|
7
|
-
"seedInvalidFormat": "The seed does not appear to be hex, base64 or an environment variable. \"{seed}\""
|
|
8
|
-
},
|
|
9
4
|
"common": {
|
|
10
5
|
"missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
|
|
11
6
|
"optionInvalidHex": "The \"{option}\" does not appear to be hex. \"{value}\"",
|
|
@@ -14,6 +9,11 @@
|
|
|
14
9
|
"optionInvalidBech32": "The \"{option}\" does not appear to be bech32. \"{value}\"",
|
|
15
10
|
"optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
|
|
16
11
|
"optionMaxValue": "The \"{option}\" option must be less than or equal to {maxValue}, it is {value}."
|
|
12
|
+
},
|
|
13
|
+
"address": {
|
|
14
|
+
"seedMissingEnv": "The seed does not appear to be hex or base64, assuming it is an environment variable, but there is no environment variable with the name \"{env}\" set.",
|
|
15
|
+
"seedInvalidEnv": "The seed does not appear to be hex or base64, assuming it is an environment variable, but there the environment variable is neither hex or base64. \"{envValue}\"",
|
|
16
|
+
"seedInvalidFormat": "The seed does not appear to be hex, base64 or an environment variable. \"{seed}\""
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"validation": {
|
|
@@ -99,6 +99,15 @@
|
|
|
99
99
|
"bitString": {
|
|
100
100
|
"outOfRange": "The index should be >= 0 and less than the length of the bit string"
|
|
101
101
|
},
|
|
102
|
+
"base32": {
|
|
103
|
+
"invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
|
|
104
|
+
},
|
|
105
|
+
"base64": {
|
|
106
|
+
"length4Multiple": "Invalid length should be a multiple of 4, it is \"{value}\""
|
|
107
|
+
},
|
|
108
|
+
"base58": {
|
|
109
|
+
"invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
|
|
110
|
+
},
|
|
102
111
|
"bip39": {
|
|
103
112
|
"missingMnemonicWord": "The mnemonic contains a word not in the wordlist, \"{value}\"",
|
|
104
113
|
"checksumMismatch": "The checksum does not match \"{newChecksum}\" != \"{checksumBits}\""
|
|
@@ -124,18 +133,15 @@
|
|
|
124
133
|
"sha256": {
|
|
125
134
|
"bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
|
|
126
135
|
},
|
|
136
|
+
"sha3": {
|
|
137
|
+
"bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
|
|
138
|
+
},
|
|
127
139
|
"hmacSha256": {
|
|
128
140
|
"bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
|
|
129
141
|
},
|
|
130
142
|
"hmacSha512": {
|
|
131
143
|
"bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
|
|
132
144
|
},
|
|
133
|
-
"base32": {
|
|
134
|
-
"invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
|
|
135
|
-
},
|
|
136
|
-
"base64": {
|
|
137
|
-
"length4Multiple": "Invalid length should be a multiple of 4, it is \"{value}\""
|
|
138
|
-
},
|
|
139
145
|
"bech32": {
|
|
140
146
|
"decodeFailed": "The address contains decoding failed for address \"{bech32}\"",
|
|
141
147
|
"invalidChecksum": "The address contains an invalid checksum in address, \"{bech32}\"",
|
|
@@ -161,6 +167,63 @@
|
|
|
161
167
|
"invalidSeed": "The seed is invalid \"{seed}\""
|
|
162
168
|
}
|
|
163
169
|
},
|
|
170
|
+
"cli": {
|
|
171
|
+
"progress": {
|
|
172
|
+
"done": "Done.",
|
|
173
|
+
"error": "Error",
|
|
174
|
+
"loadingEnvFiles": "Loading env files",
|
|
175
|
+
"pleaseWait": "Please wait...",
|
|
176
|
+
"writingJsonFile": "Writing JSON file",
|
|
177
|
+
"writingEnvFile": "Writing env file",
|
|
178
|
+
"readingJsonFile": "Reading JSON file",
|
|
179
|
+
"readingEnvFile": "Reading env file"
|
|
180
|
+
},
|
|
181
|
+
"options": {
|
|
182
|
+
"lang": {
|
|
183
|
+
"param": "--lang '<'lang'>'",
|
|
184
|
+
"description": "The language to display the output in."
|
|
185
|
+
},
|
|
186
|
+
"load-env": {
|
|
187
|
+
"param": "--load-env [env...]",
|
|
188
|
+
"description": "Load the env files to initialise any environment variables."
|
|
189
|
+
},
|
|
190
|
+
"no-console": {
|
|
191
|
+
"param": "--no-console",
|
|
192
|
+
"description": "Hides the output in the console."
|
|
193
|
+
},
|
|
194
|
+
"json": {
|
|
195
|
+
"param": "--json '<'filename'>'",
|
|
196
|
+
"description": "Creates a JSON file containing the output."
|
|
197
|
+
},
|
|
198
|
+
"env": {
|
|
199
|
+
"param": "--env '<'filename'>'",
|
|
200
|
+
"description": "Creates an env file containing the output."
|
|
201
|
+
},
|
|
202
|
+
"merge-json": {
|
|
203
|
+
"param": "--merge-json",
|
|
204
|
+
"description": "If the JSON file already exists merge the data instead of overwriting."
|
|
205
|
+
},
|
|
206
|
+
"merge-env": {
|
|
207
|
+
"param": "--merge-env",
|
|
208
|
+
"description": "If the env file already exists merge the data instead of overwriting."
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"errorNames": {
|
|
213
|
+
"error": "Error",
|
|
214
|
+
"generalError": "General",
|
|
215
|
+
"guardError": "Guard",
|
|
216
|
+
"conflictError": "Conflict",
|
|
217
|
+
"notFoundError": "Not Found",
|
|
218
|
+
"notSupportedError": "Not Supported",
|
|
219
|
+
"alreadyExistsError": "Already Exists",
|
|
220
|
+
"notImplementedError": "Not Implemented",
|
|
221
|
+
"validationError": "Validation",
|
|
222
|
+
"unprocessableError": "Unprocessable"
|
|
223
|
+
},
|
|
224
|
+
"validation": {
|
|
225
|
+
"defaultFieldName": "The field"
|
|
226
|
+
},
|
|
164
227
|
"commands": {
|
|
165
228
|
"mnemonic": {
|
|
166
229
|
"summary": "Create a mnemonic.",
|
|
@@ -256,62 +319,5 @@
|
|
|
256
319
|
"private-key": "Private Key"
|
|
257
320
|
}
|
|
258
321
|
}
|
|
259
|
-
},
|
|
260
|
-
"cli": {
|
|
261
|
-
"progress": {
|
|
262
|
-
"done": "Done.",
|
|
263
|
-
"error": "Error",
|
|
264
|
-
"loadingEnvFiles": "Loading env files",
|
|
265
|
-
"pleaseWait": "Please wait...",
|
|
266
|
-
"writingJsonFile": "Writing JSON file",
|
|
267
|
-
"writingEnvFile": "Writing env file",
|
|
268
|
-
"readingJsonFile": "Reading JSON file",
|
|
269
|
-
"readingEnvFile": "Reading env file"
|
|
270
|
-
},
|
|
271
|
-
"options": {
|
|
272
|
-
"lang": {
|
|
273
|
-
"param": "--lang '<'lang'>'",
|
|
274
|
-
"description": "The language to display the output in."
|
|
275
|
-
},
|
|
276
|
-
"load-env": {
|
|
277
|
-
"param": "--load-env [env...]",
|
|
278
|
-
"description": "Load the env files to initialise any environment variables."
|
|
279
|
-
},
|
|
280
|
-
"no-console": {
|
|
281
|
-
"param": "--no-console",
|
|
282
|
-
"description": "Hides the output in the console."
|
|
283
|
-
},
|
|
284
|
-
"json": {
|
|
285
|
-
"param": "--json '<'filename'>'",
|
|
286
|
-
"description": "Creates a JSON file containing the output."
|
|
287
|
-
},
|
|
288
|
-
"env": {
|
|
289
|
-
"param": "--env '<'filename'>'",
|
|
290
|
-
"description": "Creates an env file containing the output."
|
|
291
|
-
},
|
|
292
|
-
"merge-json": {
|
|
293
|
-
"param": "--merge-json",
|
|
294
|
-
"description": "If the JSON file already exists merge the data instead of overwriting."
|
|
295
|
-
},
|
|
296
|
-
"merge-env": {
|
|
297
|
-
"param": "--merge-env",
|
|
298
|
-
"description": "If the env file already exists merge the data instead of overwriting."
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
"errorNames": {
|
|
303
|
-
"error": "Error",
|
|
304
|
-
"generalError": "General",
|
|
305
|
-
"guardError": "Guard",
|
|
306
|
-
"conflictError": "Conflict",
|
|
307
|
-
"notFoundError": "Not Found",
|
|
308
|
-
"notSupportedError": "Not Supported",
|
|
309
|
-
"alreadyExistsError": "Already Exists",
|
|
310
|
-
"notImplementedError": "Not Implemented",
|
|
311
|
-
"validationError": "Validation",
|
|
312
|
-
"unprocessableError": "Unprocessable"
|
|
313
|
-
},
|
|
314
|
-
"validation": {
|
|
315
|
-
"defaultFieldName": "The field"
|
|
316
322
|
}
|
|
317
323
|
}
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/crypto-cli",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.9",
|
|
4
4
|
"description": "A command line interface for interacting with the crypto tools",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/cli-core": "0.0.1-next.
|
|
18
|
-
"@twin.org/core": "0.0.1-next.
|
|
19
|
-
"@twin.org/crypto": "0.0.1-next.
|
|
17
|
+
"@twin.org/cli-core": "0.0.1-next.9",
|
|
18
|
+
"@twin.org/core": "0.0.1-next.9",
|
|
19
|
+
"@twin.org/crypto": "0.0.1-next.9",
|
|
20
20
|
"@twin.org/nameof": "next",
|
|
21
21
|
"commander": "12.1.0"
|
|
22
22
|
},
|