@sequencemedia/crypto 1.1.18 → 1.1.20
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/decrypt.sh +9 -0
- package/encrypt.sh +10 -1
- package/package.json +2 -2
package/decrypt.sh
CHANGED
|
@@ -26,6 +26,15 @@ then
|
|
|
26
26
|
echo Origin is a directory but destination is not a directory
|
|
27
27
|
exit 1
|
|
28
28
|
fi
|
|
29
|
+
else
|
|
30
|
+
if [ -f "$ORIGIN" ];
|
|
31
|
+
then
|
|
32
|
+
if [ -d "$DESTINATION" ];
|
|
33
|
+
then
|
|
34
|
+
echo Origin is a file but destination is a directory
|
|
35
|
+
exit 1
|
|
36
|
+
fi
|
|
37
|
+
fi
|
|
29
38
|
fi
|
|
30
39
|
|
|
31
40
|
decrypt "$ORIGIN" > "$DESTINATION"
|
package/encrypt.sh
CHANGED
|
@@ -17,7 +17,7 @@ then
|
|
|
17
17
|
fi
|
|
18
18
|
|
|
19
19
|
if [ -d "$ORIGIN" ];
|
|
20
|
-
|
|
20
|
+
then
|
|
21
21
|
if [ -d "$DESTINATION" ];
|
|
22
22
|
then
|
|
23
23
|
encrypt_directory "$ORIGIN" "$DESTINATION"
|
|
@@ -26,6 +26,15 @@ if [ -d "$ORIGIN" ];
|
|
|
26
26
|
echo Origin is a directory but destination is not a directory
|
|
27
27
|
exit 1
|
|
28
28
|
fi
|
|
29
|
+
else
|
|
30
|
+
if [ -f "$ORIGIN" ];
|
|
31
|
+
then
|
|
32
|
+
if [ -d "$DESTINATION" ];
|
|
33
|
+
then
|
|
34
|
+
echo Origin is a file but destination is a directory
|
|
35
|
+
exit 1
|
|
36
|
+
fi
|
|
37
|
+
fi
|
|
29
38
|
fi
|
|
30
39
|
|
|
31
40
|
encrypt "$ORIGIN" > "$DESTINATION"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequencemedia/crypto",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"crypto",
|
|
6
6
|
"node",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@sequencemedia/hooks": "^1.0.393",
|
|
44
44
|
"@types/node": "^18.15.13",
|
|
45
45
|
"core-js": "^3.30.1",
|
|
46
|
-
"eslint": "^8.
|
|
46
|
+
"eslint": "^8.39.0",
|
|
47
47
|
"eslint-config-standard": "^17.0.0",
|
|
48
48
|
"eslint-plugin-import": "^2.27.5",
|
|
49
49
|
"eslint-plugin-node": "^11.1.0",
|