uptide 0.7.4 → 0.7.5-next.20261012034141
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/README.md +2 -2
- package/dist/{chunk-DWDQCTCK.js → chunk-KKSKHYMO.js} +1 -1
- package/dist/{chunk-P64NFLVF.js → chunk-QLTX63RX.js} +19 -19
- package/dist/{chunk-WQXLHC6L.js → chunk-XJHVPBMP.js} +1 -1
- package/dist/{chunk-JAKUVQMN.js → chunk-YQEWNYIX.js} +9 -9
- package/dist/engine-worker.js +1 -1
- package/dist/index.js +12 -12
- package/dist/{publish-VJVLNW7I-AB3VLXQF.js → publish-L6OAKBN2-VXMU7QL3.js} +1 -1
- package/dist/worker.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,11 +54,11 @@ verified with two or more public repositories and no false positive. The contrac
|
|
|
54
54
|
<!-- packs:start -->
|
|
55
55
|
| Package | Range | Precision | Recall | Ground-truth repositories | Status |
|
|
56
56
|
| --- | --- | ---: | ---: | --- | --- |
|
|
57
|
-
| `ai` | 6.x → 7.x | 100% |
|
|
57
|
+
| `ai` | 6.x → 7.x | 100% | 82% | vercel/chatbot, miurla/morphic | verified |
|
|
58
58
|
| `react` | 18.x → 19.x | 100% | 69% | excalidraw/excalidraw, tldraw/tldraw | verified |
|
|
59
59
|
| `stripe` | 14 and newer | 100% | 90% | unkeyed/unkey, nextjs/saas-starter | verified |
|
|
60
60
|
| `vitest` | 4.x → 5.x | 100% | 50% | votingworks/vxsuite, vitorvasc/opentelemetry-ecosystem-explorer | verified |
|
|
61
|
-
| `zod` | 3.x → 4.x | 100% |
|
|
61
|
+
| `zod` | 3.x → 4.x | 100% | 74% | ugurkocde/AwesomeIntune, howardyang2009/PATH, band-ai/band-sdk-typescript | verified |
|
|
62
62
|
<!-- packs:end -->
|
|
63
63
|
|
|
64
64
|
Any other dependency gets the same analysis without a pack, and `fix` migrates it with the
|
|
@@ -4,4 +4,4 @@ const require = __uptideCreateRequire(import.meta.url);
|
|
|
4
4
|
const __filename = __uptideFileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = __uptideFileURLToPath(new URL('.', import.meta.url));
|
|
6
6
|
import{execFileSync}from"child_process";import{readFileSync}from"fs";import{dirname,join,resolve}from"path";import{fileURLToPath}from"url";import{execFileSync as execFileSync2,spawn}from"child_process";import{existsSync,mkdirSync,realpathSync}from"fs";import{tmpdir}from"os";import{dirname as dirname2,join as join2,relative,resolve as resolve2}from"path";var NoTypesError=class extends Error{constructor(packageName,version2){super(`${packageName}@${version2}: no type declarations, cannot analyze`),this.packageName=packageName,this.version=version2}packageName;version;code="NO_TYPES";name="NoTypesError"},PackageNotFoundError=class extends Error{constructor(packageName,registry){super(`${packageName}: not found on ${registry}`),this.packageName=packageName,this.registry=registry}packageName;registry;code="PACKAGE_NOT_FOUND";name="PackageNotFoundError"},RegistryAuthError=class extends Error{constructor(packageName,registry,status){super(`${packageName}: ${registry} answered HTTP ${status} (registry auth)`),this.packageName=packageName,this.registry=registry,this.status=status}packageName;registry;status;code="REGISTRY_AUTH";name="RegistryAuthError"},VersionNotFoundError=class extends Error{constructor(packageName,version2,available){super(`${packageName}@${version2}: version not published (${available.length} versions available)`),this.packageName=packageName,this.version=version2,this.available=available}packageName;version;available;code="VERSION_NOT_FOUND";name="VersionNotFoundError"},IntegrityError=class extends Error{constructor(packageName,version2,expected,actual){super(`${packageName}@${version2}: tarball integrity mismatch (expected ${expected}, got ${actual})`),this.packageName=packageName,this.version=version2,this.expected=expected,this.actual=actual}packageName;version;expected;actual;name="IntegrityError"},AdapterCapabilityError=class extends Error{constructor(adapter,capability){super(`adapter "${adapter}" does not implement ${capability}; cannot check usages`),this.adapter=adapter,this.capability=capability}adapter;capability;name="AdapterCapabilityError"},UptideError=class extends Error{constructor(code,message,options){super(message,options),this.code=code}code;name="UptideError"};function errorCode(error){return error&&typeof error=="object"&&"code"in error&&typeof error.code=="string"?error.code:"ANALYSIS_FAILED"}var version="0.1.0";function dirtyLines(porcelain){return porcelain.split(`
|
|
7
|
-
`).filter(line=>line.trim()!=="").filter(line=>!/(?:^|\/)tsup\.config\.bundled_[\w-]+\.[cm]?js$/.test(line.slice(3)))}function uptideVersionInfo(env=process.env){return{uptideVersion:version,uptideCommit:"
|
|
7
|
+
`).filter(line=>line.trim()!=="").filter(line=>!/(?:^|\/)tsup\.config\.bundled_[\w-]+\.[cm]?js$/.test(line.slice(3)))}function uptideVersionInfo(env=process.env){return{uptideVersion:version,uptideCommit:"5c59257bcf0fb0c3ff56f7ee002481437d508d06",uptideDirty:!1}}function uptideCommand(cliVersion){let tag=/^\d+\.\d+\.\d+-([a-z]+)/.exec(cliVersion)?.[1];return tag?`npx uptide@${tag}`:"npx uptide"}var UPTIDE_COMMAND=uptideCommand("0.7.5-next.20261012034141");function noHooksDir(){let dir=join2(tmpdir(),"uptide-no-hooks");return mkdirSync(dir,{recursive:!0}),dir}function quietEnv(){return{CI:"true",npm_config_ignore_scripts:"true",npm_config_enable_pre_post_scripts:"false",npm_config_verify_deps_before_run:"false",pnpm_config_ignore_scripts:"true",pnpm_config_enable_pre_post_scripts:"false",pnpm_config_verify_deps_before_run:"false",YARN_ENABLE_SCRIPTS:"false",YARN_ENABLE_TELEMETRY:"0",SKIP_SIMPLE_GIT_HOOKS:"1",HUSKY:"0",LEFTHOOK:"0",GIT_CONFIG_COUNT:"1",GIT_CONFIG_KEY_0:"core.hooksPath",GIT_CONFIG_VALUE_0:noHooksDir()}}function git(cwd,...args){return execFileSync2("git",["-c","core.hooksPath=/dev/null",...args],{cwd,encoding:"utf8",stdio:["ignore","pipe","pipe"]}).trim()}function command(cwd,bin,args,timeoutMs=12e4,extraEnv={}){return new Promise(resolve3=>{let output="",timeout=!1,child=spawn(bin,args,{cwd,detached:process.platform!=="win32",env:{...Object.fromEntries(Object.entries(process.env).filter(([key])=>!/(?:TOKEN|SECRET|API_KEY|PASSWORD)/i.test(key))),...quietEnv(),...extraEnv},stdio:["ignore","pipe","pipe"]}),append=data=>{output=(output+data.toString()).slice(-2e5)};child.stdout.on("data",append),child.stderr.on("data",append);let timer=setTimeout(()=>{timeout=!0;try{process.platform!=="win32"&&child.pid?process.kill(-child.pid,"SIGKILL"):child.kill("SIGKILL")}catch{}},timeoutMs);child.on("error",e=>{clearTimeout(timer),resolve3({code:1,output:String(e),timeout:!1})}),child.on("close",code=>{clearTimeout(timer),resolve3({code:code??1,output,timeout})})})}function projectRoot(cwd){let root=realpathSync(resolve2(cwd)),top=realpathSync(git(root,"rev-parse","--show-toplevel"));if(!existsSync(join2(root,"package.json")))throw new UptideError("NOT_REPOSITORY_ROOT",`${root}: no package.json; run fix at the project root`);for(let dir=dirname2(root);dir.startsWith(top)&&dir!==root;dir=dirname2(dir)){if(existsSync(join2(dir,"package.json")))throw new UptideError("NOT_REPOSITORY_ROOT",`run fix at the project root, ${dir} (workspace versions are upgraded together)`);if(dir===top)break}return{root,top,project:relative(top,root)||"."}}export{NoTypesError,PackageNotFoundError,RegistryAuthError,VersionNotFoundError,IntegrityError,AdapterCapabilityError,UptideError,errorCode,uptideVersionInfo,uptideCommand,UPTIDE_COMMAND,git,command,projectRoot};
|