@sveltejs/kit 1.0.0-next.34 → 1.0.0-next.342

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.
Files changed (73) hide show
  1. package/README.md +12 -9
  2. package/assets/app/env.js +16 -0
  3. package/assets/app/navigation.js +24 -0
  4. package/assets/app/paths.js +1 -0
  5. package/assets/app/stores.js +97 -0
  6. package/assets/client/singletons.js +13 -0
  7. package/assets/client/start.js +1782 -0
  8. package/assets/components/error.svelte +18 -2
  9. package/assets/env.js +8 -0
  10. package/assets/paths.js +13 -0
  11. package/assets/server/index.js +3367 -0
  12. package/dist/chunks/cert.js +28154 -0
  13. package/dist/chunks/constants.js +663 -0
  14. package/dist/chunks/filesystem.js +110 -0
  15. package/dist/chunks/index.js +549 -0
  16. package/dist/chunks/index2.js +1385 -0
  17. package/dist/chunks/index3.js +118 -0
  18. package/dist/chunks/index4.js +183 -0
  19. package/dist/chunks/index5.js +253 -0
  20. package/dist/chunks/index6.js +15749 -0
  21. package/dist/chunks/misc.js +78 -0
  22. package/dist/chunks/multipart-parser.js +450 -0
  23. package/dist/chunks/object.js +83 -0
  24. package/dist/chunks/sync.js +858 -0
  25. package/dist/chunks/write_tsconfig.js +160 -0
  26. package/dist/cli.js +1097 -64
  27. package/dist/hooks.js +28 -0
  28. package/dist/node/polyfills.js +6514 -0
  29. package/dist/node.js +301 -0
  30. package/package.json +80 -62
  31. package/svelte-kit.js +0 -1
  32. package/types/ambient.d.ts +307 -0
  33. package/types/index.d.ts +292 -0
  34. package/types/internal.d.ts +321 -0
  35. package/types/private.d.ts +235 -0
  36. package/CHANGELOG.md +0 -362
  37. package/assets/runtime/app/navigation.js +0 -23
  38. package/assets/runtime/app/navigation.js.map +0 -1
  39. package/assets/runtime/app/paths.js +0 -2
  40. package/assets/runtime/app/paths.js.map +0 -1
  41. package/assets/runtime/app/stores.js +0 -78
  42. package/assets/runtime/app/stores.js.map +0 -1
  43. package/assets/runtime/internal/singletons.js +0 -15
  44. package/assets/runtime/internal/singletons.js.map +0 -1
  45. package/assets/runtime/internal/start.js +0 -591
  46. package/assets/runtime/internal/start.js.map +0 -1
  47. package/assets/runtime/utils-85ebcc60.js +0 -18
  48. package/assets/runtime/utils-85ebcc60.js.map +0 -1
  49. package/dist/api.js +0 -32
  50. package/dist/api.js.map +0 -1
  51. package/dist/cli.js.map +0 -1
  52. package/dist/create_app.js +0 -577
  53. package/dist/create_app.js.map +0 -1
  54. package/dist/index.js +0 -329
  55. package/dist/index.js.map +0 -1
  56. package/dist/index2.js +0 -14368
  57. package/dist/index2.js.map +0 -1
  58. package/dist/index3.js +0 -545
  59. package/dist/index3.js.map +0 -1
  60. package/dist/index4.js +0 -71
  61. package/dist/index4.js.map +0 -1
  62. package/dist/index5.js +0 -465
  63. package/dist/index5.js.map +0 -1
  64. package/dist/index6.js +0 -729
  65. package/dist/index6.js.map +0 -1
  66. package/dist/renderer.js +0 -2413
  67. package/dist/renderer.js.map +0 -1
  68. package/dist/standard.js +0 -100
  69. package/dist/standard.js.map +0 -1
  70. package/dist/utils.js +0 -57
  71. package/dist/utils.js.map +0 -1
  72. package/dist/vite.js +0 -317
  73. package/dist/vite.js.map +0 -1
package/dist/standard.js DELETED
@@ -1,100 +0,0 @@
1
- /**
2
- * @param typeMap [Object] Map of MIME type -> Array[extensions]
3
- * @param ...
4
- */
5
- function Mime() {
6
- this._types = Object.create(null);
7
- this._extensions = Object.create(null);
8
-
9
- for (let i = 0; i < arguments.length; i++) {
10
- this.define(arguments[i]);
11
- }
12
-
13
- this.define = this.define.bind(this);
14
- this.getType = this.getType.bind(this);
15
- this.getExtension = this.getExtension.bind(this);
16
- }
17
-
18
- /**
19
- * Define mimetype -> extension mappings. Each key is a mime-type that maps
20
- * to an array of extensions associated with the type. The first extension is
21
- * used as the default extension for the type.
22
- *
23
- * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']});
24
- *
25
- * If a type declares an extension that has already been defined, an error will
26
- * be thrown. To suppress this error and force the extension to be associated
27
- * with the new type, pass `force`=true. Alternatively, you may prefix the
28
- * extension with "*" to map the type to extension, without mapping the
29
- * extension to the type.
30
- *
31
- * e.g. mime.define({'audio/wav', ['wav']}, {'audio/x-wav', ['*wav']});
32
- *
33
- *
34
- * @param map (Object) type definitions
35
- * @param force (Boolean) if true, force overriding of existing definitions
36
- */
37
- Mime.prototype.define = function(typeMap, force) {
38
- for (let type in typeMap) {
39
- let extensions = typeMap[type].map(function(t) {
40
- return t.toLowerCase();
41
- });
42
- type = type.toLowerCase();
43
-
44
- for (let i = 0; i < extensions.length; i++) {
45
- const ext = extensions[i];
46
-
47
- // '*' prefix = not the preferred type for this extension. So fixup the
48
- // extension, and skip it.
49
- if (ext[0] === '*') {
50
- continue;
51
- }
52
-
53
- if (!force && (ext in this._types)) {
54
- throw new Error(
55
- 'Attempt to change mapping for "' + ext +
56
- '" extension from "' + this._types[ext] + '" to "' + type +
57
- '". Pass `force=true` to allow this, otherwise remove "' + ext +
58
- '" from the list of extensions for "' + type + '".'
59
- );
60
- }
61
-
62
- this._types[ext] = type;
63
- }
64
-
65
- // Use first extension as default
66
- if (force || !this._extensions[type]) {
67
- const ext = extensions[0];
68
- this._extensions[type] = (ext[0] !== '*') ? ext : ext.substr(1);
69
- }
70
- }
71
- };
72
-
73
- /**
74
- * Lookup a mime type based on extension
75
- */
76
- Mime.prototype.getType = function(path) {
77
- path = String(path);
78
- let last = path.replace(/^.*[/\\]/, '').toLowerCase();
79
- let ext = last.replace(/^.*\./, '').toLowerCase();
80
-
81
- let hasPath = last.length < path.length;
82
- let hasDot = ext.length < last.length - 1;
83
-
84
- return (hasDot || !hasPath) && this._types[ext] || null;
85
- };
86
-
87
- /**
88
- * Return file extension associated with a mime type
89
- */
90
- Mime.prototype.getExtension = function(type) {
91
- type = /^\s*([^;\s]*)/.test(type) && RegExp.$1;
92
- return type && this._extensions[type.toLowerCase()] || null;
93
- };
94
-
95
- var Mime_1 = Mime;
96
-
97
- var standard = {"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};
98
-
99
- export { Mime_1 as M, standard as s };
100
- //# sourceMappingURL=standard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"standard.js","sources":["../../../node_modules/.pnpm/mime@2.5.0/node_modules/mime/Mime.js","../../../node_modules/.pnpm/mime@2.5.0/node_modules/mime/types/standard.js"],"sourcesContent":["'use strict';\n\n/**\n * @param typeMap [Object] Map of MIME type -> Array[extensions]\n * @param ...\n */\nfunction Mime() {\n this._types = Object.create(null);\n this._extensions = Object.create(null);\n\n for (let i = 0; i < arguments.length; i++) {\n this.define(arguments[i]);\n }\n\n this.define = this.define.bind(this);\n this.getType = this.getType.bind(this);\n this.getExtension = this.getExtension.bind(this);\n}\n\n/**\n * Define mimetype -> extension mappings. Each key is a mime-type that maps\n * to an array of extensions associated with the type. The first extension is\n * used as the default extension for the type.\n *\n * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']});\n *\n * If a type declares an extension that has already been defined, an error will\n * be thrown. To suppress this error and force the extension to be associated\n * with the new type, pass `force`=true. Alternatively, you may prefix the\n * extension with \"*\" to map the type to extension, without mapping the\n * extension to the type.\n *\n * e.g. mime.define({'audio/wav', ['wav']}, {'audio/x-wav', ['*wav']});\n *\n *\n * @param map (Object) type definitions\n * @param force (Boolean) if true, force overriding of existing definitions\n */\nMime.prototype.define = function(typeMap, force) {\n for (let type in typeMap) {\n let extensions = typeMap[type].map(function(t) {\n return t.toLowerCase();\n });\n type = type.toLowerCase();\n\n for (let i = 0; i < extensions.length; i++) {\n const ext = extensions[i];\n\n // '*' prefix = not the preferred type for this extension. So fixup the\n // extension, and skip it.\n if (ext[0] === '*') {\n continue;\n }\n\n if (!force && (ext in this._types)) {\n throw new Error(\n 'Attempt to change mapping for \"' + ext +\n '\" extension from \"' + this._types[ext] + '\" to \"' + type +\n '\". Pass `force=true` to allow this, otherwise remove \"' + ext +\n '\" from the list of extensions for \"' + type + '\".'\n );\n }\n\n this._types[ext] = type;\n }\n\n // Use first extension as default\n if (force || !this._extensions[type]) {\n const ext = extensions[0];\n this._extensions[type] = (ext[0] !== '*') ? ext : ext.substr(1);\n }\n }\n};\n\n/**\n * Lookup a mime type based on extension\n */\nMime.prototype.getType = function(path) {\n path = String(path);\n let last = path.replace(/^.*[/\\\\]/, '').toLowerCase();\n let ext = last.replace(/^.*\\./, '').toLowerCase();\n\n let hasPath = last.length < path.length;\n let hasDot = ext.length < last.length - 1;\n\n return (hasDot || !hasPath) && this._types[ext] || null;\n};\n\n/**\n * Return file extension associated with a mime type\n */\nMime.prototype.getExtension = function(type) {\n type = /^\\s*([^;\\s]*)/.test(type) && RegExp.$1;\n return type && this._extensions[type.toLowerCase()] || null;\n};\n\nmodule.exports = Mime;\n","module.exports = {\"application/andrew-inset\":[\"ez\"],\"application/applixware\":[\"aw\"],\"application/atom+xml\":[\"atom\"],\"application/atomcat+xml\":[\"atomcat\"],\"application/atomdeleted+xml\":[\"atomdeleted\"],\"application/atomsvc+xml\":[\"atomsvc\"],\"application/atsc-dwd+xml\":[\"dwd\"],\"application/atsc-held+xml\":[\"held\"],\"application/atsc-rsat+xml\":[\"rsat\"],\"application/bdoc\":[\"bdoc\"],\"application/calendar+xml\":[\"xcs\"],\"application/ccxml+xml\":[\"ccxml\"],\"application/cdfx+xml\":[\"cdfx\"],\"application/cdmi-capability\":[\"cdmia\"],\"application/cdmi-container\":[\"cdmic\"],\"application/cdmi-domain\":[\"cdmid\"],\"application/cdmi-object\":[\"cdmio\"],\"application/cdmi-queue\":[\"cdmiq\"],\"application/cu-seeme\":[\"cu\"],\"application/dash+xml\":[\"mpd\"],\"application/davmount+xml\":[\"davmount\"],\"application/docbook+xml\":[\"dbk\"],\"application/dssc+der\":[\"dssc\"],\"application/dssc+xml\":[\"xdssc\"],\"application/ecmascript\":[\"ecma\",\"es\"],\"application/emma+xml\":[\"emma\"],\"application/emotionml+xml\":[\"emotionml\"],\"application/epub+zip\":[\"epub\"],\"application/exi\":[\"exi\"],\"application/fdt+xml\":[\"fdt\"],\"application/font-tdpfr\":[\"pfr\"],\"application/geo+json\":[\"geojson\"],\"application/gml+xml\":[\"gml\"],\"application/gpx+xml\":[\"gpx\"],\"application/gxf\":[\"gxf\"],\"application/gzip\":[\"gz\"],\"application/hjson\":[\"hjson\"],\"application/hyperstudio\":[\"stk\"],\"application/inkml+xml\":[\"ink\",\"inkml\"],\"application/ipfix\":[\"ipfix\"],\"application/its+xml\":[\"its\"],\"application/java-archive\":[\"jar\",\"war\",\"ear\"],\"application/java-serialized-object\":[\"ser\"],\"application/java-vm\":[\"class\"],\"application/javascript\":[\"js\",\"mjs\"],\"application/json\":[\"json\",\"map\"],\"application/json5\":[\"json5\"],\"application/jsonml+json\":[\"jsonml\"],\"application/ld+json\":[\"jsonld\"],\"application/lgr+xml\":[\"lgr\"],\"application/lost+xml\":[\"lostxml\"],\"application/mac-binhex40\":[\"hqx\"],\"application/mac-compactpro\":[\"cpt\"],\"application/mads+xml\":[\"mads\"],\"application/manifest+json\":[\"webmanifest\"],\"application/marc\":[\"mrc\"],\"application/marcxml+xml\":[\"mrcx\"],\"application/mathematica\":[\"ma\",\"nb\",\"mb\"],\"application/mathml+xml\":[\"mathml\"],\"application/mbox\":[\"mbox\"],\"application/mediaservercontrol+xml\":[\"mscml\"],\"application/metalink+xml\":[\"metalink\"],\"application/metalink4+xml\":[\"meta4\"],\"application/mets+xml\":[\"mets\"],\"application/mmt-aei+xml\":[\"maei\"],\"application/mmt-usd+xml\":[\"musd\"],\"application/mods+xml\":[\"mods\"],\"application/mp21\":[\"m21\",\"mp21\"],\"application/mp4\":[\"mp4s\",\"m4p\"],\"application/mrb-consumer+xml\":[\"*xdf\"],\"application/mrb-publish+xml\":[\"*xdf\"],\"application/msword\":[\"doc\",\"dot\"],\"application/mxf\":[\"mxf\"],\"application/n-quads\":[\"nq\"],\"application/n-triples\":[\"nt\"],\"application/node\":[\"cjs\"],\"application/octet-stream\":[\"bin\",\"dms\",\"lrf\",\"mar\",\"so\",\"dist\",\"distz\",\"pkg\",\"bpk\",\"dump\",\"elc\",\"deploy\",\"exe\",\"dll\",\"deb\",\"dmg\",\"iso\",\"img\",\"msi\",\"msp\",\"msm\",\"buffer\"],\"application/oda\":[\"oda\"],\"application/oebps-package+xml\":[\"opf\"],\"application/ogg\":[\"ogx\"],\"application/omdoc+xml\":[\"omdoc\"],\"application/onenote\":[\"onetoc\",\"onetoc2\",\"onetmp\",\"onepkg\"],\"application/oxps\":[\"oxps\"],\"application/p2p-overlay+xml\":[\"relo\"],\"application/patch-ops-error+xml\":[\"*xer\"],\"application/pdf\":[\"pdf\"],\"application/pgp-encrypted\":[\"pgp\"],\"application/pgp-signature\":[\"asc\",\"sig\"],\"application/pics-rules\":[\"prf\"],\"application/pkcs10\":[\"p10\"],\"application/pkcs7-mime\":[\"p7m\",\"p7c\"],\"application/pkcs7-signature\":[\"p7s\"],\"application/pkcs8\":[\"p8\"],\"application/pkix-attr-cert\":[\"ac\"],\"application/pkix-cert\":[\"cer\"],\"application/pkix-crl\":[\"crl\"],\"application/pkix-pkipath\":[\"pkipath\"],\"application/pkixcmp\":[\"pki\"],\"application/pls+xml\":[\"pls\"],\"application/postscript\":[\"ai\",\"eps\",\"ps\"],\"application/provenance+xml\":[\"provx\"],\"application/pskc+xml\":[\"pskcxml\"],\"application/raml+yaml\":[\"raml\"],\"application/rdf+xml\":[\"rdf\",\"owl\"],\"application/reginfo+xml\":[\"rif\"],\"application/relax-ng-compact-syntax\":[\"rnc\"],\"application/resource-lists+xml\":[\"rl\"],\"application/resource-lists-diff+xml\":[\"rld\"],\"application/rls-services+xml\":[\"rs\"],\"application/route-apd+xml\":[\"rapd\"],\"application/route-s-tsid+xml\":[\"sls\"],\"application/route-usd+xml\":[\"rusd\"],\"application/rpki-ghostbusters\":[\"gbr\"],\"application/rpki-manifest\":[\"mft\"],\"application/rpki-roa\":[\"roa\"],\"application/rsd+xml\":[\"rsd\"],\"application/rss+xml\":[\"rss\"],\"application/rtf\":[\"rtf\"],\"application/sbml+xml\":[\"sbml\"],\"application/scvp-cv-request\":[\"scq\"],\"application/scvp-cv-response\":[\"scs\"],\"application/scvp-vp-request\":[\"spq\"],\"application/scvp-vp-response\":[\"spp\"],\"application/sdp\":[\"sdp\"],\"application/senml+xml\":[\"senmlx\"],\"application/sensml+xml\":[\"sensmlx\"],\"application/set-payment-initiation\":[\"setpay\"],\"application/set-registration-initiation\":[\"setreg\"],\"application/shf+xml\":[\"shf\"],\"application/sieve\":[\"siv\",\"sieve\"],\"application/smil+xml\":[\"smi\",\"smil\"],\"application/sparql-query\":[\"rq\"],\"application/sparql-results+xml\":[\"srx\"],\"application/srgs\":[\"gram\"],\"application/srgs+xml\":[\"grxml\"],\"application/sru+xml\":[\"sru\"],\"application/ssdl+xml\":[\"ssdl\"],\"application/ssml+xml\":[\"ssml\"],\"application/swid+xml\":[\"swidtag\"],\"application/tei+xml\":[\"tei\",\"teicorpus\"],\"application/thraud+xml\":[\"tfi\"],\"application/timestamped-data\":[\"tsd\"],\"application/toml\":[\"toml\"],\"application/ttml+xml\":[\"ttml\"],\"application/ubjson\":[\"ubj\"],\"application/urc-ressheet+xml\":[\"rsheet\"],\"application/urc-targetdesc+xml\":[\"td\"],\"application/voicexml+xml\":[\"vxml\"],\"application/wasm\":[\"wasm\"],\"application/widget\":[\"wgt\"],\"application/winhlp\":[\"hlp\"],\"application/wsdl+xml\":[\"wsdl\"],\"application/wspolicy+xml\":[\"wspolicy\"],\"application/xaml+xml\":[\"xaml\"],\"application/xcap-att+xml\":[\"xav\"],\"application/xcap-caps+xml\":[\"xca\"],\"application/xcap-diff+xml\":[\"xdf\"],\"application/xcap-el+xml\":[\"xel\"],\"application/xcap-error+xml\":[\"xer\"],\"application/xcap-ns+xml\":[\"xns\"],\"application/xenc+xml\":[\"xenc\"],\"application/xhtml+xml\":[\"xhtml\",\"xht\"],\"application/xliff+xml\":[\"xlf\"],\"application/xml\":[\"xml\",\"xsl\",\"xsd\",\"rng\"],\"application/xml-dtd\":[\"dtd\"],\"application/xop+xml\":[\"xop\"],\"application/xproc+xml\":[\"xpl\"],\"application/xslt+xml\":[\"*xsl\",\"xslt\"],\"application/xspf+xml\":[\"xspf\"],\"application/xv+xml\":[\"mxml\",\"xhvml\",\"xvml\",\"xvm\"],\"application/yang\":[\"yang\"],\"application/yin+xml\":[\"yin\"],\"application/zip\":[\"zip\"],\"audio/3gpp\":[\"*3gpp\"],\"audio/adpcm\":[\"adp\"],\"audio/basic\":[\"au\",\"snd\"],\"audio/midi\":[\"mid\",\"midi\",\"kar\",\"rmi\"],\"audio/mobile-xmf\":[\"mxmf\"],\"audio/mp3\":[\"*mp3\"],\"audio/mp4\":[\"m4a\",\"mp4a\"],\"audio/mpeg\":[\"mpga\",\"mp2\",\"mp2a\",\"mp3\",\"m2a\",\"m3a\"],\"audio/ogg\":[\"oga\",\"ogg\",\"spx\"],\"audio/s3m\":[\"s3m\"],\"audio/silk\":[\"sil\"],\"audio/wav\":[\"wav\"],\"audio/wave\":[\"*wav\"],\"audio/webm\":[\"weba\"],\"audio/xm\":[\"xm\"],\"font/collection\":[\"ttc\"],\"font/otf\":[\"otf\"],\"font/ttf\":[\"ttf\"],\"font/woff\":[\"woff\"],\"font/woff2\":[\"woff2\"],\"image/aces\":[\"exr\"],\"image/apng\":[\"apng\"],\"image/avif\":[\"avif\"],\"image/bmp\":[\"bmp\"],\"image/cgm\":[\"cgm\"],\"image/dicom-rle\":[\"drle\"],\"image/emf\":[\"emf\"],\"image/fits\":[\"fits\"],\"image/g3fax\":[\"g3\"],\"image/gif\":[\"gif\"],\"image/heic\":[\"heic\"],\"image/heic-sequence\":[\"heics\"],\"image/heif\":[\"heif\"],\"image/heif-sequence\":[\"heifs\"],\"image/hej2k\":[\"hej2\"],\"image/hsj2\":[\"hsj2\"],\"image/ief\":[\"ief\"],\"image/jls\":[\"jls\"],\"image/jp2\":[\"jp2\",\"jpg2\"],\"image/jpeg\":[\"jpeg\",\"jpg\",\"jpe\"],\"image/jph\":[\"jph\"],\"image/jphc\":[\"jhc\"],\"image/jpm\":[\"jpm\"],\"image/jpx\":[\"jpx\",\"jpf\"],\"image/jxr\":[\"jxr\"],\"image/jxra\":[\"jxra\"],\"image/jxrs\":[\"jxrs\"],\"image/jxs\":[\"jxs\"],\"image/jxsc\":[\"jxsc\"],\"image/jxsi\":[\"jxsi\"],\"image/jxss\":[\"jxss\"],\"image/ktx\":[\"ktx\"],\"image/ktx2\":[\"ktx2\"],\"image/png\":[\"png\"],\"image/sgi\":[\"sgi\"],\"image/svg+xml\":[\"svg\",\"svgz\"],\"image/t38\":[\"t38\"],\"image/tiff\":[\"tif\",\"tiff\"],\"image/tiff-fx\":[\"tfx\"],\"image/webp\":[\"webp\"],\"image/wmf\":[\"wmf\"],\"message/disposition-notification\":[\"disposition-notification\"],\"message/global\":[\"u8msg\"],\"message/global-delivery-status\":[\"u8dsn\"],\"message/global-disposition-notification\":[\"u8mdn\"],\"message/global-headers\":[\"u8hdr\"],\"message/rfc822\":[\"eml\",\"mime\"],\"model/3mf\":[\"3mf\"],\"model/gltf+json\":[\"gltf\"],\"model/gltf-binary\":[\"glb\"],\"model/iges\":[\"igs\",\"iges\"],\"model/mesh\":[\"msh\",\"mesh\",\"silo\"],\"model/mtl\":[\"mtl\"],\"model/obj\":[\"obj\"],\"model/stl\":[\"stl\"],\"model/vrml\":[\"wrl\",\"vrml\"],\"model/x3d+binary\":[\"*x3db\",\"x3dbz\"],\"model/x3d+fastinfoset\":[\"x3db\"],\"model/x3d+vrml\":[\"*x3dv\",\"x3dvz\"],\"model/x3d+xml\":[\"x3d\",\"x3dz\"],\"model/x3d-vrml\":[\"x3dv\"],\"text/cache-manifest\":[\"appcache\",\"manifest\"],\"text/calendar\":[\"ics\",\"ifb\"],\"text/coffeescript\":[\"coffee\",\"litcoffee\"],\"text/css\":[\"css\"],\"text/csv\":[\"csv\"],\"text/html\":[\"html\",\"htm\",\"shtml\"],\"text/jade\":[\"jade\"],\"text/jsx\":[\"jsx\"],\"text/less\":[\"less\"],\"text/markdown\":[\"markdown\",\"md\"],\"text/mathml\":[\"mml\"],\"text/mdx\":[\"mdx\"],\"text/n3\":[\"n3\"],\"text/plain\":[\"txt\",\"text\",\"conf\",\"def\",\"list\",\"log\",\"in\",\"ini\"],\"text/richtext\":[\"rtx\"],\"text/rtf\":[\"*rtf\"],\"text/sgml\":[\"sgml\",\"sgm\"],\"text/shex\":[\"shex\"],\"text/slim\":[\"slim\",\"slm\"],\"text/spdx\":[\"spdx\"],\"text/stylus\":[\"stylus\",\"styl\"],\"text/tab-separated-values\":[\"tsv\"],\"text/troff\":[\"t\",\"tr\",\"roff\",\"man\",\"me\",\"ms\"],\"text/turtle\":[\"ttl\"],\"text/uri-list\":[\"uri\",\"uris\",\"urls\"],\"text/vcard\":[\"vcard\"],\"text/vtt\":[\"vtt\"],\"text/xml\":[\"*xml\"],\"text/yaml\":[\"yaml\",\"yml\"],\"video/3gpp\":[\"3gp\",\"3gpp\"],\"video/3gpp2\":[\"3g2\"],\"video/h261\":[\"h261\"],\"video/h263\":[\"h263\"],\"video/h264\":[\"h264\"],\"video/jpeg\":[\"jpgv\"],\"video/jpm\":[\"*jpm\",\"jpgm\"],\"video/mj2\":[\"mj2\",\"mjp2\"],\"video/mp2t\":[\"ts\"],\"video/mp4\":[\"mp4\",\"mp4v\",\"mpg4\"],\"video/mpeg\":[\"mpeg\",\"mpg\",\"mpe\",\"m1v\",\"m2v\"],\"video/ogg\":[\"ogv\"],\"video/quicktime\":[\"qt\",\"mov\"],\"video/webm\":[\"webm\"]};"],"names":[],"mappings":"AAEA;AACA;AACA;AACA;AACA,SAAS,IAAI,GAAG;AAChB,EAAE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpC,EAAE,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzC;AACA,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC7C,IAAI,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9B,GAAG;AACH;AACA,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACvC,EAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzC,EAAE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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AC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC;;;;"}
package/dist/utils.js DELETED
@@ -1,57 +0,0 @@
1
- import { basename, join, dirname, resolve } from 'path';
2
- import { $ } from './index.js';
3
- import { mkdirSync, statSync, readdirSync, copyFileSync } from 'fs';
4
- import { fileURLToPath } from 'url';
5
-
6
- function mkdirp(dir) {
7
- try {
8
- mkdirSync(dir, { recursive: true });
9
- } catch (e) {
10
- if (e.code === 'EEXIST') return;
11
- throw e;
12
- }
13
- }
14
-
15
- function copy(from, to, filter = () => true) {
16
- if (!filter(basename(from))) return [];
17
-
18
- const files = [];
19
- const stats = statSync(from);
20
-
21
- if (stats.isDirectory()) {
22
- readdirSync(from).forEach((file) => {
23
- files.push(...copy(join(from, file), join(to, file)));
24
- });
25
- } else {
26
- mkdirp(dirname(to));
27
- copyFileSync(from, to);
28
- files.push(to);
29
- }
30
-
31
- return files;
32
- }
33
-
34
- const __filename = fileURLToPath(import.meta.url);
35
- const __dirname = dirname(__filename);
36
-
37
- function copy_assets() {
38
- copy(resolve(__dirname, '../assets'), '.svelte/assets');
39
- }
40
-
41
- function noop() {}
42
-
43
- function logger({ verbose }) {
44
- const log = (msg) => console.log(msg.replace(/^/gm, ' '));
45
-
46
- log.success = (msg) => log($.green(`✔ ${msg}`));
47
- log.error = (msg) => log($.bold().red(msg));
48
- log.warn = (msg) => log($.bold().yellow(msg));
49
-
50
- log.minor = verbose ? (msg) => log($.grey(msg)) : noop;
51
- log.info = verbose ? log : noop;
52
-
53
- return log;
54
- }
55
-
56
- export { copy as a, copy_assets as c, logger as l, mkdirp as m };
57
- //# sourceMappingURL=utils.js.map
package/dist/utils.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../app-utils/files/index.js","../src/api/utils.js"],"sourcesContent":["import { mkdirSync, statSync, readdirSync, copyFileSync } from 'fs';\nimport { basename, join, dirname } from 'path';\n\nfunction mkdirp(dir) {\n\ttry {\n\t\tmkdirSync(dir, { recursive: true });\n\t} catch (e) {\n\t\tif (e.code === 'EEXIST') return;\n\t\tthrow e;\n\t}\n}\n\nfunction copy(from, to, filter = () => true) {\n\tif (!filter(basename(from))) return [];\n\n\tconst files = [];\n\tconst stats = statSync(from);\n\n\tif (stats.isDirectory()) {\n\t\treaddirSync(from).forEach((file) => {\n\t\t\tfiles.push(...copy(join(from, file), join(to, file)));\n\t\t});\n\t} else {\n\t\tmkdirp(dirname(to));\n\t\tcopyFileSync(from, to);\n\t\tfiles.push(to);\n\t}\n\n\treturn files;\n}\n\nexport { copy, mkdirp };\n//# sourceMappingURL=index.js.map\n","import { dirname, resolve } from 'path';\nimport colors from 'kleur';\nimport { copy } from '@sveltejs/app-utils/files';\nimport { fileURLToPath } from 'url';\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = dirname(__filename);\n\nexport function copy_assets() {\n\tcopy(resolve(__dirname, '../assets'), '.svelte/assets');\n}\n\nfunction noop() {}\n\nexport function logger({ verbose }) {\n\tconst log = (msg) => console.log(msg.replace(/^/gm, ' '));\n\n\tlog.success = (msg) => log(colors.green(`✔ ${msg}`));\n\tlog.error = (msg) => log(colors.bold().red(msg));\n\tlog.warn = (msg) => log(colors.bold().yellow(msg));\n\n\tlog.minor = verbose ? (msg) => log(colors.grey(msg)) : noop;\n\tlog.info = verbose ? log : noop;\n\n\treturn log;\n}\n"],"names":["colors"],"mappings":";;;;;AAGA,SAAS,MAAM,CAAC,GAAG,EAAE;AACrB,CAAC,IAAI;AACL,EAAE,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AACtC,EAAE,CAAC,OAAO,CAAC,EAAE;AACb,EAAE,IAAI,CAAC,CAAC,IAAI,KAAK,QAAQ,EAAE,OAAO;AAClC,EAAE,MAAM,CAAC,CAAC;AACV,EAAE;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O,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AAC5D;AACA,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK,GAAG,CAACA,CAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,GAAG,KAAK,GAAG,CAACA,CAAM,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAClD,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,KAAK,GAAG,CAACA,CAAM,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD;AACA,CAAC,GAAG,CAAC,KAAK,GAAG,OAAO,GAAG,CAAC,GAAG,KAAK,GAAG,CAACA,CAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC;AAC7D,CAAC,GAAG,CAAC,IAAI,GAAG,OAAO,GAAG,GAAG,GAAG,IAAI,CAAC;AACjC;AACA,CAAC,OAAO,GAAG,CAAC;AACZ;;;;"}
package/dist/vite.js DELETED
@@ -1,317 +0,0 @@
1
- import express from 'express';
2
- import { readFileSync } from 'fs';
3
- import { join } from 'path';
4
- import { parse, URLSearchParams } from 'url';
5
- import { EventEmitter } from 'events';
6
- import CheapWatch from 'cheap-watch';
7
- import { s as scorta, a as amphtmlValidator } from './index4.js';
8
- import { s as sirv, g as get_body_1 } from './index5.js';
9
- import vite from 'vite';
10
- import { c as create_manifest_data, a as create_app } from './create_app.js';
11
- import { m as mkdirp_1, c as copy_assets } from './utils.js';
12
- import { render } from './renderer.js';
13
- import 'os';
14
- import 'util';
15
- import 'http';
16
- import 'https';
17
- import 'child_process';
18
- import 'domain';
19
- import 'querystring';
20
- import 'vm';
21
- import './standard.js';
22
- import './index.js';
23
- import 'crypto';
24
- import 'stream';
25
- import 'zlib';
26
-
27
- function dev(opts) {
28
- return new Watcher(opts).init();
29
- }
30
-
31
- class Watcher extends EventEmitter {
32
- constructor({ port, config }) {
33
- super();
34
-
35
- this.cachedir = scorta('svelte');
36
- this.port = port;
37
- this.config = config;
38
- this.update();
39
-
40
- process.env.NODE_ENV = 'development';
41
-
42
- process.on('exit', () => {
43
- this.close();
44
- });
45
- }
46
-
47
- async init() {
48
- mkdirp_1('.svelte');
49
-
50
- copy_assets();
51
-
52
- await this.init_filewatcher();
53
- await this.init_server();
54
-
55
- return this;
56
- }
57
-
58
- async init_filewatcher() {
59
- this.cheapwatch = new CheapWatch({
60
- dir: this.config.files.routes,
61
- filter: ({ path }) => path.split('/').every((part) => !part.startsWith('_'))
62
- });
63
-
64
- await this.cheapwatch.init();
65
-
66
- // not sure why TS doesn't understand that CheapWatch extends EventEmitter
67
- this.cheapwatch.on('+', ({ isNew }) => {
68
- if (isNew) this.update();
69
- });
70
-
71
- this.cheapwatch.on('-', () => {
72
- this.update();
73
- });
74
- }
75
-
76
- async init_server() {
77
- /**
78
- * @type {vite.ViteDevServer}
79
- */
80
- this.viteDevServer = await vite.createServer({
81
- server: {
82
- middlewareMode: true
83
- }
84
- });
85
-
86
- const app_dir = this.config.appDir;
87
- const {
88
- set_paths
89
- } = await this.viteDevServer.ssrLoadModule(`/${app_dir}/assets/runtime/internal/singletons.js`);
90
-
91
- set_paths(this.config.paths);
92
-
93
- const static_handler = sirv(this.config.files.assets, {
94
- dev: true
95
- });
96
-
97
- const validator = this.config.amp && (await amphtmlValidator.getInstance());
98
-
99
- this.server = express();
100
-
101
- this.server.use(sirv('static', { dev }));
102
-
103
- // use viteDevServer's connect instance as middleware
104
- this.server.use(this.viteDevServer.middlewares);
105
-
106
- this.server.use('*', async (req, res, next) => {
107
- try {
108
- const parsed = parse(req.originalUrl);
109
-
110
- static_handler(req, res, async () => {
111
- if (req.originalUrl === '/favicon.ico') return;
112
-
113
- // handle dynamic requests - i.e. pages and endpoints
114
- const template = readFileSync(this.config.files.template, 'utf-8');
115
-
116
- let setup;
117
-
118
- try {
119
- setup = (await this.viteDevServer.ssrLoadModule(`/${app_dir}/setup/index.js`));
120
- } catch (err) {
121
- setup = {};
122
- }
123
-
124
- let root;
125
-
126
- try {
127
- // root = (await this.viteDevServer.ssrLoadModule(`/${app_dir}/assets/generated/root.svelte.js`)).default;
128
- root = (await this.viteDevServer.ssrLoadModule(`/${app_dir}/assets/generated/root.svelte`)).default;
129
- } catch (e) {
130
- res.statusCode = 500;
131
- res.end(e.stack);
132
- return;
133
- }
134
-
135
- const body = await get_body_1(req);
136
-
137
- const rendered = await render(
138
- {
139
- headers: req.headers,
140
- method: req.method,
141
- path: parsed.pathname,
142
- query: new URLSearchParams(parsed.query),
143
- body
144
- },
145
- {
146
- paths: this.config.paths,
147
- template: ({ head, body }) => {
148
- let rendered = template
149
- .replace('%svelte.head%', () => head)
150
- .replace('%svelte.body%', () => body);
151
-
152
- if (this.config.amp) {
153
- const result = validator.validateString(rendered);
154
-
155
- if (result.status !== 'PASS') {
156
- const lines = rendered.split('\n');
157
-
158
- const escape = (str) =>
159
- str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
160
-
161
- rendered = `<!doctype html>
162
- <head>
163
- <meta charset="utf-8" />
164
- <meta name="viewport" content="width=device-width, initial-scale=1" />
165
- <style>
166
- body {
167
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
168
- color: #333;
169
- }
170
-
171
- pre {
172
- background: #f4f4f4;
173
- padding: 1em;
174
- overflow-x: auto;
175
- }
176
- </style>
177
- </head>
178
- <h1>AMP validation failed</h1>
179
-
180
- ${result.errors
181
- .map(
182
- (error) => `
183
- <h2>${error.severity}</h2>
184
- <p>Line ${error.line}, column ${error.col}: ${error.message} (<a href="${error.specUrl}">${
185
- error.code
186
- }</a>)</p>
187
- <pre>${escape(lines[error.line - 1])}</pre>
188
- `
189
- )
190
- .join('\n\n')}
191
- `;
192
- }
193
- }
194
-
195
- return rendered;
196
- },
197
- manifest: this.manifest,
198
- target: this.config.target,
199
- entry: 'assets/runtime/internal/start.js',
200
- dev: true,
201
- amp: this.config.amp,
202
- root,
203
- setup,
204
- only_prerender: false,
205
- start_global: this.config.startGlobal,
206
- app_dir,
207
- host: this.config.host,
208
- host_header: this.config.hostHeader,
209
- get_stack: (error) => error.stack, // TODO: use viteDevServer.ssrFixStacktrace?
210
- get_static_file: (file) => readFileSync(join(this.config.files.assets, file)),
211
- get_amp_css: (url) => '' // TODO: implement this
212
- }
213
- );
214
-
215
- if (rendered) {
216
- res.writeHead(rendered.status, rendered.headers);
217
- res.end(rendered.body);
218
- } else {
219
- res.statusCode = 404;
220
- res.end('Not found');
221
- }
222
- });
223
- } catch (e) {
224
- this.viteDevServer.ssrFixStacktrace(e);
225
- console.log(e.stack);
226
- next(e);
227
- }
228
- });
229
-
230
- this.server.listen(this.port);
231
- }
232
-
233
- update() {
234
- const manifest_data = create_manifest_data(this.config);
235
-
236
- create_app({
237
- manifest_data,
238
- output: '.svelte/assets'
239
- });
240
-
241
- this.manifest = {
242
- assets: manifest_data.assets,
243
- layout: async () => {
244
- // TODO: CSS support
245
- // const { exports, css } = await this.load(manifest_data.layout.url);
246
- // css.forEach((dep) => common_css_deps.add(dep));
247
- // return exports;
248
-
249
- return await this.viteDevServer.ssrLoadModule(manifest_data.layout.url);
250
- },
251
- error: async () => {
252
- // TODO: CSS support
253
- // const { exports, css } = await this.load(manifest_data.error.url);
254
- // css.forEach((dep) => common_css_deps.add(dep));
255
- // return exports;
256
-
257
- return await this.viteDevServer.ssrLoadModule(manifest_data.error.url);
258
- },
259
- pages: manifest_data.pages.map((data) => {
260
- // This is a bit of a hack, but it means we can inject the correct <link>
261
- // elements without needing to do any analysis before loading
262
- const css_deps = new Set();
263
-
264
- return {
265
- pattern: data.pattern,
266
- params: get_params(data.params),
267
- parts: data.parts.map(({ url }) => async () => {
268
- // TODO: CSS support
269
- // const { exports, css } = await this.load(url);
270
- // common_css_deps.forEach((url) => css_deps.add(url));
271
- // css.forEach((url) => css_deps.add(url));
272
- // return exports;
273
-
274
- return await this.viteDevServer.ssrLoadModule(url);
275
- }),
276
- get css() {
277
- return Array.from(css_deps);
278
- },
279
- js: []
280
- };
281
- }),
282
- endpoints: manifest_data.endpoints.map((data) => ({
283
- pattern: data.pattern,
284
- params: get_params(data.params),
285
- load: async () => await this.viteDevServer.ssrLoadModule(data.url)
286
- }))
287
- };
288
- }
289
-
290
- close() {
291
- if (this.closed) return;
292
- this.closed = true;
293
-
294
- this.server.close();
295
- this.cheapwatch.close();
296
- }
297
- }
298
-
299
- // given an array of params like `['x', 'y', 'z']` for
300
- // src/routes/[x]/[y]/[z]/svelte, create a function
301
- // that turns a RexExpMatchArray into ({ x, y, z })
302
- function get_params(array) {
303
- return (match) => {
304
- const params = {};
305
- array.forEach((key, i) => {
306
- if (key.startsWith('...')) {
307
- params[key.slice(3)] = decodeURIComponent(match[i + 1]).split('/');
308
- } else {
309
- params[key] = decodeURIComponent(match[i + 1]);
310
- }
311
- });
312
- return params;
313
- };
314
- }
315
-
316
- export { dev };
317
- //# sourceMappingURL=vite.js.map
package/dist/vite.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"vite.js","sources":["../src/api/dev/vite.js"],"sourcesContent":["import express from 'express';\nimport { readFileSync } from 'fs';\nimport { join } from 'path';\nimport { parse, URLSearchParams } from 'url';\nimport { EventEmitter } from 'events';\nimport CheapWatch from 'cheap-watch';\nimport { scorta } from 'scorta/sync';\nimport sirv from 'sirv';\nimport amp_validator from 'amphtml-validator';\nimport vite from 'vite';\nimport create_manifest_data from '../../core/create_manifest_data';\nimport { create_app } from '../../core/create_app';\nimport { mkdirp } from '@sveltejs/app-utils/files';\nimport { render } from '../../renderer';\nimport { get_body } from '@sveltejs/app-utils/http';\nimport { copy_assets } from '../utils';\n\nexport function dev(opts) {\n\treturn new Watcher(opts).init();\n}\n\nclass Watcher extends EventEmitter {\n\tconstructor({ port, config }) {\n\t\tsuper();\n\n\t\tthis.cachedir = scorta('svelte');\n\t\tthis.port = port;\n\t\tthis.config = config;\n\t\tthis.update();\n\n\t\tprocess.env.NODE_ENV = 'development';\n\n\t\tprocess.on('exit', () => {\n\t\t\tthis.close();\n\t\t});\n\t}\n\n\tasync init() {\n\t\tmkdirp('.svelte');\n\n\t\tcopy_assets();\n\n\t\tawait this.init_filewatcher();\n\t\tawait this.init_server();\n\n\t\treturn this;\n\t}\n\n\tasync init_filewatcher() {\n\t\tthis.cheapwatch = new CheapWatch({\n\t\t\tdir: this.config.files.routes,\n\t\t\tfilter: ({ path }) => path.split('/').every((part) => !part.startsWith('_'))\n\t\t});\n\n\t\tawait this.cheapwatch.init();\n\n\t\t// not sure why TS doesn't understand that CheapWatch extends EventEmitter\n\t\tthis.cheapwatch.on('+', ({ isNew }) => {\n\t\t\tif (isNew) this.update();\n\t\t});\n\n\t\tthis.cheapwatch.on('-', () => {\n\t\t\tthis.update();\n\t\t});\n\t}\n\n\tasync init_server() {\n\t\t/**\n\t\t * @type {vite.ViteDevServer}\n\t\t */\n\t\tthis.viteDevServer = await vite.createServer({\n\t\t\tserver: {\n\t\t\t middlewareMode: true\n\t\t\t}\n\t\t});\n\n\t\tconst app_dir = this.config.appDir;\n\t\tconst {\n\t\t\tset_paths\n\t\t} = await this.viteDevServer.ssrLoadModule(`/${app_dir}/assets/runtime/internal/singletons.js`);\n\n\t\tset_paths(this.config.paths);\n\n\t\tconst static_handler = sirv(this.config.files.assets, {\n\t\t\tdev: true\n\t\t});\n\n\t\tconst validator = this.config.amp && (await amp_validator.getInstance());\n\n\t\tthis.server = express();\n\n\t\tthis.server.use(sirv('static', { dev }));\n\n\t\t// use viteDevServer's connect instance as middleware\n\t\tthis.server.use(this.viteDevServer.middlewares);\n\n\t\tthis.server.use('*', async (req, res, next) => {\n\t\t\ttry {\n\t\t\t\tconst parsed = parse(req.originalUrl);\n\n\t\t\t\tstatic_handler(req, res, async () => {\n\t\t\t\t\tif (req.originalUrl === '/favicon.ico') return;\n\n\t\t\t\t\t// handle dynamic requests - i.e. pages and endpoints\n\t\t\t\t\tconst template = readFileSync(this.config.files.template, 'utf-8');\n\n\t\t\t\t\tlet setup;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetup = (await this.viteDevServer.ssrLoadModule(`/${app_dir}/setup/index.js`));\n\t\t\t\t\t} catch (err) {\n\t\t\t\t\t\tsetup = {};\n\t\t\t\t\t}\n\n\t\t\t\t\tlet root;\n\n\t\t\t\t\ttry {\n//\t\t\t\t\t\troot = (await this.viteDevServer.ssrLoadModule(`/${app_dir}/assets/generated/root.svelte.js`)).default;\n\t\t\t\t\t\troot = (await this.viteDevServer.ssrLoadModule(`/${app_dir}/assets/generated/root.svelte`)).default;\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\tres.statusCode = 500;\n\t\t\t\t\t\tres.end(e.stack);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst body = await get_body(req);\n\n\t\t\t\t\tconst rendered = await render(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\theaders: req.headers,\n\t\t\t\t\t\t\tmethod: req.method,\n\t\t\t\t\t\t\tpath: parsed.pathname,\n\t\t\t\t\t\t\tquery: new URLSearchParams(parsed.query),\n\t\t\t\t\t\t\tbody\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpaths: this.config.paths,\n\t\t\t\t\t\t\ttemplate: ({ head, body }) => {\n\t\t\t\t\t\t\t\tlet rendered = template\n\t\t\t\t\t\t\t\t\t.replace('%svelte.head%', () => head)\n\t\t\t\t\t\t\t\t\t.replace('%svelte.body%', () => body);\n\n\t\t\t\t\t\t\t\tif (this.config.amp) {\n\t\t\t\t\t\t\t\t\tconst result = validator.validateString(rendered);\n\n\t\t\t\t\t\t\t\t\tif (result.status !== 'PASS') {\n\t\t\t\t\t\t\t\t\t\tconst lines = rendered.split('\\n');\n\n\t\t\t\t\t\t\t\t\t\tconst escape = (str) =>\n\t\t\t\t\t\t\t\t\t\t\tstr.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n\n\t\t\t\t\t\t\t\t\t\trendered = `<!doctype html>\n\t\t\t\t\t\t\t\t\t\t\t<head>\n\t\t\t\t\t\t\t\t\t\t\t\t<meta charset=\"utf-8\" />\n\t\t\t\t\t\t\t\t\t\t\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t\t\t\t\t\t\t\t\t\t\t<style>\n\t\t\t\t\t\t\t\t\t\t\t\t\tbody {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfont-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcolor: #333;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tpre {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbackground: #f4f4f4;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpadding: 1em;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\toverflow-x: auto;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t</style>\n\t\t\t\t\t\t\t\t\t\t\t</head>\n\t\t\t\t\t\t\t\t\t\t\t<h1>AMP validation failed</h1>\n\n\t\t\t\t\t\t\t\t\t\t\t${result.errors\n\t\t\t\t\t\t\t\t\t\t\t\t.map(\n\t\t\t\t\t\t\t\t\t\t\t\t\t(error) => `\n\t\t\t\t\t\t\t\t\t\t\t\t<h2>${error.severity}</h2>\n\t\t\t\t\t\t\t\t\t\t\t\t<p>Line ${error.line}, column ${error.col}: ${error.message} (<a href=\"${error.specUrl}\">${\n\t\t\t\t\t\t\t\t\t\t\t\t\t\terror.code\n\t\t\t\t\t\t\t\t\t\t\t\t\t}</a>)</p>\n\t\t\t\t\t\t\t\t\t\t\t\t<pre>${escape(lines[error.line - 1])}</pre>\n\t\t\t\t\t\t\t\t\t\t\t`\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t.join('\\n\\n')}\n\t\t\t\t\t\t\t\t\t\t`;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn rendered;\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tmanifest: this.manifest,\n\t\t\t\t\t\t\ttarget: this.config.target,\n\t\t\t\t\t\t\tentry: 'assets/runtime/internal/start.js',\n\t\t\t\t\t\t\tdev: true,\n\t\t\t\t\t\t\tamp: this.config.amp,\n\t\t\t\t\t\t\troot,\n\t\t\t\t\t\t\tsetup,\n\t\t\t\t\t\t\tonly_prerender: false,\n\t\t\t\t\t\t\tstart_global: this.config.startGlobal,\n\t\t\t\t\t\t\tapp_dir,\n\t\t\t\t\t\t\thost: this.config.host,\n\t\t\t\t\t\t\thost_header: this.config.hostHeader,\n\t\t\t\t\t\t\tget_stack: (error) => error.stack, // TODO: use viteDevServer.ssrFixStacktrace?\n\t\t\t\t\t\t\tget_static_file: (file) => readFileSync(join(this.config.files.assets, file)),\n\t\t\t\t\t\t\tget_amp_css: (url) => '' // TODO: implement this\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\n\t\t\t\t\tif (rendered) {\n\t\t\t\t\t\tres.writeHead(rendered.status, rendered.headers);\n\t\t\t\t\t\tres.end(rendered.body);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tres.statusCode = 404;\n\t\t\t\t\t\tres.end('Not found');\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch (e) {\n\t\t\t\tthis.viteDevServer.ssrFixStacktrace(e);\n\t\t\t\tconsole.log(e.stack);\n\t\t\t\tnext(e);\n\t\t\t}\n\t\t});\n\n\t\tthis.server.listen(this.port);\n\t}\n\n\tupdate() {\n\t\tconst manifest_data = create_manifest_data(this.config);\n\n\t\tcreate_app({\n\t\t\tmanifest_data,\n\t\t\toutput: '.svelte/assets'\n\t\t});\n\n\t\tconst common_css_deps = new Set();\n\n\t\tthis.manifest = {\n\t\t\tassets: manifest_data.assets,\n\t\t\tlayout: async () => {\n\t\t\t\t// TODO: CSS support\n\t\t\t\t// const { exports, css } = await this.load(manifest_data.layout.url);\n\t\t\t\t// css.forEach((dep) => common_css_deps.add(dep));\n\t\t\t\t// return exports;\n\n\t\t\t\treturn await this.viteDevServer.ssrLoadModule(manifest_data.layout.url);\n\t\t\t},\n\t\t\terror: async () => {\n\t\t\t\t// TODO: CSS support\n\t\t\t\t// const { exports, css } = await this.load(manifest_data.error.url);\n\t\t\t\t// css.forEach((dep) => common_css_deps.add(dep));\n\t\t\t\t// return exports;\n\n\t\t\t\treturn await this.viteDevServer.ssrLoadModule(manifest_data.error.url);\n\t\t\t},\n\t\t\tpages: manifest_data.pages.map((data) => {\n\t\t\t\t// This is a bit of a hack, but it means we can inject the correct <link>\n\t\t\t\t// elements without needing to do any analysis before loading\n\t\t\t\tconst css_deps = new Set();\n\n\t\t\t\treturn {\n\t\t\t\t\tpattern: data.pattern,\n\t\t\t\t\tparams: get_params(data.params),\n\t\t\t\t\tparts: data.parts.map(({ url }) => async () => {\n\t\t\t\t\t\t// TODO: CSS support\n\t\t\t\t\t\t// const { exports, css } = await this.load(url);\n\t\t\t\t\t\t// common_css_deps.forEach((url) => css_deps.add(url));\n\t\t\t\t\t\t// css.forEach((url) => css_deps.add(url));\n\t\t\t\t\t\t// return exports;\n\n\t\t\t\t\t\treturn await this.viteDevServer.ssrLoadModule(url);\n\t\t\t\t\t}),\n\t\t\t\t\tget css() {\n\t\t\t\t\t\treturn Array.from(css_deps);\n\t\t\t\t\t},\n\t\t\t\t\tjs: []\n\t\t\t\t};\n\t\t\t}),\n\t\t\tendpoints: manifest_data.endpoints.map((data) => ({\n\t\t\t\tpattern: data.pattern,\n\t\t\t\tparams: get_params(data.params),\n\t\t\t\tload: async () => await this.viteDevServer.ssrLoadModule(data.url)\n\t\t\t}))\n\t\t};\n\t}\n\n\tclose() {\n\t\tif (this.closed) return;\n\t\tthis.closed = true;\n\n\t\tthis.server.close();\n\t\tthis.cheapwatch.close();\n\t}\n}\n\n// given an array of params like `['x', 'y', 'z']` for\n// src/routes/[x]/[y]/[z]/svelte, create a function\n// that turns a RexExpMatchArray into ({ x, y, z })\nfunction get_params(array) {\n\treturn (match) => {\n\t\tconst params = {};\n\t\tarray.forEach((key, i) => {\n\t\t\tif (key.startsWith('...')) {\n\t\t\t\tparams[key.slice(3)] = decodeURIComponent(match[i + 1]).split('/');\n\t\t\t} else {\n\t\t\t\tparams[key] = decodeURIComponent(match[i + 1]);\n\t\t\t}\n\t\t});\n\t\treturn params;\n\t};\n}\n"],"names":["mkdirp","amp_validator","get_body"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiBO,SAAS,GAAG,CAAC,IAAI,EAAE;AAC1B,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC;AACjC,CAAC;AACD;AACA,MAAM,OAAO,SAAS,YAAY,CAAC;AACnC,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;AAC/B,EAAE,KAAK,EAAE,CAAC;AACV;AACA,EAAE,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AACnC,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACnB,EAAE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACvB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;AAChB;AACA,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,GAAG,aAAa,CAAC;AACvC;AACA,EAAE,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM;AA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