styleproof 4.4.3 → 4.4.4

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/CHANGELOG.md CHANGED
@@ -9,6 +9,10 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
9
9
 
10
10
  ### Fixed
11
11
 
12
+ - **Map-store uploads now reuse credentials from `actions/checkout@v7`.**
13
+ Checkout v7 keeps its HTTP header in an included temporary config rather than
14
+ directly in `.git/config`; StyleProof now reads the effective Git config before
15
+ carrying that header into its isolated clone and push.
12
16
  - **Map-store uploads now reuse the HTTP authentication persisted by
13
17
  `actions/checkout`.** The isolated `styleproof-maps` clone carries the
14
18
  checkout's URL-scoped extra header through clone and push, so cache-miss
package/dist/map-store.js CHANGED
@@ -52,8 +52,8 @@ function gitProcessEnvironment() {
52
52
  function runGit(cwd, args, maxBuffer = 1 << 28) {
53
53
  return spawnSync('git', args, { cwd, encoding: 'utf8', maxBuffer, env: gitProcessEnvironment() });
54
54
  }
55
- function localGitHttpExtraHeaders(cwd) {
56
- const configuredHeaders = runGit(cwd, ['config', '--local', '--get-regexp', '^http\\..*\\.extraheader$'], 1 << 20);
55
+ function effectiveGitHttpExtraHeaders(cwd) {
56
+ const configuredHeaders = runGit(cwd, ['config', '--get-regexp', '^http\\..*\\.extraheader$'], 1 << 20);
57
57
  if (configuredHeaders.status !== 0)
58
58
  return [];
59
59
  return configuredHeaders.stdout
@@ -418,7 +418,7 @@ function checkoutMapStore(cwd, remote, branch) {
418
418
  if (!remoteExists(remote, cwd))
419
419
  throw new MapStoreError(`git remote ${remote} was not found`);
420
420
  const remoteUrl = gitOutput(cwd, ['remote', 'get-url', remote]);
421
- const httpExtraHeaders = localGitHttpExtraHeaders(cwd);
421
+ const httpExtraHeaders = effectiveGitHttpExtraHeaders(cwd);
422
422
  const authenticationArguments = httpExtraHeaders.flatMap(({ key, value }) => ['-c', `${key}=${value}`]);
423
423
  const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'styleproof-map-store-'));
424
424
  if (runGit(cwd, ['ls-remote', '--exit-code', '--heads', remote, branch], 1 << 20).status === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "styleproof",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "description": "Catch every CSS change before it ships — review PRs and certify refactors by the browser's computed styles, not pixels. Works with any styling system.",
5
5
  "keywords": [
6
6
  "playwright",