@rtsee/files-vault 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/FileVault.d.ts +29 -0
- package/dist/interfaces/FileVault.d.ts.map +1 -0
- package/dist/interfaces/FileVault.js +3 -0
- package/dist/interfaces/FileVault.js.map +1 -0
- package/dist/interfaces/index.d.ts +2 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/index.js +18 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/models/FileVault.d.ts +7 -0
- package/dist/models/FileVault.d.ts.map +1 -0
- package/dist/models/FileVault.js +14 -0
- package/dist/models/FileVault.js.map +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +18 -0
- package/dist/models/index.js.map +1 -0
- package/package.json +48 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./models"), exports);
|
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface IKeySecret {
|
|
2
|
+
key: string;
|
|
3
|
+
secret: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IS3VaultOptions extends IKeySecret {
|
|
6
|
+
bucket: string;
|
|
7
|
+
region: string;
|
|
8
|
+
useAccelerateEndpoint: boolean;
|
|
9
|
+
expires: number;
|
|
10
|
+
acl?: string;
|
|
11
|
+
getKey(req: any, filename: any, metadata: any): string;
|
|
12
|
+
}
|
|
13
|
+
export interface ICompanionServer {
|
|
14
|
+
host: string;
|
|
15
|
+
protocol: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IFileVaultOptions {
|
|
18
|
+
providerOptions?: {
|
|
19
|
+
drive?: IKeySecret;
|
|
20
|
+
dropbox?: IKeySecret;
|
|
21
|
+
facebook?: IKeySecret;
|
|
22
|
+
};
|
|
23
|
+
s3: IS3VaultOptions;
|
|
24
|
+
server: ICompanionServer;
|
|
25
|
+
filePath: string;
|
|
26
|
+
secret: string;
|
|
27
|
+
corsOrigins: string[];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=FileVault.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileVault.d.ts","sourceRoot":"","sources":["../../src/interfaces/FileVault.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,GAAG,MAAM,CAAC;CACxD;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE;QAChB,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,OAAO,CAAC,EAAE,UAAU,CAAC;QACrB,QAAQ,CAAC,EAAE,UAAU,CAAC;KACvB,CAAC;IACF,EAAE,EAAE,eAAe,CAAC;IACpB,MAAM,EAAE,gBAAgB,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileVault.js","sourceRoot":"","sources":["../../src/interfaces/FileVault.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FileVault"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileVault.d.ts","sourceRoot":"","sources":["../../src/models/FileVault.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGlC,qBAAa,SAAS;IACpB,SAAS,EAAE,OAAO,CAAC;gBAEP,OAAO,EAAE,iBAAiB;CAGvC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FileVault = void 0;
|
|
7
|
+
const companion_1 = __importDefault(require("@uppy/companion"));
|
|
8
|
+
class FileVault {
|
|
9
|
+
constructor(options) {
|
|
10
|
+
this.companion = companion_1.default.app(options).app;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.FileVault = FileVault;
|
|
14
|
+
//# sourceMappingURL=FileVault.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileVault.js","sourceRoot":"","sources":["../../src/models/FileVault.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAuC;AAKvC,MAAa,SAAS;IAGpB,YAAY,OAA0B;QACpC,IAAI,CAAC,SAAS,GAAG,mBAAS,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC;IAC9C,CAAC;CACF;AAND,8BAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./FileVault"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rtsee/files-vault",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"license": "ISC",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "dist/index",
|
|
7
|
+
"types": "dist/index",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git@github.com:thewerf/rtsee.git",
|
|
14
|
+
"directory": "packages/@rtsee/files-vault"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"prepublishOnly": "yarn build",
|
|
18
|
+
"clean": "rm -rf ./dist",
|
|
19
|
+
"build": "yarn clean && yarn compile",
|
|
20
|
+
"compile": "tsc -p tsconfig.json",
|
|
21
|
+
"watch": "tsc -p tsconfig.json --watch",
|
|
22
|
+
"lint-file:eslint": "yarn eslint",
|
|
23
|
+
"lint-file:prettier": "yarn prettier --check",
|
|
24
|
+
"lint:eslint": "yarn lint-file:eslint 'src/**/*.ts'",
|
|
25
|
+
"lint:prettier": "yarn lint-file:prettier './**/*.{ts,js,json,css,md}' --ignore-path ../../.prettierignore"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/jest": "^26.0.24",
|
|
29
|
+
"@types/node": "~24.0.14",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
31
|
+
"@typescript-eslint/parser": "^6.5.0",
|
|
32
|
+
"eslint": "^7.32.0",
|
|
33
|
+
"eslint-config-prettier": "^8.3.0",
|
|
34
|
+
"eslint-plugin-jest": "^23.1.1",
|
|
35
|
+
"jest": "^27.0.6",
|
|
36
|
+
"jest-watch-yarn-workspaces": "^1.1.0",
|
|
37
|
+
"prettier": "^2.3.2",
|
|
38
|
+
"ts-jest": "^27.0.3",
|
|
39
|
+
"typescript": "5.8.3"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@uppy/companion": "6.1.0"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"gitHead": "c0b08f7968545a4aad3fceef3ff1727c4058865d"
|
|
48
|
+
}
|