Comparing version 0.1.7 to 1.0.0
interface GitInfo { | ||
provider: 'github' | 'gitlab' | 'bitbucket' | 'sourcehut'; | ||
provider: "github" | "gitlab" | "bitbucket" | "sourcehut"; | ||
repo: string; | ||
@@ -35,7 +35,7 @@ subdir: string; | ||
} | ||
declare type DownloadTemplateResult = Omit<TemplateInfo, 'dir' | 'source'> & { | ||
declare type DownloadTemplateResult = Omit<TemplateInfo, "dir" | "source"> & { | ||
dir: string; | ||
source: string; | ||
}; | ||
declare function downloadTemplate(input: string, opts?: DownloadTemplateOptions): Promise<DownloadTemplateResult>; | ||
declare function downloadTemplate(input: string, options?: DownloadTemplateOptions): Promise<DownloadTemplateResult>; | ||
@@ -42,0 +42,0 @@ declare const registryProvider: (registryEndpoint?: string) => TemplateProvider; |
{ | ||
"name": "giget", | ||
"version": "0.1.7", | ||
"version": "1.0.0", | ||
"description": "Download templates and git repositories with pleasure!", | ||
@@ -15,2 +15,3 @@ "repository": "unjs/giget", | ||
"import": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"require": "./dist/index.cjs" | ||
@@ -25,32 +26,34 @@ } | ||
], | ||
"scripts": { | ||
"build": "unbuild", | ||
"dev": "vitest dev", | ||
"giget": "jiti ./src/cli.ts", | ||
"lint": "eslint --ext .ts,.js,.mjs,.cjs .", | ||
"prepack": "unbuild", | ||
"play": "pnpm giget --force-clean --verbose unjs .tmp/clone", | ||
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish", | ||
"test": "pnpm lint && vitest run --coverage" | ||
}, | ||
"dependencies": { | ||
"colorette": "^2.0.19", | ||
"defu": "^6.1.0", | ||
"defu": "^6.1.1", | ||
"https-proxy-agent": "^5.0.1", | ||
"mri": "^1.2.0", | ||
"node-fetch-native": "^0.1.4", | ||
"pathe": "^0.3.8", | ||
"tar": "^6.1.11" | ||
"node-fetch-native": "^1.0.1", | ||
"pathe": "^1.0.0", | ||
"tar": "^6.1.12" | ||
}, | ||
"devDependencies": { | ||
"@nuxtjs/eslint-config-typescript": "^11.0.0", | ||
"@types/node": "^18.7.16", | ||
"@types/tar": "^6.1.2", | ||
"@vitest/coverage-c8": "^0.23.4", | ||
"eslint": "^8.23.1", | ||
"@types/node": "^18.11.9", | ||
"@types/tar": "^6.1.3", | ||
"@vitest/coverage-c8": "^0.25.2", | ||
"eslint": "^8.27.0", | ||
"eslint-config-unjs": "^0.0.2", | ||
"jiti": "^1.16.0", | ||
"standard-version": "^9.5.0", | ||
"typescript": "^4.8.3", | ||
"unbuild": "^0.8.11", | ||
"vitest": "^0.23.4" | ||
"typescript": "^4.8.4", | ||
"unbuild": "^0.9.4", | ||
"vitest": "^0.25.2" | ||
}, | ||
"packageManager": "pnpm@7.12.0", | ||
"scripts": { | ||
"build": "unbuild", | ||
"dev": "vitest dev", | ||
"giget": "jiti ./src/cli.ts", | ||
"lint": "eslint --ext .ts,.js,.mjs,.cjs .", | ||
"play": "pnpm giget --force-clean --verbose unjs .tmp/clone", | ||
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish", | ||
"test": "pnpm lint && vitest run --coverage" | ||
} | ||
} | ||
"packageManager": "pnpm@7.16.0" | ||
} |
@@ -92,3 +92,3 @@ # ✨ giget | ||
- `url`: (optional) Webpage of the template. | ||
- `subpath`: (optional) Subpath inside the tar file. | ||
- `subdir`: (optional) Directory inside the tar file. | ||
- `headers`: (optional) Custom headers to send while downloading template. | ||
@@ -139,3 +139,3 @@ | ||
- `ref`: (string) Git ref (branch or commit or tag). The default value is `main`. | ||
- `subdirpath`: (string) subdir of the repo to clone from. The default value is none. | ||
- `subdir`: (string) Directory of the repo to clone from. The default value is none. | ||
- `force`: (boolean) Extract to the exisiting dir even if already exsists. | ||
@@ -142,0 +142,0 @@ - `forceClean`: (boolean) ⚠️ Clean ups any existing directory or file before cloning. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
32208
593
1
7
23
8
+ Addedhttps-proxy-agent@^5.0.1
+ Addedagent-base@6.0.2(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-fetch-native@1.6.4(transitive)
+ Addedpathe@1.1.2(transitive)
- Removednode-fetch-native@0.1.8(transitive)
- Removedpathe@0.3.9(transitive)
Updateddefu@^6.1.1
Updatednode-fetch-native@^1.0.1
Updatedpathe@^1.0.0
Updatedtar@^6.1.12