houdini-svelte 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/plugin-cjs/index.js +52 -46
- package/build/plugin-esm/index.js +52 -46
- package/build/preprocess-cjs/index.js +52 -46
- package/build/preprocess-esm/index.js +52 -46
- package/build/test-cjs/index.js +82 -76
- package/build/test-esm/index.js +84 -78
- package/package.json +2 -2
|
@@ -32507,7 +32507,7 @@ var require_parser = __commonJS2({
|
|
|
32507
32507
|
Object.defineProperty(exports, "__esModule", {
|
|
32508
32508
|
value: true
|
|
32509
32509
|
});
|
|
32510
|
-
exports.parse =
|
|
32510
|
+
exports.parse = parse62;
|
|
32511
32511
|
exports.parseValue = parseValue;
|
|
32512
32512
|
exports.parseType = parseType;
|
|
32513
32513
|
exports.Parser = void 0;
|
|
@@ -32518,7 +32518,7 @@ var require_parser = __commonJS2({
|
|
|
32518
32518
|
var _source = require_source();
|
|
32519
32519
|
var _directiveLocation = require_directiveLocation();
|
|
32520
32520
|
var _lexer = require_lexer();
|
|
32521
|
-
function
|
|
32521
|
+
function parse62(source, options) {
|
|
32522
32522
|
var parser = new Parser3(source, options);
|
|
32523
32523
|
return parser.parseDocument();
|
|
32524
32524
|
}
|
|
@@ -63580,14 +63580,14 @@ var require_lib3 = __commonJS2({
|
|
|
63580
63580
|
super.checkParams(node2, false, true);
|
|
63581
63581
|
this.scope.exit();
|
|
63582
63582
|
}
|
|
63583
|
-
forwardNoArrowParamsConversionAt(node2,
|
|
63583
|
+
forwardNoArrowParamsConversionAt(node2, parse72) {
|
|
63584
63584
|
let result;
|
|
63585
63585
|
if (this.state.noArrowParamsConversionAt.indexOf(node2.start) !== -1) {
|
|
63586
63586
|
this.state.noArrowParamsConversionAt.push(this.state.start);
|
|
63587
|
-
result =
|
|
63587
|
+
result = parse72();
|
|
63588
63588
|
this.state.noArrowParamsConversionAt.pop();
|
|
63589
63589
|
} else {
|
|
63590
|
-
result =
|
|
63590
|
+
result = parse72();
|
|
63591
63591
|
}
|
|
63592
63592
|
return result;
|
|
63593
63593
|
}
|
|
@@ -72642,7 +72642,7 @@ var require_lib3 = __commonJS2({
|
|
|
72642
72642
|
}
|
|
72643
72643
|
return pluginMap;
|
|
72644
72644
|
}
|
|
72645
|
-
function
|
|
72645
|
+
function parse62(input, options) {
|
|
72646
72646
|
var _options;
|
|
72647
72647
|
if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
|
|
72648
72648
|
options = Object.assign({}, options);
|
|
@@ -72712,7 +72712,7 @@ var require_lib3 = __commonJS2({
|
|
|
72712
72712
|
}
|
|
72713
72713
|
return cls;
|
|
72714
72714
|
}
|
|
72715
|
-
exports.parse =
|
|
72715
|
+
exports.parse = parse62;
|
|
72716
72716
|
exports.parseExpression = parseExpression;
|
|
72717
72717
|
exports.tokTypes = tokTypes;
|
|
72718
72718
|
}
|
|
@@ -78568,7 +78568,7 @@ var require_esprima2 = __commonJS2({
|
|
|
78568
78568
|
var jsx_parser_1 = __webpack_require__(3);
|
|
78569
78569
|
var parser_1 = __webpack_require__(8);
|
|
78570
78570
|
var tokenizer_1 = __webpack_require__(15);
|
|
78571
|
-
function
|
|
78571
|
+
function parse62(code, options, delegate) {
|
|
78572
78572
|
var commentHandler = null;
|
|
78573
78573
|
var proxyDelegate = function(node2, metadata) {
|
|
78574
78574
|
if (delegate) {
|
|
@@ -78613,17 +78613,17 @@ var require_esprima2 = __commonJS2({
|
|
|
78613
78613
|
}
|
|
78614
78614
|
return ast;
|
|
78615
78615
|
}
|
|
78616
|
-
exports2.parse =
|
|
78616
|
+
exports2.parse = parse62;
|
|
78617
78617
|
function parseModule(code, options, delegate) {
|
|
78618
78618
|
var parsingOptions = options || {};
|
|
78619
78619
|
parsingOptions.sourceType = "module";
|
|
78620
|
-
return
|
|
78620
|
+
return parse62(code, parsingOptions, delegate);
|
|
78621
78621
|
}
|
|
78622
78622
|
exports2.parseModule = parseModule;
|
|
78623
78623
|
function parseScript(code, options, delegate) {
|
|
78624
78624
|
var parsingOptions = options || {};
|
|
78625
78625
|
parsingOptions.sourceType = "script";
|
|
78626
|
-
return
|
|
78626
|
+
return parse62(code, parsingOptions, delegate);
|
|
78627
78627
|
}
|
|
78628
78628
|
exports2.parseScript = parseScript;
|
|
78629
78629
|
function tokenize2(code, options, delegate) {
|
|
@@ -84685,7 +84685,7 @@ var require_esprima3 = __commonJS2({
|
|
|
84685
84685
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
84686
84686
|
exports.parse = void 0;
|
|
84687
84687
|
var util_110 = require_util2();
|
|
84688
|
-
function
|
|
84688
|
+
function parse62(source, options) {
|
|
84689
84689
|
var comments = [];
|
|
84690
84690
|
var ast = require_esprima2().parse(source, {
|
|
84691
84691
|
loc: true,
|
|
@@ -84703,7 +84703,7 @@ var require_esprima3 = __commonJS2({
|
|
|
84703
84703
|
}
|
|
84704
84704
|
return ast;
|
|
84705
84705
|
}
|
|
84706
|
-
exports.parse =
|
|
84706
|
+
exports.parse = parse62;
|
|
84707
84707
|
}
|
|
84708
84708
|
});
|
|
84709
84709
|
var require_options = __commonJS2({
|
|
@@ -85815,7 +85815,7 @@ var require_parser2 = __commonJS2({
|
|
|
85815
85815
|
var lines_1 = require_lines();
|
|
85816
85816
|
var comments_1 = require_comments();
|
|
85817
85817
|
var util2 = tslib_1.__importStar(require_util2());
|
|
85818
|
-
function
|
|
85818
|
+
function parse62(source, options) {
|
|
85819
85819
|
options = (0, options_1.normalize)(options);
|
|
85820
85820
|
var lines = (0, lines_1.fromString)(source, options);
|
|
85821
85821
|
var sourceWithoutTabs = lines.toString({
|
|
@@ -85887,7 +85887,7 @@ var require_parser2 = __commonJS2({
|
|
|
85887
85887
|
(0, comments_1.attach)(comments, program.body.length ? file.program : file, lines);
|
|
85888
85888
|
return new TreeCopier(lines, tokens).copy(file);
|
|
85889
85889
|
}
|
|
85890
|
-
exports.parse =
|
|
85890
|
+
exports.parse = parse62;
|
|
85891
85891
|
var TreeCopier = function TreeCopier2(lines, tokens) {
|
|
85892
85892
|
assert_1.default.ok(this instanceof TreeCopier2);
|
|
85893
85893
|
this.lines = lines;
|
|
@@ -110129,7 +110129,7 @@ var require_parse = __commonJS3({
|
|
|
110129
110129
|
CHAR_NO_BREAK_SPACE,
|
|
110130
110130
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
110131
110131
|
} = require_constants3();
|
|
110132
|
-
var
|
|
110132
|
+
var parse8 = (input, options = {}) => {
|
|
110133
110133
|
if (typeof input !== "string") {
|
|
110134
110134
|
throw new TypeError("Expected a string");
|
|
110135
110135
|
}
|
|
@@ -110335,7 +110335,7 @@ var require_parse = __commonJS3({
|
|
|
110335
110335
|
push({ type: "eos" });
|
|
110336
110336
|
return ast;
|
|
110337
110337
|
};
|
|
110338
|
-
module2.exports =
|
|
110338
|
+
module2.exports = parse8;
|
|
110339
110339
|
}
|
|
110340
110340
|
});
|
|
110341
110341
|
var require_braces = __commonJS3({
|
|
@@ -110344,7 +110344,7 @@ var require_braces = __commonJS3({
|
|
|
110344
110344
|
var stringify2 = require_stringify();
|
|
110345
110345
|
var compile2 = require_compile();
|
|
110346
110346
|
var expand = require_expand();
|
|
110347
|
-
var
|
|
110347
|
+
var parse8 = require_parse();
|
|
110348
110348
|
var braces = (input, options = {}) => {
|
|
110349
110349
|
let output = [];
|
|
110350
110350
|
if (Array.isArray(input)) {
|
|
@@ -110364,7 +110364,7 @@ var require_braces = __commonJS3({
|
|
|
110364
110364
|
}
|
|
110365
110365
|
return output;
|
|
110366
110366
|
};
|
|
110367
|
-
braces.parse = (input, options = {}) =>
|
|
110367
|
+
braces.parse = (input, options = {}) => parse8(input, options);
|
|
110368
110368
|
braces.stringify = (input, options = {}) => {
|
|
110369
110369
|
if (typeof input === "string") {
|
|
110370
110370
|
return stringify2(braces.parse(input, options), options);
|
|
@@ -110945,7 +110945,7 @@ var require_parse2 = __commonJS3({
|
|
|
110945
110945
|
var syntaxError = (type, char) => {
|
|
110946
110946
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
110947
110947
|
};
|
|
110948
|
-
var
|
|
110948
|
+
var parse8 = (input, options) => {
|
|
110949
110949
|
if (typeof input !== "string") {
|
|
110950
110950
|
throw new TypeError("Expected a string");
|
|
110951
110951
|
}
|
|
@@ -111095,7 +111095,7 @@ var require_parse2 = __commonJS3({
|
|
|
111095
111095
|
output = token.close = `)$))${extglobStar}`;
|
|
111096
111096
|
}
|
|
111097
111097
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
111098
|
-
const expression =
|
|
111098
|
+
const expression = parse8(rest, { ...options, fastpaths: false }).output;
|
|
111099
111099
|
output = token.close = `)${expression})${extglobStar})`;
|
|
111100
111100
|
}
|
|
111101
111101
|
if (token.prev.type === "bos") {
|
|
@@ -111624,7 +111624,7 @@ var require_parse2 = __commonJS3({
|
|
|
111624
111624
|
}
|
|
111625
111625
|
return state;
|
|
111626
111626
|
};
|
|
111627
|
-
|
|
111627
|
+
parse8.fastpaths = (input, options) => {
|
|
111628
111628
|
const opts = { ...options };
|
|
111629
111629
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
111630
111630
|
const len = input.length;
|
|
@@ -111693,7 +111693,7 @@ var require_parse2 = __commonJS3({
|
|
|
111693
111693
|
}
|
|
111694
111694
|
return source;
|
|
111695
111695
|
};
|
|
111696
|
-
module2.exports =
|
|
111696
|
+
module2.exports = parse8;
|
|
111697
111697
|
}
|
|
111698
111698
|
});
|
|
111699
111699
|
var require_picomatch = __commonJS3({
|
|
@@ -111701,7 +111701,7 @@ var require_picomatch = __commonJS3({
|
|
|
111701
111701
|
"use strict";
|
|
111702
111702
|
var path22 = __require2("path");
|
|
111703
111703
|
var scan = require_scan();
|
|
111704
|
-
var
|
|
111704
|
+
var parse8 = require_parse2();
|
|
111705
111705
|
var utils = require_utils22();
|
|
111706
111706
|
var constants = require_constants22();
|
|
111707
111707
|
var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
@@ -111791,7 +111791,7 @@ var require_picomatch = __commonJS3({
|
|
|
111791
111791
|
picomatch.parse = (pattern, options) => {
|
|
111792
111792
|
if (Array.isArray(pattern))
|
|
111793
111793
|
return pattern.map((p) => picomatch.parse(p, options));
|
|
111794
|
-
return
|
|
111794
|
+
return parse8(pattern, { ...options, fastpaths: false });
|
|
111795
111795
|
};
|
|
111796
111796
|
picomatch.scan = (input, options) => scan(input, options);
|
|
111797
111797
|
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
@@ -111817,10 +111817,10 @@ var require_picomatch = __commonJS3({
|
|
|
111817
111817
|
}
|
|
111818
111818
|
let parsed = { negated: false, fastpaths: true };
|
|
111819
111819
|
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
|
|
111820
|
-
parsed.output =
|
|
111820
|
+
parsed.output = parse8.fastpaths(input, options);
|
|
111821
111821
|
}
|
|
111822
111822
|
if (!parsed.output) {
|
|
111823
|
-
parsed =
|
|
111823
|
+
parsed = parse8(input, options);
|
|
111824
111824
|
}
|
|
111825
111825
|
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
111826
111826
|
};
|
|
@@ -113409,7 +113409,7 @@ var require_parser4 = __commonJS3({
|
|
|
113409
113409
|
Object.defineProperty(exports, "__esModule", {
|
|
113410
113410
|
value: true
|
|
113411
113411
|
});
|
|
113412
|
-
exports.parse =
|
|
113412
|
+
exports.parse = parse8;
|
|
113413
113413
|
exports.parseValue = parseValue;
|
|
113414
113414
|
exports.parseType = parseType;
|
|
113415
113415
|
exports.Parser = void 0;
|
|
@@ -113420,7 +113420,7 @@ var require_parser4 = __commonJS3({
|
|
|
113420
113420
|
var _source = require_source3();
|
|
113421
113421
|
var _directiveLocation = require_directiveLocation3();
|
|
113422
113422
|
var _lexer = require_lexer3();
|
|
113423
|
-
function
|
|
113423
|
+
function parse8(source, options) {
|
|
113424
113424
|
var parser = new Parser3(source, options);
|
|
113425
113425
|
return parser.parseDocument();
|
|
113426
113426
|
}
|
|
@@ -143727,14 +143727,14 @@ var require_lib32 = __commonJS3({
|
|
|
143727
143727
|
super.checkParams(node2, false, true);
|
|
143728
143728
|
this.scope.exit();
|
|
143729
143729
|
}
|
|
143730
|
-
forwardNoArrowParamsConversionAt(node2,
|
|
143730
|
+
forwardNoArrowParamsConversionAt(node2, parse9) {
|
|
143731
143731
|
let result;
|
|
143732
143732
|
if (this.state.noArrowParamsConversionAt.indexOf(node2.start) !== -1) {
|
|
143733
143733
|
this.state.noArrowParamsConversionAt.push(this.state.start);
|
|
143734
|
-
result =
|
|
143734
|
+
result = parse9();
|
|
143735
143735
|
this.state.noArrowParamsConversionAt.pop();
|
|
143736
143736
|
} else {
|
|
143737
|
-
result =
|
|
143737
|
+
result = parse9();
|
|
143738
143738
|
}
|
|
143739
143739
|
return result;
|
|
143740
143740
|
}
|
|
@@ -152789,7 +152789,7 @@ var require_lib32 = __commonJS3({
|
|
|
152789
152789
|
}
|
|
152790
152790
|
return pluginMap;
|
|
152791
152791
|
}
|
|
152792
|
-
function
|
|
152792
|
+
function parse8(input, options) {
|
|
152793
152793
|
var _options;
|
|
152794
152794
|
if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
|
|
152795
152795
|
options = Object.assign({}, options);
|
|
@@ -152859,7 +152859,7 @@ var require_lib32 = __commonJS3({
|
|
|
152859
152859
|
}
|
|
152860
152860
|
return cls;
|
|
152861
152861
|
}
|
|
152862
|
-
exports.parse =
|
|
152862
|
+
exports.parse = parse8;
|
|
152863
152863
|
exports.parseExpression = parseExpression;
|
|
152864
152864
|
exports.tokTypes = tokTypes;
|
|
152865
152865
|
}
|
|
@@ -158715,7 +158715,7 @@ var require_esprima22 = __commonJS3({
|
|
|
158715
158715
|
var jsx_parser_1 = __webpack_require__(3);
|
|
158716
158716
|
var parser_1 = __webpack_require__(8);
|
|
158717
158717
|
var tokenizer_1 = __webpack_require__(15);
|
|
158718
|
-
function
|
|
158718
|
+
function parse8(code, options, delegate) {
|
|
158719
158719
|
var commentHandler = null;
|
|
158720
158720
|
var proxyDelegate = function(node2, metadata) {
|
|
158721
158721
|
if (delegate) {
|
|
@@ -158760,17 +158760,17 @@ var require_esprima22 = __commonJS3({
|
|
|
158760
158760
|
}
|
|
158761
158761
|
return ast;
|
|
158762
158762
|
}
|
|
158763
|
-
exports2.parse =
|
|
158763
|
+
exports2.parse = parse8;
|
|
158764
158764
|
function parseModule(code, options, delegate) {
|
|
158765
158765
|
var parsingOptions = options || {};
|
|
158766
158766
|
parsingOptions.sourceType = "module";
|
|
158767
|
-
return
|
|
158767
|
+
return parse8(code, parsingOptions, delegate);
|
|
158768
158768
|
}
|
|
158769
158769
|
exports2.parseModule = parseModule;
|
|
158770
158770
|
function parseScript(code, options, delegate) {
|
|
158771
158771
|
var parsingOptions = options || {};
|
|
158772
158772
|
parsingOptions.sourceType = "script";
|
|
158773
|
-
return
|
|
158773
|
+
return parse8(code, parsingOptions, delegate);
|
|
158774
158774
|
}
|
|
158775
158775
|
exports2.parseScript = parseScript;
|
|
158776
158776
|
function tokenize2(code, options, delegate) {
|
|
@@ -164832,7 +164832,7 @@ var require_esprima32 = __commonJS3({
|
|
|
164832
164832
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
164833
164833
|
exports.parse = void 0;
|
|
164834
164834
|
var util_110 = require_util22();
|
|
164835
|
-
function
|
|
164835
|
+
function parse8(source, options) {
|
|
164836
164836
|
var comments = [];
|
|
164837
164837
|
var ast = require_esprima22().parse(source, {
|
|
164838
164838
|
loc: true,
|
|
@@ -164850,7 +164850,7 @@ var require_esprima32 = __commonJS3({
|
|
|
164850
164850
|
}
|
|
164851
164851
|
return ast;
|
|
164852
164852
|
}
|
|
164853
|
-
exports.parse =
|
|
164853
|
+
exports.parse = parse8;
|
|
164854
164854
|
}
|
|
164855
164855
|
});
|
|
164856
164856
|
var require_options2 = __commonJS3({
|
|
@@ -165962,7 +165962,7 @@ var require_parser22 = __commonJS3({
|
|
|
165962
165962
|
var lines_1 = require_lines2();
|
|
165963
165963
|
var comments_1 = require_comments2();
|
|
165964
165964
|
var util2 = tslib_1.__importStar(require_util22());
|
|
165965
|
-
function
|
|
165965
|
+
function parse8(source, options) {
|
|
165966
165966
|
options = (0, options_1.normalize)(options);
|
|
165967
165967
|
var lines = (0, lines_1.fromString)(source, options);
|
|
165968
165968
|
var sourceWithoutTabs = lines.toString({
|
|
@@ -166034,7 +166034,7 @@ var require_parser22 = __commonJS3({
|
|
|
166034
166034
|
(0, comments_1.attach)(comments, program.body.length ? file.program : file, lines);
|
|
166035
166035
|
return new TreeCopier(lines, tokens).copy(file);
|
|
166036
166036
|
}
|
|
166037
|
-
exports.parse =
|
|
166037
|
+
exports.parse = parse8;
|
|
166038
166038
|
var TreeCopier = function TreeCopier2(lines, tokens) {
|
|
166039
166039
|
assert_1.default.ok(this instanceof TreeCopier2);
|
|
166040
166040
|
this.lines = lines;
|
|
@@ -216375,12 +216375,12 @@ function route_params(id2) {
|
|
|
216375
216375
|
const result = parts.map((content, i3) => {
|
|
216376
216376
|
if (i3 % 2) {
|
|
216377
216377
|
if (content.startsWith("x+")) {
|
|
216378
|
-
return
|
|
216378
|
+
return escape2(
|
|
216379
216379
|
String.fromCharCode(parseInt(content.slice(2), 16))
|
|
216380
216380
|
);
|
|
216381
216381
|
}
|
|
216382
216382
|
if (content.startsWith("u+")) {
|
|
216383
|
-
return
|
|
216383
|
+
return escape2(
|
|
216384
216384
|
String.fromCharCode(
|
|
216385
216385
|
...content.slice(2).split("-").map((code) => parseInt(code, 16))
|
|
216386
216386
|
)
|
|
@@ -216402,7 +216402,7 @@ function route_params(id2) {
|
|
|
216402
216402
|
});
|
|
216403
216403
|
return is_rest ? "(.*?)" : is_optional ? "([^/]*)?" : "([^/]+?)";
|
|
216404
216404
|
}
|
|
216405
|
-
return
|
|
216405
|
+
return escape2(content);
|
|
216406
216406
|
}).join("");
|
|
216407
216407
|
return "/" + result;
|
|
216408
216408
|
}).join("")}/?$`
|
|
@@ -216415,7 +216415,7 @@ function affects_path(segment) {
|
|
|
216415
216415
|
function get_route_segments(route) {
|
|
216416
216416
|
return route.slice(1).split("/").filter(affects_path);
|
|
216417
216417
|
}
|
|
216418
|
-
function
|
|
216418
|
+
function escape2(str) {
|
|
216419
216419
|
return str.normalize().replace(/[[\]]/g, "\\$&").replace(/%/g, "%25").replace(/\//g, "%2[Ff]").replace(/\?/g, "%3[Ff]").replace(/#/g, "%23").replace(/[.*+?^${}()|\\]/g, "\\$&");
|
|
216420
216420
|
}
|
|
216421
216421
|
|
|
@@ -218222,6 +218222,12 @@ var plugin_default = plugin("houdini-svelte", pluginHooks);
|
|
|
218222
218222
|
_config,
|
|
218223
218223
|
pluginHooks
|
|
218224
218224
|
});
|
|
218225
|
+
/*!
|
|
218226
|
+
* cookie
|
|
218227
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
218228
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
218229
|
+
* MIT Licensed
|
|
218230
|
+
*/
|
|
218225
218231
|
/*!
|
|
218226
218232
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
218227
218233
|
*
|