@ms-cloudpack/remote-cache 0.10.21 → 0.10.23
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/{AzureRemoteCacheClient-2Q6MBWDN.js → AzureRemoteCacheClient-UFUB2BJI.js} +313 -282
- package/dist/{chunk-2F4TLFG2.js → chunk-JNKRKLGF.js} +974 -2170
- package/dist/{chunk-SAK6X2DV.js → chunk-LEHUXQFL.js} +8 -8
- package/dist/{getCredential-LMSBNT2W.js → getCredential-EQJXGMRZ.js} +1 -1
- package/dist/index.js +28 -25
- package/package.json +3 -3
|
@@ -2818,9 +2818,9 @@ var require_package = __commonJS({
|
|
|
2818
2818
|
}
|
|
2819
2819
|
});
|
|
2820
2820
|
|
|
2821
|
-
// ../../node_modules/.store/debug-virtual-
|
|
2821
|
+
// ../../node_modules/.store/debug-virtual-ede0ef6c92/package/src/common.js
|
|
2822
2822
|
var require_common = __commonJS({
|
|
2823
|
-
"../../node_modules/.store/debug-virtual-
|
|
2823
|
+
"../../node_modules/.store/debug-virtual-ede0ef6c92/package/src/common.js"(exports, module) {
|
|
2824
2824
|
function setup(env) {
|
|
2825
2825
|
createDebug.debug = createDebug;
|
|
2826
2826
|
createDebug.default = createDebug;
|
|
@@ -3006,9 +3006,9 @@ var require_common = __commonJS({
|
|
|
3006
3006
|
}
|
|
3007
3007
|
});
|
|
3008
3008
|
|
|
3009
|
-
// ../../node_modules/.store/debug-virtual-
|
|
3009
|
+
// ../../node_modules/.store/debug-virtual-ede0ef6c92/package/src/browser.js
|
|
3010
3010
|
var require_browser = __commonJS({
|
|
3011
|
-
"../../node_modules/.store/debug-virtual-
|
|
3011
|
+
"../../node_modules/.store/debug-virtual-ede0ef6c92/package/src/browser.js"(exports, module) {
|
|
3012
3012
|
exports.formatArgs = formatArgs;
|
|
3013
3013
|
exports.save = save;
|
|
3014
3014
|
exports.load = load;
|
|
@@ -3312,9 +3312,9 @@ var require_package3 = __commonJS({
|
|
|
3312
3312
|
}
|
|
3313
3313
|
});
|
|
3314
3314
|
|
|
3315
|
-
// ../../node_modules/.store/debug-virtual-
|
|
3315
|
+
// ../../node_modules/.store/debug-virtual-ede0ef6c92/package/src/node.js
|
|
3316
3316
|
var require_node = __commonJS({
|
|
3317
|
-
"../../node_modules/.store/debug-virtual-
|
|
3317
|
+
"../../node_modules/.store/debug-virtual-ede0ef6c92/package/src/node.js"(exports, module) {
|
|
3318
3318
|
var tty = __require("tty");
|
|
3319
3319
|
var util = __require("util");
|
|
3320
3320
|
exports.init = init;
|
|
@@ -3493,9 +3493,9 @@ var require_node = __commonJS({
|
|
|
3493
3493
|
}
|
|
3494
3494
|
});
|
|
3495
3495
|
|
|
3496
|
-
// ../../node_modules/.store/debug-virtual-
|
|
3496
|
+
// ../../node_modules/.store/debug-virtual-ede0ef6c92/package/src/index.js
|
|
3497
3497
|
var require_src = __commonJS({
|
|
3498
|
-
"../../node_modules/.store/debug-virtual-
|
|
3498
|
+
"../../node_modules/.store/debug-virtual-ede0ef6c92/package/src/index.js"(exports, module) {
|
|
3499
3499
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
3500
3500
|
module.exports = require_browser();
|
|
3501
3501
|
} else {
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
require_commonjs as require_commonjs5,
|
|
9
9
|
require_commonjs2 as require_commonjs7,
|
|
10
10
|
require_dist
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JNKRKLGF.js";
|
|
12
12
|
import {
|
|
13
13
|
init_tslib_es6,
|
|
14
14
|
require_commonjs,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
require_commonjs5 as require_commonjs4,
|
|
18
18
|
require_commonjs6,
|
|
19
19
|
tslib_es6_exports
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LEHUXQFL.js";
|
|
21
21
|
import {
|
|
22
22
|
__commonJS,
|
|
23
23
|
__name,
|
|
@@ -4776,28 +4776,31 @@ async function createRemoteCacheClient(params) {
|
|
|
4776
4776
|
const azureLogEventHandler = registerAzureLogger();
|
|
4777
4777
|
const { context, options } = params;
|
|
4778
4778
|
const { container, loginMethod, storageAccount, cachePath, tenantId } = options;
|
|
4779
|
-
const {
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
{
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4779
|
+
const { telemetryClient } = context;
|
|
4780
|
+
return telemetryClient.tracer.startActiveSpan("CREATE_REMOTE_CACHE_CLIENT", async () => {
|
|
4781
|
+
const { getCredential } = await import("./getCredential-EQJXGMRZ.js");
|
|
4782
|
+
const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-UFUB2BJI.js");
|
|
4783
|
+
const { ReporterDecorator } = await import("./ReporterDecorator-VYNWC6CL.js");
|
|
4784
|
+
const { getListOfBlobs } = await import("./getListOfBlobs-BGP2V7PV.js");
|
|
4785
|
+
const credential = await getCredential(
|
|
4786
|
+
{ loginMethod, cachePath, tenantId },
|
|
4787
|
+
{ ...context, azureLogger: azureLogEventHandler }
|
|
4788
|
+
);
|
|
4789
|
+
const blobStorageClient = new import_storage_blob.BlobServiceClient(createBlobStorageUrl(storageAccount), credential);
|
|
4790
|
+
const containerClient = blobStorageClient.getContainerClient(container);
|
|
4791
|
+
const listOfBlobs = await getListOfBlobs(containerClient, context);
|
|
4792
|
+
const client = new ReporterDecorator(
|
|
4793
|
+
new RetryDecorator({
|
|
4794
|
+
retryManager: new RetryManager([blockListIsInvalidRetryPolicy]),
|
|
4795
|
+
cacheClient: new InMemoryDecorator({
|
|
4796
|
+
cacheClient: new AzureRemoteCacheClient(containerClient),
|
|
4797
|
+
getList: /* @__PURE__ */ __name(() => Promise.resolve(listOfBlobs), "getList")
|
|
4798
|
+
})
|
|
4799
|
+
}),
|
|
4800
|
+
context
|
|
4801
|
+
);
|
|
4802
|
+
return client;
|
|
4803
|
+
});
|
|
4801
4804
|
}
|
|
4802
4805
|
__name(createRemoteCacheClient, "createRemoteCacheClient");
|
|
4803
4806
|
|
|
@@ -4928,7 +4931,7 @@ async function createAppRegistryClient(params) {
|
|
|
4928
4931
|
const { context, options } = params;
|
|
4929
4932
|
const { loginMethod, cachePath, tenantId = defaultTenantId, storageAccount = defaultStorageAccount } = options;
|
|
4930
4933
|
const azureLogEventHandler = registerAzureLogger();
|
|
4931
|
-
const { getCredential } = await import("./getCredential-
|
|
4934
|
+
const { getCredential } = await import("./getCredential-EQJXGMRZ.js");
|
|
4932
4935
|
const credential = await getCredential(
|
|
4933
4936
|
{ loginMethod, cachePath, tenantId },
|
|
4934
4937
|
{ ...context, azureLogger: azureLogEventHandler }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/remote-cache",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.23",
|
|
4
4
|
"description": "Manages syncing the local Cloudpack cached assets to/from a remote storage service.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"lib/**/*.d.ts"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@ms-cloudpack/common-types": "^0.24.
|
|
30
|
+
"@ms-cloudpack/common-types": "^0.24.12",
|
|
31
31
|
"@ms-cloudpack/environment": "^0.1.1",
|
|
32
32
|
"@ms-cloudpack/retry": "^0.1.3",
|
|
33
33
|
"@ms-cloudpack/task-reporter": "^0.16.0",
|
|
34
|
-
"@ms-cloudpack/telemetry": "^0.11.
|
|
34
|
+
"@ms-cloudpack/telemetry": "^0.11.5",
|
|
35
35
|
"@napi-rs/keyring": "^1.0.0",
|
|
36
36
|
"mime-types": "^2.0.0",
|
|
37
37
|
"node-dpapi-prebuilt": "^1.0.3"
|