@epic-web/workshop-utils 6.85.2 → 6.85.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.
@@ -1,4 +1,4 @@
1
- // eslint-disable-next-line import/order -- this must be first
1
+ // oxlint-disable-next-line import/order -- this must be first
2
2
  import { getEnv } from "./init-env.js";
3
3
  import fs from 'node:fs';
4
4
  import path from 'node:path';
@@ -1,4 +1,4 @@
1
- // eslint-disable-next-line import/order -- this must be first
1
+ // oxlint-disable-next-line import/order -- this must be first
2
2
  import { getEnv } from "./init-env.js";
3
3
  import path from 'path';
4
4
  import * as C from '@epic-web/cachified';
@@ -1,4 +1,4 @@
1
- // eslint-disable-next-line import/order -- this must be first
1
+ // oxlint-disable-next-line import/order -- this must be first
2
2
  import { getEnv } from "./init-env.js";
3
3
  import fs from 'node:fs';
4
4
  import path from 'node:path';
@@ -1,4 +1,4 @@
1
- // eslint-disable-next-line import/order -- this must be first
1
+ // oxlint-disable-next-line import/order -- this must be first
2
2
  import { getEnv } from "./init-env.js";
3
3
  import os from 'os';
4
4
  import path from 'path';
@@ -57,12 +57,12 @@ function diffPathToRelative(filePath) {
57
57
  let normalizedPath = path.normalize(filePath
58
58
  .replace(/^["']|["']$/g, '')
59
59
  .replace(/^(\.\\[ab]\\|\.\/[ab]\/|[ab][\\/])/, ''));
60
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
61
- const [workshopRootDirname, appId, id, ...relativePath] = normalizedPath
60
+ const relativePath = normalizedPath
62
61
  .replace(process.platform === 'win32' || normalizedPath.startsWith(path.sep)
63
62
  ? `${diffTmpDir}${path.sep}`
64
63
  : `${diffTmpDir.slice(1)}${path.sep}`, '')
65
- .split(path.sep);
64
+ .split(path.sep)
65
+ .slice(3);
66
66
  return relativePath.join(path.sep);
67
67
  }
68
68
  function getLanguage(ext) {
@@ -1,4 +1,4 @@
1
- // eslint-disable-next-line import/order -- this must be first
1
+ // oxlint-disable-next-line import/order -- this must be first
2
2
  import { getEnv } from "./init-env.js";
3
3
  import json5 from 'json5';
4
4
  import { z } from 'zod';
@@ -1,4 +1,4 @@
1
- // eslint-disable-next-line import/order -- this must be first
1
+ // oxlint-disable-next-line import/order -- this must be first
2
2
  import { getEnv } from "./init-env.js";
3
3
  import { randomUUID as cuid } from 'crypto';
4
4
  import * as cookie from 'cookie';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epic-web/workshop-utils",
3
- "version": "6.85.2",
3
+ "version": "6.85.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },