giget 1.1.1 → 1.1.2
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/dist/cli.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
const node_path = require('node:path');
|
|
5
5
|
const mri = require('mri');
|
|
6
6
|
const colorette = require('colorette');
|
|
7
|
-
const giget = require('./shared/giget.
|
|
7
|
+
const giget = require('./shared/giget.a16f8b31.cjs');
|
|
8
8
|
require('node:fs/promises');
|
|
9
9
|
require('node:fs');
|
|
10
10
|
require('tar');
|
package/dist/cli.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { relative } from 'node:path';
|
|
3
3
|
import mri from 'mri';
|
|
4
4
|
import { cyan } from 'colorette';
|
|
5
|
-
import { d as downloadTemplate, s as startShell } from './shared/giget.
|
|
5
|
+
import { d as downloadTemplate, s as startShell } from './shared/giget.093c29e5.mjs';
|
|
6
6
|
import 'node:fs/promises';
|
|
7
7
|
import 'node:fs';
|
|
8
8
|
import 'tar';
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { d as downloadTemplate, r as registryProvider, s as startShell } from './shared/giget.
|
|
1
|
+
export { d as downloadTemplate, r as registryProvider, s as startShell } from './shared/giget.093c29e5.mjs';
|
|
2
2
|
import 'node:fs/promises';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tar';
|
|
@@ -63,7 +63,7 @@ async function sendFetch(url, options = {}) {
|
|
|
63
63
|
function cacheDirectory() {
|
|
64
64
|
return process.env.XDG_CACHE_HOME ? resolve(process.env.XDG_CACHE_HOME, "giget") : resolve(homedir(), ".cache/giget");
|
|
65
65
|
}
|
|
66
|
-
function normalizeHeaders(headers) {
|
|
66
|
+
function normalizeHeaders(headers = {}) {
|
|
67
67
|
const normalized = {};
|
|
68
68
|
for (const [key, value] of Object.entries(headers)) {
|
|
69
69
|
if (!value) {
|
|
@@ -65,7 +65,7 @@ async function sendFetch(url, options = {}) {
|
|
|
65
65
|
function cacheDirectory() {
|
|
66
66
|
return process.env.XDG_CACHE_HOME ? pathe.resolve(process.env.XDG_CACHE_HOME, "giget") : pathe.resolve(node_os.homedir(), ".cache/giget");
|
|
67
67
|
}
|
|
68
|
-
function normalizeHeaders(headers) {
|
|
68
|
+
function normalizeHeaders(headers = {}) {
|
|
69
69
|
const normalized = {};
|
|
70
70
|
for (const [key, value] of Object.entries(headers)) {
|
|
71
71
|
if (!value) {
|