@sveltejs/kit 1.0.0-next.20 → 1.0.0-next.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -9
- package/assets/components/error.svelte +19 -3
- package/assets/runtime/app/env.js +20 -0
- package/assets/runtime/app/navigation.js +45 -13
- package/assets/runtime/app/paths.js +1 -2
- package/assets/runtime/app/stores.js +15 -9
- package/assets/runtime/chunks/utils.js +13 -0
- package/assets/runtime/env.js +8 -0
- package/assets/runtime/internal/singletons.js +5 -11
- package/assets/runtime/internal/start.js +979 -351
- package/assets/runtime/paths.js +13 -0
- package/dist/chunks/cert.js +29254 -0
- package/dist/chunks/constants.js +8 -0
- package/dist/chunks/error.js +21 -0
- package/dist/chunks/index.js +4745 -0
- package/dist/chunks/index2.js +700 -0
- package/dist/chunks/index3.js +1060 -0
- package/dist/chunks/index4.js +398 -0
- package/dist/chunks/index5.js +413 -0
- package/dist/chunks/index6.js +15574 -0
- package/dist/{standard.js → chunks/standard.js} +16 -18
- package/dist/chunks/url.js +59 -0
- package/dist/cli.js +947 -67
- package/dist/hooks.js +28 -0
- package/dist/install-fetch.js +6070 -0
- package/dist/node.js +51 -0
- package/dist/ssr.js +1771 -0
- package/package.json +89 -54
- package/svelte-kit.js +2 -0
- package/types/ambient-modules.d.ts +173 -0
- package/types/app.d.ts +21 -0
- package/types/config.d.ts +96 -0
- package/types/endpoint.d.ts +18 -0
- package/types/helper.d.ts +41 -0
- package/types/hooks.d.ts +36 -0
- package/types/index.d.ts +17 -0
- package/types/internal.d.ts +219 -0
- package/types/page.d.ts +77 -0
- package/CHANGELOG.md +0 -276
- package/assets/runtime/app/navigation.js.map +0 -1
- package/assets/runtime/app/paths.js.map +0 -1
- package/assets/runtime/app/stores.js.map +0 -1
- package/assets/runtime/internal/singletons.js.map +0 -1
- package/assets/runtime/internal/start.js.map +0 -1
- package/assets/runtime/utils-85ebcc60.js +0 -18
- package/assets/runtime/utils-85ebcc60.js.map +0 -1
- package/dist/api.js +0 -44
- package/dist/api.js.map +0 -1
- package/dist/build.js +0 -246
- package/dist/build.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/colors.js +0 -37
- package/dist/colors.js.map +0 -1
- package/dist/create_app.js +0 -578
- package/dist/create_app.js.map +0 -1
- package/dist/index.js +0 -12042
- package/dist/index.js.map +0 -1
- package/dist/index2.js +0 -544
- package/dist/index2.js.map +0 -1
- package/dist/index3.js +0 -71
- package/dist/index3.js.map +0 -1
- package/dist/index4.js +0 -466
- package/dist/index4.js.map +0 -1
- package/dist/index5.js +0 -725
- package/dist/index5.js.map +0 -1
- package/dist/index6.js +0 -713
- package/dist/index6.js.map +0 -1
- package/dist/logging.js +0 -43
- package/dist/logging.js.map +0 -1
- package/dist/package.js +0 -432
- package/dist/package.js.map +0 -1
- package/dist/renderer.js +0 -2391
- package/dist/renderer.js.map +0 -1
- package/dist/standard.js.map +0 -1
- package/dist/utils.js +0 -54
- package/dist/utils.js.map +0 -1
- package/svelte-kit +0 -3
package/dist/utils.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _package = require('./package.js');
|
|
4
|
-
var path = require('path');
|
|
5
|
-
var fs = require('fs');
|
|
6
|
-
|
|
7
|
-
function mkdirp(dir) {
|
|
8
|
-
try {
|
|
9
|
-
fs.mkdirSync(dir, { recursive: true });
|
|
10
|
-
} catch (e) {
|
|
11
|
-
if (e.code === 'EEXIST') return;
|
|
12
|
-
throw e;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function copy(from, to, filter = () => true) {
|
|
17
|
-
if (!filter(path.basename(from))) return [];
|
|
18
|
-
|
|
19
|
-
const files = [];
|
|
20
|
-
const stats = fs.statSync(from);
|
|
21
|
-
|
|
22
|
-
if (stats.isDirectory()) {
|
|
23
|
-
fs.readdirSync(from).forEach((file) => {
|
|
24
|
-
files.push(...copy(path.join(from, file), path.join(to, file)));
|
|
25
|
-
});
|
|
26
|
-
} else {
|
|
27
|
-
mkdirp(path.dirname(to));
|
|
28
|
-
fs.copyFileSync(from, to);
|
|
29
|
-
files.push(to);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return files;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function copy_assets() {
|
|
36
|
-
copy(path.resolve(__dirname, '../assets'), '.svelte/assets');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function logger() {
|
|
40
|
-
const log = (msg) => console.log(msg.replace(/^/gm, ' '));
|
|
41
|
-
log.success = (msg) => log(_package.$.green(`✔ ${msg}`));
|
|
42
|
-
log.error = (msg) => log(_package.$.bold().red(msg));
|
|
43
|
-
log.warn = (msg) => log(_package.$.bold().yellow(msg));
|
|
44
|
-
log.minor = (msg) => log(_package.$.grey(msg));
|
|
45
|
-
log.info = log;
|
|
46
|
-
|
|
47
|
-
return log;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
exports.copy = copy;
|
|
51
|
-
exports.copy_assets = copy_assets;
|
|
52
|
-
exports.logger = logger;
|
|
53
|
-
exports.mkdirp = mkdirp;
|
|
54
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../app-utils/files/index.mjs","../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.mjs.map\n","import { resolve } from 'path';\nimport colors from 'kleur';\nimport { copy } from '@sveltejs/app-utils/files';\n\nexport function copy_assets() {\n\tcopy(resolve(__dirname, '../assets'), '.svelte/assets');\n}\n\nexport function logger() {\n\tconst log = (msg) => console.log(msg.replace(/^/gm, ' '));\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\tlog.minor = (msg) => log(colors.grey(msg));\n\tlog.info = log;\n\n\treturn log;\n}\n"],"names":["mkdirSync","basename","statSync","readdirSync","join","dirname","copyFileSync","resolve","colors"],"mappings":";;;;;;AAGA,SAAS,MAAM,CAAC,GAAG,EAAE;AACrB,CAAC,IAAI;AACL,EAAEA,YAAS,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;AACF,CAAC;AACD;AACA,SAAS,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,IAAI,EAAE;AAC7C,CAAC,IAAI,CAAC,MAAM,CAACC,aAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC;AACxC;AACA,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;AAClB,CAAC,MAAM,KAAK,GAAGC,WAAQ,CAAC,IAAI,CAAC,CAAC;AAC9B;AACA,CAAC,IAAI,KAAK,CAAC,WAAW,EAAE,EAAE;AAC1B,EAAEC,cAAW,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,K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