fix(s3): use smaller libraries

This commit is contained in:
dicedtomato 2022-06-25 17:07:19 +00:00 committed by GitHub
parent 10b145b006
commit 6edfdcefcc
8 changed files with 665 additions and 76 deletions

View file

@ -36,6 +36,6 @@ const { rm } = require('fs/promises');
watch,
incremental: watch,
sourcemap: false,
minify: true,
minify: false,
});
})();

View file

@ -30,12 +30,12 @@
"@prisma/sdk": "^3.15.2",
"@reduxjs/toolkit": "^1.8.2",
"argon2": "^0.28.5",
"aws-sdk": "^2.1156.0",
"colorette": "^2.0.19",
"cookie": "^0.5.0",
"fecha": "^4.2.3",
"fflate": "^0.7.3",
"find-my-way": "^6.3.0",
"minio": "^7.0.28",
"multer": "^1.4.5-lts.1",
"next": "^12.1.6",
"prisma": "^3.15.2",
@ -44,12 +44,12 @@
"react-redux": "^8.0.2",
"react-table": "^7.8.0",
"redux": "^4.2.0",
"redux-thunk": "^2.4.1",
"uuid": "^8.3.2",
"yup": "^0.32.11"
},
"devDependencies": {
"@types/cookie": "^0.5.1",
"@types/minio": "^7.0.13",
"@types/multer": "^1.4.7",
"@types/node": "^15.12.2",
"babel-plugin-import": "^1.13.5",

View file

@ -55,6 +55,10 @@ export interface ConfigS3Datasource {
// If true Zipline will attempt to connect to the bucket via the url "https://s3.amazonaws.com/{bucket}/stuff"
// If false Zipline will attempt to connect to the bucket via the url "http://{bucket}.s3.amazonaws.com/stuff"
force_s3_path: boolean;
// Region
// aws region, default will be us-east-1 (if using a non-aws S3 service this might work for you)
region?: string;
}
export interface ConfigSwiftDatasource {

View file

@ -22,6 +22,7 @@ const envValues = [
e('DATASOURCE_S3_ENDPOINT', 'string', (c, v) => c.datasource.s3.endpoint = v ?? null),
e('DATASOURCE_S3_FORCE_S3_PATH', 'boolean', (c, v) => c.datasource.s3.force_s3_path = v ?? false),
e('DATASOURCE_S3_BUCKET', 'string', (c, v) => c.datasource.s3.bucket = v),
e('DATASOURCE_S3_REGION', 'string', (c, v) => c.datasource.s3.region = v ?? 'us-east-1'),
e('UPLOADER_ROUTE', 'string', (c, v) => c.uploader.route = v),
e('UPLOADER_LENGTH', 'number', (c, v) => c.uploader.length = v),
@ -73,6 +74,7 @@ function tryReadEnv(): Config {
endpoint: undefined,
bucket: undefined,
force_s3_path: undefined,
region: undefined,
},
},
uploader: {

View file

@ -22,6 +22,7 @@ const validator = object({
endpoint: string().notRequired().nullable(),
bucket: string(),
force_s3_path: boolean().default(false),
region: string().default('us-east-1'),
}).notRequired(),
swift: object({
username: string(),

View file

@ -1,7 +1,7 @@
import { createReadStream, existsSync, ReadStream } from 'fs';
import { readdir, rm, stat, writeFile } from 'fs/promises';
import { join } from 'path';
import { Datasource } from './';
import { Datasource } from '.';
export class Local extends Datasource {
public name: string = 'local';

View file

@ -1,74 +1,51 @@
import { Datasource } from './';
import AWS from 'aws-sdk';
import { Datasource } from '.';
import { Readable } from 'stream';
import { ConfigS3Datasource } from 'lib/config/Config';
import { Client } from 'minio';
export class S3 extends Datasource {
public name: string = 'S3';
public s3: AWS.S3;
public s3: Client;
public constructor(
public config: ConfigS3Datasource,
) {
super();
this.s3 = new AWS.S3({
accessKeyId: config.access_key_id,
endpoint: config.endpoint || null,
s3ForcePathStyle: config.force_s3_path,
secretAccessKey: config.secret_access_key,
this.s3 = new Client({
endPoint: config.endpoint,
accessKey: config.access_key_id,
secretKey: config.secret_access_key,
pathStyle: config.force_s3_path,
region: config.region,
});
}
public async save(file: string, data: Buffer): Promise<void> {
return new Promise((resolve, reject) => {
this.s3.upload({
Bucket: this.config.bucket,
Key: file,
Body: data,
}, err => {
if (err) {
reject(err);
} else {
resolve();
}
});
});
await this.s3.putObject(this.config.bucket, file, data);
}
public async delete(file: string): Promise<void> {
return new Promise((resolve, reject) => {
this.s3.deleteObject({
Bucket: this.config.bucket,
Key: file,
}, err => {
if (err) {
reject(err);
} else {
resolve();
}
await this.s3.removeObject(this.config.bucket, file);
}
public get(file: string): Promise<Readable> {
return new Promise((res, rej) => {
this.s3.getObject(this.config.bucket, file, (err, stream) => {
if (err) res(null);
else res(stream);
});
});
}
public get(file: string): Readable {
// Unfortunately, aws-sdk is bad and the stream still loads everything into memory.
return this.s3.getObject({
Bucket: this.config.bucket,
Key: file,
}).createReadStream();
}
public async size(): Promise<number> {
return new Promise((resolve, reject) => {
this.s3.listObjects({
Bucket: this.config.bucket,
}, (err, data) => {
if (err) {
reject(err);
} else {
const size = data.Contents.reduce((acc, cur) => acc + cur.Size, 0);
resolve(size);
}
return new Promise((res, rej) => {
const objects = this.s3.listObjectsV2(this.config.bucket, '', true);
let size = 0;
objects.on('data', item => size += item.size);
objects.on('end', err => {
if (err) rej(err);
else res(size);
});
});
}

651
yarn.lock
View file

@ -1384,6 +1384,15 @@ __metadata:
languageName: node
linkType: hard
"@types/minio@npm:^7.0.13":
version: 7.0.13
resolution: "@types/minio@npm:7.0.13"
dependencies:
"@types/node": "*"
checksum: a23ddc452e8bd8dc47b7dbd47c71f6c18118f6e3288a8a980db977851cd81f7c1ffc97bd500f5dcbb34689a8651ca30af748a16d7ea25f7ac6d38bf9b22aab25
languageName: node
linkType: hard
"@types/ms@npm:*":
version: 0.7.31
resolution: "@types/ms@npm:0.7.31"
@ -1565,6 +1574,13 @@ __metadata:
languageName: node
linkType: hard
"@zxing/text-encoding@npm:0.9.0":
version: 0.9.0
resolution: "@zxing/text-encoding@npm:0.9.0"
checksum: c23b12aee7639382e4949961304a1294776afaffa40f579e09ffecd0e5e68cf26ef3edd75009de46da8a536e571448755ca68b3e2ea707d53793c0edb2e2c34a
languageName: node
linkType: hard
"abbrev@npm:1":
version: 1.1.1
resolution: "abbrev@npm:1.1.1"
@ -1876,6 +1892,18 @@ __metadata:
languageName: node
linkType: hard
"asn1.js@npm:^5.2.0":
version: 5.4.1
resolution: "asn1.js@npm:5.4.1"
dependencies:
bn.js: ^4.0.0
inherits: ^2.0.1
minimalistic-assert: ^1.0.0
safer-buffer: ^2.1.0
checksum: 3786a101ac6f304bd4e9a7df79549a7561950a13d4bcaec0c7790d44c80d147c1a94ba3d4e663673406064642a40b23fcd6c82a9952468e386c1a1376d747f9a
languageName: node
linkType: hard
"ast-types-flow@npm:^0.0.7":
version: 0.0.7
resolution: "ast-types-flow@npm:0.0.7"
@ -1890,6 +1918,13 @@ __metadata:
languageName: node
linkType: hard
"async@npm:^3.1.0":
version: 3.2.4
resolution: "async@npm:3.2.4"
checksum: 43d07459a4e1d09b84a20772414aa684ff4de085cbcaec6eea3c7a8f8150e8c62aa6cd4e699fe8ee93c3a5b324e777d34642531875a0817a35697522c1b02e89
languageName: node
linkType: hard
"async@npm:^3.2.3":
version: 3.2.3
resolution: "async@npm:3.2.3"
@ -1911,6 +1946,13 @@ __metadata:
languageName: node
linkType: hard
"available-typed-arrays@npm:^1.0.5":
version: 1.0.5
resolution: "available-typed-arrays@npm:1.0.5"
checksum: 20eb47b3cefd7db027b9bbb993c658abd36d4edd3fe1060e83699a03ee275b0c9b216cc076ff3f2db29073225fb70e7613987af14269ac1fe2a19803ccc97f1a
languageName: node
linkType: hard
"aws-sdk@npm:^2.1156.0":
version: 2.1156.0
resolution: "aws-sdk@npm:2.1156.0"
@ -1996,6 +2038,29 @@ __metadata:
languageName: node
linkType: hard
"block-stream2@npm:^2.0.0":
version: 2.1.0
resolution: "block-stream2@npm:2.1.0"
dependencies:
readable-stream: ^3.4.0
checksum: c6484ea7be7235a89f3cd810ec8eaf52afe1d04acebba8ce1fd243ed07f4df22ef1407b8b0565aad2b22dc3b368cba3c87aabaff29492ac251f0823bc1172760
languageName: node
linkType: hard
"bn.js@npm:^4.0.0, bn.js@npm:^4.1.0, bn.js@npm:^4.11.9":
version: 4.12.0
resolution: "bn.js@npm:4.12.0"
checksum: 39afb4f15f4ea537b55eaf1446c896af28ac948fdcf47171961475724d1bb65118cca49fa6e3d67706e4790955ec0e74de584e45c8f1ef89f46c812bee5b5a12
languageName: node
linkType: hard
"bn.js@npm:^5.0.0, bn.js@npm:^5.1.1":
version: 5.2.1
resolution: "bn.js@npm:5.2.1"
checksum: 3dd8c8d38055fedfa95c1d5fc3c99f8dd547b36287b37768db0abab3c239711f88ff58d18d155dd8ad902b0b0cee973747b7ae20ea12a09473272b0201c9edd3
languageName: node
linkType: hard
"brace-expansion@npm:^1.1.7":
version: 1.1.11
resolution: "brace-expansion@npm:1.1.11"
@ -2015,6 +2080,84 @@ __metadata:
languageName: node
linkType: hard
"brorand@npm:^1.0.1, brorand@npm:^1.1.0":
version: 1.1.0
resolution: "brorand@npm:1.1.0"
checksum: 8a05c9f3c4b46572dec6ef71012b1946db6cae8c7bb60ccd4b7dd5a84655db49fe043ecc6272e7ef1f69dc53d6730b9e2a3a03a8310509a3d797a618cbee52be
languageName: node
linkType: hard
"browser-or-node@npm:^1.3.0":
version: 1.3.0
resolution: "browser-or-node@npm:1.3.0"
checksum: 14a7e3f7bd2dfeac0d1e8fed378a22c7e3c943c30e84ce09ba0636c82f79f78d321536fd2846dd505b6d7ee6fb0fdb8d7f084afe40f2378eee5533cb8e7cd456
languageName: node
linkType: hard
"browserify-aes@npm:^1.0.0, browserify-aes@npm:^1.0.4":
version: 1.2.0
resolution: "browserify-aes@npm:1.2.0"
dependencies:
buffer-xor: ^1.0.3
cipher-base: ^1.0.0
create-hash: ^1.1.0
evp_bytestokey: ^1.0.3
inherits: ^2.0.1
safe-buffer: ^5.0.1
checksum: 4a17c3eb55a2aa61c934c286f34921933086bf6d67f02d4adb09fcc6f2fc93977b47d9d884c25619144fccd47b3b3a399e1ad8b3ff5a346be47270114bcf7104
languageName: node
linkType: hard
"browserify-cipher@npm:^1.0.0":
version: 1.0.1
resolution: "browserify-cipher@npm:1.0.1"
dependencies:
browserify-aes: ^1.0.4
browserify-des: ^1.0.0
evp_bytestokey: ^1.0.0
checksum: 2d8500acf1ee535e6bebe808f7a20e4c3a9e2ed1a6885fff1facbfd201ac013ef030422bec65ca9ece8ffe82b03ca580421463f9c45af6c8415fd629f4118c13
languageName: node
linkType: hard
"browserify-des@npm:^1.0.0":
version: 1.0.2
resolution: "browserify-des@npm:1.0.2"
dependencies:
cipher-base: ^1.0.1
des.js: ^1.0.0
inherits: ^2.0.1
safe-buffer: ^5.1.2
checksum: b15a3e358a1d78a3b62ddc06c845d02afde6fc826dab23f1b9c016e643e7b1fda41de628d2110b712f6a44fb10cbc1800bc6872a03ddd363fb50768e010395b7
languageName: node
linkType: hard
"browserify-rsa@npm:^4.0.0, browserify-rsa@npm:^4.0.1":
version: 4.1.0
resolution: "browserify-rsa@npm:4.1.0"
dependencies:
bn.js: ^5.0.0
randombytes: ^2.0.1
checksum: 155f0c135873efc85620571a33d884aa8810e40176125ad424ec9d85016ff105a07f6231650914a760cca66f29af0494087947b7be34880dd4599a0cd3c38e54
languageName: node
linkType: hard
"browserify-sign@npm:^4.0.0":
version: 4.2.1
resolution: "browserify-sign@npm:4.2.1"
dependencies:
bn.js: ^5.1.1
browserify-rsa: ^4.0.1
create-hash: ^1.2.0
create-hmac: ^1.1.7
elliptic: ^6.5.3
inherits: ^2.0.4
parse-asn1: ^5.1.5
readable-stream: ^3.6.0
safe-buffer: ^5.2.0
checksum: 0221f190e3f5b2d40183fa51621be7e838d9caa329fe1ba773406b7637855f37b30f5d83e52ff8f244ed12ffe6278dd9983638609ed88c841ce547e603855707
languageName: node
linkType: hard
"buffer-crc32@npm:^0.2.1, buffer-crc32@npm:^0.2.13":
version: 0.2.13
resolution: "buffer-crc32@npm:0.2.13"
@ -2050,6 +2193,13 @@ __metadata:
languageName: node
linkType: hard
"buffer-xor@npm:^1.0.3":
version: 1.0.3
resolution: "buffer-xor@npm:1.0.3"
checksum: 10c520df29d62fa6e785e2800e586a20fc4f6dfad84bcdbd12e1e8a83856de1cb75c7ebd7abe6d036bbfab738a6cf18a3ae9c8e5a2e2eb3167ca7399ce65373a
languageName: node
linkType: hard
"buffer@npm:4.9.2":
version: 4.9.2
resolution: "buffer@npm:4.9.2"
@ -2200,6 +2350,16 @@ __metadata:
languageName: node
linkType: hard
"cipher-base@npm:^1.0.0, cipher-base@npm:^1.0.1, cipher-base@npm:^1.0.3":
version: 1.0.4
resolution: "cipher-base@npm:1.0.4"
dependencies:
inherits: ^2.0.1
safe-buffer: ^5.0.1
checksum: 47d3568dbc17431a339bad1fe7dff83ac0891be8206911ace3d3b818fc695f376df809bea406e759cdea07fff4b454fa25f1013e648851bec790c1d75763032e
languageName: node
linkType: hard
"clean-stack@npm:^2.0.0":
version: 2.2.0
resolution: "clean-stack@npm:2.2.0"
@ -2406,6 +2566,43 @@ __metadata:
languageName: node
linkType: hard
"create-ecdh@npm:^4.0.0":
version: 4.0.4
resolution: "create-ecdh@npm:4.0.4"
dependencies:
bn.js: ^4.1.0
elliptic: ^6.5.3
checksum: 0dd7fca9711d09e152375b79acf1e3f306d1a25ba87b8ff14c2fd8e68b83aafe0a7dd6c4e540c9ffbdd227a5fa1ad9b81eca1f233c38bb47770597ba247e614b
languageName: node
linkType: hard
"create-hash@npm:^1.1.0, create-hash@npm:^1.1.2, create-hash@npm:^1.2.0":
version: 1.2.0
resolution: "create-hash@npm:1.2.0"
dependencies:
cipher-base: ^1.0.1
inherits: ^2.0.1
md5.js: ^1.3.4
ripemd160: ^2.0.1
sha.js: ^2.4.0
checksum: 02a6ae3bb9cd4afee3fabd846c1d8426a0e6b495560a977ba46120c473cb283be6aa1cace76b5f927cf4e499c6146fb798253e48e83d522feba807d6b722eaa9
languageName: node
linkType: hard
"create-hmac@npm:^1.1.0, create-hmac@npm:^1.1.4, create-hmac@npm:^1.1.7":
version: 1.1.7
resolution: "create-hmac@npm:1.1.7"
dependencies:
cipher-base: ^1.0.3
create-hash: ^1.1.0
inherits: ^2.0.1
ripemd160: ^2.0.0
safe-buffer: ^5.0.1
sha.js: ^2.4.8
checksum: ba12bb2257b585a0396108c72830e85f882ab659c3320c83584b1037f8ab72415095167ced80dc4ce8e446a8ecc4b2acf36d87befe0707d73b26cf9dc77440ed
languageName: node
linkType: hard
"create-require@npm:^1.1.0":
version: 1.1.1
resolution: "create-require@npm:1.1.1"
@ -2437,6 +2634,25 @@ __metadata:
languageName: node
linkType: hard
"crypto-browserify@npm:^3.12.0":
version: 3.12.0
resolution: "crypto-browserify@npm:3.12.0"
dependencies:
browserify-cipher: ^1.0.0
browserify-sign: ^4.0.0
create-ecdh: ^4.0.0
create-hash: ^1.1.0
create-hmac: ^1.1.0
diffie-hellman: ^5.0.0
inherits: ^2.0.1
pbkdf2: ^3.0.3
public-encrypt: ^4.0.0
randombytes: ^2.0.0
randomfill: ^1.0.3
checksum: c1609af82605474262f3eaa07daa0b2140026bd264ab316d4bf1170272570dbe02f0c49e29407fe0d3634f96c507c27a19a6765fb856fed854a625f9d15618e2
languageName: node
linkType: hard
"crypto-random-string@npm:^2.0.0":
version: 2.0.0
resolution: "crypto-random-string@npm:2.0.0"
@ -2605,6 +2821,16 @@ __metadata:
languageName: node
linkType: hard
"des.js@npm:^1.0.0":
version: 1.0.1
resolution: "des.js@npm:1.0.1"
dependencies:
inherits: ^2.0.1
minimalistic-assert: ^1.0.0
checksum: 1ec2eedd7ed6bd61dd5e0519fd4c96124e93bb22de8a9d211b02d63e5dd152824853d919bb2090f965cc0e3eb9c515950a9836b332020d810f9c71feb0fd7df4
languageName: node
linkType: hard
"detect-libc@npm:^2.0.0":
version: 2.0.1
resolution: "detect-libc@npm:2.0.1"
@ -2619,6 +2845,17 @@ __metadata:
languageName: node
linkType: hard
"diffie-hellman@npm:^5.0.0":
version: 5.0.3
resolution: "diffie-hellman@npm:5.0.3"
dependencies:
bn.js: ^4.1.0
miller-rabin: ^4.0.0
randombytes: ^2.0.0
checksum: 0e620f322170c41076e70181dd1c24e23b08b47dbb92a22a644f3b89b6d3834b0f8ee19e37916164e5eb1ee26d2aa836d6129f92723995267250a0b541811065
languageName: node
linkType: hard
"dir-glob@npm:^3.0.1":
version: 3.0.1
resolution: "dir-glob@npm:3.0.1"
@ -2737,6 +2974,21 @@ __metadata:
languageName: node
linkType: hard
"elliptic@npm:^6.5.3":
version: 6.5.4
resolution: "elliptic@npm:6.5.4"
dependencies:
bn.js: ^4.11.9
brorand: ^1.1.0
hash.js: ^1.0.0
hmac-drbg: ^1.0.1
inherits: ^2.0.4
minimalistic-assert: ^1.0.1
minimalistic-crypto-utils: ^1.0.1
checksum: d56d21fd04e97869f7ffcc92e18903b9f67f2d4637a23c860492fbbff5a3155fd9ca0184ce0c865dd6eb2487d234ce9551335c021c376cd2d3b7cb749c7d10f4
languageName: node
linkType: hard
"emoji-regex@npm:^8.0.0":
version: 8.0.0
resolution: "emoji-regex@npm:8.0.0"
@ -2832,7 +3084,7 @@ __metadata:
languageName: node
linkType: hard
"es-abstract@npm:^1.19.0, es-abstract@npm:^1.19.1, es-abstract@npm:^1.19.2, es-abstract@npm:^1.19.5":
"es-abstract@npm:^1.19.0, es-abstract@npm:^1.19.1, es-abstract@npm:^1.19.2, es-abstract@npm:^1.19.5, es-abstract@npm:^1.20.0":
version: 1.20.1
resolution: "es-abstract@npm:1.20.1"
dependencies:
@ -2883,6 +3135,13 @@ __metadata:
languageName: node
linkType: hard
"es6-error@npm:^4.1.1":
version: 4.1.1
resolution: "es6-error@npm:4.1.1"
checksum: ae41332a51ec1323da6bbc5d75b7803ccdeddfae17c41b6166ebbafc8e8beb7a7b80b884b7fab1cc80df485860ac3c59d78605e860bb4f8cd816b3d6ade0d010
languageName: node
linkType: hard
"esbuild-android-64@npm:0.14.44":
version: 0.14.44
resolution: "esbuild-android-64@npm:0.14.44"
@ -3424,6 +3683,17 @@ __metadata:
languageName: node
linkType: hard
"evp_bytestokey@npm:^1.0.0, evp_bytestokey@npm:^1.0.3":
version: 1.0.3
resolution: "evp_bytestokey@npm:1.0.3"
dependencies:
md5.js: ^1.3.4
node-gyp: latest
safe-buffer: ^5.1.1
checksum: ad4e1577f1a6b721c7800dcc7c733fe01f6c310732bb5bf2240245c2a5b45a38518b91d8be2c610611623160b9d1c0e91f1ce96d639f8b53e8894625cf20fa45
languageName: node
linkType: hard
"execa@npm:5.1.1":
version: 5.1.1
resolution: "execa@npm:5.1.1"
@ -3489,6 +3759,17 @@ __metadata:
languageName: node
linkType: hard
"fast-xml-parser@npm:^3.17.5":
version: 3.21.1
resolution: "fast-xml-parser@npm:3.21.1"
dependencies:
strnum: ^1.0.4
bin:
xml2js: cli.js
checksum: 73b9c907a424cc2f9b11a8a2f1b7448d936f1db6fa574b85cbe4be9739c2f77d99a827bb27d738a0db0047b20c71a5d663f64937fbdb9c38977fc6cd145221d2
languageName: node
linkType: hard
"fastq@npm:^1.6.0":
version: 1.11.0
resolution: "fastq@npm:1.11.0"
@ -3625,6 +3906,15 @@ __metadata:
languageName: node
linkType: hard
"for-each@npm:^0.3.3":
version: 0.3.3
resolution: "for-each@npm:0.3.3"
dependencies:
is-callable: ^1.1.3
checksum: 6c48ff2bc63362319c65e2edca4a8e1e3483a2fabc72fbe7feaf8c73db94fc7861bd53bc02c8a66a0c1dd709da6b04eec42e0abdd6b40ce47305ae92a25e5d28
languageName: node
linkType: hard
"form-data@npm:^3.0.0":
version: 3.0.1
resolution: "form-data@npm:3.0.1"
@ -3954,6 +4244,27 @@ __metadata:
languageName: node
linkType: hard
"hash-base@npm:^3.0.0":
version: 3.1.0
resolution: "hash-base@npm:3.1.0"
dependencies:
inherits: ^2.0.4
readable-stream: ^3.6.0
safe-buffer: ^5.2.0
checksum: 26b7e97ac3de13cb23fc3145e7e3450b0530274a9562144fc2bf5c1e2983afd0e09ed7cc3b20974ba66039fad316db463da80eb452e7373e780cbee9a0d2f2dc
languageName: node
linkType: hard
"hash.js@npm:^1.0.0, hash.js@npm:^1.0.3":
version: 1.1.7
resolution: "hash.js@npm:1.1.7"
dependencies:
inherits: ^2.0.3
minimalistic-assert: ^1.0.1
checksum: e350096e659c62422b85fa508e4b3669017311aa4c49b74f19f8e1bc7f3a54a584fdfd45326d4964d6011f2b2d882e38bea775a96046f2a61b7779a979629d8f
languageName: node
linkType: hard
"hasha@npm:5.2.2":
version: 5.2.2
resolution: "hasha@npm:5.2.2"
@ -3964,6 +4275,17 @@ __metadata:
languageName: node
linkType: hard
"hmac-drbg@npm:^1.0.1":
version: 1.0.1
resolution: "hmac-drbg@npm:1.0.1"
dependencies:
hash.js: ^1.0.3
minimalistic-assert: ^1.0.0
minimalistic-crypto-utils: ^1.0.1
checksum: bd30b6a68d7f22d63f10e1888aee497d7c2c5c0bb469e66bbdac99f143904d1dfe95f8131f95b3e86c86dd239963c9d972fcbe147e7cffa00e55d18585c43fe0
languageName: node
linkType: hard
"hoist-non-react-statics@npm:^3.3.0, hoist-non-react-statics@npm:^3.3.1, hoist-non-react-statics@npm:^3.3.2":
version: 3.3.2
resolution: "hoist-non-react-statics@npm:3.3.2"
@ -4181,7 +4503,7 @@ __metadata:
languageName: node
linkType: hard
"inherits@npm:2, inherits@npm:^2.0.3, inherits@npm:^2.0.4, inherits@npm:~2.0.1, inherits@npm:~2.0.3":
"inherits@npm:2, inherits@npm:^2.0.1, inherits@npm:^2.0.3, inherits@npm:^2.0.4, inherits@npm:~2.0.1, inherits@npm:~2.0.3":
version: 2.0.4
resolution: "inherits@npm:2.0.4"
checksum: 4a48a733847879d6cf6691860a6b1e3f0f4754176e4d71494c41f3475553768b10f84b5ce1d40fbd0e34e6bfbb864ee35858ad4dd2cf31e02fc4a154b724d7f1
@ -4220,6 +4542,23 @@ __metadata:
languageName: node
linkType: hard
"ipaddr.js@npm:^2.0.1":
version: 2.0.1
resolution: "ipaddr.js@npm:2.0.1"
checksum: dd194a394a843d470f88d17191b0948f383ed1c8e320813f850c336a0fcb5e9215d97ec26ca35ab4fbbd31392c8b3467f3e8344628029ed3710b2ff6b5d1034e
languageName: node
linkType: hard
"is-arguments@npm:^1.0.4":
version: 1.1.1
resolution: "is-arguments@npm:1.1.1"
dependencies:
call-bind: ^1.0.2
has-tostringtag: ^1.0.0
checksum: 7f02700ec2171b691ef3e4d0e3e6c0ba408e8434368504bb593d0d7c891c0dbfda6d19d30808b904a6cb1929bca648c061ba438c39f296c2a8ca083229c49f27
languageName: node
linkType: hard
"is-arrayish@npm:^0.2.1":
version: 0.2.1
resolution: "is-arrayish@npm:0.2.1"
@ -4243,6 +4582,13 @@ __metadata:
languageName: node
linkType: hard
"is-callable@npm:^1.1.3, is-callable@npm:^1.2.4":
version: 1.2.4
resolution: "is-callable@npm:1.2.4"
checksum: 1a28d57dc435797dae04b173b65d6d1e77d4f16276e9eff973f994eadcfdc30a017e6a597f092752a083c1103cceb56c91e3dadc6692fedb9898dfaba701575f
languageName: node
linkType: hard
"is-callable@npm:^1.1.4, is-callable@npm:^1.2.3":
version: 1.2.3
resolution: "is-callable@npm:1.2.3"
@ -4250,13 +4596,6 @@ __metadata:
languageName: node
linkType: hard
"is-callable@npm:^1.2.4":
version: 1.2.4
resolution: "is-callable@npm:1.2.4"
checksum: 1a28d57dc435797dae04b173b65d6d1e77d4f16276e9eff973f994eadcfdc30a017e6a597f092752a083c1103cceb56c91e3dadc6692fedb9898dfaba701575f
languageName: node
linkType: hard
"is-ci@npm:3.0.1":
version: 3.0.1
resolution: "is-ci@npm:3.0.1"
@ -4316,6 +4655,15 @@ __metadata:
languageName: node
linkType: hard
"is-generator-function@npm:^1.0.7":
version: 1.0.10
resolution: "is-generator-function@npm:1.0.10"
dependencies:
has-tostringtag: ^1.0.0
checksum: d54644e7dbaccef15ceb1e5d91d680eb5068c9ee9f9eb0a9e04173eb5542c9b51b5ab52c5537f5703e48d5fddfd376817c1ca07a84a407b7115b769d4bdde72b
languageName: node
linkType: hard
"is-glob@npm:^4.0.0, is-glob@npm:^4.0.1":
version: 4.0.1
resolution: "is-glob@npm:4.0.1"
@ -4451,6 +4799,19 @@ __metadata:
languageName: node
linkType: hard
"is-typed-array@npm:^1.1.3, is-typed-array@npm:^1.1.9":
version: 1.1.9
resolution: "is-typed-array@npm:1.1.9"
dependencies:
available-typed-arrays: ^1.0.5
call-bind: ^1.0.2
es-abstract: ^1.20.0
for-each: ^0.3.3
has-tostringtag: ^1.0.0
checksum: 11910f1e58755fef43bf0074e52fa5b932bf101ec65d613e0a83d40e8e4c6e3f2ee142d624ebc7624c091d3bbe921131f8db7d36ecbbb71909f2fe310c1faa65
languageName: node
linkType: hard
"is-unicode-supported@npm:^0.1.0":
version: 0.1.0
resolution: "is-unicode-supported@npm:0.1.0"
@ -4572,6 +4933,13 @@ __metadata:
languageName: node
linkType: hard
"json-stream@npm:^1.0.0":
version: 1.0.0
resolution: "json-stream@npm:1.0.0"
checksum: 2738069c6e8c66a7a49bf07be619ea05a45cfcf535090089efd955ed0c726de41013293eae417585639f36c2e1ddd00370f20cccc71381ba50c68ec1bee9d512
languageName: node
linkType: hard
"json5@npm:^1.0.1":
version: 1.0.1
resolution: "json5@npm:1.0.1"
@ -4985,6 +5353,17 @@ __metadata:
languageName: node
linkType: hard
"md5.js@npm:^1.3.4":
version: 1.3.5
resolution: "md5.js@npm:1.3.5"
dependencies:
hash-base: ^3.0.0
inherits: ^2.0.1
safe-buffer: ^5.1.2
checksum: 098494d885684bcc4f92294b18ba61b7bd353c23147fbc4688c75b45cb8590f5a95fd4584d742415dcc52487f7a1ef6ea611cfa1543b0dc4492fe026357f3f0c
languageName: node
linkType: hard
"media-typer@npm:0.3.0":
version: 0.3.0
resolution: "media-typer@npm:0.3.0"
@ -5023,6 +5402,18 @@ __metadata:
languageName: node
linkType: hard
"miller-rabin@npm:^4.0.0":
version: 4.0.1
resolution: "miller-rabin@npm:4.0.1"
dependencies:
bn.js: ^4.0.0
brorand: ^1.0.1
bin:
miller-rabin: bin/miller-rabin
checksum: 00cd1ab838ac49b03f236cc32a14d29d7d28637a53096bf5c6246a032a37749c9bd9ce7360cbf55b41b89b7d649824949ff12bc8eee29ac77c6b38eada619ece
languageName: node
linkType: hard
"mime-db@npm:1.48.0":
version: 1.48.0
resolution: "mime-db@npm:1.48.0"
@ -5037,6 +5428,13 @@ __metadata:
languageName: node
linkType: hard
"mime-db@npm:1.52.0":
version: 1.52.0
resolution: "mime-db@npm:1.52.0"
checksum: 0d99a03585f8b39d68182803b12ac601d9c01abfa28ec56204fa330bc9f3d1c5e14beb049bafadb3dbdf646dfb94b87e24d4ec7b31b7279ef906a8ea9b6a513f
languageName: node
linkType: hard
"mime-types@npm:^2.1.12":
version: 2.1.34
resolution: "mime-types@npm:2.1.34"
@ -5046,6 +5444,15 @@ __metadata:
languageName: node
linkType: hard
"mime-types@npm:^2.1.14":
version: 2.1.35
resolution: "mime-types@npm:2.1.35"
dependencies:
mime-db: 1.52.0
checksum: 89a5b7f1def9f3af5dad6496c5ed50191ae4331cc5389d7c521c8ad28d5fdad2d06fd81baf38fed813dc4e46bb55c8145bb0ff406330818c9cf712fb2e9b3836
languageName: node
linkType: hard
"mime-types@npm:~2.1.24":
version: 2.1.31
resolution: "mime-types@npm:2.1.31"
@ -5069,6 +5476,20 @@ __metadata:
languageName: node
linkType: hard
"minimalistic-assert@npm:^1.0.0, minimalistic-assert@npm:^1.0.1":
version: 1.0.1
resolution: "minimalistic-assert@npm:1.0.1"
checksum: cc7974a9268fbf130fb055aff76700d7e2d8be5f761fb5c60318d0ed010d839ab3661a533ad29a5d37653133385204c503bfac995aaa4236f4e847461ea32ba7
languageName: node
linkType: hard
"minimalistic-crypto-utils@npm:^1.0.1":
version: 1.0.1
resolution: "minimalistic-crypto-utils@npm:1.0.1"
checksum: 6e8a0422b30039406efd4c440829ea8f988845db02a3299f372fceba56ffa94994a9c0f2fd70c17f9969eedfbd72f34b5070ead9656a34d3f71c0bd72583a0ed
languageName: node
linkType: hard
"minimatch@npm:^3.0.2, minimatch@npm:^3.1.2":
version: 3.1.2
resolution: "minimatch@npm:3.1.2"
@ -5101,6 +5522,31 @@ __metadata:
languageName: node
linkType: hard
"minio@npm:^7.0.28":
version: 7.0.28
resolution: "minio@npm:7.0.28"
dependencies:
async: ^3.1.0
block-stream2: ^2.0.0
browser-or-node: ^1.3.0
buffer-crc32: ^0.2.13
crypto-browserify: ^3.12.0
es6-error: ^4.1.1
fast-xml-parser: ^3.17.5
ipaddr.js: ^2.0.1
json-stream: ^1.0.0
lodash: ^4.17.21
mime-types: ^2.1.14
mkdirp: ^0.5.1
querystring: 0.2.0
through2: ^3.0.1
web-encoding: ^1.1.5
xml: ^1.0.0
xml2js: ^0.4.15
checksum: 07ca35ff232a432dc74da63352ad3b73cb8e4caad1d80e7d1ba446a7b8c5a0c4d73fa09c63fd94a0e3a153b9269d06dc2786a5ddad2bec74bd0257ddd1ddc2f4
languageName: node
linkType: hard
"minipass-collect@npm:^1.0.2":
version: 1.0.2
resolution: "minipass-collect@npm:1.0.2"
@ -5180,6 +5626,17 @@ __metadata:
languageName: node
linkType: hard
"mkdirp@npm:^0.5.1":
version: 0.5.6
resolution: "mkdirp@npm:0.5.6"
dependencies:
minimist: ^1.2.6
bin:
mkdirp: bin/cmd.js
checksum: 0c91b721bb12c3f9af4b77ebf73604baf350e64d80df91754dc509491ae93bf238581e59c7188360cec7cb62fc4100959245a42cfe01834efedc5e9d068376c2
languageName: node
linkType: hard
"mkdirp@npm:^0.5.4":
version: 0.5.5
resolution: "mkdirp@npm:0.5.5"
@ -5815,6 +6272,19 @@ __metadata:
languageName: node
linkType: hard
"parse-asn1@npm:^5.0.0, parse-asn1@npm:^5.1.5":
version: 5.1.6
resolution: "parse-asn1@npm:5.1.6"
dependencies:
asn1.js: ^5.2.0
browserify-aes: ^1.0.0
evp_bytestokey: ^1.0.0
pbkdf2: ^3.0.3
safe-buffer: ^5.1.1
checksum: 9243311d1f88089bc9f2158972aa38d1abd5452f7b7cabf84954ed766048fe574d434d82c6f5a39b988683e96fb84cd933071dda38927e03469dc8c8d14463c7
languageName: node
linkType: hard
"parse-json@npm:^4.0.0":
version: 4.0.0
resolution: "parse-json@npm:4.0.0"
@ -5895,6 +6365,19 @@ __metadata:
languageName: node
linkType: hard
"pbkdf2@npm:^3.0.3":
version: 3.1.2
resolution: "pbkdf2@npm:3.1.2"
dependencies:
create-hash: ^1.1.2
create-hmac: ^1.1.4
ripemd160: ^2.0.1
safe-buffer: ^5.0.1
sha.js: ^2.4.8
checksum: 2c950a100b1da72123449208e231afc188d980177d021d7121e96a2de7f2abbc96ead2b87d03d8fe5c318face097f203270d7e27908af9f471c165a4e8e69c92
languageName: node
linkType: hard
"pg-connection-string@npm:^2.5.0":
version: 2.5.0
resolution: "pg-connection-string@npm:2.5.0"
@ -6193,6 +6676,20 @@ __metadata:
languageName: node
linkType: hard
"public-encrypt@npm:^4.0.0":
version: 4.0.3
resolution: "public-encrypt@npm:4.0.3"
dependencies:
bn.js: ^4.1.0
browserify-rsa: ^4.0.0
create-hash: ^1.1.0
parse-asn1: ^5.0.0
randombytes: ^2.0.1
safe-buffer: ^5.1.2
checksum: 215d446e43cef021a20b67c1df455e5eea134af0b1f9b8a35f9e850abf32991b0c307327bc5b9bc07162c288d5cdb3d4a783ea6c6640979ed7b5017e3e0c9935
languageName: node
linkType: hard
"punycode@npm:1.3.2":
version: 1.3.2
resolution: "punycode@npm:1.3.2"
@ -6221,6 +6718,25 @@ __metadata:
languageName: node
linkType: hard
"randombytes@npm:^2.0.0, randombytes@npm:^2.0.1, randombytes@npm:^2.0.5":
version: 2.1.0
resolution: "randombytes@npm:2.1.0"
dependencies:
safe-buffer: ^5.1.0
checksum: d779499376bd4cbb435ef3ab9a957006c8682f343f14089ed5f27764e4645114196e75b7f6abf1cbd84fd247c0cb0651698444df8c9bf30e62120fbbc52269d6
languageName: node
linkType: hard
"randomfill@npm:^1.0.3":
version: 1.0.4
resolution: "randomfill@npm:1.0.4"
dependencies:
randombytes: ^2.0.5
safe-buffer: ^5.1.0
checksum: 33734bb578a868d29ee1b8555e21a36711db084065d94e019a6d03caa67debef8d6a1bfd06a2b597e32901ddc761ab483a85393f0d9a75838f1912461d4dbfc7
languageName: node
linkType: hard
"react-dom@npm:^18.2.0":
version: 18.2.0
resolution: "react-dom@npm:18.2.0"
@ -6399,6 +6915,17 @@ __metadata:
languageName: node
linkType: hard
"readable-stream@npm:2 || 3, readable-stream@npm:^3.1.1, readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0":
version: 3.6.0
resolution: "readable-stream@npm:3.6.0"
dependencies:
inherits: ^2.0.3
string_decoder: ^1.1.1
util-deprecate: ^1.0.1
checksum: d4ea81502d3799439bb955a3a5d1d808592cf3133350ed352aeaa499647858b27b1c4013984900238b0873ec8d0d8defce72469fb7a83e61d53f5ad61cb80dc8
languageName: node
linkType: hard
"readable-stream@npm:^2.0.0, readable-stream@npm:^2.0.2, readable-stream@npm:^2.0.5, readable-stream@npm:^2.2.2":
version: 2.3.7
resolution: "readable-stream@npm:2.3.7"
@ -6414,17 +6941,6 @@ __metadata:
languageName: node
linkType: hard
"readable-stream@npm:^3.1.1, readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0":
version: 3.6.0
resolution: "readable-stream@npm:3.6.0"
dependencies:
inherits: ^2.0.3
string_decoder: ^1.1.1
util-deprecate: ^1.0.1
checksum: d4ea81502d3799439bb955a3a5d1d808592cf3133350ed352aeaa499647858b27b1c4013984900238b0873ec8d0d8defce72469fb7a83e61d53f5ad61cb80dc8
languageName: node
linkType: hard
"readable-stream@npm:~1.0.17, readable-stream@npm:~1.0.27-1":
version: 1.0.34
resolution: "readable-stream@npm:1.0.34"
@ -6650,6 +7166,16 @@ __metadata:
languageName: node
linkType: hard
"ripemd160@npm:^2.0.0, ripemd160@npm:^2.0.1":
version: 2.0.2
resolution: "ripemd160@npm:2.0.2"
dependencies:
hash-base: ^3.0.0
inherits: ^2.0.1
checksum: 006accc40578ee2beae382757c4ce2908a826b27e2b079efdcd2959ee544ddf210b7b5d7d5e80467807604244e7388427330f5c6d4cd61e6edaddc5773ccc393
languageName: node
linkType: hard
"run-parallel@npm:^1.1.9":
version: 1.2.0
resolution: "run-parallel@npm:1.2.0"
@ -6659,7 +7185,7 @@ __metadata:
languageName: node
linkType: hard
"safe-buffer@npm:^5.0.1, safe-buffer@npm:~5.2.0":
"safe-buffer@npm:^5.0.1, safe-buffer@npm:^5.1.0, safe-buffer@npm:^5.1.1, safe-buffer@npm:^5.1.2, safe-buffer@npm:^5.2.0, safe-buffer@npm:~5.2.0":
version: 5.2.1
resolution: "safe-buffer@npm:5.2.1"
checksum: b99c4b41fdd67a6aaf280fcd05e9ffb0813654894223afb78a31f14a19ad220bba8aba1cb14eddce1fcfb037155fe6de4e861784eb434f7d11ed58d1e70dd491
@ -6682,7 +7208,7 @@ __metadata:
languageName: node
linkType: hard
"safer-buffer@npm:>= 2.1.2 < 3.0.0":
"safer-buffer@npm:>= 2.1.2 < 3.0.0, safer-buffer@npm:^2.1.0":
version: 2.1.2
resolution: "safer-buffer@npm:2.1.2"
checksum: cab8f25ae6f1434abee8d80023d7e72b598cf1327164ddab31003c51215526801e40b66c5e65d658a0af1e9d6478cadcb4c745f4bd6751f97d8644786c0978b0
@ -6766,6 +7292,18 @@ __metadata:
languageName: node
linkType: hard
"sha.js@npm:^2.4.0, sha.js@npm:^2.4.8":
version: 2.4.11
resolution: "sha.js@npm:2.4.11"
dependencies:
inherits: ^2.0.1
safe-buffer: ^5.0.1
bin:
sha.js: ./bin.js
checksum: ebd3f59d4b799000699097dadb831c8e3da3eb579144fd7eb7a19484cbcbb7aca3c68ba2bb362242eb09e33217de3b4ea56e4678184c334323eca24a58e3ad07
languageName: node
linkType: hard
"shebang-command@npm:^1.2.0":
version: 1.2.0
resolution: "shebang-command@npm:1.2.0"
@ -7150,6 +7688,13 @@ __metadata:
languageName: node
linkType: hard
"strnum@npm:^1.0.4":
version: 1.0.5
resolution: "strnum@npm:1.0.5"
checksum: 651b2031db5da1bf4a77fdd2f116a8ac8055157c5420f5569f64879133825915ad461513e7202a16d7fec63c54fd822410d0962f8ca12385c4334891b9ae6dd2
languageName: node
linkType: hard
"style-to-js@npm:1.1.0":
version: 1.1.0
resolution: "style-to-js@npm:1.1.0"
@ -7347,6 +7892,16 @@ __metadata:
languageName: node
linkType: hard
"through2@npm:^3.0.1":
version: 3.0.2
resolution: "through2@npm:3.0.2"
dependencies:
inherits: ^2.0.4
readable-stream: 2 || 3
checksum: 47c9586c735e7d9cbbc1029f3ff422108212f7cc42e06d5cc9fff7901e659c948143c790e0d0d41b1b5f89f1d1200bdd200c7b72ad34f42f9edbeb32ea49e8b7
languageName: node
linkType: hard
"through2@npm:~0.4.1":
version: 0.4.2
resolution: "through2@npm:0.4.2"
@ -7726,6 +8281,20 @@ __metadata:
languageName: node
linkType: hard
"util@npm:^0.12.3":
version: 0.12.4
resolution: "util@npm:0.12.4"
dependencies:
inherits: ^2.0.3
is-arguments: ^1.0.4
is-generator-function: ^1.0.7
is-typed-array: ^1.1.3
safe-buffer: ^5.1.2
which-typed-array: ^1.1.2
checksum: 8eac7a6e6b341c0f1b3eb73bbe5dfcae31a7e9699c8fc3266789f3e95f7637946a7700dcf1904dbd3749a58a36760ebf7acf4bb5b717f7468532a8a79f44eff0
languageName: node
linkType: hard
"uuid@npm:8.0.0":
version: 8.0.0
resolution: "uuid@npm:8.0.0"
@ -7795,6 +8364,19 @@ __metadata:
languageName: node
linkType: hard
"web-encoding@npm:^1.1.5":
version: 1.1.5
resolution: "web-encoding@npm:1.1.5"
dependencies:
"@zxing/text-encoding": 0.9.0
util: ^0.12.3
dependenciesMeta:
"@zxing/text-encoding":
optional: true
checksum: 2234a2b122f41006ce07859b3c0bf2e18f46144fda2907d5db0b571b76aa5c26977c646100ad9c00d2f8a4f6f2b848bc02147845d8c447ab365ec4eff376338d
languageName: node
linkType: hard
"webidl-conversions@npm:^3.0.0":
version: 3.0.1
resolution: "webidl-conversions@npm:3.0.1"
@ -7825,6 +8407,20 @@ __metadata:
languageName: node
linkType: hard
"which-typed-array@npm:^1.1.2":
version: 1.1.8
resolution: "which-typed-array@npm:1.1.8"
dependencies:
available-typed-arrays: ^1.0.5
call-bind: ^1.0.2
es-abstract: ^1.20.0
for-each: ^0.3.3
has-tostringtag: ^1.0.0
is-typed-array: ^1.1.9
checksum: bedf4d30a738e848404fe67fe0ace33433a7298cf3f5a4d4b2c624ba99c4d25f06a7fd6f3566c3d16af5f8a54f0c6293cbfded5b1208ce11812753990223b45a
languageName: node
linkType: hard
"which@npm:^1.2.9":
version: 1.3.1
resolution: "which@npm:1.3.1"
@ -7891,7 +8487,7 @@ __metadata:
languageName: node
linkType: hard
"xml2js@npm:^0.4.19":
"xml2js@npm:^0.4.15, xml2js@npm:^0.4.19":
version: 0.4.23
resolution: "xml2js@npm:0.4.23"
dependencies:
@ -7901,6 +8497,13 @@ __metadata:
languageName: node
linkType: hard
"xml@npm:^1.0.0":
version: 1.0.1
resolution: "xml@npm:1.0.1"
checksum: 11b5545ef3f8fec3fa29ce251f50ad7b6c97c103ed4d851306ec23366f5fa4699dd6a942262df52313a0cd1840ab26256da253c023bad3309d8ce46fe6020ca0
languageName: node
linkType: hard
"xmlbuilder@npm:~11.0.0":
version: 11.0.1
resolution: "xmlbuilder@npm:11.0.1"
@ -7996,6 +8599,7 @@ __metadata:
"@prisma/sdk": ^3.15.2
"@reduxjs/toolkit": ^1.8.2
"@types/cookie": ^0.5.1
"@types/minio": ^7.0.13
"@types/multer": ^1.4.7
"@types/node": ^15.12.2
argon2: ^0.28.5
@ -8009,6 +8613,7 @@ __metadata:
fecha: ^4.2.3
fflate: ^0.7.3
find-my-way: ^6.3.0
minio: ^7.0.28
multer: ^1.4.5-lts.1
next: ^12.1.6
npm-run-all: ^4.1.5