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.e7e76a83.cjs');
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.c3d868f5.mjs';
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
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const giget = require('./shared/giget.e7e76a83.cjs');
3
+ const giget = require('./shared/giget.a16f8b31.cjs');
4
4
  require('node:fs/promises');
5
5
  require('node:fs');
6
6
  require('tar');
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { d as downloadTemplate, r as registryProvider, s as startShell } from './shared/giget.c3d868f5.mjs';
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "giget",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Download templates and git repositories with pleasure!",
5
5
  "repository": "unjs/giget",
6
6
  "license": "MIT",