create-book 10.6.0 → 11.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/README.md +2 -2
- package/dist/{chunk-VMSWFJV3.js → chunk-4WYK2VLY.js} +24 -24
- package/dist/{chunk-VMSWFJV3.js.map → chunk-4WYK2VLY.js.map} +1 -1
- package/dist/{chunk-CGNTMUWV.js → chunk-DYEUART5.js} +24 -24
- package/dist/{chunk-CGNTMUWV.js.map → chunk-DYEUART5.js.map} +1 -1
- package/dist/cli.js +57142 -9191
- package/dist/cli.js.map +1 -1
- package/dist/{esm-37JFDZDP.js → esm-I3NJFFJB.js} +174 -174
- package/dist/{esm-37JFDZDP.js.map → esm-I3NJFFJB.js.map} +1 -1
- package/dist/{multipart-parser-PQ4MHJFX.js → multipart-parser-E3KQFK6X.js} +12 -2
- package/dist/multipart-parser-E3KQFK6X.js.map +1 -0
- package/dist/{multipart-parser-J2AQO3RK.js → multipart-parser-NXFKQTFR.js} +3 -3
- package/dist/{multipart-parser-J2AQO3RK.js.map → multipart-parser-NXFKQTFR.js.map} +1 -1
- package/package.json +3 -3
- package/dist/multipart-parser-PQ4MHJFX.js.map +0 -1
package/README.md
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
[](https://npmjs.com/package/create-book) []()
|
|
10
10
|
|
|
11
|
-
Just run `npm create book` and start writing your book!
|
|
11
|
+
Just run `npm create book@latest` and start writing your book!
|
|
12
12
|
|
|
13
13
|
## Use
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm create book
|
|
16
|
+
npm create book@latest
|
|
17
17
|
yarn create book # for yarn users
|
|
18
18
|
pnpm create book # for pnpm users
|
|
19
19
|
```
|
|
@@ -13,16 +13,16 @@ function f(e) {
|
|
|
13
13
|
o(f, "getDefaultExportFromCjs");
|
|
14
14
|
|
|
15
15
|
// ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs
|
|
16
|
-
import Bt from "
|
|
17
|
-
import zs from "
|
|
18
|
-
import st from "
|
|
19
|
-
import me, { PassThrough as dr, pipeline as lt } from "
|
|
20
|
-
import { Buffer as M } from "
|
|
21
|
-
import { types as hr, deprecate as pr, promisify as Is } from "
|
|
22
|
-
import { format as js } from "
|
|
23
|
-
import { isIP as Ls } from "
|
|
24
|
-
import { promises as $s, statSync as hi, createReadStream as Ds } from "
|
|
25
|
-
import { basename as Ms } from "
|
|
16
|
+
import Bt from "http";
|
|
17
|
+
import zs from "https";
|
|
18
|
+
import st from "zlib";
|
|
19
|
+
import me, { PassThrough as dr, pipeline as lt } from "stream";
|
|
20
|
+
import { Buffer as M } from "buffer";
|
|
21
|
+
import { types as hr, deprecate as pr, promisify as Is } from "util";
|
|
22
|
+
import { format as js } from "url";
|
|
23
|
+
import { isIP as Ls } from "net";
|
|
24
|
+
import { promises as $s, statSync as hi, createReadStream as Ds } from "fs";
|
|
25
|
+
import { basename as Ms } from "path";
|
|
26
26
|
var Os = Object.defineProperty;
|
|
27
27
|
var fi = (i) => {
|
|
28
28
|
throw TypeError(i);
|
|
@@ -65,7 +65,7 @@ var kt = { exports: {} };
|
|
|
65
65
|
var xs = kt.exports;
|
|
66
66
|
var bi;
|
|
67
67
|
function Ns() {
|
|
68
|
-
return bi || (bi = 1, function(i, o2) {
|
|
68
|
+
return bi || (bi = 1, (function(i, o2) {
|
|
69
69
|
(function(a, f2) {
|
|
70
70
|
f2(o2);
|
|
71
71
|
})(xs, function(a) {
|
|
@@ -173,7 +173,7 @@ function Ns() {
|
|
|
173
173
|
};
|
|
174
174
|
n2(bn, "SimpleQueue");
|
|
175
175
|
let D = bn;
|
|
176
|
-
const jt = Symbol("[[AbortSteps]]"), Qn = Symbol("[[ErrorSteps]]"), Ar = Symbol("[[CancelSteps]]"), Br = Symbol("[[PullSteps]]"), kr = Symbol("[[ReleaseSteps]]");
|
|
176
|
+
const jt = /* @__PURE__ */ Symbol("[[AbortSteps]]"), Qn = /* @__PURE__ */ Symbol("[[ErrorSteps]]"), Ar = /* @__PURE__ */ Symbol("[[CancelSteps]]"), Br = /* @__PURE__ */ Symbol("[[PullSteps]]"), kr = /* @__PURE__ */ Symbol("[[ReleaseSteps]]");
|
|
177
177
|
function Yn(e, t2) {
|
|
178
178
|
e._ownerReadableStream = t2, t2._reader = e, t2._state === "readable" ? qr(e) : t2._state === "closed" ? xi(e) : Gn(e, t2._storedError);
|
|
179
179
|
}
|
|
@@ -444,9 +444,9 @@ function Ns() {
|
|
|
444
444
|
}
|
|
445
445
|
n2(Ut, "GetMethod");
|
|
446
446
|
function Ji(e) {
|
|
447
|
-
const t2 = { [Symbol.iterator]: () => e.iterator }, r = async function* () {
|
|
447
|
+
const t2 = { [Symbol.iterator]: () => e.iterator }, r = (async function* () {
|
|
448
448
|
return yield* t2;
|
|
449
|
-
}(), s = r.next;
|
|
449
|
+
})(), s = r.next;
|
|
450
450
|
return { iterator: r, nextMethod: s, done: false };
|
|
451
451
|
}
|
|
452
452
|
n2(Ji, "CreateAsyncFromSyncIterator");
|
|
@@ -2437,7 +2437,7 @@ function Ns() {
|
|
|
2437
2437
|
}
|
|
2438
2438
|
n2(li, "streamBrandCheckException"), a.ByteLengthQueuingStrategy = Xe, a.CountQueuingStrategy = et, a.ReadableByteStreamController = te, a.ReadableStream = L, a.ReadableStreamBYOBReader = ce, a.ReadableStreamBYOBRequest = Re, a.ReadableStreamDefaultController = ne, a.ReadableStreamDefaultReader = fe, a.TransformStream = tt, a.TransformStreamDefaultController = pe, a.WritableStream = de, a.WritableStreamDefaultController = ke, a.WritableStreamDefaultWriter = re;
|
|
2439
2439
|
});
|
|
2440
|
-
}(kt, kt.exports)), kt.exports;
|
|
2440
|
+
})(kt, kt.exports)), kt.exports;
|
|
2441
2441
|
}
|
|
2442
2442
|
n2(Ns, "requirePonyfill_es2018");
|
|
2443
2443
|
var mi;
|
|
@@ -2446,10 +2446,10 @@ function Hs() {
|
|
|
2446
2446
|
mi = 1;
|
|
2447
2447
|
const i = 65536;
|
|
2448
2448
|
if (!globalThis.ReadableStream) try {
|
|
2449
|
-
const o2 = __require("
|
|
2449
|
+
const o2 = __require("process"), { emitWarning: a } = o2;
|
|
2450
2450
|
try {
|
|
2451
2451
|
o2.emitWarning = () => {
|
|
2452
|
-
}, Object.assign(globalThis, __require("
|
|
2452
|
+
}, Object.assign(globalThis, __require("stream/web")), o2.emitWarning = a;
|
|
2453
2453
|
} catch (f2) {
|
|
2454
2454
|
throw o2.emitWarning = a, f2;
|
|
2455
2455
|
}
|
|
@@ -2695,7 +2695,7 @@ var Xs = n2((i, o2) => {
|
|
|
2695
2695
|
return a === f2;
|
|
2696
2696
|
}, "isSameProtocol");
|
|
2697
2697
|
var el = Is(me.pipeline);
|
|
2698
|
-
var H = Symbol("Body internals");
|
|
2698
|
+
var H = /* @__PURE__ */ Symbol("Body internals");
|
|
2699
2699
|
var Nn = class Nn2 {
|
|
2700
2700
|
constructor(o2, { size: a = 0 } = {}) {
|
|
2701
2701
|
let f2 = null;
|
|
@@ -2723,7 +2723,7 @@ var Nn = class Nn2 {
|
|
|
2723
2723
|
for (const [p, h] of l) f2.append(p, h);
|
|
2724
2724
|
return f2;
|
|
2725
2725
|
}
|
|
2726
|
-
const { toFormData: a } = await import("./multipart-parser-
|
|
2726
|
+
const { toFormData: a } = await import("./multipart-parser-E3KQFK6X.js");
|
|
2727
2727
|
return a(this.body, o2);
|
|
2728
2728
|
}
|
|
2729
2729
|
async blob() {
|
|
@@ -2862,7 +2862,7 @@ var Pr = class Pr2 extends URLSearchParams {
|
|
|
2862
2862
|
raw() {
|
|
2863
2863
|
return [...this.keys()].reduce((o2, a) => (o2[a] = this.getAll(a), o2), {});
|
|
2864
2864
|
}
|
|
2865
|
-
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
2865
|
+
[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")]() {
|
|
2866
2866
|
return [...this.keys()].reduce((o2, a) => {
|
|
2867
2867
|
const f2 = this.getAll(a);
|
|
2868
2868
|
return a === "host" ? o2[a] = f2[0] : o2[a] = f2.length > 1 ? f2 : f2[0], o2;
|
|
@@ -2884,7 +2884,7 @@ function ol(i = []) {
|
|
|
2884
2884
|
n2(ol, "fromRawHeaders");
|
|
2885
2885
|
var il = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
2886
2886
|
var jn = n2((i) => il.has(i), "isRedirect");
|
|
2887
|
-
var se = Symbol("Response internals");
|
|
2887
|
+
var se = /* @__PURE__ */ Symbol("Response internals");
|
|
2888
2888
|
var Ne = class Ne2 extends xe {
|
|
2889
2889
|
constructor(o2 = null, a = {}) {
|
|
2890
2890
|
super(o2, a);
|
|
@@ -3006,7 +3006,7 @@ function cl(i) {
|
|
|
3006
3006
|
return a;
|
|
3007
3007
|
}
|
|
3008
3008
|
n2(cl, "parseReferrerPolicyFromHeader");
|
|
3009
|
-
var $ = Symbol("Request internals");
|
|
3009
|
+
var $ = /* @__PURE__ */ Symbol("Request internals");
|
|
3010
3010
|
var qt = n2((i) => typeof i == "object" && typeof i[$] == "object", "isRequest");
|
|
3011
3011
|
var dl = pr(() => {
|
|
3012
3012
|
}, ".data is not a valid RequestInit property, use .body instead", "https://github.com/node-fetch/node-fetch/issues/1000 (request)");
|
|
@@ -3080,7 +3080,7 @@ var hl = n2((i) => {
|
|
|
3080
3080
|
f2 && a.set("Content-Length", f2), i.referrerPolicy === "" && (i.referrerPolicy = sl), i.referrer && i.referrer !== "no-referrer" ? i[$].referrer = fl(i) : i[$].referrer = "no-referrer", i[$].referrer instanceof URL && a.set("Referer", i.referrer), a.has("User-Agent") || a.set("User-Agent", "node-fetch"), i.compress && !a.has("Accept-Encoding") && a.set("Accept-Encoding", "gzip, deflate, br");
|
|
3081
3081
|
let { agent: l } = i;
|
|
3082
3082
|
typeof l == "function" && (l = l(o2));
|
|
3083
|
-
const p = al(o2), h = { path: o2.pathname + p, method: i.method, headers: a[Symbol.for("nodejs.util.inspect.custom")](), insecureHTTPParser: i.insecureHTTPParser, agent: l };
|
|
3083
|
+
const p = al(o2), h = { path: o2.pathname + p, method: i.method, headers: a[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")](), insecureHTTPParser: i.insecureHTTPParser, agent: l };
|
|
3084
3084
|
return { parsedURL: o2, options: h };
|
|
3085
3085
|
}, "getNodeRequestOptions");
|
|
3086
3086
|
var Hn = class Hn2 extends ft {
|
|
@@ -3595,4 +3595,4 @@ node-fetch-native/dist/node.mjs:
|
|
|
3595
3595
|
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|
3596
3596
|
(*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
|
|
3597
3597
|
*/
|
|
3598
|
-
//# sourceMappingURL=chunk-
|
|
3598
|
+
//# sourceMappingURL=chunk-4WYK2VLY.js.map
|