run npm install to generate a package lock

This commit is contained in:
sashinexists
2024-12-07 13:18:31 +11:00
parent e7d08a91b5
commit 23437d228e
2501 changed files with 290663 additions and 0 deletions

10
node_modules/decode-base64/.editorconfig generated vendored Normal file
View File

@@ -0,0 +1,10 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

2
node_modules/decode-base64/dist/browser.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
declare const decode: (base64: string) => Uint8Array;
export default decode;

11
node_modules/decode-base64/dist/browser.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
/* MAIN */
const decode = (base64) => {
const binary = atob(base64);
const u8 = new Uint8Array(binary.length);
for (let i = 0, l = binary.length; i < l; i++) {
u8[i] = binary.charCodeAt(i);
}
return u8;
};
/* EXPORT */
export default decode;

2
node_modules/decode-base64/dist/node.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
declare const decode: (base64: string) => Uint8Array;
export default decode;

8
node_modules/decode-base64/dist/node.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
/* IMPORT */
import Buffer from 'node-buffer-encoding';
/* MAIN */
const decode = (base64) => {
return Buffer.decode(base64, 'base64');
};
/* EXPORT */
export default decode;

21
node_modules/decode-base64/license generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2021-present Fabio Spampinato
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

39
node_modules/decode-base64/package.json generated vendored Executable file
View File

@@ -0,0 +1,39 @@
{
"name": "decode-base64",
"repository": "github:fabiospampinato/decode-base64",
"description": "A tiny function for decoding base64 strings into Uint8Arrays, useful for bundling and loading WASM modules.",
"version": "3.0.1",
"type": "module",
"main": "dist/node.js",
"types": "./dist/node.d.ts",
"exports": {
"node": "./dist/node.js",
"default": "./dist/browser.js"
},
"scripts": {
"clean": "tsex clean",
"compile": "tsex compile",
"compile:watch": "tsex compile --watch",
"test": "tsex test",
"test:watch": "tsex test --watch",
"prepublishOnly": "npm run clean && npm run compile && npm run test"
},
"keywords": [
"decode",
"base64",
"uint8array",
"buffer",
"node",
"web",
"browser"
],
"dependencies": {
"node-buffer-encoding": "^1.0.1"
},
"devDependencies": {
"fava": "^0.0.6",
"tsex": "^1.1.1",
"typescript": "^4.6.3",
"uint8-encoding": "^2.0.0"
}
}

21
node_modules/decode-base64/readme.md generated vendored Normal file
View File

@@ -0,0 +1,21 @@
# Decode Base64
A tiny function for decoding base64 strings into Uint8Arrays, useful for bundling and loading WASM modules.
## Install
```sh
npm install --save decode-base64
```
## Usage
```ts
import decode from 'decode-base64';
decode ( 'base64 string here...' ); // => Uint8Arrays
```
## License
MIT © Fabio Spampinato

21
node_modules/decode-base64/src/browser.ts generated vendored Normal file
View File

@@ -0,0 +1,21 @@
/* MAIN */
const decode = ( base64: string ): Uint8Array => {
const binary = atob ( base64 );
const u8 = new Uint8Array ( binary.length );
for ( let i = 0, l = binary.length; i < l; i++ ) {
u8[i] = binary.charCodeAt ( i );
}
return u8;
};
/* EXPORT */
export default decode;

16
node_modules/decode-base64/src/node.ts generated vendored Normal file
View File

@@ -0,0 +1,16 @@
/* IMPORT */
import Buffer from 'node-buffer-encoding';
/* MAIN */
const decode = ( base64: string ): Uint8Array => {
return Buffer.decode ( base64, 'base64' );
};
/* EXPORT */
export default decode;

15
node_modules/decode-base64/test/fixtures.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
/* MAIN */
const Fixtures = [
'',
'\0',
'\ufeff',
'👪',
'Hello, World!',
new Array ( 55296 ).fill ( 0 ).map ( ( _, index ) => String.fromCharCode ( index ) ).join ( '' )
];
/* EXPORT */
export default Fixtures;

43
node_modules/decode-base64/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
/* IMPORT */
import {describe} from 'fava';
import {Buffer} from 'node:buffer';
import U8 from 'uint8-encoding';
import decodeBrowser from '../dist/browser.js';
import decodeNode from '../dist/node.js';
import Fixtures from './fixtures.js';
/* MAIN */
describe ( 'decodeBase64', () => {
for ( const [decode, name] of [[decodeBrowser, 'browser'], [decodeNode, 'node']] ) {
describe ( name, it => {
it ( 'returns an actual Uint8Array', t => {
t.is ( decode ( 'Zm9v' ).constructor, Uint8Array );
});
it ( 'works with strings', t => {
for ( const fixture of Fixtures ) {
const encoded = U8.encode ( fixture );
const base64 = Buffer.from ( fixture ).toString ( 'base64' );
const decoded = decode ( base64 );
t.deepEqual ( decoded, encoded );
}
});
});
}
});

3
node_modules/decode-base64/tsconfig.json generated vendored Executable file
View File

@@ -0,0 +1,3 @@
{
"extends": "tsex/tsconfig.json"
}