@casual-simulation/aux-records 3.2.17 → 3.2.18-alpha.8332065024
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/Base64UrlUtils.d.ts +5 -5
- package/Base64UrlUtils.js +9 -6
- package/Base64UrlUtils.js.map +1 -1
- package/package.json +3 -3
package/Base64UrlUtils.d.ts
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export declare function base64URLStringToBuffer(base64URLString: string): ArrayBuffer;
|
|
9
9
|
/**
|
|
10
|
-
* Convert the given array buffer into a Base64URL-encoded string. Ideal for converting various
|
|
11
|
-
* credential response ArrayBuffers to string for sending back to the server as JSON.
|
|
12
|
-
*
|
|
13
|
-
* Helper method to compliment `base64URLStringToBuffer`
|
|
14
|
-
*/
|
|
10
|
+
* Convert the given array buffer into a Base64URL-encoded string. Ideal for converting various
|
|
11
|
+
* credential response ArrayBuffers to string for sending back to the server as JSON.
|
|
12
|
+
*
|
|
13
|
+
* Helper method to compliment `base64URLStringToBuffer`
|
|
14
|
+
*/
|
|
15
15
|
export declare function bufferToBase64URLString(buffer: ArrayBuffer): string;
|
|
16
16
|
//# sourceMappingURL=Base64UrlUtils.d.ts.map
|
package/Base64UrlUtils.js
CHANGED
|
@@ -42,11 +42,11 @@ export function base64URLStringToBuffer(base64URLString) {
|
|
|
42
42
|
return buffer;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* Convert the given array buffer into a Base64URL-encoded string. Ideal for converting various
|
|
46
|
-
* credential response ArrayBuffers to string for sending back to the server as JSON.
|
|
47
|
-
*
|
|
48
|
-
* Helper method to compliment `base64URLStringToBuffer`
|
|
49
|
-
*/
|
|
45
|
+
* Convert the given array buffer into a Base64URL-encoded string. Ideal for converting various
|
|
46
|
+
* credential response ArrayBuffers to string for sending back to the server as JSON.
|
|
47
|
+
*
|
|
48
|
+
* Helper method to compliment `base64URLStringToBuffer`
|
|
49
|
+
*/
|
|
50
50
|
export function bufferToBase64URLString(buffer) {
|
|
51
51
|
const bytes = new Uint8Array(buffer);
|
|
52
52
|
let str = '';
|
|
@@ -54,6 +54,9 @@ export function bufferToBase64URLString(buffer) {
|
|
|
54
54
|
str += String.fromCharCode(charCode);
|
|
55
55
|
}
|
|
56
56
|
const base64String = btoa(str);
|
|
57
|
-
return base64String
|
|
57
|
+
return base64String
|
|
58
|
+
.replace(/\+/g, '-')
|
|
59
|
+
.replace(/\//g, '_')
|
|
60
|
+
.replace(/=/g, '');
|
|
58
61
|
}
|
|
59
62
|
//# sourceMappingURL=Base64UrlUtils.js.map
|
package/Base64UrlUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base64UrlUtils.js","sourceRoot":"","sources":["Base64UrlUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Base64UrlUtils.js","sourceRoot":"","sources":["Base64UrlUtils.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,oCAAoC;AAEpC,oGAAoG;AACpG,gGAAgG;AAChG,4FAA4F;AAC5F,gGAAgG;AAChG,2DAA2D;AAE3D,uGAAuG;AACvG,4BAA4B;AAE5B,oGAAoG;AACpG,yFAAyF;AACzF,uGAAuG;AACvG,sGAAsG;AACtG,6EAA6E;AAE7E;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAAC,eAAuB;IAC3D,mCAAmC;IACnC,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACrE;;;;;;OAMG;IACH,MAAM,SAAS,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,EAAE,GAAG,CAAC,CAAC;IAE7D,6BAA6B;IAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;IAE5B,kCAAkC;IAClC,MAAM,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9C,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IAErC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;KACnC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,MAAmB;IACvD,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,GAAG,GAAG,EAAE,CAAC;IAEb,KAAK,MAAM,QAAQ,IAAI,KAAK,EAAE;QAC1B,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;KACxC;IAED,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;IAE/B,OAAO,YAAY;SACd,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;SACnB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;SACnB,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casual-simulation/aux-records",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.18-alpha.8332065024",
|
|
4
4
|
"description": "Helpers and managers used by the CasualOS records system.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Casual Simulation, Inc.",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@casual-simulation/aux-common": "^3.2.
|
|
40
|
+
"@casual-simulation/aux-common": "^3.2.18-alpha.8332065024",
|
|
41
41
|
"@casual-simulation/crypto": "^3.2.7",
|
|
42
42
|
"@casual-simulation/fast-json-stable-stringify": "^3.1.11",
|
|
43
43
|
"@casual-simulation/rate-limit-redis": "^3.2.7",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"yjs": "13.6.8",
|
|
58
58
|
"zod": "3.22.4"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "1ecf093bec02415aee08e6f6ea0b7db15c16124c"
|
|
61
61
|
}
|