@ms-cloudpack/remote-cache 0.11.48 → 0.11.50

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/NOTICE.txt CHANGED
@@ -3861,7 +3861,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
3861
3861
 
3862
3862
  ----
3863
3863
 
3864
- tar-fs 2.1.3 - MIT
3864
+ tar-fs 2.1.4 - MIT
3865
3865
  https://github.com/mafintosh/tar-fs
3866
3866
 
3867
3867
  Author: Mathias Buus
@@ -43900,9 +43900,9 @@ var require_package48 = __commonJS({
43900
43900
  }
43901
43901
  });
43902
43902
 
43903
- // ../../node_modules/.store/tar-fs-npm-2.1.3-32d6d6fb31/package/index.js
43903
+ // ../../node_modules/.store/tar-fs-npm-2.1.4-90a454735f/package/index.js
43904
43904
  var require_package49 = __commonJS({
43905
- "../../node_modules/.store/tar-fs-npm-2.1.3-32d6d6fb31/package/index.js"(exports) {
43905
+ "../../node_modules/.store/tar-fs-npm-2.1.4-90a454735f/package/index.js"(exports) {
43906
43906
  var chownr = require_chownr();
43907
43907
  var tar = require_package46();
43908
43908
  var pump = require_package47();
@@ -44110,7 +44110,7 @@ var require_package49 = __commonJS({
44110
44110
  if (win32) return next();
44111
44111
  xfs.unlink(name, function() {
44112
44112
  var dst = path.resolve(path.dirname(name), header.linkname);
44113
- if (!dst.startsWith(path.resolve(cwd))) return next(new Error(name + " is not a valid symlink"));
44113
+ if (!inCwd(dst, cwd)) return next(new Error(name + " is not a valid symlink"));
44114
44114
  xfs.symlink(header.linkname, name, stat);
44115
44115
  });
44116
44116
  }, "onsymlink");
@@ -44119,7 +44119,7 @@ var require_package49 = __commonJS({
44119
44119
  xfs.unlink(name, function() {
44120
44120
  var srcpath = path.join(cwd, path.join("/", header.linkname));
44121
44121
  xfs.realpath(srcpath, function(err, dst) {
44122
- if (err || !dst.startsWith(path.resolve(cwd))) return next(new Error(name + " is not a valid hardlink"));
44122
+ if (err || !inCwd(dst, cwd)) return next(new Error(name + " is not a valid hardlink"));
44123
44123
  xfs.link(dst, name, function(err2) {
44124
44124
  if (err2 && err2.code === "EPERM" && opts.hardlinkAsFilesFallback) {
44125
44125
  stream = xfs.createReadStream(srcpath);
@@ -44197,6 +44197,11 @@ var require_package49 = __commonJS({
44197
44197
  });
44198
44198
  }
44199
44199
  __name(mkdirfix, "mkdirfix");
44200
+ function inCwd(dst, cwd) {
44201
+ cwd = path.resolve(cwd);
44202
+ return cwd === dst || dst.startsWith(cwd + path.sep);
44203
+ }
44204
+ __name(inCwd, "inCwd");
44200
44205
  }
44201
44206
  });
44202
44207
 
package/dist/index.js CHANGED
@@ -32589,7 +32589,7 @@ async function createRemoteCacheClient(params) {
32589
32589
  const { telemetryClient } = context3;
32590
32590
  return telemetryClient.tracer.startActiveSpan("CREATE_REMOTE_CACHE_CLIENT", async () => {
32591
32591
  const { getCredential } = await import("./getCredential-TYTELKFM.js");
32592
- const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-RHIJICRG.js");
32592
+ const { AzureRemoteCacheClient } = await import("./AzureRemoteCacheClient-UD3RM6RT.js");
32593
32593
  const { ReporterDecorator } = await import("./ReporterDecorator-ZL5AFS6T.js");
32594
32594
  const { getListOfBlobs } = await import("./getListOfBlobs-USCOZRLX.js");
32595
32595
  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.48",
3
+ "version": "0.11.50",
4
4
  "description": "Manages syncing the local Cloudpack cached assets to/from a remote storage service.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -23,11 +23,11 @@
23
23
  "test": "cloudpack-scripts test"
24
24
  },
25
25
  "dependencies": {
26
- "@ms-cloudpack/common-types": "^0.30.0",
26
+ "@ms-cloudpack/common-types": "^0.31.1",
27
27
  "@ms-cloudpack/environment": "^0.1.1",
28
28
  "@ms-cloudpack/retry": "^0.1.3",
29
29
  "@ms-cloudpack/task-reporter": "^0.17.4",
30
- "@ms-cloudpack/telemetry": "^0.11.48",
30
+ "@ms-cloudpack/telemetry": "^0.11.50",
31
31
  "@napi-rs/keyring": "1.2.0",
32
32
  "mime-types": "^3.0.0",
33
33
  "node-dpapi-prebuilt": "^1.0.3"