namirasoft-core 1.3.37 → 1.3.38
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.
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EncodingOperation = void 0;
|
|
4
4
|
class EncodingOperation {
|
|
5
|
-
static
|
|
5
|
+
static Base64Encode(message) {
|
|
6
6
|
return Buffer.from(message).toString("base64");
|
|
7
7
|
}
|
|
8
|
-
static
|
|
8
|
+
static Base64Decode(message) {
|
|
9
9
|
return atob(message);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncodingOperation.js","sourceRoot":"","sources":["../src/EncodingOperation.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;IAE1B,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"EncodingOperation.js","sourceRoot":"","sources":["../src/EncodingOperation.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;IAE1B,MAAM,CAAC,YAAY,CAAC,OAAe;QAE/B,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC;IACD,MAAM,CAAC,YAAY,CAAC,OAAe;QAE/B,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;CACJ;AAVD,8CAUC"}
|
package/package.json
CHANGED
package/src/EncodingOperation.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export class EncodingOperation
|
|
2
2
|
{
|
|
3
|
-
static
|
|
3
|
+
static Base64Encode(message: string): string
|
|
4
4
|
{
|
|
5
5
|
return Buffer.from(message).toString("base64");
|
|
6
6
|
}
|
|
7
|
-
static
|
|
7
|
+
static Base64Decode(message: string): string
|
|
8
8
|
{
|
|
9
9
|
return atob(message);
|
|
10
10
|
}
|