create-vuetify0 0.1.0 → 0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuetify0",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Create a new Vuetify project",
5
5
  "type": "module",
6
6
  "files": [
@@ -28,22 +28,27 @@
28
28
  "directory": "packages/create0"
29
29
  },
30
30
  "devDependencies": {
31
- "@bomb.sh/tab": "^0.0.11",
32
- "@clack/prompts": "^1.0.0-alpha.9",
33
- "citty": "^0.1.6",
34
- "giget": "^2.0.0",
31
+ "@bomb.sh/tab": "^0.0.12",
32
+ "@clack/prompts": "^1.0.0",
33
+ "citty": "^0.2.0",
34
+ "giget": "^3.1.2",
35
35
  "kolorist": "^1.8.0",
36
- "nypm": "^0.6.2",
36
+ "nypm": "^0.6.5",
37
37
  "pathe": "^2.0.3",
38
- "tsdown": "^0.16.8",
39
- "@vuetify/cli-shared": "0.1.0"
38
+ "tsdown": "^0.20.3",
39
+ "@vuetify/cli-shared": "0.1.2"
40
40
  },
41
- "main": "./dist/index.mjs",
42
- "module": "./dist/index.mjs",
43
41
  "exports": {
44
42
  ".": "./dist/index.mjs",
45
43
  "./package.json": "./package.json"
46
44
  },
45
+ "dependencies": {
46
+ "magicast": "^0.5.2",
47
+ "package-manager-detector": "^1.6.0",
48
+ "pkg-types": "^2.3.0",
49
+ "tinyexec": "^1.0.2",
50
+ "validate-npm-package-name": "^7.0.2"
51
+ },
47
52
  "scripts": {
48
53
  "build": "tsdown"
49
54
  }
@@ -1,175 +0,0 @@
1
- #!/usr/bin/env node
2
- import { i as __require, n as require_node_fetch_native_DhEqb06g, r as __commonJSMin, t as require_node } from "./node-CLMJD8D0.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
5
- var require_multipart_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- var y = Object.defineProperty;
7
- var c = (R, o) => y(R, "name", {
8
- value: o,
9
- configurable: !0
10
- });
11
- const node = require_node();
12
- __require("node:http"), __require("node:https"), __require("node:zlib"), __require("node:stream"), __require("node:buffer"), __require("node:util"), require_node_fetch_native_DhEqb06g(), __require("node:url"), __require("node:net"), __require("node:fs"), __require("node:path");
13
- let s = 0;
14
- const S = {
15
- START_BOUNDARY: s++,
16
- HEADER_FIELD_START: s++,
17
- HEADER_FIELD: s++,
18
- HEADER_VALUE_START: s++,
19
- HEADER_VALUE: s++,
20
- HEADER_VALUE_ALMOST_DONE: s++,
21
- HEADERS_ALMOST_DONE: s++,
22
- PART_DATA_START: s++,
23
- PART_DATA: s++,
24
- END: s++
25
- };
26
- let f = 1;
27
- const F = {
28
- PART_BOUNDARY: f,
29
- LAST_BOUNDARY: f *= 2
30
- }, LF = 10, CR = 13, SPACE = 32, HYPHEN = 45, COLON = 58, A = 97, Z = 122, lower = c((R) => R | 32, "lower"), noop = c(() => {}, "noop"), g = class g$1 {
31
- constructor(o) {
32
- this.index = 0, this.flags = 0, this.onHeaderEnd = noop, this.onHeaderField = noop, this.onHeadersEnd = noop, this.onHeaderValue = noop, this.onPartBegin = noop, this.onPartData = noop, this.onPartEnd = noop, this.boundaryChars = {}, o = `\r
33
- --` + o;
34
- const t = new Uint8Array(o.length);
35
- for (let n = 0; n < o.length; n++) t[n] = o.charCodeAt(n), this.boundaryChars[t[n]] = !0;
36
- this.boundary = t, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = S.START_BOUNDARY;
37
- }
38
- write(o) {
39
- let t = 0;
40
- const n = o.length;
41
- let E = this.index, { lookbehind: l, boundary: h, boundaryChars: H, index: e, state: a, flags: d } = this;
42
- const b = this.boundary.length, m = b - 1, O = o.length;
43
- let r, P;
44
- const u = c((D) => {
45
- this[D + "Mark"] = t;
46
- }, "mark"), i = c((D) => {
47
- delete this[D + "Mark"];
48
- }, "clear"), T = c((D, p, _, N) => {
49
- (p === void 0 || p !== _) && this[D](N && N.subarray(p, _));
50
- }, "callback"), L = c((D, p) => {
51
- const _ = D + "Mark";
52
- _ in this && (p ? (T(D, this[_], t, o), delete this[_]) : (T(D, this[_], o.length, o), this[_] = 0));
53
- }, "dataCallback");
54
- for (t = 0; t < n; t++) switch (r = o[t], a) {
55
- case S.START_BOUNDARY:
56
- if (e === h.length - 2) {
57
- if (r === HYPHEN) d |= F.LAST_BOUNDARY;
58
- else if (r !== CR) return;
59
- e++;
60
- break;
61
- } else if (e - 1 === h.length - 2) {
62
- if (d & F.LAST_BOUNDARY && r === HYPHEN) a = S.END, d = 0;
63
- else if (!(d & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), a = S.HEADER_FIELD_START;
64
- else return;
65
- break;
66
- }
67
- r !== h[e + 2] && (e = -2), r === h[e + 2] && e++;
68
- break;
69
- case S.HEADER_FIELD_START: a = S.HEADER_FIELD, u("onHeaderField"), e = 0;
70
- case S.HEADER_FIELD:
71
- if (r === CR) {
72
- i("onHeaderField"), a = S.HEADERS_ALMOST_DONE;
73
- break;
74
- }
75
- if (e++, r === HYPHEN) break;
76
- if (r === COLON) {
77
- if (e === 1) return;
78
- L("onHeaderField", !0), a = S.HEADER_VALUE_START;
79
- break;
80
- }
81
- if (P = lower(r), P < A || P > Z) return;
82
- break;
83
- case S.HEADER_VALUE_START:
84
- if (r === SPACE) break;
85
- u("onHeaderValue"), a = S.HEADER_VALUE;
86
- case S.HEADER_VALUE:
87
- r === CR && (L("onHeaderValue", !0), T("onHeaderEnd"), a = S.HEADER_VALUE_ALMOST_DONE);
88
- break;
89
- case S.HEADER_VALUE_ALMOST_DONE:
90
- if (r !== LF) return;
91
- a = S.HEADER_FIELD_START;
92
- break;
93
- case S.HEADERS_ALMOST_DONE:
94
- if (r !== LF) return;
95
- T("onHeadersEnd"), a = S.PART_DATA_START;
96
- break;
97
- case S.PART_DATA_START: a = S.PART_DATA, u("onPartData");
98
- case S.PART_DATA:
99
- if (E = e, e === 0) {
100
- for (t += m; t < O && !(o[t] in H);) t += b;
101
- t -= m, r = o[t];
102
- }
103
- if (e < h.length) h[e] === r ? (e === 0 && L("onPartData", !0), e++) : e = 0;
104
- else if (e === h.length) e++, r === CR ? d |= F.PART_BOUNDARY : r === HYPHEN ? d |= F.LAST_BOUNDARY : e = 0;
105
- else if (e - 1 === h.length) if (d & F.PART_BOUNDARY) {
106
- if (e = 0, r === LF) {
107
- d &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), a = S.HEADER_FIELD_START;
108
- break;
109
- }
110
- } else d & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), a = S.END, d = 0) : e = 0;
111
- if (e > 0) l[e - 1] = r;
112
- else if (E > 0) {
113
- const D = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
114
- T("onPartData", 0, E, D), E = 0, u("onPartData"), t--;
115
- }
116
- break;
117
- case S.END: break;
118
- default: throw new Error(`Unexpected state entered: ${a}`);
119
- }
120
- L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = a, this.flags = d;
121
- }
122
- end() {
123
- if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
124
- else if (this.state !== S.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
125
- }
126
- };
127
- c(g, "MultipartParser");
128
- let MultipartParser = g;
129
- function _fileName(R) {
130
- const o = R.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
131
- if (!o) return;
132
- const t = o[2] || o[3] || "";
133
- let n = t.slice(t.lastIndexOf("\\") + 1);
134
- return n = n.replace(/%22/g, "\""), n = n.replace(/&#(\d{4});/g, (E, l) => String.fromCharCode(l)), n;
135
- }
136
- c(_fileName, "_fileName");
137
- async function toFormData(R, o) {
138
- if (!/multipart/i.test(o)) throw new TypeError("Failed to fetch");
139
- const t = o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
140
- if (!t) throw new TypeError("no or bad content-type header, no multipart boundary");
141
- const n = new MultipartParser(t[1] || t[2]);
142
- let E, l, h, H, e, a;
143
- const d = [], b = new node.FormData(), m = c((i) => {
144
- h += u.decode(i, { stream: !0 });
145
- }, "onPartData"), O = c((i) => {
146
- d.push(i);
147
- }, "appendToFile"), r = c(() => {
148
- const i = new node.File(d, a, { type: e });
149
- b.append(H, i);
150
- }, "appendFileToFormData"), P = c(() => {
151
- b.append(H, h);
152
- }, "appendEntryToFormData"), u = new TextDecoder("utf-8");
153
- u.decode(), n.onPartBegin = function() {
154
- n.onPartData = m, n.onPartEnd = P, E = "", l = "", h = "", H = "", e = "", a = null, d.length = 0;
155
- }, n.onHeaderField = function(i) {
156
- E += u.decode(i, { stream: !0 });
157
- }, n.onHeaderValue = function(i) {
158
- l += u.decode(i, { stream: !0 });
159
- }, n.onHeaderEnd = function() {
160
- if (l += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
161
- const i = l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
162
- i && (H = i[2] || i[3] || ""), a = _fileName(l), a && (n.onPartData = O, n.onPartEnd = r);
163
- } else E === "content-type" && (e = l);
164
- l = "", E = "";
165
- };
166
- for await (const i of R) n.write(i);
167
- return n.end(), b;
168
- }
169
- c(toFormData, "toFormData"), exports.toFormData = toFormData;
170
- }));
171
-
172
- //#endregion
173
- export default require_multipart_parser();
174
-
175
- export { };