@twin.org/crypto-cli 0.0.2-next.19 → 0.0.2-next.21
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 +11 -55
- package/docs/changelog.md +43 -0
- package/locales/en.json +0 -25
- package/package.json +21 -6
package/dist/cjs/index.cjs
CHANGED
|
@@ -181,7 +181,7 @@ class CLI extends cliCore.CLIBase {
|
|
|
181
181
|
return this.execute({
|
|
182
182
|
title: "TWIN Crypto",
|
|
183
183
|
appName: "twin-crypto",
|
|
184
|
-
version: "0.0.2-next.
|
|
184
|
+
version: "0.0.2-next.21", // x-release-please-version
|
|
185
185
|
icon: "🌍",
|
|
186
186
|
supportsEnvFiles: true,
|
|
187
187
|
overrideOutputWidth: options?.overrideOutputWidth,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -178,7 +178,7 @@ class CLI extends CLIBase {
|
|
|
178
178
|
return this.execute({
|
|
179
179
|
title: "TWIN Crypto",
|
|
180
180
|
appName: "twin-crypto",
|
|
181
|
-
version: "0.0.2-next.
|
|
181
|
+
version: "0.0.2-next.21", // x-release-please-version
|
|
182
182
|
icon: "🌍",
|
|
183
183
|
supportsEnvFiles: true,
|
|
184
184
|
overrideOutputWidth: options?.overrideOutputWidth,
|
package/dist/locales/en.json
CHANGED
|
@@ -6,14 +6,8 @@
|
|
|
6
6
|
"optionInvalidHex": "The \"{option}\" does not appear to be hex. \"{value}\"",
|
|
7
7
|
"optionInvalidBase64": "The \"{option}\" does not appear to be base64. \"{value}\"",
|
|
8
8
|
"optionInvalidHexBase64": "The \"{option}\" does not appear to be hex or base64. \"{value}\"",
|
|
9
|
-
"optionInvalidBech32": "The \"{option}\" does not appear to be bech32. \"{value}\"",
|
|
10
9
|
"optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
|
|
11
10
|
"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
11
|
}
|
|
18
12
|
},
|
|
19
13
|
"validation": {
|
|
@@ -55,8 +49,13 @@
|
|
|
55
49
|
"beUrl": "{fieldName} must be a correctly formatted url",
|
|
56
50
|
"beJSON": "{fieldName} must be correctly formatted JSON",
|
|
57
51
|
"beEmail": "{fieldName} must be a correctly formatted e-mail address",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
52
|
+
"minLengthRequired": "The value length should be at least {minLength}, it is {actualLength}",
|
|
53
|
+
"maxLengthRequired": "The value length should be at most {maxLength}, it is {actualLength}",
|
|
54
|
+
"repeatedCharacters": "The value should not contain repeated characters in sequence",
|
|
55
|
+
"atLeastOneLowerCase": "The value should contain at least one lowercase character",
|
|
56
|
+
"atLeastOneUpperCase": "The value should contain at least one uppercase character",
|
|
57
|
+
"atLeastOneNumber": "The value should contain at least one number",
|
|
58
|
+
"atLeastOneSpecialChar": "The value should contain at least one symbol"
|
|
60
59
|
},
|
|
61
60
|
"guard": {
|
|
62
61
|
"undefined": "Property \"{property}\" must be defined, it is \"{value}\"",
|
|
@@ -89,9 +88,7 @@
|
|
|
89
88
|
"url": "Property \"{property}\" must be a Url formatted string, it is \"{value}\"",
|
|
90
89
|
"email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
|
|
91
90
|
"length32Multiple": "Property \"{property}\" should be a multiple of 32, it is {value}",
|
|
92
|
-
"lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}"
|
|
93
|
-
"length3Multiple": "Property \"{property}\" should be a multiple of 3, it is {value}",
|
|
94
|
-
"greaterThan0": "Property \"{property}\" must be greater than zero, it is {value}"
|
|
91
|
+
"lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}"
|
|
95
92
|
},
|
|
96
93
|
"objectHelper": {
|
|
97
94
|
"failedBytesToJSON": "Failed converting bytes to JSON",
|
|
@@ -107,7 +104,7 @@
|
|
|
107
104
|
"noGet": "The requested {typeName} \"{name}\" does not exist in the factory"
|
|
108
105
|
},
|
|
109
106
|
"bitString": {
|
|
110
|
-
"outOfRange": "The index should be >= 0 and less than the length of the bit string"
|
|
107
|
+
"outOfRange": "The index should be >= 0 and less than the length of the bit string, the index is \"{index}\" and the number of bit is \"{numberBits}\""
|
|
111
108
|
},
|
|
112
109
|
"base32": {
|
|
113
110
|
"invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
|
|
@@ -121,10 +118,6 @@
|
|
|
121
118
|
"jsonHelper": {
|
|
122
119
|
"failedPatch": "Failed to patch the JSON object, patch index \"{index}\" failed"
|
|
123
120
|
},
|
|
124
|
-
"bip39": {
|
|
125
|
-
"missingMnemonicWord": "The mnemonic contains a word not in the wordlist, \"{value}\"",
|
|
126
|
-
"checksumMismatch": "The checksum does not match \"{newChecksum}\" != \"{checksumBits}\""
|
|
127
|
-
},
|
|
128
121
|
"ed25519": {
|
|
129
122
|
"privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
|
|
130
123
|
"publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
|
|
@@ -133,13 +126,6 @@
|
|
|
133
126
|
"privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
|
|
134
127
|
"publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
|
|
135
128
|
},
|
|
136
|
-
"x25519": {
|
|
137
|
-
"invalidPublicKey": "Invalid Ed25519 Public Key"
|
|
138
|
-
},
|
|
139
|
-
"blake2b": {
|
|
140
|
-
"outputLength64": "The output length should be between 1 and 64, it is \"{outputLength}\"",
|
|
141
|
-
"keyLength64": "The key length should be between 1 and 64, it is \"{keyLength}\""
|
|
142
|
-
},
|
|
143
129
|
"sha512": {
|
|
144
130
|
"bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
|
|
145
131
|
},
|
|
@@ -162,26 +148,11 @@
|
|
|
162
148
|
"lowerUpper": "The address my use either lowercase or uppercase, \"{bech32}\"",
|
|
163
149
|
"dataTooShort": "The address does not contain enough data to decode, \"{bech32}\""
|
|
164
150
|
},
|
|
165
|
-
"pbkdf2": {
|
|
166
|
-
"keyTooLong": "The requested key length \"{keyLength}\" is too long, based on the \"{macLength}\""
|
|
167
|
-
},
|
|
168
|
-
"chaCha20Poly1305": {
|
|
169
|
-
"noAadWithData": "You can not set the aad when there is already data",
|
|
170
|
-
"noAuthTag": "Can not finalise when the auth tag is not set",
|
|
171
|
-
"authenticationFailed": "The data could not be authenticated",
|
|
172
|
-
"authTagDecrypting": "Can not get the auth tag when decrypting",
|
|
173
|
-
"authTagEncrypting": "Can not set the auth tag when encrypting",
|
|
174
|
-
"noAuthTagSet": "The auth tag has not been set"
|
|
175
|
-
},
|
|
176
151
|
"bip44": {
|
|
177
152
|
"unsupportedKeyType": "The key type \"{keyType}\" is not supported"
|
|
178
153
|
},
|
|
179
154
|
"slip0010": {
|
|
180
155
|
"invalidSeed": "The seed is invalid \"{seed}\""
|
|
181
|
-
},
|
|
182
|
-
"rsa": {
|
|
183
|
-
"noPrivateKey": "Private key is required for this operation",
|
|
184
|
-
"invalidKeySize": "Invalid RSA key size"
|
|
185
156
|
}
|
|
186
157
|
},
|
|
187
158
|
"warn": {
|
|
@@ -241,7 +212,8 @@
|
|
|
241
212
|
"alreadyExistsError": "Already Exists",
|
|
242
213
|
"notImplementedError": "Not Implemented",
|
|
243
214
|
"validationError": "Validation",
|
|
244
|
-
"unprocessableError": "Unprocessable"
|
|
215
|
+
"unprocessableError": "Unprocessable",
|
|
216
|
+
"unauthorizedError": "Unauthorized"
|
|
245
217
|
},
|
|
246
218
|
"validation": {
|
|
247
219
|
"defaultFieldName": "The field"
|
|
@@ -259,27 +231,11 @@
|
|
|
259
231
|
"param": "--seed-format '<'format'>'",
|
|
260
232
|
"description": "The format to output the seed."
|
|
261
233
|
},
|
|
262
|
-
"no-console": {
|
|
263
|
-
"param": "--no-console",
|
|
264
|
-
"description": "Hides the mnemonic and seed in the console."
|
|
265
|
-
},
|
|
266
|
-
"json": {
|
|
267
|
-
"param": "--json '<'filename'>'",
|
|
268
|
-
"description": "Creates a JSON file containing the mnemonic and seed."
|
|
269
|
-
},
|
|
270
|
-
"env": {
|
|
271
|
-
"param": "--env '<'filename'>'",
|
|
272
|
-
"description": "Creates an env file containing the mnemonic and seed."
|
|
273
|
-
},
|
|
274
234
|
"env-prefix": {
|
|
275
235
|
"param": "--env-prefix '<'prefix'>'",
|
|
276
236
|
"description": "Prefixes the env variables with the value."
|
|
277
237
|
}
|
|
278
238
|
},
|
|
279
|
-
"progress": {
|
|
280
|
-
"writingJsonFile": "Writing JSON file",
|
|
281
|
-
"writingEnvFile": "Writing env file"
|
|
282
|
-
},
|
|
283
239
|
"labels": {
|
|
284
240
|
"mnemonic": "Mnemonic",
|
|
285
241
|
"seed": "Seed",
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# @twin.org/crypto-cli - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.21](https://github.com/twinfoundation/framework/compare/crypto-cli-v0.0.2-next.20...crypto-cli-v0.0.2-next.21) (2025-10-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* locales validation ([#197](https://github.com/twinfoundation/framework/issues/197)) ([55fdadb](https://github.com/twinfoundation/framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/cli-core bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
16
|
+
* @twin.org/core bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
17
|
+
* @twin.org/crypto bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
18
|
+
* @twin.org/nameof bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
19
|
+
* devDependencies
|
|
20
|
+
* @twin.org/merge-locales bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
21
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
22
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
23
|
+
* @twin.org/validate-locales bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
24
|
+
|
|
25
|
+
## [0.0.2-next.20](https://github.com/twinfoundation/framework/compare/crypto-cli-v0.0.2-next.19...crypto-cli-v0.0.2-next.20) (2025-10-02)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Miscellaneous Chores
|
|
29
|
+
|
|
30
|
+
* **crypto-cli:** Synchronize repo versions
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Dependencies
|
|
34
|
+
|
|
35
|
+
* The following workspace dependencies were updated
|
|
36
|
+
* dependencies
|
|
37
|
+
* @twin.org/cli-core bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
38
|
+
* @twin.org/core bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
39
|
+
* @twin.org/crypto bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
40
|
+
* @twin.org/nameof bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
41
|
+
* devDependencies
|
|
42
|
+
* @twin.org/merge-locales bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
43
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
44
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
45
|
+
|
|
3
46
|
## [0.0.2-next.19](https://github.com/twinfoundation/framework/compare/crypto-cli-v0.0.2-next.18...crypto-cli-v0.0.2-next.19) (2025-09-30)
|
|
4
47
|
|
|
5
48
|
|
package/locales/en.json
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"error": {
|
|
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
|
-
}
|
|
10
|
-
},
|
|
11
2
|
"commands": {
|
|
12
3
|
"mnemonic": {
|
|
13
4
|
"summary": "Create a mnemonic.",
|
|
@@ -21,27 +12,11 @@
|
|
|
21
12
|
"param": "--seed-format '<'format'>'",
|
|
22
13
|
"description": "The format to output the seed."
|
|
23
14
|
},
|
|
24
|
-
"no-console": {
|
|
25
|
-
"param": "--no-console",
|
|
26
|
-
"description": "Hides the mnemonic and seed in the console."
|
|
27
|
-
},
|
|
28
|
-
"json": {
|
|
29
|
-
"param": "--json '<'filename'>'",
|
|
30
|
-
"description": "Creates a JSON file containing the mnemonic and seed."
|
|
31
|
-
},
|
|
32
|
-
"env": {
|
|
33
|
-
"param": "--env '<'filename'>'",
|
|
34
|
-
"description": "Creates an env file containing the mnemonic and seed."
|
|
35
|
-
},
|
|
36
15
|
"env-prefix": {
|
|
37
16
|
"param": "--env-prefix '<'prefix'>'",
|
|
38
17
|
"description": "Prefixes the env variables with the value."
|
|
39
18
|
}
|
|
40
19
|
},
|
|
41
|
-
"progress": {
|
|
42
|
-
"writingJsonFile": "Writing JSON file",
|
|
43
|
-
"writingEnvFile": "Writing env file"
|
|
44
|
-
},
|
|
45
20
|
"labels": {
|
|
46
21
|
"mnemonic": "Mnemonic",
|
|
47
22
|
"seed": "Seed",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/crypto-cli",
|
|
3
|
-
"version": "0.0.2-next.
|
|
3
|
+
"version": "0.0.2-next.21",
|
|
4
4
|
"description": "A command line interface for interacting with the crypto tools",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/cli-core": "0.0.2-next.
|
|
18
|
-
"@twin.org/core": "0.0.2-next.
|
|
19
|
-
"@twin.org/crypto": "0.0.2-next.
|
|
20
|
-
"@twin.org/nameof": "0.0.2-next.
|
|
17
|
+
"@twin.org/cli-core": "0.0.2-next.21",
|
|
18
|
+
"@twin.org/core": "0.0.2-next.21",
|
|
19
|
+
"@twin.org/crypto": "0.0.2-next.21",
|
|
20
|
+
"@twin.org/nameof": "0.0.2-next.21",
|
|
21
21
|
"commander": "14.0.1"
|
|
22
22
|
},
|
|
23
23
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -41,5 +41,20 @@
|
|
|
41
41
|
],
|
|
42
42
|
"bin": {
|
|
43
43
|
"twin-crypto": "bin/index.js"
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"twin",
|
|
47
|
+
"trade",
|
|
48
|
+
"iota",
|
|
49
|
+
"framework",
|
|
50
|
+
"blockchain",
|
|
51
|
+
"cryptography",
|
|
52
|
+
"encryption",
|
|
53
|
+
"hashing",
|
|
54
|
+
"security"
|
|
55
|
+
],
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "git+https://github.com/twinfoundation/framework/issues"
|
|
58
|
+
},
|
|
59
|
+
"homepage": "https://twindev.org"
|
|
45
60
|
}
|