@stacksjs/types 0.53.1 → 0.56.3
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/dist/index.d.ts +2111 -39
- package/dist/index.mjs +112 -39
- package/package.json +24 -18
- package/dist/app.d.ts +0 -108
- package/dist/app.mjs +0 -0
- package/dist/auto-imports.d.ts +0 -1
- package/dist/auto-imports.mjs +0 -0
- package/dist/build.d.ts +0 -2
- package/dist/build.mjs +0 -0
- package/dist/cache.d.ts +0 -69
- package/dist/cache.mjs +0 -0
- package/dist/cdn.d.ts +0 -15
- package/dist/cdn.mjs +0 -0
- package/dist/cli.d.ts +0 -278
- package/dist/cli.mjs +0 -86
- package/dist/components.d.ts +0 -60
- package/dist/components.mjs +0 -0
- package/dist/cron-jobs.d.ts +0 -16
- package/dist/cron-jobs.mjs +0 -0
- package/dist/database.d.ts +0 -32
- package/dist/database.mjs +0 -0
- package/dist/debug.d.ts +0 -6
- package/dist/debug.mjs +0 -0
- package/dist/deploy.d.ts +0 -9
- package/dist/deploy.mjs +0 -0
- package/dist/dns.d.ts +0 -43
- package/dist/dns.mjs +0 -0
- package/dist/docs.d.ts +0 -3
- package/dist/docs.mjs +0 -0
- package/dist/errors.d.ts +0 -1
- package/dist/errors.mjs +0 -6
- package/dist/events.d.ts +0 -22
- package/dist/events.mjs +0 -0
- package/dist/exit-code.d.ts +0 -10
- package/dist/exit-code.mjs +0 -6
- package/dist/fs.d.ts +0 -27
- package/dist/fs.mjs +0 -0
- package/dist/git.d.ts +0 -128
- package/dist/git.mjs +0 -0
- package/dist/hashing.d.ts +0 -102
- package/dist/hashing.mjs +0 -0
- package/dist/i18n.d.ts +0 -19
- package/dist/i18n.mjs +0 -0
- package/dist/inspect.d.ts +0 -9
- package/dist/inspect.mjs +0 -0
- package/dist/layout.d.ts +0 -7
- package/dist/layout.mjs +0 -0
- package/dist/library.d.ts +0 -132
- package/dist/library.mjs +0 -0
- package/dist/manifest.d.ts +0 -9
- package/dist/manifest.mjs +0 -0
- package/dist/markdown.d.ts +0 -167
- package/dist/markdown.mjs +0 -0
- package/dist/model.d.ts +0 -40
- package/dist/model.mjs +0 -0
- package/dist/notifications.d.ts +0 -164
- package/dist/notifications.mjs +0 -0
- package/dist/pages.d.ts +0 -10
- package/dist/pages.mjs +0 -0
- package/dist/payments.d.ts +0 -59
- package/dist/payments.mjs +0 -0
- package/dist/promise.d.ts +0 -1
- package/dist/promise.mjs +0 -0
- package/dist/pwa.d.ts +0 -7
- package/dist/pwa.mjs +0 -0
- package/dist/reactivity.d.ts +0 -1
- package/dist/reactivity.mjs +0 -0
- package/dist/router.d.ts +0 -42
- package/dist/router.mjs +0 -0
- package/dist/search-engine.d.ts +0 -143
- package/dist/search-engine.mjs +0 -0
- package/dist/ssg.d.ts +0 -2
- package/dist/ssg.mjs +0 -0
- package/dist/stacks.d.ts +0 -163
- package/dist/stacks.mjs +0 -0
- package/dist/tables.d.ts +0 -52
- package/dist/tables.mjs +0 -0
- package/dist/ui.d.ts +0 -180
- package/dist/ui.mjs +0 -0
- package/dist/utils.d.ts +0 -30
- package/dist/utils.mjs +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,39 +1,112 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
export { Err, Ok, Result, ResultAsync } from 'neverthrow';
|
|
2
|
+
|
|
3
|
+
var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
|
|
4
|
+
NpmScript2["Build"] = "build";
|
|
5
|
+
NpmScript2["BuildComponents"] = "vite build --config ./core/build/src/vue-components.ts";
|
|
6
|
+
NpmScript2["BuildWebComponents"] = "build:web-components";
|
|
7
|
+
NpmScript2["BuildFunctions"] = "build:functions";
|
|
8
|
+
NpmScript2["BuildDocs"] = "build:docs";
|
|
9
|
+
NpmScript2["BuildStacks"] = "build:stacks";
|
|
10
|
+
NpmScript2["Clean"] = "rimraf pnpm-lock.yaml node_modules/ .stacks/**/node_modules .stacks/**/dist";
|
|
11
|
+
NpmScript2["Dev"] = "dev";
|
|
12
|
+
NpmScript2["DevComponents"] = "vite --config ./core/build/src/vue-components.ts";
|
|
13
|
+
NpmScript2["DevDocs"] = "npx vitepress dev ./docs/src";
|
|
14
|
+
NpmScript2["DevDesktop"] = "dev:desktop";
|
|
15
|
+
NpmScript2["DevPages"] = "dev:pages";
|
|
16
|
+
NpmScript2["DevFunctions"] = "dev:functions";
|
|
17
|
+
NpmScript2["Fresh"] = "fresh";
|
|
18
|
+
NpmScript2["Lint"] = "eslint .";
|
|
19
|
+
NpmScript2["LintFix"] = "eslint . --fix";
|
|
20
|
+
NpmScript2["LintPackageJson"] = "npx publint";
|
|
21
|
+
NpmScript2["MakeStack"] = "make:stack";
|
|
22
|
+
NpmScript2["Test"] = "vitest --config vitest.config.ts";
|
|
23
|
+
NpmScript2["TestUnit"] = "vitest --config vitest.config.ts";
|
|
24
|
+
NpmScript2["TestFeature"] = "playwright test --config playwright.config.ts";
|
|
25
|
+
NpmScript2["TestUi"] = "vitest --config vitest.config.ts --ui";
|
|
26
|
+
NpmScript2["TestCoverage"] = "vitest --config vitest.config.ts --coverage";
|
|
27
|
+
NpmScript2["TestTypes"] = "vue-npx tsc --noEmit";
|
|
28
|
+
NpmScript2["Generate"] = "generate";
|
|
29
|
+
NpmScript2["GenerateTypes"] = "generate:types";
|
|
30
|
+
NpmScript2["GenerateEntries"] = "generate:entries";
|
|
31
|
+
NpmScript2["GenerateVueCompat"] = "generate:vue-compatibility";
|
|
32
|
+
NpmScript2["GenerateWebTypes"] = "generate:web-types";
|
|
33
|
+
NpmScript2["GenerateVsCodeCustomData"] = "generate:vscode-custom-data";
|
|
34
|
+
NpmScript2["GenerateIdeHelpers"] = "generate:ide-helpers";
|
|
35
|
+
NpmScript2["GenerateComponentMeta"] = "generate:component-meta";
|
|
36
|
+
NpmScript2["Release"] = "release";
|
|
37
|
+
NpmScript2["Commit"] = "commit";
|
|
38
|
+
NpmScript2["Example"] = "example";
|
|
39
|
+
NpmScript2["ExampleVue"] = "example:vue";
|
|
40
|
+
NpmScript2["ExampleWebComponents"] = "example:web-components";
|
|
41
|
+
NpmScript2["KeyGenerate"] = "key:generate";
|
|
42
|
+
NpmScript2["TypesFix"] = "types:fix";
|
|
43
|
+
NpmScript2["TypesGenerate"] = "types:generate";
|
|
44
|
+
NpmScript2["Preinstall"] = "preinstall";
|
|
45
|
+
NpmScript2["Prepublish"] = "prepublish";
|
|
46
|
+
NpmScript2["Wip"] = "wip";
|
|
47
|
+
NpmScript2["UpgradeNode"] = "./.stacks/scripts/setup.sh +nodejs.org";
|
|
48
|
+
NpmScript2["UpgradeDependencies"] = "pnpm up";
|
|
49
|
+
return NpmScript2;
|
|
50
|
+
})(NpmScript || {});
|
|
51
|
+
var Action = /* @__PURE__ */ ((Action2) => {
|
|
52
|
+
Action2["Bump"] = "bump";
|
|
53
|
+
Action2["BuildStacks"] = "build/stacks";
|
|
54
|
+
Action2["BuildComponentLibs"] = "build/component-libs";
|
|
55
|
+
Action2["BuildVueComponentLib"] = "build-vue-component-lib";
|
|
56
|
+
Action2["BuildWebComponentLib"] = "build-web-component-lib";
|
|
57
|
+
Action2["BuildCli"] = "build-cli";
|
|
58
|
+
Action2["BuildCore"] = "build/core";
|
|
59
|
+
Action2["BuildDocs"] = "build-docs";
|
|
60
|
+
Action2["BuildFunctionLib"] = "build-function-lib";
|
|
61
|
+
Action2["Changelog"] = "changelog";
|
|
62
|
+
Action2["Clean"] = "clean";
|
|
63
|
+
Action2["DevComponents"] = "dev/components";
|
|
64
|
+
Action2["Dev"] = "dev/index";
|
|
65
|
+
Action2["DevDocs"] = "dev/docs";
|
|
66
|
+
Action2["Deploy"] = "deploy";
|
|
67
|
+
Action2["Fresh"] = "fresh";
|
|
68
|
+
Action2["GenerateLibraryEntries"] = "generate/lib-entries";
|
|
69
|
+
Action2["Inspire"] = "inspire";
|
|
70
|
+
Action2["KeyGenerate"] = "key-generate";
|
|
71
|
+
Action2["MakeNotification"] = "make-notification";
|
|
72
|
+
Action2["Migrate"] = "migrate";
|
|
73
|
+
Action2["Seed"] = "seed";
|
|
74
|
+
Action2["Lint"] = "lint/index";
|
|
75
|
+
Action2["LintFix"] = "lint/fix";
|
|
76
|
+
Action2["Prepublish"] = "prepublish";
|
|
77
|
+
Action2["Release"] = "release";
|
|
78
|
+
Action2["ShowFeatureTestReport"] = "show-feature-test-report";
|
|
79
|
+
Action2["Test"] = "test";
|
|
80
|
+
Action2["TestUi"] = "test-ui";
|
|
81
|
+
Action2["TestUnit"] = "test-unit";
|
|
82
|
+
Action2["TestFeature"] = "test-feature";
|
|
83
|
+
Action2["TestCoverage"] = "test-coverage";
|
|
84
|
+
Action2["Tinker"] = "tinker";
|
|
85
|
+
Action2["Typecheck"] = "typecheck";
|
|
86
|
+
Action2["Upgrade"] = "upgrade/index";
|
|
87
|
+
Action2["UpgradeNode"] = "upgrade/node";
|
|
88
|
+
Action2["UpgradePackageManager"] = "upgrade/package-manager";
|
|
89
|
+
return Action2;
|
|
90
|
+
})(Action || {});
|
|
91
|
+
|
|
92
|
+
var Every = /* @__PURE__ */ ((Every2) => {
|
|
93
|
+
Every2["Minute"] = "* * * * *";
|
|
94
|
+
Every2["Hour"] = "0 * * * *";
|
|
95
|
+
Every2["HalfHour"] = "0,30 * * * *";
|
|
96
|
+
Every2["Day"] = "0 0 * * *";
|
|
97
|
+
Every2["Month"] = "0 0 1 * *";
|
|
98
|
+
Every2["Week"] = "0 0 * * 0";
|
|
99
|
+
Every2["Year"] = "0 0 1 1 *";
|
|
100
|
+
Every2["FifthMinute"] = "*/5 * * * *";
|
|
101
|
+
Every2["TenthMinute"] = "*/10 * * * *";
|
|
102
|
+
return Every2;
|
|
103
|
+
})(Every || {});
|
|
104
|
+
|
|
105
|
+
var ExitCode = /* @__PURE__ */ ((ExitCode2) => {
|
|
106
|
+
ExitCode2[ExitCode2["Success"] = 0] = "Success";
|
|
107
|
+
ExitCode2[ExitCode2["FatalError"] = 1] = "FatalError";
|
|
108
|
+
ExitCode2[ExitCode2["InvalidArgument"] = 9] = "InvalidArgument";
|
|
109
|
+
return ExitCode2;
|
|
110
|
+
})(ExitCode || {});
|
|
111
|
+
|
|
112
|
+
export { Action, Every, ExitCode, NpmScript };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"packageManager": "pnpm@8.5
|
|
4
|
+
"version": "0.56.3",
|
|
5
|
+
"packageManager": "pnpm@8.6.5",
|
|
6
6
|
"description": "The Stacks framework types.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
".": {
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
28
|
"import": "./dist/index.mjs"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"./*": "./*"
|
|
30
31
|
},
|
|
31
|
-
"main": "dist/index.mjs",
|
|
32
32
|
"module": "dist/index.mjs",
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"contributors": [
|
|
@@ -38,39 +38,45 @@
|
|
|
38
38
|
"dist",
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"neverthrow": "^6.0.0"
|
|
43
|
+
},
|
|
41
44
|
"dependencies": {
|
|
42
45
|
"@mdit-vue/plugin-component": "^0.12.0",
|
|
43
46
|
"@mdit-vue/plugin-frontmatter": "^0.12.0",
|
|
44
47
|
"@mdit-vue/types": "^0.12.0",
|
|
45
|
-
"@novu/stateless": "^0.
|
|
48
|
+
"@novu/stateless": "^0.16.1",
|
|
46
49
|
"@rollup/pluginutils": "^5.0.2",
|
|
47
50
|
"@types/bcryptjs": "^2.4.2",
|
|
48
51
|
"@types/crypto-js": "^4.1.1",
|
|
49
|
-
"@types/eslint": "^8.40.
|
|
52
|
+
"@types/eslint": "^8.40.2",
|
|
50
53
|
"@types/fs-extra": "^11.0.1",
|
|
51
54
|
"@types/markdown-it-link-attributes": "^3.0.1",
|
|
52
55
|
"@types/minimatch": "^5.1.2",
|
|
53
|
-
"@types/node": "^18.16.
|
|
56
|
+
"@types/node": "^18.16.18",
|
|
54
57
|
"@types/nprogress": "^0.2.0",
|
|
55
58
|
"@types/pluralize": "^0.0.29",
|
|
59
|
+
"@vinejs/vine": "^1.4.1",
|
|
56
60
|
"cac": "^6.7.14",
|
|
57
61
|
"execa": "^7.1.1",
|
|
58
62
|
"markdown-it": "^13.0.1",
|
|
59
|
-
"meilisearch": "^0.
|
|
63
|
+
"meilisearch": "^0.33.0",
|
|
60
64
|
"neverthrow": "^6.0.0",
|
|
61
65
|
"ora": "^6.3.1",
|
|
62
|
-
"unocss": "^0.
|
|
63
|
-
"unplugin-auto-import": "^0.16.
|
|
64
|
-
"unplugin-vue-components": "^0.
|
|
65
|
-
"vite": "^4.3.
|
|
66
|
-
"vite-plugin-inspect": "^0.7.
|
|
67
|
-
"vite-plugin-pwa": "^0.
|
|
66
|
+
"unocss": "^0.53.4",
|
|
67
|
+
"unplugin-auto-import": "^0.16.4",
|
|
68
|
+
"unplugin-vue-components": "^0.25.1",
|
|
69
|
+
"vite": "^4.3.9",
|
|
70
|
+
"vite-plugin-inspect": "^0.7.29",
|
|
71
|
+
"vite-plugin-pwa": "^0.16.4",
|
|
68
72
|
"vite-plugin-vue-layouts": "^0.8.0",
|
|
69
73
|
"vite-ssg": "^0.22.2",
|
|
70
|
-
"vitepress": "1.0.0-beta.
|
|
71
|
-
"vue": "^3.3.4"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
"vitepress": "1.0.0-beta.3",
|
|
75
|
+
"vue": "^3.3.4"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"typescript": "^5.1.3",
|
|
79
|
+
"unbuild": "^1.2.1"
|
|
74
80
|
},
|
|
75
81
|
"scripts": {
|
|
76
82
|
"build": "unbuild",
|
package/dist/app.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* **Application Options**
|
|
3
|
-
*
|
|
4
|
-
* This configuration defines all of your application options. Because Stacks is fully-typed,
|
|
5
|
-
* you may hover any of the options below and the definitions will be provided. In case
|
|
6
|
-
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
|
|
7
|
-
*/
|
|
8
|
-
export interface AppOptions {
|
|
9
|
-
/**
|
|
10
|
-
* **Application Name**
|
|
11
|
-
*
|
|
12
|
-
* This value is the name of your application. This value is used when the
|
|
13
|
-
* framework needs to place the application's name in a log or any
|
|
14
|
-
* other location as required by the application or its packages.
|
|
15
|
-
*
|
|
16
|
-
* @default string "Stacks"
|
|
17
|
-
*/
|
|
18
|
-
name: string;
|
|
19
|
-
/**
|
|
20
|
-
* **Application Environment**
|
|
21
|
-
*
|
|
22
|
-
* This value determines the "environment" your application is currently
|
|
23
|
-
* running in. This may determine how you prefer to configure various
|
|
24
|
-
* services the application utilizes. Set this in your ".env" file
|
|
25
|
-
*
|
|
26
|
-
* @default "local"
|
|
27
|
-
*/
|
|
28
|
-
env?: 'local' | 'development' | 'production';
|
|
29
|
-
/**
|
|
30
|
-
* **Application URL**
|
|
31
|
-
*
|
|
32
|
-
* This URL is used by the console to properly generate URLs when using
|
|
33
|
-
* the Buddy command line tool. You should set this to the root of
|
|
34
|
-
* your application so that it is used when running Buddy tasks.
|
|
35
|
-
*
|
|
36
|
-
* @default string "https://localhost"
|
|
37
|
-
* @example "https://hello-world.test"
|
|
38
|
-
*/
|
|
39
|
-
url?: string;
|
|
40
|
-
/**
|
|
41
|
-
* **Application Debug Mode**
|
|
42
|
-
*
|
|
43
|
-
* When your application is in debug mode, detailed error messages with
|
|
44
|
-
* stack traces will be shown on every error that occurs within your
|
|
45
|
-
* application. If disabled, a simple generic error page is shown.
|
|
46
|
-
*
|
|
47
|
-
* @default true
|
|
48
|
-
*/
|
|
49
|
-
debug: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* **Application Port**
|
|
52
|
-
*
|
|
53
|
-
* This port is used when Stacks creates a server you. You should set
|
|
54
|
-
* a port that's not already in use by your machine. Stacks defaults
|
|
55
|
-
* to a memorable port that likely is free on your end: 3333.
|
|
56
|
-
*
|
|
57
|
-
* @default number 3333
|
|
58
|
-
*/
|
|
59
|
-
port: number;
|
|
60
|
-
/**
|
|
61
|
-
* **Encryption Key**
|
|
62
|
-
*
|
|
63
|
-
* This key is used by the Stacks encrypter service and should be set to
|
|
64
|
-
* a random, 32 character string, otherwise these encrypted strings will
|
|
65
|
-
* not be safe. Please do this before deploying an application!
|
|
66
|
-
*/
|
|
67
|
-
key?: string;
|
|
68
|
-
/**
|
|
69
|
-
* **Application Timezone**
|
|
70
|
-
*
|
|
71
|
-
* Here you may specify the default timezone for your application, which
|
|
72
|
-
* will be used by Stacks and date-time functions. We have gone ahead
|
|
73
|
-
* and set this to a sensible default for you out of the box.
|
|
74
|
-
*
|
|
75
|
-
* @default string "UTC"
|
|
76
|
-
*/
|
|
77
|
-
timezone?: string;
|
|
78
|
-
/**
|
|
79
|
-
* **Application Locale Configuration**
|
|
80
|
-
*
|
|
81
|
-
* The application locale determines the default locale that will be used
|
|
82
|
-
* by the translation service provider. You are free to set this value
|
|
83
|
-
* to any of the locales which will be supported by the application.
|
|
84
|
-
*
|
|
85
|
-
* @default string "en"
|
|
86
|
-
* @example
|
|
87
|
-
* de // ./lang/de.yml needs to be present for this
|
|
88
|
-
*/
|
|
89
|
-
locale?: string;
|
|
90
|
-
/**
|
|
91
|
-
* **Application Fallback Locale**
|
|
92
|
-
*
|
|
93
|
-
* The fallback locale determines the locale to use when the current one
|
|
94
|
-
* is not available. You may change the value to correspond to any of
|
|
95
|
-
* the language folders that are provided through your application.
|
|
96
|
-
*
|
|
97
|
-
* @default string "en"
|
|
98
|
-
*/
|
|
99
|
-
fallbackLocale: 'en';
|
|
100
|
-
/**
|
|
101
|
-
* **Cipher**
|
|
102
|
-
*
|
|
103
|
-
* Description WIP.
|
|
104
|
-
*
|
|
105
|
-
* @default string "aes-256-cbc"
|
|
106
|
-
*/
|
|
107
|
-
cipher: string;
|
|
108
|
-
}
|
package/dist/app.mjs
DELETED
|
File without changes
|
package/dist/auto-imports.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Options as AutoImportsOptions } from 'unplugin-auto-import/types';
|
package/dist/auto-imports.mjs
DELETED
|
File without changes
|
package/dist/build.d.ts
DELETED
package/dist/build.mjs
DELETED
|
File without changes
|
package/dist/cache.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
export interface CacheOptions {
|
|
2
|
-
/**
|
|
3
|
-
* **Cache Driver**
|
|
4
|
-
*
|
|
5
|
-
* This value determines the cache driver that will be used by your application to store
|
|
6
|
-
* cached data. By default, Stacks uses the "redis" driver, which stores cached data in
|
|
7
|
-
* in a self-configufed Redis instance. You may use any of the other drivers provided
|
|
8
|
-
* by Stacks or write your own custom driver.
|
|
9
|
-
*
|
|
10
|
-
* @default "redis"
|
|
11
|
-
* @example "redis"
|
|
12
|
-
* @example "memcached"
|
|
13
|
-
* @example "dynamodb"
|
|
14
|
-
*
|
|
15
|
-
* @see https://stacks.js.org/docs/cache
|
|
16
|
-
*/
|
|
17
|
-
driver: string;
|
|
18
|
-
/**
|
|
19
|
-
* **Cache Prefix**
|
|
20
|
-
*
|
|
21
|
-
* This value determines the prefix that will be used when storing items in the cache. This
|
|
22
|
-
* prefix may be useful when multiple applications are sharing the same cache driver so that
|
|
23
|
-
* they may avoid collisions when attempting to retrieve items from the cache.
|
|
24
|
-
*
|
|
25
|
-
* @default string "stacks"
|
|
26
|
-
* @example "stacks"
|
|
27
|
-
*
|
|
28
|
-
* @see https://stacks.js.org/docs/cache
|
|
29
|
-
*/
|
|
30
|
-
prefix: string;
|
|
31
|
-
/**
|
|
32
|
-
* **Cache TTL**
|
|
33
|
-
*
|
|
34
|
-
* This value determines the default time to live for items stored in the cache. This value
|
|
35
|
-
* may be overridden when storing items in the cache. If no value is specified, the cache
|
|
36
|
-
* driver will default to a reasonable time to live for the given item.
|
|
37
|
-
*
|
|
38
|
-
* @default number 3600
|
|
39
|
-
* @example 3600
|
|
40
|
-
* @example 3600 * 24
|
|
41
|
-
* @example -1 (never expires)
|
|
42
|
-
*/
|
|
43
|
-
ttl: number;
|
|
44
|
-
drivers: {
|
|
45
|
-
redis?: {
|
|
46
|
-
connection: string;
|
|
47
|
-
/**
|
|
48
|
-
* **Redis Host**
|
|
49
|
-
*
|
|
50
|
-
* This value determines the host that will be used to connect to the Redis server.
|
|
51
|
-
*
|
|
52
|
-
* @default string "localhost"
|
|
53
|
-
* @example "localhost"
|
|
54
|
-
*/
|
|
55
|
-
host: string;
|
|
56
|
-
/**
|
|
57
|
-
* **Redis Port**
|
|
58
|
-
*
|
|
59
|
-
* This value determines the port that will be used to connect to the Redis server.
|
|
60
|
-
*
|
|
61
|
-
* @default number 6379
|
|
62
|
-
* @example 6379
|
|
63
|
-
*/
|
|
64
|
-
port: number;
|
|
65
|
-
};
|
|
66
|
-
memcached?: {};
|
|
67
|
-
dynamodb?: {};
|
|
68
|
-
};
|
|
69
|
-
}
|
package/dist/cache.mjs
DELETED
|
File without changes
|
package/dist/cdn.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface CdnOptions {
|
|
2
|
-
/**
|
|
3
|
-
* **CDN Driver**
|
|
4
|
-
*
|
|
5
|
-
* This value determines the default CDN driver that will be used when interacting with the
|
|
6
|
-
* CDN service. This value may be overridden when interacting with the CDN service.
|
|
7
|
-
*
|
|
8
|
-
* @default "cloudfront"
|
|
9
|
-
* @example "cloudfront"
|
|
10
|
-
* @example "fastly" wip
|
|
11
|
-
*
|
|
12
|
-
* @see https://stacks.js.org/docs/cdn
|
|
13
|
-
*/
|
|
14
|
-
driver: string;
|
|
15
|
-
}
|
package/dist/cdn.mjs
DELETED
|
File without changes
|