houdini-svelte 1.0.0-next.7 → 1.0.0-next.9
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/build/plugin/extract.d.ts +1 -2
- package/build/plugin/index.d.ts +1 -2
- package/build/plugin-cjs/index.js +89 -89
- package/build/plugin-esm/index.js +25 -25
- package/build/preprocess-cjs/index.js +79 -76
- package/build/preprocess-esm/index.js +26 -23
- package/build/runtime/stores/mutation.d.ts +1 -2
- package/build/runtime/stores/query.d.ts +2 -3
- package/build/runtime-cjs/stores/mutation.d.ts +1 -2
- package/build/runtime-cjs/stores/query.d.ts +2 -3
- package/build/runtime-cjs/stores/query.js +4 -5
- package/build/runtime-esm/stores/mutation.d.ts +1 -2
- package/build/runtime-esm/stores/query.d.ts +2 -3
- package/build/runtime-esm/stores/query.js +1 -2
- package/build/test-cjs/index.js +181 -153
- package/build/test-esm/index.js +92 -64
- package/package.json +3 -3
package/build/plugin/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { PluginHooks } from 'houdini';
|
|
2
|
-
import { type Config } from 'houdini';
|
|
1
|
+
import type { PluginHooks, Config } from 'houdini';
|
|
3
2
|
export declare let _config: Config;
|
|
4
3
|
export declare const pluginHooks: () => Promise<PluginHooks>;
|
|
5
4
|
declare const _default: import("houdini").PluginInit;
|
|
@@ -31076,18 +31076,18 @@ module.exports = __toCommonJS(plugin_exports);
|
|
|
31076
31076
|
// ../houdini/build/lib-esm/index.js
|
|
31077
31077
|
var import_module = require("module");
|
|
31078
31078
|
var import_node_fs = require("node:fs");
|
|
31079
|
-
var
|
|
31080
|
-
var import_promises = __toESM(require("fs/promises"), 1);
|
|
31081
|
-
var import_util = require("util");
|
|
31082
|
-
var import_os = __toESM(require("os"), 1);
|
|
31083
|
-
var import_path = __toESM(require("path"), 1);
|
|
31084
|
-
var import_node_stream = __toESM(require("node:stream"), 1);
|
|
31079
|
+
var import_node_url = require("node:url");
|
|
31080
|
+
var import_promises = __toESM(require("node:fs/promises"), 1);
|
|
31085
31081
|
var import_node_util = require("node:util");
|
|
31086
|
-
var
|
|
31082
|
+
var import_node_os = __toESM(require("node:os"), 1);
|
|
31083
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
31084
|
+
var import_node_stream = __toESM(require("node:stream"), 1);
|
|
31087
31085
|
var import_node_util2 = require("node:util");
|
|
31088
|
-
var
|
|
31089
|
-
var import_node_url = require("node:url");
|
|
31086
|
+
var import_node_buffer = require("node:buffer");
|
|
31090
31087
|
var import_node_util3 = require("node:util");
|
|
31088
|
+
var import_node_http = __toESM(require("node:http"), 1);
|
|
31089
|
+
var import_node_url2 = require("node:url");
|
|
31090
|
+
var import_node_util4 = require("node:util");
|
|
31091
31091
|
var import_meta = {};
|
|
31092
31092
|
var require2 = (0, import_module.createRequire)(import_meta.url);
|
|
31093
31093
|
var __create2 = Object.create;
|
|
@@ -89361,32 +89361,32 @@ __export2(path_exports, {
|
|
|
89361
89361
|
});
|
|
89362
89362
|
var sep = "/";
|
|
89363
89363
|
function resolve(...parts) {
|
|
89364
|
-
return posixify(
|
|
89364
|
+
return posixify(import_node_path.default.resolve(...parts));
|
|
89365
89365
|
}
|
|
89366
89366
|
function join2(...parts) {
|
|
89367
|
-
return posixify(
|
|
89367
|
+
return posixify(import_node_path.default.join(...parts));
|
|
89368
89368
|
}
|
|
89369
89369
|
function extname(target) {
|
|
89370
|
-
return
|
|
89370
|
+
return import_node_path.default.extname(target);
|
|
89371
89371
|
}
|
|
89372
89372
|
function relative(from, to) {
|
|
89373
|
-
return posixify(
|
|
89373
|
+
return posixify(import_node_path.default.relative(from, to));
|
|
89374
89374
|
}
|
|
89375
89375
|
function basename(target) {
|
|
89376
|
-
return
|
|
89376
|
+
return import_node_path.default.basename(target);
|
|
89377
89377
|
}
|
|
89378
89378
|
function dirname(target) {
|
|
89379
|
-
return
|
|
89379
|
+
return import_node_path.default.dirname(target);
|
|
89380
89380
|
}
|
|
89381
89381
|
function isAbsolute(target) {
|
|
89382
|
-
return
|
|
89382
|
+
return import_node_path.default.isAbsolute(target);
|
|
89383
89383
|
}
|
|
89384
89384
|
function parse2(target) {
|
|
89385
|
-
return
|
|
89385
|
+
return import_node_path.default.parse(target);
|
|
89386
89386
|
}
|
|
89387
89387
|
var posixify = (str) => str.replace(/\\/g, "/");
|
|
89388
89388
|
function importPath(target) {
|
|
89389
|
-
return ["win32", "win64"].includes(
|
|
89389
|
+
return ["win32", "win64"].includes(import_node_os.default.platform()) ? "file:///" + target : target;
|
|
89390
89390
|
}
|
|
89391
89391
|
function copyFileSync(src2, dest) {
|
|
89392
89392
|
if (houdini_mode.is_testing) {
|
|
@@ -89508,7 +89508,7 @@ async function rmdir(filepath) {
|
|
|
89508
89508
|
recursive: true
|
|
89509
89509
|
});
|
|
89510
89510
|
}
|
|
89511
|
-
return await (0,
|
|
89511
|
+
return await (0, import_node_util.promisify)(import_memfs.fs.rmdir)(filepath);
|
|
89512
89512
|
}
|
|
89513
89513
|
async function stat(filepath) {
|
|
89514
89514
|
if (!houdini_mode.is_testing) {
|
|
@@ -89586,7 +89586,7 @@ async function recursiveCopy(source, target, transforms, notRoot) {
|
|
|
89586
89586
|
}
|
|
89587
89587
|
}
|
|
89588
89588
|
async function glob(pattern) {
|
|
89589
|
-
return await (0,
|
|
89589
|
+
return await (0, import_node_util.promisify)(import_glob.glob)(posixify(pattern));
|
|
89590
89590
|
}
|
|
89591
89591
|
glob.hasMagic = import_glob.glob.hasMagic;
|
|
89592
89592
|
var graphql = __toESM2(require_graphql2(), 1);
|
|
@@ -89624,7 +89624,7 @@ var isBlob = (object) => {
|
|
|
89624
89624
|
var isAbortSignal = (object) => {
|
|
89625
89625
|
return typeof object === "object" && (object[NAME] === "AbortSignal" || object[NAME] === "EventTarget");
|
|
89626
89626
|
};
|
|
89627
|
-
var pipeline = (0,
|
|
89627
|
+
var pipeline = (0, import_node_util2.promisify)(import_node_stream.default.pipeline);
|
|
89628
89628
|
var INTERNALS = Symbol("Body internals");
|
|
89629
89629
|
var Body = class {
|
|
89630
89630
|
constructor(body, {
|
|
@@ -89637,7 +89637,7 @@ var Body = class {
|
|
|
89637
89637
|
body = import_node_buffer.Buffer.from(body.toString());
|
|
89638
89638
|
} else if (isBlob(body)) {
|
|
89639
89639
|
} else if (import_node_buffer.Buffer.isBuffer(body)) {
|
|
89640
|
-
} else if (
|
|
89640
|
+
} else if (import_node_util2.types.isAnyArrayBuffer(body)) {
|
|
89641
89641
|
body = import_node_buffer.Buffer.from(body);
|
|
89642
89642
|
} else if (ArrayBuffer.isView(body)) {
|
|
89643
89643
|
body = import_node_buffer.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
|
@@ -89711,7 +89711,7 @@ var Body = class {
|
|
|
89711
89711
|
return consumeBody(this);
|
|
89712
89712
|
}
|
|
89713
89713
|
};
|
|
89714
|
-
Body.prototype.buffer = (0,
|
|
89714
|
+
Body.prototype.buffer = (0, import_node_util2.deprecate)(Body.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer");
|
|
89715
89715
|
Object.defineProperties(Body.prototype, {
|
|
89716
89716
|
body: { enumerable: true },
|
|
89717
89717
|
bodyUsed: { enumerable: true },
|
|
@@ -89719,7 +89719,7 @@ Object.defineProperties(Body.prototype, {
|
|
|
89719
89719
|
blob: { enumerable: true },
|
|
89720
89720
|
json: { enumerable: true },
|
|
89721
89721
|
text: { enumerable: true },
|
|
89722
|
-
data: { get: (0,
|
|
89722
|
+
data: { get: (0, import_node_util2.deprecate)(
|
|
89723
89723
|
() => {
|
|
89724
89724
|
},
|
|
89725
89725
|
"data doesn't exist, use json(), text(), arrayBuffer(), or body instead",
|
|
@@ -89787,7 +89787,7 @@ var clone = (instance, highWaterMark) => {
|
|
|
89787
89787
|
}
|
|
89788
89788
|
return body;
|
|
89789
89789
|
};
|
|
89790
|
-
var getNonSpecFormDataBoundary = (0,
|
|
89790
|
+
var getNonSpecFormDataBoundary = (0, import_node_util2.deprecate)(
|
|
89791
89791
|
(body) => body.getBoundary(),
|
|
89792
89792
|
"form-data doesn't follow the spec and requires special treatment. Use alternative package",
|
|
89793
89793
|
"https://github.com/node-fetch/node-fetch/issues/1167"
|
|
@@ -89805,7 +89805,7 @@ var extractContentType = (body, request) => {
|
|
|
89805
89805
|
if (isBlob(body)) {
|
|
89806
89806
|
return body.type || null;
|
|
89807
89807
|
}
|
|
89808
|
-
if (import_node_buffer.Buffer.isBuffer(body) ||
|
|
89808
|
+
if (import_node_buffer.Buffer.isBuffer(body) || import_node_util2.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
|
|
89809
89809
|
return null;
|
|
89810
89810
|
}
|
|
89811
89811
|
if (body instanceof FormData) {
|
|
@@ -89842,7 +89842,7 @@ var Headers2 = class extends URLSearchParams {
|
|
|
89842
89842
|
result.push(...values.map((value2) => [name, value2]));
|
|
89843
89843
|
}
|
|
89844
89844
|
} else if (init == null) {
|
|
89845
|
-
} else if (typeof init === "object" && !
|
|
89845
|
+
} else if (typeof init === "object" && !import_node_util3.types.isBoxedPrimitive(init)) {
|
|
89846
89846
|
const method = init[Symbol.iterator];
|
|
89847
89847
|
if (method == null) {
|
|
89848
89848
|
result.push(...Object.entries(init));
|
|
@@ -89851,7 +89851,7 @@ var Headers2 = class extends URLSearchParams {
|
|
|
89851
89851
|
throw new TypeError("Header pairs must be iterable");
|
|
89852
89852
|
}
|
|
89853
89853
|
result = [...init].map((pair) => {
|
|
89854
|
-
if (typeof pair !== "object" ||
|
|
89854
|
+
if (typeof pair !== "object" || import_node_util3.types.isBoxedPrimitive(pair)) {
|
|
89855
89855
|
throw new TypeError("Each header pair must be an iterable object");
|
|
89856
89856
|
}
|
|
89857
89857
|
return [...pair];
|
|
@@ -90094,7 +90094,7 @@ var INTERNALS3 = Symbol("Request internals");
|
|
|
90094
90094
|
var isRequest = (object) => {
|
|
90095
90095
|
return typeof object === "object" && typeof object[INTERNALS3] === "object";
|
|
90096
90096
|
};
|
|
90097
|
-
var doBadDataWarn = (0,
|
|
90097
|
+
var doBadDataWarn = (0, import_node_util4.deprecate)(
|
|
90098
90098
|
() => {
|
|
90099
90099
|
},
|
|
90100
90100
|
".data is not a valid RequestInit property, use .body instead",
|
|
@@ -90169,7 +90169,7 @@ var Request = class extends Body {
|
|
|
90169
90169
|
return this[INTERNALS3].method;
|
|
90170
90170
|
}
|
|
90171
90171
|
get url() {
|
|
90172
|
-
return (0,
|
|
90172
|
+
return (0, import_node_url2.format)(this[INTERNALS3].parsedURL);
|
|
90173
90173
|
}
|
|
90174
90174
|
get headers() {
|
|
90175
90175
|
return this[INTERNALS3].headers;
|
|
@@ -90231,7 +90231,7 @@ function plugin(name, hooks) {
|
|
|
90231
90231
|
};
|
|
90232
90232
|
return data2;
|
|
90233
90233
|
}
|
|
90234
|
-
var currentDir = global.__dirname || dirname((0,
|
|
90234
|
+
var currentDir = global.__dirname || dirname((0, import_node_url.fileURLToPath)(import_meta.url));
|
|
90235
90235
|
var DEFAULT_CONFIG_PATH = join2(process.cwd(), "houdini.config.js");
|
|
90236
90236
|
var graphql3 = __toESM2(require_graphql2(), 1);
|
|
90237
90237
|
function formatErrors(e22, afterError) {
|
|
@@ -90517,8 +90517,8 @@ async function find_graphql(config4, parsedScript, walker) {
|
|
|
90517
90517
|
}
|
|
90518
90518
|
|
|
90519
90519
|
// src/plugin/index.ts
|
|
90520
|
-
var url = __toESM(require("url"), 1);
|
|
90521
|
-
var
|
|
90520
|
+
var url = __toESM(require("node:url"), 1);
|
|
90521
|
+
var import_vite7 = require("vite");
|
|
90522
90522
|
|
|
90523
90523
|
// src/plugin/artifactData.ts
|
|
90524
90524
|
var graphql5 = __toESM(require_graphql4(), 1);
|
|
@@ -90549,18 +90549,18 @@ var graphql29 = __toESM(require_graphql4(), 1);
|
|
|
90549
90549
|
// ../houdini/build/vite-esm/index.js
|
|
90550
90550
|
var import_module2 = require("module");
|
|
90551
90551
|
var import_node_fs2 = require("node:fs");
|
|
90552
|
-
var
|
|
90553
|
-
var import_promises2 = __toESM(require("fs/promises"), 1);
|
|
90554
|
-
var
|
|
90555
|
-
var
|
|
90556
|
-
var
|
|
90552
|
+
var import_node_url3 = require("node:url");
|
|
90553
|
+
var import_promises2 = __toESM(require("node:fs/promises"), 1);
|
|
90554
|
+
var import_node_util5 = require("node:util");
|
|
90555
|
+
var import_node_os2 = __toESM(require("node:os"), 1);
|
|
90556
|
+
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
90557
90557
|
var import_node_stream2 = __toESM(require("node:stream"), 1);
|
|
90558
|
-
var
|
|
90558
|
+
var import_node_util6 = require("node:util");
|
|
90559
90559
|
var import_node_buffer2 = require("node:buffer");
|
|
90560
|
-
var
|
|
90560
|
+
var import_node_util7 = require("node:util");
|
|
90561
90561
|
var import_node_http2 = __toESM(require("node:http"), 1);
|
|
90562
|
-
var
|
|
90563
|
-
var
|
|
90562
|
+
var import_node_url4 = require("node:url");
|
|
90563
|
+
var import_node_util8 = require("node:util");
|
|
90564
90564
|
var import_meta2 = {};
|
|
90565
90565
|
var require3 = (0, import_module2.createRequire)(import_meta2.url);
|
|
90566
90566
|
var __create3 = Object.create;
|
|
@@ -97942,7 +97942,7 @@ var require_definition3 = __commonJS3({
|
|
|
97942
97942
|
exports.assertInterfaceType = assertInterfaceType;
|
|
97943
97943
|
exports.isUnionType = isUnionType13;
|
|
97944
97944
|
exports.assertUnionType = assertUnionType;
|
|
97945
|
-
exports.isEnumType =
|
|
97945
|
+
exports.isEnumType = isEnumType11;
|
|
97946
97946
|
exports.assertEnumType = assertEnumType;
|
|
97947
97947
|
exports.isInputObjectType = isInputObjectType8;
|
|
97948
97948
|
exports.assertInputObjectType = assertInputObjectType;
|
|
@@ -98013,7 +98013,7 @@ var require_definition3 = __commonJS3({
|
|
|
98013
98013
|
return Constructor;
|
|
98014
98014
|
}
|
|
98015
98015
|
function isType(type) {
|
|
98016
|
-
return isScalarType13(type) || isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type) ||
|
|
98016
|
+
return isScalarType13(type) || isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type) || isEnumType11(type) || isInputObjectType8(type) || isListType8(type) || isNonNullType10(type);
|
|
98017
98017
|
}
|
|
98018
98018
|
function assertType(type) {
|
|
98019
98019
|
if (!isType(type)) {
|
|
@@ -98057,11 +98057,11 @@ var require_definition3 = __commonJS3({
|
|
|
98057
98057
|
}
|
|
98058
98058
|
return type;
|
|
98059
98059
|
}
|
|
98060
|
-
function
|
|
98060
|
+
function isEnumType11(type) {
|
|
98061
98061
|
return (0, _instanceOf.default)(type, GraphQLEnumType4);
|
|
98062
98062
|
}
|
|
98063
98063
|
function assertEnumType(type) {
|
|
98064
|
-
if (!
|
|
98064
|
+
if (!isEnumType11(type)) {
|
|
98065
98065
|
throw new Error("Expected ".concat((0, _inspect.default)(type), " to be a GraphQL Enum type."));
|
|
98066
98066
|
}
|
|
98067
98067
|
return type;
|
|
@@ -98094,7 +98094,7 @@ var require_definition3 = __commonJS3({
|
|
|
98094
98094
|
return type;
|
|
98095
98095
|
}
|
|
98096
98096
|
function isInputType(type) {
|
|
98097
|
-
return isScalarType13(type) ||
|
|
98097
|
+
return isScalarType13(type) || isEnumType11(type) || isInputObjectType8(type) || isWrappingType(type) && isInputType(type.ofType);
|
|
98098
98098
|
}
|
|
98099
98099
|
function assertInputType(type) {
|
|
98100
98100
|
if (!isInputType(type)) {
|
|
@@ -98103,7 +98103,7 @@ var require_definition3 = __commonJS3({
|
|
|
98103
98103
|
return type;
|
|
98104
98104
|
}
|
|
98105
98105
|
function isOutputType(type) {
|
|
98106
|
-
return isScalarType13(type) || isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type) ||
|
|
98106
|
+
return isScalarType13(type) || isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type) || isEnumType11(type) || isWrappingType(type) && isOutputType(type.ofType);
|
|
98107
98107
|
}
|
|
98108
98108
|
function assertOutputType(type) {
|
|
98109
98109
|
if (!isOutputType(type)) {
|
|
@@ -98112,7 +98112,7 @@ var require_definition3 = __commonJS3({
|
|
|
98112
98112
|
return type;
|
|
98113
98113
|
}
|
|
98114
98114
|
function isLeafType4(type) {
|
|
98115
|
-
return isScalarType13(type) ||
|
|
98115
|
+
return isScalarType13(type) || isEnumType11(type);
|
|
98116
98116
|
}
|
|
98117
98117
|
function assertLeafType(type) {
|
|
98118
98118
|
if (!isLeafType4(type)) {
|
|
@@ -98200,7 +98200,7 @@ var require_definition3 = __commonJS3({
|
|
|
98200
98200
|
}
|
|
98201
98201
|
}
|
|
98202
98202
|
function isNamedType4(type) {
|
|
98203
|
-
return isScalarType13(type) || isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type) ||
|
|
98203
|
+
return isScalarType13(type) || isObjectType12(type) || isInterfaceType12(type) || isUnionType13(type) || isEnumType11(type) || isInputObjectType8(type);
|
|
98204
98204
|
}
|
|
98205
98205
|
function assertNamedType(type) {
|
|
98206
98206
|
if (!isNamedType4(type)) {
|
|
@@ -152277,32 +152277,32 @@ __export3(path_exports2, {
|
|
|
152277
152277
|
});
|
|
152278
152278
|
var sep2 = "/";
|
|
152279
152279
|
function resolve2(...parts) {
|
|
152280
|
-
return posixify2(
|
|
152280
|
+
return posixify2(import_node_path2.default.resolve(...parts));
|
|
152281
152281
|
}
|
|
152282
152282
|
function join22(...parts) {
|
|
152283
|
-
return posixify2(
|
|
152283
|
+
return posixify2(import_node_path2.default.join(...parts));
|
|
152284
152284
|
}
|
|
152285
152285
|
function extname2(target) {
|
|
152286
|
-
return
|
|
152286
|
+
return import_node_path2.default.extname(target);
|
|
152287
152287
|
}
|
|
152288
152288
|
function relative2(from, to) {
|
|
152289
|
-
return posixify2(
|
|
152289
|
+
return posixify2(import_node_path2.default.relative(from, to));
|
|
152290
152290
|
}
|
|
152291
152291
|
function basename2(target) {
|
|
152292
|
-
return
|
|
152292
|
+
return import_node_path2.default.basename(target);
|
|
152293
152293
|
}
|
|
152294
152294
|
function dirname2(target) {
|
|
152295
|
-
return
|
|
152295
|
+
return import_node_path2.default.dirname(target);
|
|
152296
152296
|
}
|
|
152297
152297
|
function isAbsolute2(target) {
|
|
152298
|
-
return
|
|
152298
|
+
return import_node_path2.default.isAbsolute(target);
|
|
152299
152299
|
}
|
|
152300
152300
|
function parse22(target) {
|
|
152301
|
-
return
|
|
152301
|
+
return import_node_path2.default.parse(target);
|
|
152302
152302
|
}
|
|
152303
152303
|
var posixify2 = (str) => str.replace(/\\/g, "/");
|
|
152304
152304
|
function importPath2(target) {
|
|
152305
|
-
return ["win32", "win64"].includes(
|
|
152305
|
+
return ["win32", "win64"].includes(import_node_os2.default.platform()) ? "file:///" + target : target;
|
|
152306
152306
|
}
|
|
152307
152307
|
function copyFileSync2(src2, dest) {
|
|
152308
152308
|
if (houdini_mode2.is_testing) {
|
|
@@ -152424,7 +152424,7 @@ async function rmdir2(filepath) {
|
|
|
152424
152424
|
recursive: true
|
|
152425
152425
|
});
|
|
152426
152426
|
}
|
|
152427
|
-
return await (0,
|
|
152427
|
+
return await (0, import_node_util5.promisify)(import_memfs2.fs.rmdir)(filepath);
|
|
152428
152428
|
}
|
|
152429
152429
|
async function stat3(filepath) {
|
|
152430
152430
|
if (!houdini_mode2.is_testing) {
|
|
@@ -152502,7 +152502,7 @@ async function recursiveCopy2(source, target, transforms, notRoot) {
|
|
|
152502
152502
|
}
|
|
152503
152503
|
}
|
|
152504
152504
|
async function glob2(pattern) {
|
|
152505
|
-
return await (0,
|
|
152505
|
+
return await (0, import_node_util5.promisify)(import_glob2.glob)(posixify2(pattern));
|
|
152506
152506
|
}
|
|
152507
152507
|
glob2.hasMagic = import_glob2.glob.hasMagic;
|
|
152508
152508
|
var graphql6 = __toESM3(require_graphql22(), 1);
|
|
@@ -152540,7 +152540,7 @@ var isBlob2 = (object) => {
|
|
|
152540
152540
|
var isAbortSignal2 = (object) => {
|
|
152541
152541
|
return typeof object === "object" && (object[NAME2] === "AbortSignal" || object[NAME2] === "EventTarget");
|
|
152542
152542
|
};
|
|
152543
|
-
var pipeline2 = (0,
|
|
152543
|
+
var pipeline2 = (0, import_node_util6.promisify)(import_node_stream2.default.pipeline);
|
|
152544
152544
|
var INTERNALS4 = Symbol("Body internals");
|
|
152545
152545
|
var Body2 = class {
|
|
152546
152546
|
constructor(body, {
|
|
@@ -152553,7 +152553,7 @@ var Body2 = class {
|
|
|
152553
152553
|
body = import_node_buffer2.Buffer.from(body.toString());
|
|
152554
152554
|
} else if (isBlob2(body)) {
|
|
152555
152555
|
} else if (import_node_buffer2.Buffer.isBuffer(body)) {
|
|
152556
|
-
} else if (
|
|
152556
|
+
} else if (import_node_util6.types.isAnyArrayBuffer(body)) {
|
|
152557
152557
|
body = import_node_buffer2.Buffer.from(body);
|
|
152558
152558
|
} else if (ArrayBuffer.isView(body)) {
|
|
152559
152559
|
body = import_node_buffer2.Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
|
@@ -152627,7 +152627,7 @@ var Body2 = class {
|
|
|
152627
152627
|
return consumeBody2(this);
|
|
152628
152628
|
}
|
|
152629
152629
|
};
|
|
152630
|
-
Body2.prototype.buffer = (0,
|
|
152630
|
+
Body2.prototype.buffer = (0, import_node_util6.deprecate)(Body2.prototype.buffer, "Please use 'response.arrayBuffer()' instead of 'response.buffer()'", "node-fetch#buffer");
|
|
152631
152631
|
Object.defineProperties(Body2.prototype, {
|
|
152632
152632
|
body: { enumerable: true },
|
|
152633
152633
|
bodyUsed: { enumerable: true },
|
|
@@ -152635,7 +152635,7 @@ Object.defineProperties(Body2.prototype, {
|
|
|
152635
152635
|
blob: { enumerable: true },
|
|
152636
152636
|
json: { enumerable: true },
|
|
152637
152637
|
text: { enumerable: true },
|
|
152638
|
-
data: { get: (0,
|
|
152638
|
+
data: { get: (0, import_node_util6.deprecate)(
|
|
152639
152639
|
() => {
|
|
152640
152640
|
},
|
|
152641
152641
|
"data doesn't exist, use json(), text(), arrayBuffer(), or body instead",
|
|
@@ -152703,7 +152703,7 @@ var clone2 = (instance, highWaterMark) => {
|
|
|
152703
152703
|
}
|
|
152704
152704
|
return body;
|
|
152705
152705
|
};
|
|
152706
|
-
var getNonSpecFormDataBoundary2 = (0,
|
|
152706
|
+
var getNonSpecFormDataBoundary2 = (0, import_node_util6.deprecate)(
|
|
152707
152707
|
(body) => body.getBoundary(),
|
|
152708
152708
|
"form-data doesn't follow the spec and requires special treatment. Use alternative package",
|
|
152709
152709
|
"https://github.com/node-fetch/node-fetch/issues/1167"
|
|
@@ -152721,7 +152721,7 @@ var extractContentType2 = (body, request) => {
|
|
|
152721
152721
|
if (isBlob2(body)) {
|
|
152722
152722
|
return body.type || null;
|
|
152723
152723
|
}
|
|
152724
|
-
if (import_node_buffer2.Buffer.isBuffer(body) ||
|
|
152724
|
+
if (import_node_buffer2.Buffer.isBuffer(body) || import_node_util6.types.isAnyArrayBuffer(body) || ArrayBuffer.isView(body)) {
|
|
152725
152725
|
return null;
|
|
152726
152726
|
}
|
|
152727
152727
|
if (body instanceof FormData2) {
|
|
@@ -152758,7 +152758,7 @@ var Headers3 = class extends URLSearchParams {
|
|
|
152758
152758
|
result.push(...values.map((value2) => [name, value2]));
|
|
152759
152759
|
}
|
|
152760
152760
|
} else if (init == null) {
|
|
152761
|
-
} else if (typeof init === "object" && !
|
|
152761
|
+
} else if (typeof init === "object" && !import_node_util7.types.isBoxedPrimitive(init)) {
|
|
152762
152762
|
const method = init[Symbol.iterator];
|
|
152763
152763
|
if (method == null) {
|
|
152764
152764
|
result.push(...Object.entries(init));
|
|
@@ -152767,7 +152767,7 @@ var Headers3 = class extends URLSearchParams {
|
|
|
152767
152767
|
throw new TypeError("Header pairs must be iterable");
|
|
152768
152768
|
}
|
|
152769
152769
|
result = [...init].map((pair) => {
|
|
152770
|
-
if (typeof pair !== "object" ||
|
|
152770
|
+
if (typeof pair !== "object" || import_node_util7.types.isBoxedPrimitive(pair)) {
|
|
152771
152771
|
throw new TypeError("Each header pair must be an iterable object");
|
|
152772
152772
|
}
|
|
152773
152773
|
return [...pair];
|
|
@@ -153010,7 +153010,7 @@ var INTERNALS32 = Symbol("Request internals");
|
|
|
153010
153010
|
var isRequest2 = (object) => {
|
|
153011
153011
|
return typeof object === "object" && typeof object[INTERNALS32] === "object";
|
|
153012
153012
|
};
|
|
153013
|
-
var doBadDataWarn2 = (0,
|
|
153013
|
+
var doBadDataWarn2 = (0, import_node_util8.deprecate)(
|
|
153014
153014
|
() => {
|
|
153015
153015
|
},
|
|
153016
153016
|
".data is not a valid RequestInit property, use .body instead",
|
|
@@ -153085,7 +153085,7 @@ var Request2 = class extends Body2 {
|
|
|
153085
153085
|
return this[INTERNALS32].method;
|
|
153086
153086
|
}
|
|
153087
153087
|
get url() {
|
|
153088
|
-
return (0,
|
|
153088
|
+
return (0, import_node_url4.format)(this[INTERNALS32].parsedURL);
|
|
153089
153089
|
}
|
|
153090
153090
|
get headers() {
|
|
153091
153091
|
return this[INTERNALS32].headers;
|
|
@@ -153133,7 +153133,7 @@ Object.defineProperties(Request2.prototype, {
|
|
|
153133
153133
|
});
|
|
153134
153134
|
init_esm_min2();
|
|
153135
153135
|
init_from2();
|
|
153136
|
-
var currentDir2 = global.__dirname || dirname2((0,
|
|
153136
|
+
var currentDir2 = global.__dirname || dirname2((0, import_node_url3.fileURLToPath)(import_meta2.url));
|
|
153137
153137
|
var DEFAULT_CONFIG_PATH2 = join22(process.cwd(), "houdini.config.js");
|
|
153138
153138
|
var graphql32 = __toESM3(require_graphql22(), 1);
|
|
153139
153139
|
var import_parser2 = __toESM3(require_lib32(), 1);
|
|
@@ -182003,7 +182003,7 @@ async function fragmentTypedefs(input) {
|
|
|
182003
182003
|
return [];
|
|
182004
182004
|
}
|
|
182005
182005
|
const store = store_name({ config: input.config, name: doc.name });
|
|
182006
|
-
const
|
|
182006
|
+
const import_path = path_exports.join("..", stores_directory_name(), doc.name);
|
|
182007
182007
|
const fragment_map = AST15.tsTypeLiteral([
|
|
182008
182008
|
AST15.tsPropertySignature(
|
|
182009
182009
|
AST15.identifier("$fragments"),
|
|
@@ -182041,7 +182041,7 @@ async function fragmentTypedefs(input) {
|
|
|
182041
182041
|
ensureImports({
|
|
182042
182042
|
config: input.config,
|
|
182043
182043
|
body: contents.script.body,
|
|
182044
|
-
sourceModule:
|
|
182044
|
+
sourceModule: import_path,
|
|
182045
182045
|
import: [store]
|
|
182046
182046
|
});
|
|
182047
182047
|
return [
|
|
@@ -182366,10 +182366,10 @@ function internal_append_TypeDataExtra(beforeLoad, afterLoad, onError) {
|
|
|
182366
182366
|
function store_import2(cfg, which) {
|
|
182367
182367
|
const store_string = plugin_config(cfg).customStores[which];
|
|
182368
182368
|
const parts = store_string.split(".");
|
|
182369
|
-
const
|
|
182369
|
+
const import_path = parts.slice(0, -1).join(".");
|
|
182370
182370
|
const store_class = parts[parts.length - 1];
|
|
182371
182371
|
return {
|
|
182372
|
-
statement: `import { ${store_class} } from '${
|
|
182372
|
+
statement: `import { ${store_class} } from '${import_path}'`,
|
|
182373
182373
|
store_class
|
|
182374
182374
|
};
|
|
182375
182375
|
}
|
|
@@ -182678,7 +182678,7 @@ async function codegen_default(input) {
|
|
|
182678
182678
|
}
|
|
182679
182679
|
|
|
182680
182680
|
// src/plugin/fsPatch.ts
|
|
182681
|
-
var
|
|
182681
|
+
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
182682
182682
|
var fsPatch_default = (getFramwork) => ({
|
|
182683
182683
|
async resolveId(filepath, _, { config: config4, isEntry }) {
|
|
182684
182684
|
if (!isEntry) {
|
|
@@ -182711,11 +182711,11 @@ var fsPatch_default = (getFramwork) => ({
|
|
|
182711
182711
|
}
|
|
182712
182712
|
}
|
|
182713
182713
|
});
|
|
182714
|
-
var _readDirSync =
|
|
182715
|
-
var _statSync =
|
|
182716
|
-
var _readFileSync =
|
|
182717
|
-
var _unlinkSync =
|
|
182718
|
-
|
|
182714
|
+
var _readDirSync = import_node_fs3.default.readdirSync;
|
|
182715
|
+
var _statSync = import_node_fs3.default.statSync;
|
|
182716
|
+
var _readFileSync = import_node_fs3.default.readFileSync;
|
|
182717
|
+
var _unlinkSync = import_node_fs3.default.unlinkSync;
|
|
182718
|
+
import_node_fs3.default.readFileSync = function(fp, options) {
|
|
182719
182719
|
const filepath = fp.toString();
|
|
182720
182720
|
if (filepath.endsWith("+page.js") || filepath.endsWith("+layout.js") || filepath.replace(".ts", ".js").endsWith("+layout.server.js")) {
|
|
182721
182721
|
try {
|
|
@@ -182733,7 +182733,7 @@ import_fs.default.readFileSync = function(fp, options) {
|
|
|
182733
182733
|
}
|
|
182734
182734
|
return _readFileSync(filepath, options);
|
|
182735
182735
|
};
|
|
182736
|
-
|
|
182736
|
+
import_node_fs3.default.statSync = function(filepath, options) {
|
|
182737
182737
|
if (!filepath.includes("routes") || !path_exports.basename(filepath).startsWith("+")) {
|
|
182738
182738
|
return _statSync(filepath, options);
|
|
182739
182739
|
}
|
|
@@ -182753,18 +182753,18 @@ import_fs.default.statSync = function(filepath, options) {
|
|
|
182753
182753
|
throw error3;
|
|
182754
182754
|
}
|
|
182755
182755
|
};
|
|
182756
|
-
|
|
182756
|
+
import_node_fs3.default.unlinkSync = function(filepath) {
|
|
182757
182757
|
try {
|
|
182758
182758
|
_unlinkSync(filepath);
|
|
182759
182759
|
} catch {
|
|
182760
182760
|
}
|
|
182761
182761
|
};
|
|
182762
|
-
|
|
182762
|
+
import_node_fs3.default.readdirSync = function(filepath, options) {
|
|
182763
182763
|
if (!filepath.toString().includes("routes"))
|
|
182764
182764
|
return _readDirSync(filepath, options);
|
|
182765
182765
|
const result = _readDirSync(filepath, options);
|
|
182766
182766
|
const file_names = result.map((file) => {
|
|
182767
|
-
if (file instanceof
|
|
182767
|
+
if (file instanceof import_node_fs3.Dirent) {
|
|
182768
182768
|
return file.name;
|
|
182769
182769
|
} else if (typeof file === "string") {
|
|
182770
182770
|
return file;
|
|
@@ -182775,7 +182775,7 @@ import_fs.default.readdirSync = function(filepath, options) {
|
|
|
182775
182775
|
function contains2(...names) {
|
|
182776
182776
|
return names.some((name) => file_names.includes(name));
|
|
182777
182777
|
}
|
|
182778
|
-
if (contains2("+page.svelte", "+page.gql") && !contains2("+page.js", "+page.ts"
|
|
182778
|
+
if (contains2("+page.svelte", "+page.gql") && !contains2("+page.js", "+page.ts")) {
|
|
182779
182779
|
result.push(virtual_file("+page.js", options));
|
|
182780
182780
|
}
|
|
182781
182781
|
if (contains2("+layout.svelte", "+layout.gql") && !contains2("+layout.ts", "+layout.js")) {
|
|
@@ -182796,7 +182796,7 @@ import_fs.default.readdirSync = function(filepath, options) {
|
|
|
182796
182796
|
Object.defineProperty(globalThis, "fs", {
|
|
182797
182797
|
configurable: true,
|
|
182798
182798
|
enumerable: true,
|
|
182799
|
-
value:
|
|
182799
|
+
value: import_node_fs3.default
|
|
182800
182800
|
});
|
|
182801
182801
|
function virtual_file(name, options) {
|
|
182802
182802
|
return !options?.withFileTypes ? name : {
|
|
@@ -184013,7 +184013,7 @@ export const error = svelteKitError
|
|
|
184013
184013
|
svelte_kit_cfg = !fs_exports.existsSync(config_file) ? {} : await import(`${url.pathToFileURL(config_file).href}?ts=${Date.now()}`);
|
|
184014
184014
|
} catch {
|
|
184015
184015
|
}
|
|
184016
|
-
_env = (0,
|
|
184016
|
+
_env = (0, import_vite7.loadEnv)("dev", svelte_kit_cfg.kit?.dir || ".", "");
|
|
184017
184017
|
return _env;
|
|
184018
184018
|
}
|
|
184019
184019
|
});
|