stacks 0.52.0 → 0.52.2
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/auto-imports.d.ts +1595 -651
- package/components.d.ts +4 -2
- package/core/actions/build.config.ts +2 -0
- package/core/actions/package.json +14 -2
- package/core/actions/src/clean.ts +9 -12
- package/core/actions/src/deploy/domains.ts +1 -1
- package/core/actions/src/helpers/package-json.ts +1 -2
- package/core/actions/src/helpers/utils.ts +1 -2
- package/core/actions/src/release.ts +1 -1
- package/core/actions/src/tinker.ts +1 -0
- package/core/ai/build.config.ts +2 -0
- package/core/ai/package.json +1 -1
- package/core/alias/build.config.ts +2 -0
- package/core/alias/package.json +1 -2
- package/core/analytics/build.config.ts +2 -0
- package/core/analytics/package.json +1 -1
- package/core/arrays/build.config.ts +2 -0
- package/core/arrays/package.json +1 -1
- package/core/auth/build.config.ts +2 -0
- package/core/auth/package.json +1 -1
- package/core/auth/src/index.ts +1 -3
- package/core/buddy/README.md +1 -1
- package/core/buddy/package.json +1 -1
- package/core/buddy/src/commands/build.ts +8 -11
- package/core/buddy/src/commands/changelog.ts +4 -5
- package/core/buddy/src/commands/clean.ts +2 -3
- package/core/buddy/src/commands/deploy.ts +4 -5
- package/core/buddy/src/commands/dev.ts +2 -1
- package/core/buddy/src/commands/fresh.ts +2 -2
- package/core/buddy/src/commands/inspire.ts +4 -5
- package/core/buddy/src/commands/key.ts +4 -5
- package/core/buddy/src/commands/lint.ts +8 -10
- package/core/buddy/src/commands/make.ts +4 -5
- package/core/buddy/src/commands/migrate.ts +4 -5
- package/core/buddy/src/commands/onboarding.ts +4 -5
- package/core/buddy/src/commands/release.ts +4 -12
- package/core/buddy/src/commands/seed.ts +14 -14
- package/core/buddy/src/commands/setting.ts +4 -5
- package/core/buddy/src/commands/test.ts +29 -34
- package/core/buddy/src/commands/upgrade.ts +13 -16
- package/core/buddy/src/commands/version.ts +25 -16
- package/core/build/build.config.ts +2 -0
- package/core/build/node_modules/.bin/vite +4 -4
- package/core/build/node_modules/.bin/vite-ssg +4 -4
- package/core/build/node_modules/.bin/vue-docgen-web-types +4 -4
- package/core/build/package.json +5 -5
- package/core/build/src/stacks.ts +8 -14
- package/core/build/src/vue-components.ts +6 -4
- package/core/cache/build.config.ts +2 -0
- package/core/cache/package.json +2 -2
- package/core/chat/build.config.ts +2 -0
- package/core/chat/package.json +6 -6
- package/core/cli/package.json +1 -1
- package/core/cli/src/actions/install.ts +20 -2
- package/core/cli/src/helpers.ts +6 -1
- package/core/cli/src/run.ts +5 -8
- package/core/cloud/build.config.ts +2 -0
- package/core/cloud/package.json +1 -1
- package/core/collections/build.config.ts +2 -0
- package/core/collections/package.json +1 -1
- package/core/config/package.json +1 -1
- package/core/config/src/defaults.ts +0 -2
- package/core/config/src/stacks.ts +9 -2
- package/core/database/package.json +1 -1
- package/core/database/src/migrations/index.ts +2 -1
- package/core/datetime/package.json +1 -1
- package/core/desktop/build.config.ts +2 -0
- package/core/desktop/package.json +2 -2
- package/core/development/build.config.ts +2 -0
- package/core/development/package.json +6 -6
- package/core/docs/build.config.ts +1 -0
- package/core/docs/node_modules/.bin/vitepress +4 -4
- package/core/docs/package.json +2 -2
- package/core/domains/build.config.ts +2 -0
- package/core/domains/package.json +1 -1
- package/core/email/package.json +12 -12
- package/core/email/src/drivers/mailjet.ts +1 -0
- package/core/email/src/tailwind.config.ts +1 -1
- package/core/error-handling/package.json +2 -2
- package/core/events/package.json +1 -1
- package/core/faker/build.config.ts +2 -0
- package/core/faker/package.json +1 -1
- package/core/git/build.config.ts +2 -0
- package/core/git/package.json +1 -1
- package/core/health/build.config.ts +2 -0
- package/core/health/package.json +1 -1
- package/core/lint/build.config.ts +2 -0
- package/core/lint/node_modules/.bin/eslint +4 -4
- package/core/lint/package.json +3 -3
- package/core/lint/src/index.ts +1 -1
- package/core/logging/package.json +5 -5
- package/core/modules/build.config.ts +2 -0
- package/core/modules/package.json +1 -1
- package/core/notifications/package.json +22 -22
- package/core/notifications/src/index.ts +5 -8
- package/core/objects/build.config.ts +2 -0
- package/core/objects/package.json +1 -1
- package/core/orm/package.json +1 -1
- package/core/pages/build.config.ts +2 -0
- package/core/pages/package.json +1 -1
- package/core/path/build.config.ts +1 -0
- package/core/path/package.json +1 -1
- package/core/payments/build.config.ts +2 -0
- package/core/payments/package.json +2 -2
- package/core/push/build.config.ts +2 -0
- package/core/push/package.json +3 -3
- package/core/query-builder/build.config.ts +2 -0
- package/core/query-builder/package.json +1 -1
- package/core/queue/build.config.ts +2 -0
- package/core/queue/package.json +1 -1
- package/core/realtime/build.config.ts +2 -0
- package/core/realtime/package.json +1 -1
- package/core/router/build.config.ts +2 -0
- package/core/router/package.json +2 -2
- package/core/router/src/index.ts +114 -11
- package/core/scheduler/build.config.ts +2 -0
- package/core/scheduler/package.json +1 -1
- package/core/search-engine/build.config.ts +1 -0
- package/core/search-engine/package.json +1 -1
- package/core/search-engine/src/index.ts +1 -22
- package/core/security/build.config.ts +2 -0
- package/core/security/package.json +1 -1
- package/core/server/build.config.ts +2 -0
- package/core/server/node_modules/.bin/nitro +4 -4
- package/core/server/node_modules/.bin/nitropack +4 -4
- package/core/server/node_modules/.bin/vite +4 -4
- package/core/server/package.json +3 -3
- package/core/signals/build.config.ts +2 -0
- package/core/signals/package.json +1 -1
- package/core/slug/build.config.ts +2 -0
- package/core/slug/package.json +1 -1
- package/core/sms/build.config.ts +2 -0
- package/core/sms/package.json +11 -11
- package/core/storage/build.config.ts +2 -0
- package/core/storage/package.json +1 -1
- package/core/storage/src/index.ts +11 -1
- package/core/strings/package.json +1 -1
- package/core/strings/src/index.ts +0 -1
- package/core/testing/build.config.ts +2 -0
- package/core/testing/node_modules/.bin/vitest +4 -4
- package/core/testing/package.json +4 -4
- package/core/testing/src/index.ts +1 -0
- package/core/tinker/package.json +1 -1
- package/core/types/build.config.ts +2 -0
- package/core/types/node_modules/.bin/vite +4 -4
- package/core/types/node_modules/.bin/vite-ssg +4 -4
- package/core/types/node_modules/.bin/vitepress +4 -4
- package/core/types/package.json +7 -7
- package/core/types/src/cli.ts +10 -9
- package/core/types/src/fs.ts +8 -0
- package/core/types/src/router.ts +22 -0
- package/core/types/src/stacks.ts +3 -3
- package/core/ui/build.config.ts +2 -0
- package/core/ui/package.json +3 -3
- package/core/ui/src/index.ts +1 -1
- package/core/utils/build.config.ts +2 -0
- package/core/utils/node_modules/.bin/rimraf +4 -4
- package/core/utils/package.json +3 -3
- package/core/utils/src/base.ts +6 -5
- package/core/utils/src/config.ts +2 -3
- package/core/utils/src/currency.ts +26 -0
- package/core/utils/src/delete.ts +3 -0
- package/core/utils/src/helpers.ts +2 -2
- package/core/utils/src/index.ts +7 -9
- package/core/utils/src/math.ts +30 -0
- package/core/utils/src/throttle.ts +3 -6
- package/core/utils/src/vendors.ts +221 -0
- package/core/utils/src/versions.ts +1 -0
- package/core/validation/build.config.ts +2 -0
- package/core/validation/package.json +1 -1
- package/core/validation/src/index.ts +2 -29
- package/core/{strings/src/validation.ts → validation/src/is.ts} +83 -8
- package/core/validation/src/validate.ts +29 -0
- package/docs/node_modules/.bin/rimraf +4 -4
- package/docs/node_modules/.bin/vitepress +4 -4
- package/docs/package.json +2 -2
- package/package.json +93 -46
- package/vitest.config.ts +25 -17
- package/core/utils/src/is.ts +0 -83
- package/tests/feature/example.spec.ts +0 -20
- package/tests/unit/example.test.ts +0 -7
package/core/utils/src/is.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { getTypeName, toString } from './base'
|
|
2
|
-
|
|
3
|
-
export function isDef<T = any>(val?: T): val is T {
|
|
4
|
-
return typeof val !== 'undefined'
|
|
5
|
-
}
|
|
6
|
-
export function isBoolean(val: any): val is boolean {
|
|
7
|
-
return typeof val === 'boolean'
|
|
8
|
-
}
|
|
9
|
-
export function isFunction<T extends Function>(val: any): val is T {
|
|
10
|
-
return typeof val === 'function'
|
|
11
|
-
}
|
|
12
|
-
export function isNumber(val: any): val is number {
|
|
13
|
-
return typeof val === 'number'
|
|
14
|
-
}
|
|
15
|
-
export function isString(val: unknown): val is string {
|
|
16
|
-
return typeof val === 'string'
|
|
17
|
-
}
|
|
18
|
-
export function isObject(val: any): val is object {
|
|
19
|
-
return toString(val) === '[object Object]'
|
|
20
|
-
}
|
|
21
|
-
export function isWindow(val: any): boolean {
|
|
22
|
-
return typeof window !== 'undefined' && toString(val) === '[object Window]'
|
|
23
|
-
}
|
|
24
|
-
export const isBrowser = typeof window !== 'undefined'
|
|
25
|
-
export const isServer = typeof document === 'undefined' // https://remix.run/docs/en/v1/pages/gotchas#typeof-window-checks
|
|
26
|
-
export function isMap(val: any): val is Map<any, any> {
|
|
27
|
-
return toString(val) === '[object Map]'
|
|
28
|
-
}
|
|
29
|
-
export function isSet(val: any): val is Set<any> {
|
|
30
|
-
return toString(val) === '[object Set]'
|
|
31
|
-
}
|
|
32
|
-
export function isPromise<T = any>(val: any): val is Promise<T> {
|
|
33
|
-
return toString(val) === '[object Promise]'
|
|
34
|
-
}
|
|
35
|
-
export function isUndefined(v: any) {
|
|
36
|
-
return getTypeName(v) === 'undefined'
|
|
37
|
-
}
|
|
38
|
-
export function isNull(v: any) {
|
|
39
|
-
return getTypeName(v) === 'null'
|
|
40
|
-
}
|
|
41
|
-
export function isSymbol(v: any) {
|
|
42
|
-
return getTypeName(v) === 'symbol'
|
|
43
|
-
}
|
|
44
|
-
export function isDate(v: any) {
|
|
45
|
-
return getTypeName(v) === 'date'
|
|
46
|
-
}
|
|
47
|
-
export function isRegExp(v: any) {
|
|
48
|
-
return getTypeName(v) === 'regexp'
|
|
49
|
-
}
|
|
50
|
-
export function isArray(v: any) {
|
|
51
|
-
return getTypeName(v) === 'array'
|
|
52
|
-
}
|
|
53
|
-
export function isPrimitive(v: any) {
|
|
54
|
-
const type = getTypeName(v)
|
|
55
|
-
return type === 'null' || type === 'undefined' || type === 'string' || type === 'number' || type === 'boolean' || type === 'symbol'
|
|
56
|
-
}
|
|
57
|
-
export function isInteger(v: any) {
|
|
58
|
-
return isNumber(v) && Number.isInteger(v)
|
|
59
|
-
}
|
|
60
|
-
export function isFloat(v: any) {
|
|
61
|
-
return isNumber(v) && !Number.isInteger(v)
|
|
62
|
-
}
|
|
63
|
-
export function isPositive(v: any) {
|
|
64
|
-
return isNumber(v) && v > 0
|
|
65
|
-
}
|
|
66
|
-
export function isNegative(v: any) {
|
|
67
|
-
return isNumber(v) && v < 0
|
|
68
|
-
}
|
|
69
|
-
export function isEven(v: any) {
|
|
70
|
-
return isNumber(v) && v % 2 === 0
|
|
71
|
-
}
|
|
72
|
-
export function isOdd(v: any) {
|
|
73
|
-
return isNumber(v) && v % 2 !== 0
|
|
74
|
-
}
|
|
75
|
-
export function isEvenOrOdd(v: any) {
|
|
76
|
-
return isNumber(v) && (v % 2 === 0 ? 'even' : 'odd')
|
|
77
|
-
}
|
|
78
|
-
export function isPositiveOrNegative(v: any) {
|
|
79
|
-
return isNumber(v) && (v > 0 ? 'positive' : 'negative')
|
|
80
|
-
}
|
|
81
|
-
export function isIntegerOrFloat(v: any) {
|
|
82
|
-
return isNumber(v) && (Number.isInteger(v) ? 'integer' : 'float')
|
|
83
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { expect, test } from '@playwright/test'
|
|
2
|
-
|
|
3
|
-
test('homepage has title and links to intro page', async ({ page }) => {
|
|
4
|
-
await page.goto('https://playwright.dev/')
|
|
5
|
-
|
|
6
|
-
// Expect a title "to contain" a substring.
|
|
7
|
-
await expect(page).toHaveTitle(/Playwright/)
|
|
8
|
-
|
|
9
|
-
// create a locator
|
|
10
|
-
const getStarted = page.getByRole('link', { name: 'Get started' })
|
|
11
|
-
|
|
12
|
-
// Expect an attribute "to be strictly equal" to the value.
|
|
13
|
-
await expect(getStarted).toHaveAttribute('href', '/docs/intro')
|
|
14
|
-
|
|
15
|
-
// Click the get started link.
|
|
16
|
-
await getStarted.click()
|
|
17
|
-
|
|
18
|
-
// Expects the URL to contain intro.
|
|
19
|
-
await expect(page).toHaveURL(/.*intro/)
|
|
20
|
-
})
|