mentie 0.5.2 → 0.5.4
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/index.js +51 -11
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -1,11 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
// Logging
|
|
2
|
+
export { log } from './modules/logging.js'
|
|
3
|
+
|
|
4
|
+
// Time
|
|
5
|
+
export { wait, timestamp_to_RFC822, seconds_to_hh_mm_ss } from './modules/time.js'
|
|
6
|
+
|
|
7
|
+
// Environment
|
|
8
|
+
export {
|
|
9
|
+
env,
|
|
10
|
+
is_web,
|
|
11
|
+
is_localhost,
|
|
12
|
+
is_cypress,
|
|
13
|
+
is_node,
|
|
14
|
+
is_emulator,
|
|
15
|
+
is_github_actions,
|
|
16
|
+
is_apple,
|
|
17
|
+
is_iphone,
|
|
18
|
+
is_mac,
|
|
19
|
+
is_android,
|
|
20
|
+
is_linux,
|
|
21
|
+
is_windows,
|
|
22
|
+
dev,
|
|
23
|
+
web_loglevel,
|
|
24
|
+
node_loglevel,
|
|
25
|
+
loglevel,
|
|
26
|
+
log_environment
|
|
27
|
+
} from './modules/environment.js'
|
|
28
|
+
|
|
29
|
+
// Validations
|
|
30
|
+
export { email_regex, is_ipv4, is_ipv6, require_props, allow_props, shallow_compare_objects } from './modules/validations.js'
|
|
31
|
+
|
|
32
|
+
// Text
|
|
33
|
+
export { truncate, copy_to_clipboard, capitalise, random_letter, random_string_of_length } from './modules/text.js'
|
|
34
|
+
|
|
35
|
+
// Numbers
|
|
36
|
+
export { round_number_to_decimals, random_number_between, random_number_of_length } from './modules/numbers.js'
|
|
37
|
+
|
|
38
|
+
// Promises
|
|
39
|
+
export { make_retryable, throttle_and_retry, promise_timeout } from './modules/promises.js'
|
|
40
|
+
|
|
41
|
+
// Cache
|
|
42
|
+
export { cache, concurrency } from './modules/cache.js'
|
|
43
|
+
|
|
44
|
+
// Crypto
|
|
45
|
+
export { hash } from './modules/crypto.js'
|
|
46
|
+
|
|
47
|
+
// Network
|
|
48
|
+
export { abort_controller } from './modules/network.js'
|
|
49
|
+
|
|
50
|
+
// Manipulations
|
|
51
|
+
export { shuffle_array, multiline_trim, sanetise_string, sanetise_ipv4 } from './modules/manipulations.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mentie",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Mentor's toolbelt",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/actuallymentor/mentie#readme",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@babel/eslint-parser": "^7.
|
|
23
|
-
"@babel/preset-react": "^7.
|
|
24
|
-
"airier": "^0.0.
|
|
25
|
-
"eslint": "^8.57.
|
|
26
|
-
"eslint-plugin-react": "^7.
|
|
22
|
+
"@babel/eslint-parser": "^7.28.5",
|
|
23
|
+
"@babel/preset-react": "^7.28.5",
|
|
24
|
+
"airier": "^0.0.9",
|
|
25
|
+
"eslint": "^8.57.1",
|
|
26
|
+
"eslint-plugin-react": "^7.37.5",
|
|
27
27
|
"eslint-plugin-unused-imports": "^3.2.0",
|
|
28
|
-
"husky": "^9.1.
|
|
28
|
+
"husky": "^9.1.7"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"hash.js": "^1.1.7",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"promise-retry": "^2.0.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"safe-stable-stringify": "^2.
|
|
36
|
+
"safe-stable-stringify": "^2.5.0"
|
|
37
37
|
}
|
|
38
38
|
}
|