giget 1.2.4 → 2.0.0

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/LICENSE CHANGED
@@ -19,3 +19,166 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
+
23
+ ---
24
+
25
+ Third party bundled dependencies
26
+
27
+ - https://github.com/isaacs/node-tar
28
+ - https://github.com/isaacs/fs-minipass
29
+
30
+ """
31
+ The ISC License
32
+
33
+ Copyright (c) Isaac Z. Schlueter and Contributors
34
+
35
+ Permission to use, copy, modify, and/or distribute this software for any
36
+ purpose with or without fee is hereby granted, provided that the above
37
+ copyright notice and this permission notice appear in all copies.
38
+
39
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
40
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
41
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
42
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
43
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
44
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
45
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
46
+ """"
47
+
48
+ - https://github.com/isaacs/minipass
49
+
50
+ """
51
+ The ISC License
52
+
53
+ Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors
54
+
55
+ Permission to use, copy, modify, and/or distribute this software for any
56
+ purpose with or without fee is hereby granted, provided that the above
57
+ copyright notice and this permission notice appear in all copies.
58
+
59
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
60
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
61
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
62
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
63
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
64
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
65
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
66
+ """
67
+
68
+ - https://github.com/isaacs/minizlib
69
+
70
+ """
71
+ Minizlib was created by Isaac Z. Schlueter.
72
+ It is a derivative work of the Node.js project.
73
+
74
+ """
75
+ Copyright (c) 2017-2023 Isaac Z. Schlueter and Contributors
76
+ Copyright (c) 2017-2023 Node.js contributors. All rights reserved.
77
+ Copyright (c) 2017-2023 Joyent, Inc. and other Node contributors. All rights reserved.
78
+
79
+ Permission is hereby granted, free of charge, to any person obtaining a
80
+ copy of this software and associated documentation files (the "Software"),
81
+ to deal in the Software without restriction, including without limitation
82
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
83
+ and/or sell copies of the Software, and to permit persons to whom the
84
+ Software is furnished to do so, subject to the following conditions:
85
+
86
+ The above copyright notice and this permission notice shall be included in
87
+ all copies or substantial portions of the Software.
88
+
89
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
90
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
91
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
92
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
93
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
94
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
95
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
96
+ """
97
+
98
+ - https://github.com/isaacs/node-mkdirp
99
+
100
+ """
101
+ Copyright (c) 2011-2023 James Halliday (mail@substack.net) and Isaac Z. Schlueter (i@izs.me)
102
+
103
+ This project is free software released under the MIT license:
104
+
105
+ Permission is hereby granted, free of charge, to any person obtaining a copy
106
+ of this software and associated documentation files (the "Software"), to deal
107
+ in the Software without restriction, including without limitation the rights
108
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
109
+ copies of the Software, and to permit persons to whom the Software is
110
+ furnished to do so, subject to the following conditions:
111
+
112
+ The above copyright notice and this permission notice shall be included in
113
+ all copies or substantial portions of the Software.
114
+
115
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
116
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
117
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
118
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
119
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
120
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
121
+ THE SOFTWARE.
122
+ """
123
+
124
+ - https://github.com/isaacs/yallist/blob/main/LICENSE.md
125
+ - https://github.com/isaacs/chownr/blob/main/LICENSE.md
126
+
127
+ """
128
+
129
+ # Blue Oak Model License
130
+
131
+ Version 1.0.0
132
+
133
+ ## Purpose
134
+
135
+ This license gives everyone as much permission to work with
136
+ this software as possible, while protecting contributors
137
+ from liability.
138
+
139
+ ## Acceptance
140
+
141
+ In order to receive this license, you must agree to its
142
+ rules. The rules of this license are both obligations
143
+ under that agreement and conditions to your license.
144
+ You must not do anything with this software that triggers
145
+ a rule that you cannot or will not follow.
146
+
147
+ ## Copyright
148
+
149
+ Each contributor licenses you to do everything with this
150
+ software that would otherwise infringe that contributor's
151
+ copyright in it.
152
+
153
+ ## Notices
154
+
155
+ You must ensure that everyone who gets a copy of
156
+ any part of this software from you, with or without
157
+ changes, also gets the text of this license or a link to
158
+ <https://blueoakcouncil.org/license/1.0.0>.
159
+
160
+ ## Excuse
161
+
162
+ If anyone notifies you in writing that you have not
163
+ complied with [Notices](#notices), you can keep your
164
+ license by taking all practical steps to comply within 30
165
+ days after the notice. If you do not do so, your license
166
+ ends immediately.
167
+
168
+ ## Patent
169
+
170
+ Each contributor licenses you to do everything with this
171
+ software that would otherwise infringe any patent claims
172
+ they can license or become able to license.
173
+
174
+ ## Reliability
175
+
176
+ No contributor can revoke this license.
177
+
178
+ ## No Liability
179
+
180
+ **_As far as the law allows, this software comes as is,
181
+ without any warranty or condition, and no contributor
182
+ will be liable to anyone for any damages related to this
183
+ software or this license, under any kind of legal claim._**
184
+ """
package/dist/cli.mjs CHANGED
@@ -2,10 +2,20 @@
2
2
  import { relative } from 'node:path';
3
3
  import { defineCommand, runMain } from 'citty';
4
4
  import { consola } from 'consola';
5
- import { d as downloadTemplate, s as startShell } from './shared/giget.D-_6aM9e.mjs';
5
+ import { d as downloadTemplate, s as startShell } from './shared/giget.OCaTp9b-.mjs';
6
6
  import 'node:fs/promises';
7
7
  import 'node:fs';
8
- import 'tar';
8
+ import 'assert';
9
+ import 'path';
10
+ import 'events';
11
+ import 'stream';
12
+ import 'string_decoder';
13
+ import 'buffer';
14
+ import 'zlib';
15
+ import 'process';
16
+ import 'fs';
17
+ import 'util';
18
+ import 'crypto';
9
19
  import 'pathe';
10
20
  import 'defu';
11
21
  import 'nypm';
@@ -16,87 +26,12 @@ import 'node:util';
16
26
  import 'node-fetch-native/proxy';
17
27
 
18
28
  const name = "giget";
19
- const version = "1.2.4";
29
+ const version = "2.0.0";
20
30
  const description = "Download templates and git repositories with pleasure!";
21
- const repository = "unjs/giget";
22
- const license = "MIT";
23
- const sideEffects = false;
24
- const type = "module";
25
- const exports = {
26
- ".": {
27
- "import": {
28
- types: "./dist/index.d.mts",
29
- "default": "./dist/index.mjs"
30
- },
31
- require: {
32
- types: "./dist/index.d.cts",
33
- "default": "./dist/index.cjs"
34
- }
35
- }
36
- };
37
- const main = "./dist/index.cjs";
38
- const module = "./dist/index.mjs";
39
- const types = "./dist/index.d.ts";
40
- const bin = {
41
- giget: "./dist/cli.mjs"
42
- };
43
- const files = [
44
- "dist"
45
- ];
46
- const scripts = {
47
- build: "unbuild",
48
- dev: "vitest dev",
49
- giget: "jiti ./src/cli.ts",
50
- lint: "eslint . && prettier -c src test",
51
- "lint:fix": "eslint . --fix && prettier -w src test",
52
- prepack: "unbuild",
53
- play: "pnpm giget --force-clean --verbose unjs .tmp/clone",
54
- release: "pnpm test && changelogen --release && npm publish && git push --follow-tags",
55
- test: "pnpm lint && vitest run --coverage"
56
- };
57
- const dependencies = {
58
- citty: "^0.1.6",
59
- consola: "^3.4.0",
60
- defu: "^6.1.4",
61
- "node-fetch-native": "^1.6.6",
62
- nypm: "^0.5.1",
63
- ohash: "^1.1.4",
64
- pathe: "^2.0.2",
65
- tar: "^6.2.1"
66
- };
67
- const devDependencies = {
68
- "@types/node": "^22.10.10",
69
- "@types/tar": "^6.1.13",
70
- "@vitest/coverage-v8": "^3.0.4",
71
- changelogen: "^0.5.7",
72
- eslint: "^9.19.0",
73
- "eslint-config-unjs": "^0.4.2",
74
- jiti: "^2.4.2",
75
- prettier: "^3.4.2",
76
- typescript: "^5.7.3",
77
- unbuild: "^3.3.1",
78
- vitest: "^3.0.4"
79
- };
80
- const packageManager = "pnpm@9.15.4";
81
31
  const pkg = {
82
32
  name: name,
83
33
  version: version,
84
- description: description,
85
- repository: repository,
86
- license: license,
87
- sideEffects: sideEffects,
88
- type: type,
89
- exports: exports,
90
- main: main,
91
- module: module,
92
- types: types,
93
- bin: bin,
94
- files: files,
95
- scripts: scripts,
96
- dependencies: dependencies,
97
- devDependencies: devDependencies,
98
- packageManager: packageManager
99
- };
34
+ description: description};
100
35
 
101
36
  const mainCommand = defineCommand({
102
37
  meta: {
package/dist/index.mjs CHANGED
@@ -1,7 +1,17 @@
1
- export { d as downloadTemplate, r as registryProvider, s as startShell } from './shared/giget.D-_6aM9e.mjs';
1
+ export { d as downloadTemplate, r as registryProvider, s as startShell } from './shared/giget.OCaTp9b-.mjs';
2
2
  import 'node:fs/promises';
3
3
  import 'node:fs';
4
- import 'tar';
4
+ import 'assert';
5
+ import 'path';
6
+ import 'events';
7
+ import 'stream';
8
+ import 'string_decoder';
9
+ import 'buffer';
10
+ import 'zlib';
11
+ import 'process';
12
+ import 'fs';
13
+ import 'util';
14
+ import 'crypto';
5
15
  import 'pathe';
6
16
  import 'defu';
7
17
  import 'nypm';