drapcode-utility 1.9.9 → 2.0.0
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/build/utils/util.js +6 -2
- package/package.json +3 -3
package/build/utils/util.js
CHANGED
|
@@ -835,12 +835,16 @@ var toggleConsoleLogs = function (enable) {
|
|
|
835
835
|
exports.toggleConsoleLogs = toggleConsoleLogs;
|
|
836
836
|
// Utility function to replace '/' with '____'
|
|
837
837
|
var replaceSlashWithUnderscore = function (value) {
|
|
838
|
-
return value && value.
|
|
838
|
+
return value && typeof value === 'string' && value.includes('/')
|
|
839
|
+
? value.replace(/\//g, '____')
|
|
840
|
+
: value;
|
|
839
841
|
};
|
|
840
842
|
exports.replaceSlashWithUnderscore = replaceSlashWithUnderscore;
|
|
841
843
|
// Utility function to replace '____' with '/'
|
|
842
844
|
var replaceUnderscoreWithSlash = function (value) {
|
|
843
|
-
return value && value.
|
|
845
|
+
return value && typeof value === 'string' && value.includes('____')
|
|
846
|
+
? value.replace(/____/g, '/')
|
|
847
|
+
: value;
|
|
844
848
|
};
|
|
845
849
|
exports.replaceUnderscoreWithSlash = replaceUnderscoreWithSlash;
|
|
846
850
|
var capitalize = function (str, restToLower) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "drapcode-utility",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"aws4": "^1.13.2",
|
|
41
41
|
"axios": "^1.1.2",
|
|
42
42
|
"dompurify": "^3.1.7",
|
|
43
|
-
"drapcode-constant": "^1.7.
|
|
43
|
+
"drapcode-constant": "^1.7.1",
|
|
44
44
|
"drapcode-logger": "^1.3.4",
|
|
45
|
-
"drapcode-redis": "^1.2.
|
|
45
|
+
"drapcode-redis": "^1.2.6",
|
|
46
46
|
"exiftool-vendored": "^28.2.1",
|
|
47
47
|
"express": "^4.17.1",
|
|
48
48
|
"gm": "^1.25.0",
|