Skip to content

Commit

Permalink
Forked minio npm package to @wekanteam/minio to update package depend…
Browse files Browse the repository at this point in the history
…encies. S3/MinIO support In Progress.

Thanks to xet7 !

Related #142
  • Loading branch information
xet7 committed Jan 16, 2023
1 parent 617d4f9 commit cd1750f
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 65 deletions.
4 changes: 2 additions & 2 deletions models/attachments.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { isFileValid } from './fileValidation';
import { createBucket } from './lib/grid/createBucket';
import fs from 'fs';
import path from 'path';
import { AttachmentStoreStrategyFilesystem, AttachmentStoreStrategyGridFs} from '/models/lib/attachmentStoreStrategy';
import FileStoreStrategyFactory, {moveToStorage, rename, STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS} from '/models/lib/fileStoreStrategy';
import { AttachmentStoreStrategyFilesystem, AttachmentStoreStrategyGridFs, AttachmentStoreStrategyS3 } from '/models/lib/attachmentStoreStrategy';
import FileStoreStrategyFactory, {moveToStorage, rename, STORAGE_NAME_FILESYSTEM, STORAGE_NAME_GRIDFS, STORAGE_NAME_S3} from '/models/lib/fileStoreStrategy';

let attachmentUploadExternalProgram;
let attachmentUploadMimeTypes = [];
Expand Down
2 changes: 1 addition & 1 deletion models/lib/fileStoreStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createObjectId } from './grid/createObjectId';
import { httpStreamOutput } from './httpStream.js';
//import {} from './s3/Server-side-file-store.js';
import { ObjectID } from 'bson';
var Minio = require('minio');
var Minio = require('@wekanteam/minio');

export const STORAGE_NAME_FILESYSTEM = "fs";
export const STORAGE_NAME_GRIDFS = "gridfs";
Expand Down
111 changes: 50 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@babel/runtime": "^7.15.4",
"@mapbox/node-pre-gyp": "^1.0.8",
"@wekanteam/markdown-it-mermaid": "^0.6.2",
"@wekanteam/minio": "^7.0.34",
"ajv": "^6.12.6",
"babel-runtime": "^6.26.0",
"bcryptjs": "^2.4.3",
Expand All @@ -50,7 +51,6 @@
"markdown-it-mathjax3": "^4.3.1",
"meteor-accounts-t9n": "^2.6.0",
"meteor-node-stubs": "^1.1.0",
"minio": "^7.0.32",
"moment": "^2.29.4",
"nodemailer": "^6.6.3",
"os": "^0.1.2",
Expand Down

0 comments on commit cd1750f

Please sign in to comment.