houdini 1.2.10 → 1.2.11
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/cmd-cjs/index.js +24 -18
- package/build/cmd-esm/index.js +26 -20
- package/build/codegen-cjs/index.js +22 -16
- package/build/codegen-esm/index.js +24 -18
- package/build/lib/index.d.ts +1 -1
- package/build/lib/types.d.ts +1 -1
- package/build/lib-cjs/index.js +272 -17
- package/build/lib-esm/index.js +272 -19
- package/build/{lib/router → router}/conventions.d.ts +1 -1
- package/build/{lib/router → router}/index.d.ts +1 -0
- package/build/{lib/router → router}/manifest.d.ts +1 -1
- package/build/{lib/router → router}/types.d.ts +1 -1
- package/build/router-cjs/index.js +72353 -0
- package/build/router-cjs/package.json +1 -0
- package/build/router-esm/index.js +72345 -0
- package/build/router-esm/package.json +1 -0
- package/build/runtime/router/cookies.d.ts +41 -0
- package/build/runtime/router/jwt.d.ts +117 -0
- package/build/runtime/router/server.d.ts +25 -0
- package/build/runtime-cjs/router/cookies.d.ts +41 -0
- package/build/runtime-cjs/router/cookies.js +168 -0
- package/build/runtime-cjs/router/jwt.d.ts +117 -0
- package/build/runtime-cjs/router/jwt.js +181 -0
- package/build/runtime-cjs/router/server.d.ts +25 -0
- package/build/runtime-cjs/router/server.js +78 -0
- package/build/runtime-esm/router/cookies.d.ts +41 -0
- package/build/runtime-esm/router/cookies.js +143 -0
- package/build/runtime-esm/router/jwt.d.ts +117 -0
- package/build/runtime-esm/router/jwt.js +155 -0
- package/build/runtime-esm/router/server.d.ts +25 -0
- package/build/runtime-esm/router/server.js +53 -0
- package/build/test-cjs/index.js +22 -16
- package/build/test-esm/index.js +24 -18
- package/build/vite-cjs/index.js +38 -30
- package/build/vite-esm/index.js +40 -32
- package/package.json +9 -1
package/build/cmd-cjs/index.js
CHANGED
|
@@ -3228,7 +3228,7 @@ var require_parser = __commonJS({
|
|
|
3228
3228
|
Object.defineProperty(exports, "__esModule", {
|
|
3229
3229
|
value: true
|
|
3230
3230
|
});
|
|
3231
|
-
exports.parse =
|
|
3231
|
+
exports.parse = parse8;
|
|
3232
3232
|
exports.parseValue = parseValue;
|
|
3233
3233
|
exports.parseType = parseType;
|
|
3234
3234
|
exports.Parser = void 0;
|
|
@@ -3239,7 +3239,7 @@ var require_parser = __commonJS({
|
|
|
3239
3239
|
var _source = require_source();
|
|
3240
3240
|
var _directiveLocation = require_directiveLocation();
|
|
3241
3241
|
var _lexer = require_lexer();
|
|
3242
|
-
function
|
|
3242
|
+
function parse8(source, options) {
|
|
3243
3243
|
var parser = new Parser(source, options);
|
|
3244
3244
|
return parser.parseDocument();
|
|
3245
3245
|
}
|
|
@@ -34631,14 +34631,14 @@ var require_lib3 = __commonJS({
|
|
|
34631
34631
|
super.checkParams(node, false, true);
|
|
34632
34632
|
this.scope.exit();
|
|
34633
34633
|
}
|
|
34634
|
-
forwardNoArrowParamsConversionAt(node,
|
|
34634
|
+
forwardNoArrowParamsConversionAt(node, parse9) {
|
|
34635
34635
|
let result;
|
|
34636
34636
|
if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
|
|
34637
34637
|
this.state.noArrowParamsConversionAt.push(this.state.start);
|
|
34638
|
-
result =
|
|
34638
|
+
result = parse9();
|
|
34639
34639
|
this.state.noArrowParamsConversionAt.pop();
|
|
34640
34640
|
} else {
|
|
34641
|
-
result =
|
|
34641
|
+
result = parse9();
|
|
34642
34642
|
}
|
|
34643
34643
|
return result;
|
|
34644
34644
|
}
|
|
@@ -43693,7 +43693,7 @@ var require_lib3 = __commonJS({
|
|
|
43693
43693
|
}
|
|
43694
43694
|
return pluginMap;
|
|
43695
43695
|
}
|
|
43696
|
-
function
|
|
43696
|
+
function parse8(input, options) {
|
|
43697
43697
|
var _options;
|
|
43698
43698
|
if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
|
|
43699
43699
|
options = Object.assign({}, options);
|
|
@@ -43763,7 +43763,7 @@ var require_lib3 = __commonJS({
|
|
|
43763
43763
|
}
|
|
43764
43764
|
return cls;
|
|
43765
43765
|
}
|
|
43766
|
-
exports.parse =
|
|
43766
|
+
exports.parse = parse8;
|
|
43767
43767
|
exports.parseExpression = parseExpression;
|
|
43768
43768
|
exports.tokTypes = tokTypes;
|
|
43769
43769
|
}
|
|
@@ -49709,7 +49709,7 @@ var require_esprima2 = __commonJS({
|
|
|
49709
49709
|
var jsx_parser_1 = __webpack_require__(3);
|
|
49710
49710
|
var parser_1 = __webpack_require__(8);
|
|
49711
49711
|
var tokenizer_1 = __webpack_require__(15);
|
|
49712
|
-
function
|
|
49712
|
+
function parse8(code, options, delegate) {
|
|
49713
49713
|
var commentHandler = null;
|
|
49714
49714
|
var proxyDelegate = function(node, metadata) {
|
|
49715
49715
|
if (delegate) {
|
|
@@ -49754,17 +49754,17 @@ var require_esprima2 = __commonJS({
|
|
|
49754
49754
|
}
|
|
49755
49755
|
return ast;
|
|
49756
49756
|
}
|
|
49757
|
-
exports2.parse =
|
|
49757
|
+
exports2.parse = parse8;
|
|
49758
49758
|
function parseModule(code, options, delegate) {
|
|
49759
49759
|
var parsingOptions = options || {};
|
|
49760
49760
|
parsingOptions.sourceType = "module";
|
|
49761
|
-
return
|
|
49761
|
+
return parse8(code, parsingOptions, delegate);
|
|
49762
49762
|
}
|
|
49763
49763
|
exports2.parseModule = parseModule;
|
|
49764
49764
|
function parseScript(code, options, delegate) {
|
|
49765
49765
|
var parsingOptions = options || {};
|
|
49766
49766
|
parsingOptions.sourceType = "script";
|
|
49767
|
-
return
|
|
49767
|
+
return parse8(code, parsingOptions, delegate);
|
|
49768
49768
|
}
|
|
49769
49769
|
exports2.parseScript = parseScript;
|
|
49770
49770
|
function tokenize(code, options, delegate) {
|
|
@@ -55828,7 +55828,7 @@ var require_esprima3 = __commonJS({
|
|
|
55828
55828
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55829
55829
|
exports.parse = void 0;
|
|
55830
55830
|
var util_1 = require_util2();
|
|
55831
|
-
function
|
|
55831
|
+
function parse8(source, options) {
|
|
55832
55832
|
var comments = [];
|
|
55833
55833
|
var ast = require_esprima2().parse(source, {
|
|
55834
55834
|
loc: true,
|
|
@@ -55846,7 +55846,7 @@ var require_esprima3 = __commonJS({
|
|
|
55846
55846
|
}
|
|
55847
55847
|
return ast;
|
|
55848
55848
|
}
|
|
55849
|
-
exports.parse =
|
|
55849
|
+
exports.parse = parse8;
|
|
55850
55850
|
}
|
|
55851
55851
|
});
|
|
55852
55852
|
|
|
@@ -56968,7 +56968,7 @@ var require_parser2 = __commonJS({
|
|
|
56968
56968
|
var lines_1 = require_lines();
|
|
56969
56969
|
var comments_1 = require_comments();
|
|
56970
56970
|
var util = tslib_1.__importStar(require_util2());
|
|
56971
|
-
function
|
|
56971
|
+
function parse8(source, options) {
|
|
56972
56972
|
options = (0, options_1.normalize)(options);
|
|
56973
56973
|
var lines = (0, lines_1.fromString)(source, options);
|
|
56974
56974
|
var sourceWithoutTabs = lines.toString({
|
|
@@ -57040,7 +57040,7 @@ var require_parser2 = __commonJS({
|
|
|
57040
57040
|
(0, comments_1.attach)(comments, program3.body.length ? file.program : file, lines);
|
|
57041
57041
|
return new TreeCopier(lines, tokens).copy(file);
|
|
57042
57042
|
}
|
|
57043
|
-
exports.parse =
|
|
57043
|
+
exports.parse = parse8;
|
|
57044
57044
|
var TreeCopier = function TreeCopier2(lines, tokens) {
|
|
57045
57045
|
assert_1.default.ok(this instanceof TreeCopier2);
|
|
57046
57046
|
this.lines = lines;
|
|
@@ -83717,7 +83717,7 @@ async function find_graphql(config2, parsedScript, walker) {
|
|
|
83717
83717
|
});
|
|
83718
83718
|
}
|
|
83719
83719
|
|
|
83720
|
-
// src/
|
|
83720
|
+
// src/router/manifest.ts
|
|
83721
83721
|
var t2 = __toESM(require_lib6(), 1);
|
|
83722
83722
|
|
|
83723
83723
|
// src/codegen/index.ts
|
|
@@ -90774,12 +90774,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
90774
90774
|
}
|
|
90775
90775
|
packageJSON2.devDependencies = {
|
|
90776
90776
|
...packageJSON2.devDependencies,
|
|
90777
|
-
houdini: "^1.2.
|
|
90777
|
+
houdini: "^1.2.11"
|
|
90778
90778
|
};
|
|
90779
90779
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
90780
90780
|
packageJSON2.devDependencies = {
|
|
90781
90781
|
...packageJSON2.devDependencies,
|
|
90782
|
-
"houdini-svelte": "^1.2.
|
|
90782
|
+
"houdini-svelte": "^1.2.11"
|
|
90783
90783
|
};
|
|
90784
90784
|
} else {
|
|
90785
90785
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
|
@@ -90811,6 +90811,12 @@ process.on("unhandledRejection", (error) => {
|
|
|
90811
90811
|
console.log(error);
|
|
90812
90812
|
}
|
|
90813
90813
|
});
|
|
90814
|
+
/*!
|
|
90815
|
+
* cookie
|
|
90816
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
90817
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
90818
|
+
* MIT Licensed
|
|
90819
|
+
*/
|
|
90814
90820
|
/*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
90815
90821
|
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
90816
90822
|
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -3234,7 +3234,7 @@ var require_parser = __commonJS({
|
|
|
3234
3234
|
Object.defineProperty(exports, "__esModule", {
|
|
3235
3235
|
value: true
|
|
3236
3236
|
});
|
|
3237
|
-
exports.parse =
|
|
3237
|
+
exports.parse = parse8;
|
|
3238
3238
|
exports.parseValue = parseValue;
|
|
3239
3239
|
exports.parseType = parseType;
|
|
3240
3240
|
exports.Parser = void 0;
|
|
@@ -3245,7 +3245,7 @@ var require_parser = __commonJS({
|
|
|
3245
3245
|
var _source = require_source();
|
|
3246
3246
|
var _directiveLocation = require_directiveLocation();
|
|
3247
3247
|
var _lexer = require_lexer();
|
|
3248
|
-
function
|
|
3248
|
+
function parse8(source, options) {
|
|
3249
3249
|
var parser = new Parser(source, options);
|
|
3250
3250
|
return parser.parseDocument();
|
|
3251
3251
|
}
|
|
@@ -34637,14 +34637,14 @@ var require_lib3 = __commonJS({
|
|
|
34637
34637
|
super.checkParams(node, false, true);
|
|
34638
34638
|
this.scope.exit();
|
|
34639
34639
|
}
|
|
34640
|
-
forwardNoArrowParamsConversionAt(node,
|
|
34640
|
+
forwardNoArrowParamsConversionAt(node, parse9) {
|
|
34641
34641
|
let result;
|
|
34642
34642
|
if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
|
|
34643
34643
|
this.state.noArrowParamsConversionAt.push(this.state.start);
|
|
34644
|
-
result =
|
|
34644
|
+
result = parse9();
|
|
34645
34645
|
this.state.noArrowParamsConversionAt.pop();
|
|
34646
34646
|
} else {
|
|
34647
|
-
result =
|
|
34647
|
+
result = parse9();
|
|
34648
34648
|
}
|
|
34649
34649
|
return result;
|
|
34650
34650
|
}
|
|
@@ -43699,7 +43699,7 @@ var require_lib3 = __commonJS({
|
|
|
43699
43699
|
}
|
|
43700
43700
|
return pluginMap;
|
|
43701
43701
|
}
|
|
43702
|
-
function
|
|
43702
|
+
function parse8(input, options) {
|
|
43703
43703
|
var _options;
|
|
43704
43704
|
if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
|
|
43705
43705
|
options = Object.assign({}, options);
|
|
@@ -43769,7 +43769,7 @@ var require_lib3 = __commonJS({
|
|
|
43769
43769
|
}
|
|
43770
43770
|
return cls;
|
|
43771
43771
|
}
|
|
43772
|
-
exports.parse =
|
|
43772
|
+
exports.parse = parse8;
|
|
43773
43773
|
exports.parseExpression = parseExpression;
|
|
43774
43774
|
exports.tokTypes = tokTypes;
|
|
43775
43775
|
}
|
|
@@ -49715,7 +49715,7 @@ var require_esprima2 = __commonJS({
|
|
|
49715
49715
|
var jsx_parser_1 = __webpack_require__(3);
|
|
49716
49716
|
var parser_1 = __webpack_require__(8);
|
|
49717
49717
|
var tokenizer_1 = __webpack_require__(15);
|
|
49718
|
-
function
|
|
49718
|
+
function parse8(code, options, delegate) {
|
|
49719
49719
|
var commentHandler = null;
|
|
49720
49720
|
var proxyDelegate = function(node, metadata) {
|
|
49721
49721
|
if (delegate) {
|
|
@@ -49760,17 +49760,17 @@ var require_esprima2 = __commonJS({
|
|
|
49760
49760
|
}
|
|
49761
49761
|
return ast;
|
|
49762
49762
|
}
|
|
49763
|
-
exports2.parse =
|
|
49763
|
+
exports2.parse = parse8;
|
|
49764
49764
|
function parseModule(code, options, delegate) {
|
|
49765
49765
|
var parsingOptions = options || {};
|
|
49766
49766
|
parsingOptions.sourceType = "module";
|
|
49767
|
-
return
|
|
49767
|
+
return parse8(code, parsingOptions, delegate);
|
|
49768
49768
|
}
|
|
49769
49769
|
exports2.parseModule = parseModule;
|
|
49770
49770
|
function parseScript(code, options, delegate) {
|
|
49771
49771
|
var parsingOptions = options || {};
|
|
49772
49772
|
parsingOptions.sourceType = "script";
|
|
49773
|
-
return
|
|
49773
|
+
return parse8(code, parsingOptions, delegate);
|
|
49774
49774
|
}
|
|
49775
49775
|
exports2.parseScript = parseScript;
|
|
49776
49776
|
function tokenize(code, options, delegate) {
|
|
@@ -55834,7 +55834,7 @@ var require_esprima3 = __commonJS({
|
|
|
55834
55834
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55835
55835
|
exports.parse = void 0;
|
|
55836
55836
|
var util_1 = require_util2();
|
|
55837
|
-
function
|
|
55837
|
+
function parse8(source, options) {
|
|
55838
55838
|
var comments = [];
|
|
55839
55839
|
var ast = require_esprima2().parse(source, {
|
|
55840
55840
|
loc: true,
|
|
@@ -55852,7 +55852,7 @@ var require_esprima3 = __commonJS({
|
|
|
55852
55852
|
}
|
|
55853
55853
|
return ast;
|
|
55854
55854
|
}
|
|
55855
|
-
exports.parse =
|
|
55855
|
+
exports.parse = parse8;
|
|
55856
55856
|
}
|
|
55857
55857
|
});
|
|
55858
55858
|
|
|
@@ -56974,7 +56974,7 @@ var require_parser2 = __commonJS({
|
|
|
56974
56974
|
var lines_1 = require_lines();
|
|
56975
56975
|
var comments_1 = require_comments();
|
|
56976
56976
|
var util = tslib_1.__importStar(require_util2());
|
|
56977
|
-
function
|
|
56977
|
+
function parse8(source, options) {
|
|
56978
56978
|
options = (0, options_1.normalize)(options);
|
|
56979
56979
|
var lines = (0, lines_1.fromString)(source, options);
|
|
56980
56980
|
var sourceWithoutTabs = lines.toString({
|
|
@@ -57046,7 +57046,7 @@ var require_parser2 = __commonJS({
|
|
|
57046
57046
|
(0, comments_1.attach)(comments, program3.body.length ? file.program : file, lines);
|
|
57047
57047
|
return new TreeCopier(lines, tokens).copy(file);
|
|
57048
57048
|
}
|
|
57049
|
-
exports.parse =
|
|
57049
|
+
exports.parse = parse8;
|
|
57050
57050
|
var TreeCopier = function TreeCopier2(lines, tokens) {
|
|
57051
57051
|
assert_1.default.ok(this instanceof TreeCopier2);
|
|
57052
57052
|
this.lines = lines;
|
|
@@ -83223,7 +83223,7 @@ var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
|
|
|
83223
83223
|
|
|
83224
83224
|
// src/lib/graphql.ts
|
|
83225
83225
|
var graphql3 = __toESM(require_graphql2(), 1);
|
|
83226
|
-
import
|
|
83226
|
+
import crypto2 from "node:crypto";
|
|
83227
83227
|
function getRootType(type) {
|
|
83228
83228
|
if (graphql3.isNonNullType(type)) {
|
|
83229
83229
|
return getRootType(type.ofType);
|
|
@@ -83240,7 +83240,7 @@ function hashRaw({ document }) {
|
|
|
83240
83240
|
return hashDocument(document.artifact?.raw);
|
|
83241
83241
|
}
|
|
83242
83242
|
function hashDocument(str) {
|
|
83243
|
-
return
|
|
83243
|
+
return crypto2.createHash("sha256").update(str || "").digest("hex");
|
|
83244
83244
|
}
|
|
83245
83245
|
function parentField(ancestors) {
|
|
83246
83246
|
return walkParentField([...ancestors].sort(() => -1));
|
|
@@ -83722,7 +83722,7 @@ async function find_graphql(config2, parsedScript, walker) {
|
|
|
83722
83722
|
});
|
|
83723
83723
|
}
|
|
83724
83724
|
|
|
83725
|
-
// src/
|
|
83725
|
+
// src/router/manifest.ts
|
|
83726
83726
|
var t2 = __toESM(require_lib6(), 1);
|
|
83727
83727
|
|
|
83728
83728
|
// src/codegen/index.ts
|
|
@@ -90779,12 +90779,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
90779
90779
|
}
|
|
90780
90780
|
packageJSON2.devDependencies = {
|
|
90781
90781
|
...packageJSON2.devDependencies,
|
|
90782
|
-
houdini: "^1.2.
|
|
90782
|
+
houdini: "^1.2.11"
|
|
90783
90783
|
};
|
|
90784
90784
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
90785
90785
|
packageJSON2.devDependencies = {
|
|
90786
90786
|
...packageJSON2.devDependencies,
|
|
90787
|
-
"houdini-svelte": "^1.2.
|
|
90787
|
+
"houdini-svelte": "^1.2.11"
|
|
90788
90788
|
};
|
|
90789
90789
|
} else {
|
|
90790
90790
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
|
@@ -90816,6 +90816,12 @@ process.on("unhandledRejection", (error) => {
|
|
|
90816
90816
|
console.log(error);
|
|
90817
90817
|
}
|
|
90818
90818
|
});
|
|
90819
|
+
/*!
|
|
90820
|
+
* cookie
|
|
90821
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
90822
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
90823
|
+
* MIT Licensed
|
|
90824
|
+
*/
|
|
90819
90825
|
/*! fetch-blob. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
90820
90826
|
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
90821
90827
|
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
@@ -1475,7 +1475,7 @@ var require_parser = __commonJS({
|
|
|
1475
1475
|
Object.defineProperty(exports, "__esModule", {
|
|
1476
1476
|
value: true
|
|
1477
1477
|
});
|
|
1478
|
-
exports.parse =
|
|
1478
|
+
exports.parse = parse7;
|
|
1479
1479
|
exports.parseValue = parseValue;
|
|
1480
1480
|
exports.parseType = parseType;
|
|
1481
1481
|
exports.Parser = void 0;
|
|
@@ -1486,7 +1486,7 @@ var require_parser = __commonJS({
|
|
|
1486
1486
|
var _source = require_source();
|
|
1487
1487
|
var _directiveLocation = require_directiveLocation();
|
|
1488
1488
|
var _lexer = require_lexer();
|
|
1489
|
-
function
|
|
1489
|
+
function parse7(source, options) {
|
|
1490
1490
|
var parser = new Parser(source, options);
|
|
1491
1491
|
return parser.parseDocument();
|
|
1492
1492
|
}
|
|
@@ -28529,14 +28529,14 @@ var require_lib3 = __commonJS({
|
|
|
28529
28529
|
super.checkParams(node, false, true);
|
|
28530
28530
|
this.scope.exit();
|
|
28531
28531
|
}
|
|
28532
|
-
forwardNoArrowParamsConversionAt(node,
|
|
28532
|
+
forwardNoArrowParamsConversionAt(node, parse8) {
|
|
28533
28533
|
let result;
|
|
28534
28534
|
if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
|
|
28535
28535
|
this.state.noArrowParamsConversionAt.push(this.state.start);
|
|
28536
|
-
result =
|
|
28536
|
+
result = parse8();
|
|
28537
28537
|
this.state.noArrowParamsConversionAt.pop();
|
|
28538
28538
|
} else {
|
|
28539
|
-
result =
|
|
28539
|
+
result = parse8();
|
|
28540
28540
|
}
|
|
28541
28541
|
return result;
|
|
28542
28542
|
}
|
|
@@ -37591,7 +37591,7 @@ var require_lib3 = __commonJS({
|
|
|
37591
37591
|
}
|
|
37592
37592
|
return pluginMap;
|
|
37593
37593
|
}
|
|
37594
|
-
function
|
|
37594
|
+
function parse7(input, options) {
|
|
37595
37595
|
var _options;
|
|
37596
37596
|
if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
|
|
37597
37597
|
options = Object.assign({}, options);
|
|
@@ -37661,7 +37661,7 @@ var require_lib3 = __commonJS({
|
|
|
37661
37661
|
}
|
|
37662
37662
|
return cls;
|
|
37663
37663
|
}
|
|
37664
|
-
exports.parse =
|
|
37664
|
+
exports.parse = parse7;
|
|
37665
37665
|
exports.parseExpression = parseExpression;
|
|
37666
37666
|
exports.tokTypes = tokTypes;
|
|
37667
37667
|
}
|
|
@@ -43607,7 +43607,7 @@ var require_esprima2 = __commonJS({
|
|
|
43607
43607
|
var jsx_parser_1 = __webpack_require__(3);
|
|
43608
43608
|
var parser_1 = __webpack_require__(8);
|
|
43609
43609
|
var tokenizer_1 = __webpack_require__(15);
|
|
43610
|
-
function
|
|
43610
|
+
function parse7(code, options, delegate) {
|
|
43611
43611
|
var commentHandler = null;
|
|
43612
43612
|
var proxyDelegate = function(node, metadata) {
|
|
43613
43613
|
if (delegate) {
|
|
@@ -43652,17 +43652,17 @@ var require_esprima2 = __commonJS({
|
|
|
43652
43652
|
}
|
|
43653
43653
|
return ast;
|
|
43654
43654
|
}
|
|
43655
|
-
exports2.parse =
|
|
43655
|
+
exports2.parse = parse7;
|
|
43656
43656
|
function parseModule(code, options, delegate) {
|
|
43657
43657
|
var parsingOptions = options || {};
|
|
43658
43658
|
parsingOptions.sourceType = "module";
|
|
43659
|
-
return
|
|
43659
|
+
return parse7(code, parsingOptions, delegate);
|
|
43660
43660
|
}
|
|
43661
43661
|
exports2.parseModule = parseModule;
|
|
43662
43662
|
function parseScript(code, options, delegate) {
|
|
43663
43663
|
var parsingOptions = options || {};
|
|
43664
43664
|
parsingOptions.sourceType = "script";
|
|
43665
|
-
return
|
|
43665
|
+
return parse7(code, parsingOptions, delegate);
|
|
43666
43666
|
}
|
|
43667
43667
|
exports2.parseScript = parseScript;
|
|
43668
43668
|
function tokenize(code, options, delegate) {
|
|
@@ -49726,7 +49726,7 @@ var require_esprima3 = __commonJS({
|
|
|
49726
49726
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49727
49727
|
exports.parse = void 0;
|
|
49728
49728
|
var util_1 = require_util2();
|
|
49729
|
-
function
|
|
49729
|
+
function parse7(source, options) {
|
|
49730
49730
|
var comments = [];
|
|
49731
49731
|
var ast = require_esprima2().parse(source, {
|
|
49732
49732
|
loc: true,
|
|
@@ -49744,7 +49744,7 @@ var require_esprima3 = __commonJS({
|
|
|
49744
49744
|
}
|
|
49745
49745
|
return ast;
|
|
49746
49746
|
}
|
|
49747
|
-
exports.parse =
|
|
49747
|
+
exports.parse = parse7;
|
|
49748
49748
|
}
|
|
49749
49749
|
});
|
|
49750
49750
|
|
|
@@ -50866,7 +50866,7 @@ var require_parser2 = __commonJS({
|
|
|
50866
50866
|
var lines_1 = require_lines();
|
|
50867
50867
|
var comments_1 = require_comments();
|
|
50868
50868
|
var util = tslib_1.__importStar(require_util2());
|
|
50869
|
-
function
|
|
50869
|
+
function parse7(source, options) {
|
|
50870
50870
|
options = (0, options_1.normalize)(options);
|
|
50871
50871
|
var lines = (0, lines_1.fromString)(source, options);
|
|
50872
50872
|
var sourceWithoutTabs = lines.toString({
|
|
@@ -50938,7 +50938,7 @@ var require_parser2 = __commonJS({
|
|
|
50938
50938
|
(0, comments_1.attach)(comments, program.body.length ? file.program : file, lines);
|
|
50939
50939
|
return new TreeCopier(lines, tokens).copy(file);
|
|
50940
50940
|
}
|
|
50941
|
-
exports.parse =
|
|
50941
|
+
exports.parse = parse7;
|
|
50942
50942
|
var TreeCopier = function TreeCopier2(lines, tokens) {
|
|
50943
50943
|
assert_1.default.ok(this instanceof TreeCopier2);
|
|
50944
50944
|
this.lines = lines;
|
|
@@ -72220,7 +72220,7 @@ async function find_graphql(config2, parsedScript, walker) {
|
|
|
72220
72220
|
});
|
|
72221
72221
|
}
|
|
72222
72222
|
|
|
72223
|
-
// src/
|
|
72223
|
+
// src/router/manifest.ts
|
|
72224
72224
|
var t = __toESM(require_lib6(), 1);
|
|
72225
72225
|
|
|
72226
72226
|
// src/codegen/generators/artifacts/index.ts
|
|
@@ -78250,6 +78250,12 @@ function logStyled(kind, stat2, logLevel, plugin2) {
|
|
|
78250
78250
|
0 && (module.exports = {
|
|
78251
78251
|
runPipeline
|
|
78252
78252
|
});
|
|
78253
|
+
/*!
|
|
78254
|
+
* cookie
|
|
78255
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
78256
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
78257
|
+
* MIT Licensed
|
|
78258
|
+
*/
|
|
78253
78259
|
/**
|
|
78254
78260
|
* Based on implementations by Gary Court and Austin Appleby, 2011, MIT. Copied from https://github.com/facebook/relay
|
|
78255
78261
|
* @preserve-header
|
|
@@ -1480,7 +1480,7 @@ var require_parser = __commonJS({
|
|
|
1480
1480
|
Object.defineProperty(exports, "__esModule", {
|
|
1481
1481
|
value: true
|
|
1482
1482
|
});
|
|
1483
|
-
exports.parse =
|
|
1483
|
+
exports.parse = parse7;
|
|
1484
1484
|
exports.parseValue = parseValue;
|
|
1485
1485
|
exports.parseType = parseType;
|
|
1486
1486
|
exports.Parser = void 0;
|
|
@@ -1491,7 +1491,7 @@ var require_parser = __commonJS({
|
|
|
1491
1491
|
var _source = require_source();
|
|
1492
1492
|
var _directiveLocation = require_directiveLocation();
|
|
1493
1493
|
var _lexer = require_lexer();
|
|
1494
|
-
function
|
|
1494
|
+
function parse7(source, options) {
|
|
1495
1495
|
var parser = new Parser(source, options);
|
|
1496
1496
|
return parser.parseDocument();
|
|
1497
1497
|
}
|
|
@@ -28534,14 +28534,14 @@ var require_lib3 = __commonJS({
|
|
|
28534
28534
|
super.checkParams(node, false, true);
|
|
28535
28535
|
this.scope.exit();
|
|
28536
28536
|
}
|
|
28537
|
-
forwardNoArrowParamsConversionAt(node,
|
|
28537
|
+
forwardNoArrowParamsConversionAt(node, parse8) {
|
|
28538
28538
|
let result;
|
|
28539
28539
|
if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
|
|
28540
28540
|
this.state.noArrowParamsConversionAt.push(this.state.start);
|
|
28541
|
-
result =
|
|
28541
|
+
result = parse8();
|
|
28542
28542
|
this.state.noArrowParamsConversionAt.pop();
|
|
28543
28543
|
} else {
|
|
28544
|
-
result =
|
|
28544
|
+
result = parse8();
|
|
28545
28545
|
}
|
|
28546
28546
|
return result;
|
|
28547
28547
|
}
|
|
@@ -37596,7 +37596,7 @@ var require_lib3 = __commonJS({
|
|
|
37596
37596
|
}
|
|
37597
37597
|
return pluginMap;
|
|
37598
37598
|
}
|
|
37599
|
-
function
|
|
37599
|
+
function parse7(input, options) {
|
|
37600
37600
|
var _options;
|
|
37601
37601
|
if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
|
|
37602
37602
|
options = Object.assign({}, options);
|
|
@@ -37666,7 +37666,7 @@ var require_lib3 = __commonJS({
|
|
|
37666
37666
|
}
|
|
37667
37667
|
return cls;
|
|
37668
37668
|
}
|
|
37669
|
-
exports.parse =
|
|
37669
|
+
exports.parse = parse7;
|
|
37670
37670
|
exports.parseExpression = parseExpression;
|
|
37671
37671
|
exports.tokTypes = tokTypes;
|
|
37672
37672
|
}
|
|
@@ -43612,7 +43612,7 @@ var require_esprima2 = __commonJS({
|
|
|
43612
43612
|
var jsx_parser_1 = __webpack_require__(3);
|
|
43613
43613
|
var parser_1 = __webpack_require__(8);
|
|
43614
43614
|
var tokenizer_1 = __webpack_require__(15);
|
|
43615
|
-
function
|
|
43615
|
+
function parse7(code, options, delegate) {
|
|
43616
43616
|
var commentHandler = null;
|
|
43617
43617
|
var proxyDelegate = function(node, metadata) {
|
|
43618
43618
|
if (delegate) {
|
|
@@ -43657,17 +43657,17 @@ var require_esprima2 = __commonJS({
|
|
|
43657
43657
|
}
|
|
43658
43658
|
return ast;
|
|
43659
43659
|
}
|
|
43660
|
-
exports2.parse =
|
|
43660
|
+
exports2.parse = parse7;
|
|
43661
43661
|
function parseModule(code, options, delegate) {
|
|
43662
43662
|
var parsingOptions = options || {};
|
|
43663
43663
|
parsingOptions.sourceType = "module";
|
|
43664
|
-
return
|
|
43664
|
+
return parse7(code, parsingOptions, delegate);
|
|
43665
43665
|
}
|
|
43666
43666
|
exports2.parseModule = parseModule;
|
|
43667
43667
|
function parseScript(code, options, delegate) {
|
|
43668
43668
|
var parsingOptions = options || {};
|
|
43669
43669
|
parsingOptions.sourceType = "script";
|
|
43670
|
-
return
|
|
43670
|
+
return parse7(code, parsingOptions, delegate);
|
|
43671
43671
|
}
|
|
43672
43672
|
exports2.parseScript = parseScript;
|
|
43673
43673
|
function tokenize(code, options, delegate) {
|
|
@@ -49731,7 +49731,7 @@ var require_esprima3 = __commonJS({
|
|
|
49731
49731
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49732
49732
|
exports.parse = void 0;
|
|
49733
49733
|
var util_1 = require_util2();
|
|
49734
|
-
function
|
|
49734
|
+
function parse7(source, options) {
|
|
49735
49735
|
var comments = [];
|
|
49736
49736
|
var ast = require_esprima2().parse(source, {
|
|
49737
49737
|
loc: true,
|
|
@@ -49749,7 +49749,7 @@ var require_esprima3 = __commonJS({
|
|
|
49749
49749
|
}
|
|
49750
49750
|
return ast;
|
|
49751
49751
|
}
|
|
49752
|
-
exports.parse =
|
|
49752
|
+
exports.parse = parse7;
|
|
49753
49753
|
}
|
|
49754
49754
|
});
|
|
49755
49755
|
|
|
@@ -50871,7 +50871,7 @@ var require_parser2 = __commonJS({
|
|
|
50871
50871
|
var lines_1 = require_lines();
|
|
50872
50872
|
var comments_1 = require_comments();
|
|
50873
50873
|
var util = tslib_1.__importStar(require_util2());
|
|
50874
|
-
function
|
|
50874
|
+
function parse7(source, options) {
|
|
50875
50875
|
options = (0, options_1.normalize)(options);
|
|
50876
50876
|
var lines = (0, lines_1.fromString)(source, options);
|
|
50877
50877
|
var sourceWithoutTabs = lines.toString({
|
|
@@ -50943,7 +50943,7 @@ var require_parser2 = __commonJS({
|
|
|
50943
50943
|
(0, comments_1.attach)(comments, program.body.length ? file.program : file, lines);
|
|
50944
50944
|
return new TreeCopier(lines, tokens).copy(file);
|
|
50945
50945
|
}
|
|
50946
|
-
exports.parse =
|
|
50946
|
+
exports.parse = parse7;
|
|
50947
50947
|
var TreeCopier = function TreeCopier2(lines, tokens) {
|
|
50948
50948
|
assert_1.default.ok(this instanceof TreeCopier2);
|
|
50949
50949
|
this.lines = lines;
|
|
@@ -71792,7 +71792,7 @@ var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
|
|
|
71792
71792
|
|
|
71793
71793
|
// src/lib/graphql.ts
|
|
71794
71794
|
var graphql2 = __toESM(require_graphql2(), 1);
|
|
71795
|
-
import
|
|
71795
|
+
import crypto2 from "node:crypto";
|
|
71796
71796
|
function getRootType(type) {
|
|
71797
71797
|
if (graphql2.isNonNullType(type)) {
|
|
71798
71798
|
return getRootType(type.ofType);
|
|
@@ -71809,7 +71809,7 @@ function hashRaw({ document }) {
|
|
|
71809
71809
|
return hashDocument(document.artifact?.raw);
|
|
71810
71810
|
}
|
|
71811
71811
|
function hashDocument(str) {
|
|
71812
|
-
return
|
|
71812
|
+
return crypto2.createHash("sha256").update(str || "").digest("hex");
|
|
71813
71813
|
}
|
|
71814
71814
|
function parentField(ancestors) {
|
|
71815
71815
|
return walkParentField([...ancestors].sort(() => -1));
|
|
@@ -72218,7 +72218,7 @@ async function find_graphql(config2, parsedScript, walker) {
|
|
|
72218
72218
|
});
|
|
72219
72219
|
}
|
|
72220
72220
|
|
|
72221
|
-
// src/
|
|
72221
|
+
// src/router/manifest.ts
|
|
72222
72222
|
var t = __toESM(require_lib6(), 1);
|
|
72223
72223
|
|
|
72224
72224
|
// src/codegen/generators/artifacts/index.ts
|
|
@@ -78248,6 +78248,12 @@ export {
|
|
|
78248
78248
|
compile as default,
|
|
78249
78249
|
runPipeline2 as runPipeline
|
|
78250
78250
|
};
|
|
78251
|
+
/*!
|
|
78252
|
+
* cookie
|
|
78253
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
78254
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
78255
|
+
* MIT Licensed
|
|
78256
|
+
*/
|
|
78251
78257
|
/**
|
|
78252
78258
|
* Based on implementations by Gary Court and Austin Appleby, 2011, MIT. Copied from https://github.com/facebook/relay
|
|
78253
78259
|
* @preserve-header
|
package/build/lib/index.d.ts
CHANGED
package/build/lib/types.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import type graphql from 'graphql';
|
|
|
2
2
|
import type * as recast from 'recast';
|
|
3
3
|
import type { CustomPluginOptions, InputOptions, LoadResult, MinimalPluginContext, NormalizedInputOptions, NullValue, ObjectHook, PluginContext, ResolveIdResult, SourceMapInput } from 'rollup';
|
|
4
4
|
import type { ConfigEnv, ResolvedConfig, UserConfig, ViteDevServer } from 'vite';
|
|
5
|
+
import type { Adapter } from '../router';
|
|
5
6
|
import type { ConfigFile } from '../runtime/lib/config';
|
|
6
7
|
import type { ArtifactKinds, BaseCompiledDocument, DocumentArtifact, ValueOf } from '../runtime/lib/types';
|
|
7
8
|
import type { TransformPage } from '../vite/houdini';
|
|
8
9
|
import type { Config } from './config';
|
|
9
|
-
import type { Adapter } from './router';
|
|
10
10
|
type Program = recast.types.namedTypes.Program;
|
|
11
11
|
export type Maybe<T> = T | null | undefined;
|
|
12
12
|
export type Script = Program;
|