@ms-cloudpack/remote-cache 0.7.2 → 0.7.3

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.
@@ -1,18 +1,22 @@
1
+ import { createRequire as topLevelCreateRequire } from 'node:module';
2
+ import topLevelPath from 'node:path';
3
+ import topLevelUrl from 'node:url';
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = topLevelUrl.fileURLToPath(import.meta.url);
6
+ const __dirname = topLevelPath.dirname(__filename);
1
7
  import {
2
8
  createBlobStorageUrl
3
- } from "./chunk-R2VDVRDZ.js";
9
+ } from "./chunk-65RH3KSH.js";
4
10
  import {
5
11
  require_dist
6
- } from "./chunk-KFSFZYG6.js";
7
- import "./chunk-4P62L7ZZ.js";
12
+ } from "./chunk-W3GZC77T.js";
13
+ import "./chunk-LRLTRMOZ.js";
8
14
  import {
9
15
  __name,
10
- __toESM,
11
- init_esbuildCjsShims
12
- } from "./chunk-TQLTL4XO.js";
16
+ __toESM
17
+ } from "./chunk-E6II3DDV.js";
13
18
 
14
19
  // src/getListOfBlobs.ts
15
- init_esbuildCjsShims();
16
20
  var import_storage_blob = __toESM(require_dist(), 1);
17
21
  async function getListOfBlobs({ container, storageAccount, credential }) {
18
22
  const blobStorageClient = new import_storage_blob.BlobServiceClient(createBlobStorageUrl(storageAccount), credential);
package/dist/index.js CHANGED
@@ -1,16 +1,14 @@
1
+ import { createRequire as topLevelCreateRequire } from 'node:module';
2
+ import topLevelPath from 'node:path';
3
+ import topLevelUrl from 'node:url';
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = topLevelUrl.fileURLToPath(import.meta.url);
6
+ const __dirname = topLevelPath.dirname(__filename);
1
7
  import {
2
- __name,
3
- init_esbuildCjsShims
4
- } from "./chunk-TQLTL4XO.js";
5
-
6
- // src/index.ts
7
- init_esbuildCjsShims();
8
-
9
- // src/createRemoteCacheClient.ts
10
- init_esbuildCjsShims();
8
+ __name
9
+ } from "./chunk-E6II3DDV.js";
11
10
 
12
11
  // src/decorators/InMemoryDecorator.ts
13
- init_esbuildCjsShims();
14
12
  var _InMemoryDecorator = class _InMemoryDecorator {
15
13
  constructor(options) {
16
14
  this.cacheClient = options.cacheClient;
@@ -37,7 +35,6 @@ __name(_InMemoryDecorator, "InMemoryDecorator");
37
35
  var InMemoryDecorator = _InMemoryDecorator;
38
36
 
39
37
  // src/decorators/RetryDecorator.ts
40
- init_esbuildCjsShims();
41
38
  var _RetryDecorator = class _RetryDecorator {
42
39
  constructor(options) {
43
40
  this.cacheClient = options.cacheClient;
@@ -67,7 +64,6 @@ __name(_RetryDecorator, "RetryDecorator");
67
64
  var RetryDecorator = _RetryDecorator;
68
65
 
69
66
  // src/retry/blockListIsInvalidRetryPolicy.ts
70
- init_esbuildCjsShims();
71
67
  var blockListIsInvalidRetryPolicy = {
72
68
  maxRetries: 1,
73
69
  handle: (error) => {
@@ -81,10 +77,10 @@ import { RetryManager } from "@ms-cloudpack/retry";
81
77
  async function createRemoteCacheClient(params) {
82
78
  const { context, options } = params;
83
79
  const { container, loginMethod, storageAccount, cachePath, tenantId } = options;
84
- const { getCredential } = await import("./getCredential-2R4O36RK.js");
85
- const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-NEV2XCF7.js");
86
- const { ReporterDecorator } = await import("./ReporterDecorator-SNBYNGOT.js");
87
- const { getListOfBlobs } = await import("./getListOfBlobs-E5OFG2MF.js");
80
+ const { getCredential } = await import("./getCredential-TIS4HQAY.js");
81
+ const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-4Q4WE4D3.js");
82
+ const { ReporterDecorator } = await import("./ReporterDecorator-YVGD2WYR.js");
83
+ const { getListOfBlobs } = await import("./getListOfBlobs-ZMH5R6FS.js");
88
84
  const credential = await getCredential(loginMethod, cachePath, tenantId);
89
85
  const remoteCacheClientOptions = {
90
86
  storageAccount,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/remote-cache",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Manages syncing the local Cloudpack cached assets to/from a remote storage service.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -30,7 +30,7 @@
30
30
  "@azure/msal-node-extensions": "^1.0.10",
31
31
  "@ms-cloudpack/retry": "^0.1.1",
32
32
  "@ms-cloudpack/task-reporter": "^0.14.0",
33
- "@ms-cloudpack/telemetry": "^0.5.1"
33
+ "@ms-cloudpack/telemetry": "^0.5.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@azure/identity": "^4.0.0",
@@ -1,15 +0,0 @@
1
- import {
2
- __name,
3
- init_esbuildCjsShims
4
- } from "./chunk-TQLTL4XO.js";
5
-
6
- // src/createBlobStorageUrl.ts
7
- init_esbuildCjsShims();
8
- function createBlobStorageUrl(storageAccount) {
9
- return `https://${storageAccount}.blob.core.windows.net`;
10
- }
11
- __name(createBlobStorageUrl, "createBlobStorageUrl");
12
-
13
- export {
14
- createBlobStorageUrl
15
- };