@ms-cloudpack/remote-cache 0.11.16 → 0.11.18

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.
@@ -43797,9 +43797,9 @@ var require_package48 = __commonJS({
43797
43797
  }
43798
43798
  });
43799
43799
 
43800
- // ../../node_modules/.store/tar-fs-npm-2.1.2-4231292dd1/package/index.js
43800
+ // ../../node_modules/.store/tar-fs-npm-2.1.3-32d6d6fb31/package/index.js
43801
43801
  var require_package49 = __commonJS({
43802
- "../../node_modules/.store/tar-fs-npm-2.1.2-4231292dd1/package/index.js"(exports) {
43802
+ "../../node_modules/.store/tar-fs-npm-2.1.3-32d6d6fb31/package/index.js"(exports) {
43803
43803
  var chownr = require_chownr();
43804
43804
  var tar = require_package46();
43805
43805
  var pump = require_package47();
@@ -44015,12 +44015,15 @@ var require_package49 = __commonJS({
44015
44015
  if (win32) return next();
44016
44016
  xfs.unlink(name, function() {
44017
44017
  var srcpath = path.join(cwd, path.join("/", header.linkname));
44018
- xfs.link(srcpath, name, function(err) {
44019
- if (err && err.code === "EPERM" && opts.hardlinkAsFilesFallback) {
44020
- stream = xfs.createReadStream(srcpath);
44021
- return onfile();
44022
- }
44023
- stat(err);
44018
+ xfs.realpath(srcpath, function(err, dst) {
44019
+ if (err || !dst.startsWith(path.resolve(cwd))) return next(new Error(name + " is not a valid hardlink"));
44020
+ xfs.link(dst, name, function(err2) {
44021
+ if (err2 && err2.code === "EPERM" && opts.hardlinkAsFilesFallback) {
44022
+ stream = xfs.createReadStream(srcpath);
44023
+ return onfile();
44024
+ }
44025
+ stat(err2);
44026
+ });
44024
44027
  });
44025
44028
  });
44026
44029
  }, "onlink");
package/dist/index.js CHANGED
@@ -4779,7 +4779,7 @@ async function createRemoteCacheClient(params) {
4779
4779
  const { telemetryClient } = context;
4780
4780
  return telemetryClient.tracer.startActiveSpan("CREATE_REMOTE_CACHE_CLIENT", async () => {
4781
4781
  const { getCredential } = await import("./getCredential-IVB4UT3M.js");
4782
- const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-P5SKY6OI.js");
4782
+ const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-IUTLCHUH.js");
4783
4783
  const { ReporterDecorator } = await import("./ReporterDecorator-VYNWC6CL.js");
4784
4784
  const { getListOfBlobs } = await import("./getListOfBlobs-BGP2V7PV.js");
4785
4785
  const credential = await getCredential(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/remote-cache",
3
- "version": "0.11.16",
3
+ "version": "0.11.18",
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.18",
30
+ "@ms-cloudpack/common-types": "^0.24.19",
31
31
  "@ms-cloudpack/environment": "^0.1.1",
32
32
  "@ms-cloudpack/retry": "^0.1.3",
33
33
  "@ms-cloudpack/task-reporter": "^0.16.3",
34
- "@ms-cloudpack/telemetry": "^0.11.19",
34
+ "@ms-cloudpack/telemetry": "^0.11.21",
35
35
  "@napi-rs/keyring": "1.1.6",
36
36
  "mime-types": "^3.0.0",
37
37
  "node-dpapi-prebuilt": "^1.0.3"
@@ -46,7 +46,7 @@
46
46
  "@azure/storage-blob": "^12.17.0",
47
47
  "@ms-cloudpack/eslint-plugin-internal": "*",
48
48
  "@ms-cloudpack/scripts": "*",
49
- "@types/mime-types": "^2.0.0",
49
+ "@types/mime-types": "^3.0.0",
50
50
  "backfill": "^6.2.4",
51
51
  "backfill-cache": "^5.9.0",
52
52
  "backfill-config": "^6.5.0",