-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/release/0.13.12'
- Loading branch information
Showing
5 changed files
with
40 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
// (C)opyright 2021-07-15 Dirk Holtwick, holtwick.it. All rights reserved. | ||
|
||
/** @deprecated */ | ||
export function urlBase64ToUint8Array( | ||
base64String: string, | ||
): Uint8Array | undefined { | ||
/** @deprecated use fromBase64 instead */ | ||
export function urlBase64ToUint8Array(base64String: string): Uint8Array | undefined { | ||
const padding = '='.repeat((4 - (base64String.length % 4)) % 4) | ||
const base64 = (base64String + padding).replace(/-/g, '+').replace(/_/g, '/') | ||
|
||
const rawData = window.atob(base64) | ||
const outputArray = new Uint8Array(rawData.length) | ||
|
||
for (let i = 0; i < rawData.length; ++i) | ||
outputArray[i] = rawData.charCodeAt(i) | ||
|
||
return outputArray | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"baseUrl": ".", | ||
"declaration": true, | ||
"esModuleInterop": true, | ||
"isolatedModules": true, | ||
"jsx": "preserve", | ||
"target": "ES2020", | ||
"lib": [ | ||
"ESNext", | ||
"DOM", | ||
"DOM.Iterable" | ||
], | ||
"jsx": "preserve", | ||
"module": "ES2020", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"strictNullChecks": true, | ||
"target": "ES2020", | ||
"baseUrl": ".", | ||
"types": [ | ||
"node", | ||
"vitest/globals" | ||
] | ||
], | ||
"resolveJsonModule": true, | ||
"allowJs": true, | ||
"declaration": true, | ||
"sourceMap": true, | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"strict": true, | ||
"strictNullChecks": true | ||
}, | ||
"include": [ | ||
"src/**/*.ts", | ||
"vitest-setup.ts" | ||
], | ||
"exclude": [ | ||
"_archive", | ||
"node_modules", | ||
"dist" | ||
], | ||
"include": [ | ||
"src/**/*.ts", | ||
"vitest-setup.ts" | ||
] | ||
} |