@lowentry/utils 1.15.2 → 1.15.3
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 +2 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/LeUtils.js +2 -0
- package/tsconfig.json +16 -38
- package/build/LeTypes.d.ts +0 -15
- package/build/LeUtils.d.ts +0 -217
- package/build/index.d.ts +0 -2
package/index.js
CHANGED
|
@@ -2729,6 +2729,7 @@ var LeUtils = {
|
|
|
2729
2729
|
if (typeof btoa === 'function') {
|
|
2730
2730
|
return btoa(string);
|
|
2731
2731
|
}
|
|
2732
|
+
//@ts-ignore - Node.js fallback
|
|
2732
2733
|
return Buffer.from(string).toString('base64');
|
|
2733
2734
|
}),
|
|
2734
2735
|
/**
|
|
@@ -2749,6 +2750,7 @@ var LeUtils = {
|
|
|
2749
2750
|
if (typeof atob === 'function') {
|
|
2750
2751
|
return atob(base64string);
|
|
2751
2752
|
}
|
|
2753
|
+
//@ts-ignore - Node.js fallback
|
|
2752
2754
|
return Buffer.from(base64string, 'base64').toString();
|
|
2753
2755
|
}),
|
|
2754
2756
|
/**
|