Complete Email Sortierer implementation with Appwrite and Stripe integration
This commit is contained in:
23
server/node_modules/node-appwrite/dist/inputFile.js
generated
vendored
Normal file
23
server/node_modules/node-appwrite/dist/inputFile.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
var nodeFetchNativeWithAgent = require('node-fetch-native-with-agent');
|
||||
var fs = require('fs');
|
||||
|
||||
class InputFile {
|
||||
static fromBuffer(parts, name) {
|
||||
return new nodeFetchNativeWithAgent.File([parts], name);
|
||||
}
|
||||
static fromPath(path, name) {
|
||||
const realPath = fs.realpathSync(path);
|
||||
const contents = fs.readFileSync(realPath);
|
||||
return this.fromBuffer(contents, name);
|
||||
}
|
||||
static fromPlainText(content, name) {
|
||||
const arrayBytes = new TextEncoder().encode(content);
|
||||
return this.fromBuffer(arrayBytes, name);
|
||||
}
|
||||
}
|
||||
|
||||
exports.InputFile = InputFile;
|
||||
//# sourceMappingURL=out.js.map
|
||||
//# sourceMappingURL=inputFile.js.map
|
||||
Reference in New Issue
Block a user