Skip to content

Commit

Permalink
fix lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn committed Jan 22, 2024
1 parent 0d7cb36 commit bd27260
Show file tree
Hide file tree
Showing 12 changed files with 409 additions and 43 deletions.
213 changes: 213 additions & 0 deletions packages/_test/.svelte-kit/ambient.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@

// this file is generated — do not edit it


/// <reference types="@sveltejs/kit" />

/**
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env).
*
* _Unlike_ [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
*
* ```ts
* import { API_KEY } from '$env/static/private';
* ```
*
* Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
*
* ```
* MY_FEATURE_FLAG=""
* ```
*
* You can override `.env` values from the command line like so:
*
* ```bash
* MY_FEATURE_FLAG="enabled" npm run dev
* ```
*/
declare module '$env/static/private' {
export const MANPATH: string;
export const _VOLTA_TOOL_RECURSION: string;
export const npm_config_prefer_workspace_packages: string;
export const TERM_PROGRAM: string;
export const NODE: string;
export const PYENV_ROOT: string;
export const npm_package_devDependencies_typescript: string;
export const INIT_CWD: string;
export const SHELL: string;
export const TERM: string;
export const npm_package_devDependencies_vite: string;
export const npm_config_shamefully_hoist: string;
export const HOMEBREW_REPOSITORY: string;
export const TMPDIR: string;
export const TERM_PROGRAM_VERSION: string;
export const npm_package_scripts_dev: string;
export const VOLTA_HOME: string;
export const npm_package_private: string;
export const npm_package_devDependencies__sveltejs_kit: string;
export const npm_config_registry: string;
export const PNPM_HOME: string;
export const USER: string;
export const npm_package_scripts_check_watch: string;
export const npm_package_dependencies_mdsvex: string;
export const COMMAND_MODE: string;
export const PNPM_SCRIPT_SRC_DIR: string;
export const SSH_AUTH_SOCK: string;
export const WARP_IS_LOCAL_SHELL_SESSION: string;
export const __CF_USER_TEXT_ENCODING: string;
export const npm_execpath: string;
export const WARP_USE_SSH_WRAPPER: string;
export const npm_package_devDependencies_svelte: string;
export const PATH: string;
export const WARP_PS1: string;
export const npm_config_engine_strict: string;
export const __CFBundleIdentifier: string;
export const PWD: string;
export const npm_command: string;
export const npm_package_scripts_preview: string;
export const npm_lifecycle_event: string;
export const LANG: string;
export const npm_package_name: string;
export const npm_config_resolution_mode: string;
export const NODE_PATH: string;
export const npm_package_scripts_build: string;
export const XPC_FLAGS: string;
export const npm_config_node_gyp: string;
export const XPC_SERVICE_NAME: string;
export const npm_package_version: string;
export const npm_package_devDependencies__sveltejs_adapter_auto: string;
export const npm_package_devDependencies_svelte_check: string;
export const HOME: string;
export const PYENV_SHELL: string;
export const SHLVL: string;
export const npm_package_type: string;
export const HOMEBREW_PREFIX: string;
export const LOGNAME: string;
export const npm_lifecycle_script: string;
export const SSH_SOCKET_DIR: string;
export const npm_config_user_agent: string;
export const HOMEBREW_CELLAR: string;
export const INFOPATH: string;
export const npm_config_link_workspace_packages: string;
export const CONDA_CHANGEPS1: string;
export const npm_package_scripts_check: string;
export const COLORTERM: string;
export const npm_node_execpath: string;
export const NODE_ENV: string;
}

/**
* Similar to [`$env/static/private`](https://kit.svelte.dev/docs/modules#$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
*
* Values are replaced statically at build time.
*
* ```ts
* import { PUBLIC_BASE_URL } from '$env/static/public';
* ```
*/
declare module '$env/static/public' {

}

/**
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/master/packages/adapter-node) (or running [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env).
*
* This module cannot be imported into client-side code.
*
* ```ts
* import { env } from '$env/dynamic/private';
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
* ```
*
* > In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
*/
declare module '$env/dynamic/private' {
export const env: {
MANPATH: string;
_VOLTA_TOOL_RECURSION: string;
npm_config_prefer_workspace_packages: string;
TERM_PROGRAM: string;
NODE: string;
PYENV_ROOT: string;
npm_package_devDependencies_typescript: string;
INIT_CWD: string;
SHELL: string;
TERM: string;
npm_package_devDependencies_vite: string;
npm_config_shamefully_hoist: string;
HOMEBREW_REPOSITORY: string;
TMPDIR: string;
TERM_PROGRAM_VERSION: string;
npm_package_scripts_dev: string;
VOLTA_HOME: string;
npm_package_private: string;
npm_package_devDependencies__sveltejs_kit: string;
npm_config_registry: string;
PNPM_HOME: string;
USER: string;
npm_package_scripts_check_watch: string;
npm_package_dependencies_mdsvex: string;
COMMAND_MODE: string;
PNPM_SCRIPT_SRC_DIR: string;
SSH_AUTH_SOCK: string;
WARP_IS_LOCAL_SHELL_SESSION: string;
__CF_USER_TEXT_ENCODING: string;
npm_execpath: string;
WARP_USE_SSH_WRAPPER: string;
npm_package_devDependencies_svelte: string;
PATH: string;
WARP_PS1: string;
npm_config_engine_strict: string;
__CFBundleIdentifier: string;
PWD: string;
npm_command: string;
npm_package_scripts_preview: string;
npm_lifecycle_event: string;
LANG: string;
npm_package_name: string;
npm_config_resolution_mode: string;
NODE_PATH: string;
npm_package_scripts_build: string;
XPC_FLAGS: string;
npm_config_node_gyp: string;
XPC_SERVICE_NAME: string;
npm_package_version: string;
npm_package_devDependencies__sveltejs_adapter_auto: string;
npm_package_devDependencies_svelte_check: string;
HOME: string;
PYENV_SHELL: string;
SHLVL: string;
npm_package_type: string;
HOMEBREW_PREFIX: string;
LOGNAME: string;
npm_lifecycle_script: string;
SSH_SOCKET_DIR: string;
npm_config_user_agent: string;
HOMEBREW_CELLAR: string;
INFOPATH: string;
npm_config_link_workspace_packages: string;
CONDA_CHANGEPS1: string;
npm_package_scripts_check: string;
COLORTERM: string;
npm_node_execpath: string;
NODE_ENV: string;
[key: `PUBLIC_${string}`]: undefined;
[key: string]: string | undefined;
}
}

/**
* Similar to [`$env/dynamic/private`](https://kit.svelte.dev/docs/modules#$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
*
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
*
* ```ts
* import { env } from '$env/dynamic/public';
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
* ```
*/
declare module '$env/dynamic/public' {
export const env: {
[key: `PUBLIC_${string}`]: string | undefined;
}
}
19 changes: 19 additions & 0 deletions packages/_test/.svelte-kit/generated/client/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export { matchers } from './matchers.js';

export const nodes = [
() => import('./nodes/0'),
() => import('./nodes/1'),
() => import('./nodes/2')
];

export const server_loads = [];

export const dictionary = {
"/": [2]
};

export const hooks = {
handleError: (({ error }) => { console.error(error) }),
};

export { default as root } from '../root.svelte';
1 change: 1 addition & 0 deletions packages/_test/.svelte-kit/generated/client/matchers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const matchers = {};
1 change: 1 addition & 0 deletions packages/_test/.svelte-kit/generated/client/nodes/0.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/_test/.svelte-kit/generated/client/nodes/1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/_test/.svelte-kit/generated/client/nodes/2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as component } from "../../../../src/routes/+page.svelte";
54 changes: 54 additions & 0 deletions packages/_test/.svelte-kit/generated/root.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!-- This file is generated by @sveltejs/kit — do not edit it! -->
<script>
import { setContext, afterUpdate, onMount } from 'svelte';
import { browser } from '$app/environment';
// stores
export let stores;
export let page;
export let constructors;
export let components = [];
export let form;
export let data_0 = null;
export let data_1 = null;
if (!browser) {
setContext('__svelte__', stores);
}
$: stores.page.set(page);
afterUpdate(stores.page.notify);
let mounted = false;
let navigated = false;
let title = null;
onMount(() => {
const unsubscribe = stores.page.subscribe(() => {
if (mounted) {
navigated = true;
title = document.title || 'untitled page';
}
});
mounted = true;
return unsubscribe;
});
</script>

{#if constructors[1]}
<svelte:component this={constructors[0]} bind:this={components[0]} data={data_0}>
<svelte:component this={constructors[1]} bind:this={components[1]} data={data_1} {form} />
</svelte:component>
{:else}
<svelte:component this={constructors[0]} bind:this={components[0]} data={data_0} {form} />
{/if}

{#if mounted}
<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px">
{#if navigated}
{title}
{/if}
</div>
{/if}
29 changes: 29 additions & 0 deletions packages/_test/.svelte-kit/generated/server/internal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

import root from '../root.svelte';
import { set_building } from '__sveltekit/environment';
import { set_assets } from '__sveltekit/paths';
import { set_private_env, set_public_env } from '../../../../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/kit/src/runtime/shared-server.js';

export const options = {
app_template_contains_nonce: false,
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
csrf_check_origin: true,
track_server_fetches: false,
embedded: false,
env_public_prefix: 'PUBLIC_',
hooks: null, // added lazily, via `get_hooks`
preload_strategy: "modulepreload",
root,
service_worker: false,
templates: {
app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width\" />\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
error: ({ status, message }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,\n\t\t\t\t\tUbuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
},
version_hash: "xncu8n"
};

export function get_hooks() {
return {};
}

export { set_assets, set_building, set_private_env, set_public_env };
38 changes: 38 additions & 0 deletions packages/_test/.svelte-kit/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"compilerOptions": {
"paths": {},
"rootDirs": [
"..",
"./types"
],
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"preserveValueImports": true,
"lib": [
"esnext",
"DOM",
"DOM.Iterable"
],
"moduleResolution": "node",
"module": "esnext",
"target": "esnext"
},
"include": [
"ambient.d.ts",
"./types/**/$types.d.ts",
"../vite.config.ts",
"../src/**/*.js",
"../src/**/*.ts",
"../src/**/*.svelte",
"../tests/**/*.js",
"../tests/**/*.ts",
"../tests/**/*.svelte"
],
"exclude": [
"../node_modules/**",
"./[!ambient.d.ts]**",
"../src/service-worker.js",
"../src/service-worker.ts",
"../src/service-worker.d.ts"
]
}
3 changes: 3 additions & 0 deletions packages/_test/.svelte-kit/types/route_meta_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"/": []
}
20 changes: 20 additions & 0 deletions packages/_test/.svelte-kit/types/src/routes/$types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import type * as Kit from '@sveltejs/kit';

type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
type RouteParams = { }
type RouteId = '/';
type MaybeWithVoid<T> = {} extends T ? T | void : T;
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
type EnsureDefined<T> = T extends null | undefined ? {} : T;
type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;
export type Snapshot<T = any> = Kit.Snapshot<T>;
type PageParentData = EnsureDefined<LayoutData>;
type LayoutRouteId = RouteId | "/" | null
type LayoutParams = RouteParams & { }
type LayoutParentData = EnsureDefined<{}>;

export type PageServerData = null;
export type PageData = Expand<PageParentData>;
export type LayoutServerData = null;
export type LayoutData = Expand<LayoutParentData>;
Loading

0 comments on commit bd27260

Please sign in to comment.