@n8n/blob-storage 1.0.0
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/LICENSE.md +88 -0
- package/README.md +8 -0
- package/dist/azure-blob/azure-blob.config.d.ts +8 -0
- package/dist/azure-blob/azure-blob.config.js +52 -0
- package/dist/azure-blob/azure-blob.config.js.map +1 -0
- package/dist/azure-blob/azure-blob.service.ee.d.ts +25 -0
- package/dist/azure-blob/azure-blob.service.ee.js +157 -0
- package/dist/azure-blob/azure-blob.service.ee.js.map +1 -0
- package/dist/azure-blob/index.d.ts +2 -0
- package/dist/azure-blob/index.js +8 -0
- package/dist/azure-blob/index.js.map +1 -0
- package/dist/build.tsbuildinfo +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/object-store/index.d.ts +3 -0
- package/dist/object-store/index.js +8 -0
- package/dist/object-store/index.js.map +1 -0
- package/dist/object-store/object-store.config.d.ts +21 -0
- package/dist/object-store/object-store.config.js +93 -0
- package/dist/object-store/object-store.config.js.map +1 -0
- package/dist/object-store/object-store.service.ee.d.ts +49 -0
- package/dist/object-store/object-store.service.ee.js +290 -0
- package/dist/object-store/object-store.service.ee.js.map +1 -0
- package/dist/object-store/types.d.ts +8 -0
- package/dist/object-store/types.js +3 -0
- package/dist/object-store/types.js.map +1 -0
- package/dist/stream-utils.d.ts +2 -0
- package/dist/stream-utils.js +54 -0
- package/dist/stream-utils.js.map +1 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +67 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# License
|
|
2
|
+
|
|
3
|
+
Portions of this software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
- Content of branches other than the main branch (i.e. "master") are not licensed.
|
|
6
|
+
- Source code files that contain ".ee." in their filename or ".ee" in their dirname are NOT licensed under
|
|
7
|
+
the Sustainable Use License.
|
|
8
|
+
To use source code files that contain ".ee." in their filename or ".ee" in their dirname you must hold a
|
|
9
|
+
valid n8n Enterprise License specifically allowing you access to such source code files and as defined
|
|
10
|
+
in "LICENSE_EE.md".
|
|
11
|
+
- All third party components incorporated into the n8n Software are licensed under the original license
|
|
12
|
+
provided by the owner of the applicable component.
|
|
13
|
+
- Content outside of the above mentioned files or restrictions is available under the "Sustainable Use
|
|
14
|
+
License" as defined below.
|
|
15
|
+
|
|
16
|
+
## Sustainable Use License
|
|
17
|
+
|
|
18
|
+
Version 1.0
|
|
19
|
+
|
|
20
|
+
### Acceptance
|
|
21
|
+
|
|
22
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
23
|
+
|
|
24
|
+
### Copyright License
|
|
25
|
+
|
|
26
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license
|
|
27
|
+
to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject
|
|
28
|
+
to the limitations below.
|
|
29
|
+
|
|
30
|
+
### Limitations
|
|
31
|
+
|
|
32
|
+
You may use or modify the software only for your own internal business purposes or for non-commercial or
|
|
33
|
+
personal use. You may distribute the software or provide it to others only if you do so free of charge for
|
|
34
|
+
non-commercial purposes. You may not alter, remove, or obscure any licensing, copyright, or other notices of
|
|
35
|
+
the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
|
|
36
|
+
|
|
37
|
+
### Patents
|
|
38
|
+
|
|
39
|
+
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to
|
|
40
|
+
license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case
|
|
41
|
+
subject to the limitations and conditions in this license. This license does not cover any patent claims that
|
|
42
|
+
you cause to be infringed by modifications or additions to the software. If you or your company make any
|
|
43
|
+
written claim that the software infringes or contributes to infringement of any patent, your patent license
|
|
44
|
+
for the software granted under these terms ends immediately. If your company makes such a claim, your patent
|
|
45
|
+
license ends immediately for work on behalf of your company.
|
|
46
|
+
|
|
47
|
+
### Notices
|
|
48
|
+
|
|
49
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these
|
|
50
|
+
terms. If you modify the software, you must include in any modified copies of the software a prominent notice
|
|
51
|
+
stating that you have modified the software.
|
|
52
|
+
|
|
53
|
+
### No Other Rights
|
|
54
|
+
|
|
55
|
+
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
56
|
+
|
|
57
|
+
### Termination
|
|
58
|
+
|
|
59
|
+
If you use the software in violation of these terms, such use is not licensed, and your license will
|
|
60
|
+
automatically terminate. If the licensor provides you with a notice of your violation, and you cease all
|
|
61
|
+
violation of this license no later than 30 days after you receive that notice, your license will be reinstated
|
|
62
|
+
retroactively. However, if you violate these terms after such reinstatement, any additional violation of these
|
|
63
|
+
terms will cause your license to terminate automatically and permanently.
|
|
64
|
+
|
|
65
|
+
### No Liability
|
|
66
|
+
|
|
67
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will
|
|
68
|
+
not be liable to you for any damages arising out of these terms or the use or nature of the software, under
|
|
69
|
+
any kind of legal claim.
|
|
70
|
+
|
|
71
|
+
### Definitions
|
|
72
|
+
|
|
73
|
+
The “licensor” is the entity offering these terms.
|
|
74
|
+
|
|
75
|
+
The “software” is the software the licensor makes available under these terms, including any portion of it.
|
|
76
|
+
|
|
77
|
+
“You” refers to the individual or entity agreeing to these terms.
|
|
78
|
+
|
|
79
|
+
“Your company” is any legal entity, sole proprietorship, or other kind of organization that you work for, plus
|
|
80
|
+
all organizations that have control over, are under the control of, or are under common control with that
|
|
81
|
+
organization. Control means ownership of substantially all the assets of an entity, or the power to direct its
|
|
82
|
+
management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
83
|
+
|
|
84
|
+
“Your license” is the license granted to you for the software under these terms.
|
|
85
|
+
|
|
86
|
+
“Use” means anything you do with the software requiring your license.
|
|
87
|
+
|
|
88
|
+
“Trademark” means trademarks, service marks, and similar rights.
|
package/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# @n8n/blob-storage
|
|
2
|
+
|
|
3
|
+
Blob storage layer for n8n. Hosts the external-storage clients used to persist blobs (execution data, binary data) outside the database:
|
|
4
|
+
|
|
5
|
+
- `ObjectStoreService` (`@n8n/blob-storage/object-store`): S3-compatible object storage
|
|
6
|
+
- `AzureBlobService` (`@n8n/blob-storage/azure-blob`): Azure Blob Storage
|
|
7
|
+
|
|
8
|
+
The root entrypoint is free of cloud SDK imports: it exposes only types, configs, and stream utilities. The services live behind the subpath exports above and are meant to be loaded with `await import()` so the S3/Azure SDKs are pulled in only when external storage is configured.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AzureBlobConfig = void 0;
|
|
13
|
+
const config_1 = require("@n8n/config");
|
|
14
|
+
let AzureBlobConfig = class AzureBlobConfig {
|
|
15
|
+
constructor() {
|
|
16
|
+
this.connectionString = '';
|
|
17
|
+
this.accountName = '';
|
|
18
|
+
this.accountKey = '';
|
|
19
|
+
this.containerName = '';
|
|
20
|
+
this.endpoint = '';
|
|
21
|
+
this.authAutoDetect = false;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.AzureBlobConfig = AzureBlobConfig;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, config_1.Env)('N8N_EXTERNAL_STORAGE_AZURE_CONNECTION_STRING'),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], AzureBlobConfig.prototype, "connectionString", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, config_1.Env)('N8N_EXTERNAL_STORAGE_AZURE_ACCOUNT_NAME'),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], AzureBlobConfig.prototype, "accountName", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, config_1.Env)('N8N_EXTERNAL_STORAGE_AZURE_ACCOUNT_KEY'),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AzureBlobConfig.prototype, "accountKey", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, config_1.Env)('N8N_EXTERNAL_STORAGE_AZURE_CONTAINER_NAME'),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AzureBlobConfig.prototype, "containerName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, config_1.Env)('N8N_EXTERNAL_STORAGE_AZURE_ENDPOINT'),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], AzureBlobConfig.prototype, "endpoint", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, config_1.Env)('N8N_EXTERNAL_STORAGE_AZURE_AUTH_AUTO_DETECT'),
|
|
47
|
+
__metadata("design:type", Boolean)
|
|
48
|
+
], AzureBlobConfig.prototype, "authAutoDetect", void 0);
|
|
49
|
+
exports.AzureBlobConfig = AzureBlobConfig = __decorate([
|
|
50
|
+
config_1.Config
|
|
51
|
+
], AzureBlobConfig);
|
|
52
|
+
//# sourceMappingURL=azure-blob.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azure-blob.config.js","sourceRoot":"","sources":["../../src/azure-blob/azure-blob.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAA0C;AAGnC,IAAM,eAAe,GAArB,MAAM,eAAe;IAArB;QAMN,qBAAgB,GAAW,EAAE,CAAC;QAI9B,gBAAW,GAAW,EAAE,CAAC;QAIzB,eAAU,GAAW,EAAE,CAAC;QAIxB,kBAAa,GAAW,EAAE,CAAC;QAI3B,aAAQ,GAAW,EAAE,CAAC;QAOtB,mBAAc,GAAY,KAAK,CAAC;IACjC,CAAC;CAAA,CAAA;;AAxBA;IADC,IAAA,YAAG,EAAC,8CAA8C,CAAC;;yDACtB;AAI9B;IADC,IAAA,YAAG,EAAC,yCAAyC,CAAC;;oDACtB;AAIzB;IADC,IAAA,YAAG,EAAC,wCAAwC,CAAC;;mDACtB;AAIxB;IADC,IAAA,YAAG,EAAC,2CAA2C,CAAC;;sDACtB;AAI3B;IADC,IAAA,YAAG,EAAC,qCAAqC,CAAC;;iDACrB;AAOtB;IADC,IAAA,YAAG,EAAC,6CAA6C,CAAC;;uDACnB;0BA7BpB,eAAe;IAD3B,eAAM;GACM,eAAe,CA8B3B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Logger } from '@n8n/backend-common';
|
|
2
|
+
import { Readable } from 'node:stream';
|
|
3
|
+
import { AzureBlobConfig } from './azure-blob.config';
|
|
4
|
+
import type { BlobMetadata, PreWriteBlobMetadata } from '../types';
|
|
5
|
+
export declare class AzureBlobService {
|
|
6
|
+
private readonly logger;
|
|
7
|
+
private readonly config;
|
|
8
|
+
private readonly containerClient;
|
|
9
|
+
private isReady;
|
|
10
|
+
constructor(logger: Logger, config: AzureBlobConfig);
|
|
11
|
+
private buildContainerClient;
|
|
12
|
+
init(): Promise<void>;
|
|
13
|
+
checkConnection(): Promise<void>;
|
|
14
|
+
put(blobName: string, body: Buffer, metadata?: PreWriteBlobMetadata): Promise<void>;
|
|
15
|
+
get(blobName: string, opts: {
|
|
16
|
+
mode: 'buffer';
|
|
17
|
+
}): Promise<Buffer>;
|
|
18
|
+
get(blobName: string, opts: {
|
|
19
|
+
mode: 'stream';
|
|
20
|
+
chunkSize?: number;
|
|
21
|
+
}): Promise<Readable>;
|
|
22
|
+
getMetadata(blobName: string): Promise<BlobMetadata>;
|
|
23
|
+
delete(blobName: string): Promise<void>;
|
|
24
|
+
private handleError;
|
|
25
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AzureBlobService = void 0;
|
|
13
|
+
const identity_1 = require("@azure/identity");
|
|
14
|
+
const storage_blob_1 = require("@azure/storage-blob");
|
|
15
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
16
|
+
const di_1 = require("@n8n/di");
|
|
17
|
+
const ensure_error_1 = require("@n8n/utils/errors/ensure-error");
|
|
18
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
19
|
+
const node_stream_1 = require("node:stream");
|
|
20
|
+
const azure_blob_config_1 = require("./azure-blob.config");
|
|
21
|
+
const stream_utils_1 = require("../stream-utils");
|
|
22
|
+
let AzureBlobService = class AzureBlobService {
|
|
23
|
+
constructor(logger, config) {
|
|
24
|
+
this.logger = logger;
|
|
25
|
+
this.config = config;
|
|
26
|
+
this.isReady = false;
|
|
27
|
+
if (config.containerName === '') {
|
|
28
|
+
throw new n8n_workflow_1.UserError('Azure Blob container name not configured. Please set `N8N_EXTERNAL_STORAGE_AZURE_CONTAINER_NAME`.');
|
|
29
|
+
}
|
|
30
|
+
this.containerClient = this.buildContainerClient();
|
|
31
|
+
}
|
|
32
|
+
buildContainerClient() {
|
|
33
|
+
const { connectionString, accountName, accountKey, containerName, endpoint, authAutoDetect } = this.config;
|
|
34
|
+
if (connectionString) {
|
|
35
|
+
return storage_blob_1.BlobServiceClient.fromConnectionString(connectionString).getContainerClient(containerName);
|
|
36
|
+
}
|
|
37
|
+
const url = endpoint || `https://${accountName}.blob.core.windows.net`;
|
|
38
|
+
const serviceClient = authAutoDetect
|
|
39
|
+
? new storage_blob_1.BlobServiceClient(url, new identity_1.DefaultAzureCredential())
|
|
40
|
+
: new storage_blob_1.BlobServiceClient(url, new storage_blob_1.StorageSharedKeyCredential(accountName, accountKey));
|
|
41
|
+
return serviceClient.getContainerClient(containerName);
|
|
42
|
+
}
|
|
43
|
+
async init() {
|
|
44
|
+
await this.checkConnection();
|
|
45
|
+
this.isReady = true;
|
|
46
|
+
}
|
|
47
|
+
async checkConnection() {
|
|
48
|
+
if (this.isReady)
|
|
49
|
+
return;
|
|
50
|
+
try {
|
|
51
|
+
this.logger.debug('Checking connection to Azure Blob container', {
|
|
52
|
+
container: this.config.containerName,
|
|
53
|
+
});
|
|
54
|
+
const exists = await this.containerClient.exists();
|
|
55
|
+
if (!exists) {
|
|
56
|
+
throw new n8n_workflow_1.UserError(`Azure Blob container "${this.config.containerName}" does not exist or is not accessible.`);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
catch (e) {
|
|
60
|
+
if (e instanceof n8n_workflow_1.UserError)
|
|
61
|
+
throw e;
|
|
62
|
+
this.handleError(e);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async put(blobName, body, metadata = {}) {
|
|
66
|
+
try {
|
|
67
|
+
await this.containerClient.getBlockBlobClient(blobName).uploadData(body, {
|
|
68
|
+
blobHTTPHeaders: { blobContentType: metadata.mimeType ?? 'application/octet-stream' },
|
|
69
|
+
metadata: metadata.fileName
|
|
70
|
+
? { filename: encodeURIComponent(metadata.fileName) }
|
|
71
|
+
: undefined,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
catch (e) {
|
|
75
|
+
this.handleError(e);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
async get(blobName, { mode, chunkSize = 0 }) {
|
|
79
|
+
const blockBlobClient = this.containerClient.getBlockBlobClient(blobName);
|
|
80
|
+
try {
|
|
81
|
+
if (mode === 'stream') {
|
|
82
|
+
const abortController = new AbortController();
|
|
83
|
+
const response = await blockBlobClient.download(0, undefined, {
|
|
84
|
+
abortSignal: abortController.signal,
|
|
85
|
+
});
|
|
86
|
+
const body = response.readableStreamBody;
|
|
87
|
+
if (!body)
|
|
88
|
+
throw new n8n_workflow_1.UnexpectedError('Received empty response body');
|
|
89
|
+
if (!(body instanceof node_stream_1.Readable)) {
|
|
90
|
+
throw new n8n_workflow_1.UnexpectedError('Expected stream but received different type', {
|
|
91
|
+
extra: { bodyType: typeof body },
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
const wrapper = new node_stream_1.PassThrough();
|
|
95
|
+
let bodyFullyConsumed = false;
|
|
96
|
+
body.on('end', () => {
|
|
97
|
+
bodyFullyConsumed = true;
|
|
98
|
+
});
|
|
99
|
+
wrapper.on('close', () => {
|
|
100
|
+
if (!bodyFullyConsumed) {
|
|
101
|
+
abortController.abort();
|
|
102
|
+
body.destroy();
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
body.on('error', (error) => wrapper.destroy(error));
|
|
106
|
+
body.pipe(wrapper);
|
|
107
|
+
if (chunkSize > 0) {
|
|
108
|
+
const rechunker = (0, stream_utils_1.createFixedSizeChunker)(chunkSize);
|
|
109
|
+
(0, node_stream_1.pipeline)(wrapper, rechunker, () => { });
|
|
110
|
+
return rechunker;
|
|
111
|
+
}
|
|
112
|
+
return wrapper;
|
|
113
|
+
}
|
|
114
|
+
return await blockBlobClient.downloadToBuffer();
|
|
115
|
+
}
|
|
116
|
+
catch (e) {
|
|
117
|
+
if (e instanceof n8n_workflow_1.UnexpectedError)
|
|
118
|
+
throw e;
|
|
119
|
+
this.handleError(e);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
async getMetadata(blobName) {
|
|
123
|
+
try {
|
|
124
|
+
const props = await this.containerClient.getBlockBlobClient(blobName).getProperties();
|
|
125
|
+
const metadata = { fileSize: props.contentLength ?? 0 };
|
|
126
|
+
if (props.contentType)
|
|
127
|
+
metadata.mimeType = props.contentType;
|
|
128
|
+
const fileName = props.metadata?.filename;
|
|
129
|
+
if (fileName)
|
|
130
|
+
metadata.fileName = decodeURIComponent(fileName);
|
|
131
|
+
return metadata;
|
|
132
|
+
}
|
|
133
|
+
catch (e) {
|
|
134
|
+
this.handleError(e);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
async delete(blobName) {
|
|
138
|
+
try {
|
|
139
|
+
await this.containerClient.getBlockBlobClient(blobName).deleteIfExists();
|
|
140
|
+
}
|
|
141
|
+
catch (e) {
|
|
142
|
+
this.handleError(e);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
handleError(e) {
|
|
146
|
+
const error = (0, ensure_error_1.ensureError)(e);
|
|
147
|
+
throw new n8n_workflow_1.UnexpectedError(`Request to Azure Blob storage failed: ${error.message}`, {
|
|
148
|
+
cause: error,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
exports.AzureBlobService = AzureBlobService;
|
|
153
|
+
exports.AzureBlobService = AzureBlobService = __decorate([
|
|
154
|
+
(0, di_1.Service)(),
|
|
155
|
+
__metadata("design:paramtypes", [backend_common_1.Logger, azure_blob_config_1.AzureBlobConfig])
|
|
156
|
+
], AzureBlobService);
|
|
157
|
+
//# sourceMappingURL=azure-blob.service.ee.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azure-blob.service.ee.js","sourceRoot":"","sources":["../../src/azure-blob/azure-blob.service.ee.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAyD;AAEzD,sDAAoF;AACpF,wDAA6C;AAC7C,gCAAkC;AAClC,iEAA6D;AAC7D,+CAA0D;AAC1D,6CAA8D;AAE9D,2DAAsD;AACtD,kDAAyD;AAIlD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAK5B,YACkB,MAAc,EACd,MAAuB;QADvB,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAiB;QAJjC,YAAO,GAAG,KAAK,CAAC;QAMvB,IAAI,MAAM,CAAC,aAAa,KAAK,EAAE,EAAE,CAAC;YACjC,MAAM,IAAI,wBAAS,CAClB,mGAAmG,CACnG,CAAC;QACH,CAAC;QACD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;IACpD,CAAC;IAEO,oBAAoB;QAC3B,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAE,GAC3F,IAAI,CAAC,MAAM,CAAC;QAEb,IAAI,gBAAgB,EAAE,CAAC;YACtB,OAAO,gCAAiB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,CACjF,aAAa,CACb,CAAC;QACH,CAAC;QAED,MAAM,GAAG,GAAG,QAAQ,IAAI,WAAW,WAAW,wBAAwB,CAAC;QACvE,MAAM,aAAa,GAAG,cAAc;YACnC,CAAC,CAAC,IAAI,gCAAiB,CAAC,GAAG,EAAE,IAAI,iCAAsB,EAAE,CAAC;YAC1D,CAAC,CAAC,IAAI,gCAAiB,CAAC,GAAG,EAAE,IAAI,yCAA0B,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CA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AAC,EAAE,CAAC;YACZ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC;IACF,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,QAAgB;QAC5B,IAAI,CAAC;YACJ,MAAM,IAAI,CAAC,eAAe,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,cAAc,EAAE,CAAC;QAC1E,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACZ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC;IACF,CAAC;IAEO,WAAW,CAAC,CAAU;QAC7B,MAAM,KAAK,GAAG,IAAA,0BAAW,EAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,IAAI,8BAAe,CAAC,yCAAyC,KAAK,CAAC,OAAO,EAAE,EAAE;YACnF,KAAK,EAAE,KAAK;SACZ,CAAC,CAAC;IACJ,CAAC;CACD,CAAA;;2BA9JY,gBAAgB;IAD5B,IAAA,YAAO,GAAE;qCAOiB,uBAAM,EACN,mCAAe;GAP7B,gBAAgB,CA8J5B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AzureBlobConfig = exports.AzureBlobService = void 0;
|
|
4
|
+
var azure_blob_service_ee_1 = require("./azure-blob.service.ee");
|
|
5
|
+
Object.defineProperty(exports, "AzureBlobService", { enumerable: true, get: function () { return azure_blob_service_ee_1.AzureBlobService; } });
|
|
6
|
+
var azure_blob_config_1 = require("./azure-blob.config");
|
|
7
|
+
Object.defineProperty(exports, "AzureBlobConfig", { enumerable: true, get: function () { return azure_blob_config_1.AzureBlobConfig; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/azure-blob/index.ts"],"names":[],"mappings":";;;AAAA,iEAA2D;AAAlD,yHAAA,gBAAgB,OAAA;AACzB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA"}
|