Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

giget

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

giget - npm Package Compare versions

Comparing version 0.1.7 to 1.0.0

dist/shared/giget.1028e17a.cjs

6

dist/index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc