@hyperframes/parsers 0.9.63 → 0.9.65

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.
@@ -39,7 +39,11 @@ var CREDENTIAL_FILES = /* @__PURE__ */ new Set([
39
39
  "_netrc",
40
40
  ".git-credentials",
41
41
  ".gitconfig",
42
- ".mcp.json"
42
+ ".mcp.json",
43
+ "credentials.json",
44
+ "serviceaccountkey.json",
45
+ "service-account.json",
46
+ "service_account.json"
43
47
  ]);
44
48
  var CREDENTIAL_FOLDERS = /* @__PURE__ */ new Set([
45
49
  ".ssh",
@@ -70,16 +74,29 @@ function isStudioPrivatePath(relPath) {
70
74
  if (isVcsOrSecretPath(relPath) || isCredentialOrToolStatePath(relPath)) return true;
71
75
  const segments = projectPathSegments(relPath);
72
76
  const inside = !isAbsolute(relPath) && !/^\.\.[. ]*$/.test(relPath.split(/[\\/]/, 1)[0] ?? "");
73
- const loadedType = LOADED_ASSET_TYPE.test(segments.at(-1) ?? "");
77
+ const name = segments.at(-1) ?? "";
78
+ const loadedType = !name.startsWith(".") && LOADED_ASSET_TYPE.test(name);
74
79
  return segments.some((segment, at) => {
75
80
  const atRoot = segments.slice(0, at).every((before) => before === "");
76
81
  if (segment === ".hyperframes")
77
82
  return !atRoot || !isStudioOwnFile(segments.slice(at).join("/"));
83
+ if (BUILD_OUTPUT_FOLDERS.has(segment)) return inside;
78
84
  const mediaFolder = atRoot && segment === MEDIA_FOLDER;
79
85
  return inside && segment.startsWith(".") && !mediaFolder && !loadedType;
80
86
  });
81
87
  }
82
88
  var MEDIA_FOLDER = ".media";
89
+ var BUILD_OUTPUT_FOLDERS = /* @__PURE__ */ new Set([
90
+ ".next",
91
+ ".nuxt",
92
+ ".output",
93
+ ".svelte-kit",
94
+ ".vercel",
95
+ ".netlify",
96
+ ".wrangler",
97
+ ".astro",
98
+ ".turbo"
99
+ ]);
83
100
  var LOADED_ASSET_TYPE = /.\.(?:png|jpe?g|gif|webp|avif|svg|ico|bmp|tiff?|heic|heif|mp4|m4v|mov|webm|mkv|mxf|avi|mp3|wav|m4a|aac|ogg|oga|opus|flac|woff2?|ttf|otf|css|m?js|cjs)$/;
84
101
  function isStudioOwnFile(path) {
85
102
  if (path === UNCONVERTED_PREVIEW_DOWNLOADS || path.startsWith(`${UNCONVERTED_PREVIEW_DOWNLOADS}/`))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/parsers",
3
- "version": "0.9.63",
3
+ "version": "0.9.65",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -151,7 +151,7 @@
151
151
  "tsx": "^4.21.0",
152
152
  "typescript": "^5.0.0",
153
153
  "vitest": "^4.1.12",
154
- "@hyperframes/core": "0.9.63"
154
+ "@hyperframes/core": "0.9.65"
155
155
  },
156
156
  "scripts": {
157
157
  "build": "tsup",