plugin-app-builder-advance 0.0.0-stage → 0.1.8
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/PHUONG-AN-TRIEN-KHAI.md +73 -0
- package/client-v2.d.ts +1 -0
- package/client-v2.js +1 -0
- package/client.d.ts +1 -0
- package/client.js +1 -0
- package/dist/ai/skills/app-builder-records/SKILLS.md +8 -0
- package/dist/ai/skills/app-builder-ui/SKILLS.md +14 -0
- package/dist/ai/skills/app-builder-workflows/SKILLS.md +8 -0
- package/dist/client/index.js +10 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/externalVersion.js +26 -0
- package/dist/index.js +42 -0
- package/dist/locale/en-US.json +122 -0
- package/dist/locale/vi-VN.json +122 -0
- package/dist/locale/zh-CN.json +122 -0
- package/dist/node_modules/cron-parser/.eslintrc.json +15 -0
- package/dist/node_modules/cron-parser/.travis.yml +7 -0
- package/dist/node_modules/cron-parser/LICENSE +21 -0
- package/dist/node_modules/cron-parser/component.json +11 -0
- package/dist/node_modules/cron-parser/index.d.ts +1 -0
- package/dist/node_modules/cron-parser/lib/date.js +252 -0
- package/dist/node_modules/cron-parser/lib/expression.js +983 -0
- package/dist/node_modules/cron-parser/lib/field_compactor.js +70 -0
- package/dist/node_modules/cron-parser/lib/field_stringify.js +38 -0
- package/dist/node_modules/cron-parser/lib/parser.js +1 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/amd/luxon.js +8489 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/cjs-browser/luxon.js +8487 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/global/luxon.js +8490 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/global/luxon.min.js +1 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/build/node/luxon.js +7522 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/package.json +96 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/datetime.js +2169 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/duration.js +880 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/errors.js +61 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/conversions.js +157 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/diff.js +80 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/digits.js +76 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/english.js +233 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/formats.js +191 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/formatter.js +386 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/invalid.js +14 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/locale.js +482 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/regexParser.js +335 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/tokenParser.js +424 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/util.js +292 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/impl/zoneUtil.js +36 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/info.js +193 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/interval.js +602 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/luxon.js +26 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/luxonFilled.js +13 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/settings.js +137 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zone.js +88 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/IANAZone.js +191 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/fixedOffsetZone.js +94 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/invalidZone.js +53 -0
- package/dist/node_modules/cron-parser/node_modules/luxon/src/zones/localZone.js +63 -0
- package/dist/node_modules/cron-parser/package.json +1 -0
- package/dist/node_modules/cron-parser/test/31_of_month.js +17 -0
- package/dist/node_modules/cron-parser/test/bug.js +29 -0
- package/dist/node_modules/cron-parser/test/crondate.js +16 -0
- package/dist/node_modules/cron-parser/test/crontab.example +7 -0
- package/dist/node_modules/cron-parser/test/empty_around_comma.js +22 -0
- package/dist/node_modules/cron-parser/test/expression.js +1489 -0
- package/dist/node_modules/cron-parser/test/field_compactor.js +250 -0
- package/dist/node_modules/cron-parser/test/field_stringify.js +84 -0
- package/dist/node_modules/cron-parser/test/fields.js +32 -0
- package/dist/node_modules/cron-parser/test/increment_on_first_iteration.js +22 -0
- package/dist/node_modules/cron-parser/test/index-ts3.test-d.ts +133 -0
- package/dist/node_modules/cron-parser/test/index.test-d.ts +138 -0
- package/dist/node_modules/cron-parser/test/leap_year.js +17 -0
- package/dist/node_modules/cron-parser/test/parser.js +46 -0
- package/dist/node_modules/cron-parser/test/parser_crondate_formats.js +145 -0
- package/dist/node_modules/cron-parser/test/parser_day_of_month.js +169 -0
- package/dist/node_modules/cron-parser/test/prev_date.js +32 -0
- package/dist/node_modules/cron-parser/test/stringify.js +402 -0
- package/dist/node_modules/cron-parser/test/timezone.js +422 -0
- package/dist/node_modules/cron-parser/types/common.d.ts +131 -0
- package/dist/node_modules/cron-parser/types/index.d.ts +45 -0
- package/dist/node_modules/cron-parser/types/ts3/index.d.ts +28 -0
- package/dist/node_modules/light-my-request/.gitattributes +2 -0
- package/dist/node_modules/light-my-request/.github/dependabot.yml +13 -0
- package/dist/node_modules/light-my-request/.github/stale.yml +21 -0
- package/dist/node_modules/light-my-request/.github/workflows/benchmark.yml +30 -0
- package/dist/node_modules/light-my-request/.github/workflows/ci.yml +23 -0
- package/dist/node_modules/light-my-request/LICENSE +32 -0
- package/dist/node_modules/light-my-request/benchmark/benchmark.js +164 -0
- package/dist/node_modules/light-my-request/build/build-validation.js +100 -0
- package/dist/node_modules/light-my-request/eslint.config.js +9 -0
- package/dist/node_modules/light-my-request/index.js +2 -0
- package/dist/node_modules/light-my-request/lib/config-validator.js +919 -0
- package/dist/node_modules/light-my-request/lib/form-data.js +79 -0
- package/dist/node_modules/light-my-request/lib/parse-url.js +47 -0
- package/dist/node_modules/light-my-request/lib/request.js +290 -0
- package/dist/node_modules/light-my-request/lib/response.js +240 -0
- package/dist/node_modules/light-my-request/node_modules/cookie/dist/index.d.ts +148 -0
- package/dist/node_modules/light-my-request/node_modules/cookie/dist/index.js +350 -0
- package/dist/node_modules/light-my-request/node_modules/cookie/package.json +47 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/.gitattributes +2 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/.github/dependabot.yml +13 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/.github/workflows/ci.yml +24 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/.taprc +2 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/benchmarks/warn.js +25 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/eslint.config.js +6 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/examples/example.js +11 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/index.js +124 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/package.json +73 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-interpolated-string.test.js +29 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-once-only.test.js +28 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-reset.test.js +36 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-set.test.js +30 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/emit-unlimited.test.js +37 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/index.test.js +99 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/issue-88.test.js +33 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/jest.test.js +22 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/test/no-warnings.test.js +80 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/types/index.d.ts +37 -0
- package/dist/node_modules/light-my-request/node_modules/process-warning/types/index.test-d.ts +36 -0
- package/dist/node_modules/light-my-request/package.json +1 -0
- package/dist/node_modules/light-my-request/test/async-await.test.js +55 -0
- package/dist/node_modules/light-my-request/test/index.test.js +2316 -0
- package/dist/node_modules/light-my-request/test/request.test.js +16 -0
- package/dist/node_modules/light-my-request/test/response.test.js +19 -0
- package/dist/node_modules/light-my-request/test/stream.test.js +359 -0
- package/dist/node_modules/light-my-request/types/index.d.ts +128 -0
- package/dist/node_modules/light-my-request/types/index.test-d.ts +149 -0
- package/dist/node_modules/zod/LICENSE +21 -0
- package/dist/node_modules/zod/index.cjs +1 -0
- package/dist/node_modules/zod/index.d.cts +4 -0
- package/dist/node_modules/zod/index.d.ts +4 -0
- package/dist/node_modules/zod/index.js +4 -0
- package/dist/node_modules/zod/locales/index.cjs +17 -0
- package/dist/node_modules/zod/locales/index.d.cts +1 -0
- package/dist/node_modules/zod/locales/index.d.ts +1 -0
- package/dist/node_modules/zod/locales/index.js +1 -0
- package/dist/node_modules/zod/locales/package.json +6 -0
- package/dist/node_modules/zod/mini/index.cjs +17 -0
- package/dist/node_modules/zod/mini/index.d.cts +1 -0
- package/dist/node_modules/zod/mini/index.d.ts +1 -0
- package/dist/node_modules/zod/mini/index.js +1 -0
- package/dist/node_modules/zod/mini/package.json +6 -0
- package/dist/node_modules/zod/package.json +1 -0
- package/dist/node_modules/zod/src/index.ts +4 -0
- package/dist/node_modules/zod/src/locales/index.ts +1 -0
- package/dist/node_modules/zod/src/mini/index.ts +1 -0
- package/dist/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/dist/node_modules/zod/src/v3/errors.ts +13 -0
- package/dist/node_modules/zod/src/v3/external.ts +6 -0
- package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/dist/node_modules/zod/src/v3/index.ts +4 -0
- package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/dist/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/dist/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/dist/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/dist/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/dist/node_modules/zod/src/v3/types.ts +5138 -0
- package/dist/node_modules/zod/src/v4/classic/checks.ts +32 -0
- package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/dist/node_modules/zod/src/v4/classic/compat.ts +70 -0
- package/dist/node_modules/zod/src/v4/classic/errors.ts +82 -0
- package/dist/node_modules/zod/src/v4/classic/external.ts +51 -0
- package/dist/node_modules/zod/src/v4/classic/from-json-schema.ts +643 -0
- package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/dist/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/dist/node_modules/zod/src/v4/classic/parse.ts +82 -0
- package/dist/node_modules/zod/src/v4/classic/schemas.ts +2409 -0
- package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/dist/node_modules/zod/src/v4/classic/tests/apply.test.ts +59 -0
- package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +276 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/dist/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +573 -0
- package/dist/node_modules/zod/src/v4/classic/tests/codec.test.ts +562 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +62 -0
- package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +302 -0
- package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +365 -0
- package/dist/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +661 -0
- package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +595 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/dist/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/dist/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +734 -0
- package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +360 -0
- package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/dist/node_modules/zod/src/v4/classic/tests/hash.test.ts +68 -0
- package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +939 -0
- package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +60 -0
- package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +198 -0
- package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +117 -0
- package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +330 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +270 -0
- package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +640 -0
- package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +223 -0
- package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +427 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +74 -0
- package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +282 -0
- package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +600 -0
- package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +582 -0
- package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +570 -0
- package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +181 -0
- package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +134 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +1175 -0
- package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +106 -0
- package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +771 -0
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2975 -0
- package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +361 -0
- package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +183 -0
- package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +219 -0
- package/dist/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/dist/node_modules/zod/src/v4/core/api.ts +1798 -0
- package/dist/node_modules/zod/src/v4/core/checks.ts +1293 -0
- package/dist/node_modules/zod/src/v4/core/config.ts +15 -0
- package/dist/node_modules/zod/src/v4/core/core.ts +138 -0
- package/dist/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/dist/node_modules/zod/src/v4/core/errors.ts +448 -0
- package/dist/node_modules/zod/src/v4/core/index.ts +16 -0
- package/dist/node_modules/zod/src/v4/core/json-schema-generator.ts +126 -0
- package/dist/node_modules/zod/src/v4/core/json-schema-processors.ts +667 -0
- package/dist/node_modules/zod/src/v4/core/json-schema.ts +147 -0
- package/dist/node_modules/zod/src/v4/core/parse.ts +195 -0
- package/dist/node_modules/zod/src/v4/core/regexes.ts +183 -0
- package/dist/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/dist/node_modules/zod/src/v4/core/schemas.ts +4543 -0
- package/dist/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/dist/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/es.test.ts +181 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +83 -0
- package/dist/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +67 -0
- package/dist/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +613 -0
- package/dist/node_modules/zod/src/v4/core/util.ts +966 -0
- package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/dist/node_modules/zod/src/v4/index.ts +4 -0
- package/dist/node_modules/zod/src/v4/locales/ar.ts +115 -0
- package/dist/node_modules/zod/src/v4/locales/az.ts +111 -0
- package/dist/node_modules/zod/src/v4/locales/be.ts +176 -0
- package/dist/node_modules/zod/src/v4/locales/bg.ts +128 -0
- package/dist/node_modules/zod/src/v4/locales/ca.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/cs.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/da.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/de.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/en.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/eo.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/es.ts +141 -0
- package/dist/node_modules/zod/src/v4/locales/fa.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/fi.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/fr.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/he.ts +246 -0
- package/dist/node_modules/zod/src/v4/locales/hu.ts +117 -0
- package/dist/node_modules/zod/src/v4/locales/hy.ts +164 -0
- package/dist/node_modules/zod/src/v4/locales/id.ts +115 -0
- package/dist/node_modules/zod/src/v4/locales/index.ts +49 -0
- package/dist/node_modules/zod/src/v4/locales/is.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/it.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/ja.ts +114 -0
- package/dist/node_modules/zod/src/v4/locales/ka.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/dist/node_modules/zod/src/v4/locales/km.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/ko.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/lt.ts +239 -0
- package/dist/node_modules/zod/src/v4/locales/mk.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/ms.ts +115 -0
- package/dist/node_modules/zod/src/v4/locales/nl.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/no.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/ota.ts +117 -0
- package/dist/node_modules/zod/src/v4/locales/pl.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/ps.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/pt.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/ru.ts +176 -0
- package/dist/node_modules/zod/src/v4/locales/sl.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/sv.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/ta.ts +118 -0
- package/dist/node_modules/zod/src/v4/locales/th.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/tr.ts +111 -0
- package/dist/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/dist/node_modules/zod/src/v4/locales/uk.ts +117 -0
- package/dist/node_modules/zod/src/v4/locales/ur.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/uz.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/vi.ts +117 -0
- package/dist/node_modules/zod/src/v4/locales/yo.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +115 -0
- package/dist/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/dist/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/dist/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/dist/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/dist/node_modules/zod/src/v4/mini/parse.ts +14 -0
- package/dist/node_modules/zod/src/v4/mini/schemas.ts +1916 -0
- package/dist/node_modules/zod/src/v4/mini/tests/apply.test.ts +24 -0
- package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/dist/node_modules/zod/src/v4/mini/tests/codec.test.ts +529 -0
- package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +5 -0
- package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +963 -0
- package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +227 -0
- package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/dist/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +347 -0
- package/dist/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/dist/node_modules/zod/v3/ZodError.cjs +138 -0
- package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/zod/v3/ZodError.js +133 -0
- package/dist/node_modules/zod/v3/errors.cjs +17 -0
- package/dist/node_modules/zod/v3/errors.d.cts +5 -0
- package/dist/node_modules/zod/v3/errors.d.ts +5 -0
- package/dist/node_modules/zod/v3/errors.js +9 -0
- package/dist/node_modules/zod/v3/external.cjs +22 -0
- package/dist/node_modules/zod/v3/external.d.cts +6 -0
- package/dist/node_modules/zod/v3/external.d.ts +6 -0
- package/dist/node_modules/zod/v3/external.js +6 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.js +133 -0
- package/dist/node_modules/zod/v3/index.cjs +33 -0
- package/dist/node_modules/zod/v3/index.d.cts +4 -0
- package/dist/node_modules/zod/v3/index.d.ts +4 -0
- package/dist/node_modules/zod/v3/index.js +4 -0
- package/dist/node_modules/zod/v3/locales/en.cjs +112 -0
- package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/zod/v3/locales/en.js +109 -0
- package/dist/node_modules/zod/v3/package.json +6 -0
- package/dist/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.js +1 -0
- package/dist/node_modules/zod/v3/types.cjs +3777 -0
- package/dist/node_modules/zod/v3/types.d.cts +1034 -0
- package/dist/node_modules/zod/v3/types.d.ts +1034 -0
- package/dist/node_modules/zod/v3/types.js +3695 -0
- package/dist/node_modules/zod/v4/classic/checks.cjs +33 -0
- package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.js +1 -0
- package/dist/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
- package/dist/node_modules/zod/v4/classic/compat.cjs +61 -0
- package/dist/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/dist/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/dist/node_modules/zod/v4/classic/compat.js +31 -0
- package/dist/node_modules/zod/v4/classic/errors.cjs +74 -0
- package/dist/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/dist/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/dist/node_modules/zod/v4/classic/errors.js +48 -0
- package/dist/node_modules/zod/v4/classic/external.cjs +73 -0
- package/dist/node_modules/zod/v4/classic/external.d.cts +15 -0
- package/dist/node_modules/zod/v4/classic/external.d.ts +15 -0
- package/dist/node_modules/zod/v4/classic/external.js +20 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.cjs +610 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.js +584 -0
- package/dist/node_modules/zod/v4/classic/index.cjs +33 -0
- package/dist/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/dist/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/dist/node_modules/zod/v4/classic/index.js +4 -0
- package/dist/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/dist/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/classic/iso.js +30 -0
- package/dist/node_modules/zod/v4/classic/package.json +6 -0
- package/dist/node_modules/zod/v4/classic/parse.cjs +41 -0
- package/dist/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/dist/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/dist/node_modules/zod/v4/classic/parse.js +15 -0
- package/dist/node_modules/zod/v4/classic/schemas.cjs +1272 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.cts +739 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.ts +739 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +1157 -0
- package/dist/node_modules/zod/v4/core/api.cjs +1222 -0
- package/dist/node_modules/zod/v4/core/api.d.cts +304 -0
- package/dist/node_modules/zod/v4/core/api.d.ts +304 -0
- package/dist/node_modules/zod/v4/core/api.js +1082 -0
- package/dist/node_modules/zod/v4/core/checks.cjs +601 -0
- package/dist/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/dist/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/dist/node_modules/zod/v4/core/checks.js +575 -0
- package/dist/node_modules/zod/v4/core/core.cjs +83 -0
- package/dist/node_modules/zod/v4/core/core.d.cts +70 -0
- package/dist/node_modules/zod/v4/core/core.d.ts +70 -0
- package/dist/node_modules/zod/v4/core/core.js +76 -0
- package/dist/node_modules/zod/v4/core/doc.cjs +39 -0
- package/dist/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/dist/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/dist/node_modules/zod/v4/core/doc.js +35 -0
- package/dist/node_modules/zod/v4/core/errors.cjs +213 -0
- package/dist/node_modules/zod/v4/core/errors.d.cts +220 -0
- package/dist/node_modules/zod/v4/core/errors.d.ts +220 -0
- package/dist/node_modules/zod/v4/core/errors.js +182 -0
- package/dist/node_modules/zod/v4/core/index.cjs +47 -0
- package/dist/node_modules/zod/v4/core/index.d.cts +16 -0
- package/dist/node_modules/zod/v4/core/index.d.ts +16 -0
- package/dist/node_modules/zod/v4/core/index.js +16 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.cjs +99 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.cjs +648 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +605 -0
- package/dist/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/package.json +6 -0
- package/dist/node_modules/zod/v4/core/parse.cjs +131 -0
- package/dist/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/dist/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/dist/node_modules/zod/v4/core/parse.js +93 -0
- package/dist/node_modules/zod/v4/core/regexes.cjs +166 -0
- package/dist/node_modules/zod/v4/core/regexes.d.cts +79 -0
- package/dist/node_modules/zod/v4/core/regexes.d.ts +79 -0
- package/dist/node_modules/zod/v4/core/regexes.js +133 -0
- package/dist/node_modules/zod/v4/core/registries.cjs +56 -0
- package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/dist/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/zod/v4/core/schemas.cjs +2126 -0
- package/dist/node_modules/zod/v4/core/schemas.d.cts +1146 -0
- package/dist/node_modules/zod/v4/core/schemas.d.ts +1146 -0
- package/dist/node_modules/zod/v4/core/schemas.js +2095 -0
- package/dist/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs +446 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +437 -0
- package/dist/node_modules/zod/v4/core/util.cjs +710 -0
- package/dist/node_modules/zod/v4/core/util.d.cts +199 -0
- package/dist/node_modules/zod/v4/core/util.d.ts +199 -0
- package/dist/node_modules/zod/v4/core/util.js +651 -0
- package/dist/node_modules/zod/v4/core/versions.cjs +8 -0
- package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/zod/v4/core/versions.js +5 -0
- package/dist/node_modules/zod/v4/index.cjs +22 -0
- package/dist/node_modules/zod/v4/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/index.js +3 -0
- package/dist/node_modules/zod/v4/locales/ar.cjs +133 -0
- package/dist/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ar.js +106 -0
- package/dist/node_modules/zod/v4/locales/az.cjs +132 -0
- package/dist/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/az.js +105 -0
- package/dist/node_modules/zod/v4/locales/be.cjs +183 -0
- package/dist/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/be.js +156 -0
- package/dist/node_modules/zod/v4/locales/bg.cjs +147 -0
- package/dist/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/bg.js +120 -0
- package/dist/node_modules/zod/v4/locales/ca.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ca.js +107 -0
- package/dist/node_modules/zod/v4/locales/cs.cjs +138 -0
- package/dist/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/cs.js +111 -0
- package/dist/node_modules/zod/v4/locales/da.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/da.js +115 -0
- package/dist/node_modules/zod/v4/locales/de.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/de.js +108 -0
- package/dist/node_modules/zod/v4/locales/en.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/en.js +109 -0
- package/dist/node_modules/zod/v4/locales/eo.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/eo.js +109 -0
- package/dist/node_modules/zod/v4/locales/es.cjs +159 -0
- package/dist/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/es.js +132 -0
- package/dist/node_modules/zod/v4/locales/fa.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fa.js +114 -0
- package/dist/node_modules/zod/v4/locales/fi.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fi.js +112 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/dist/node_modules/zod/v4/locales/fr.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr.js +108 -0
- package/dist/node_modules/zod/v4/locales/he.cjs +241 -0
- package/dist/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/he.js +214 -0
- package/dist/node_modules/zod/v4/locales/hu.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hu.js +108 -0
- package/dist/node_modules/zod/v4/locales/hy.cjs +174 -0
- package/dist/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hy.js +147 -0
- package/dist/node_modules/zod/v4/locales/id.cjs +133 -0
- package/dist/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/id.js +106 -0
- package/dist/node_modules/zod/v4/locales/index.cjs +104 -0
- package/dist/node_modules/zod/v4/locales/index.d.cts +49 -0
- package/dist/node_modules/zod/v4/locales/index.d.ts +49 -0
- package/dist/node_modules/zod/v4/locales/index.js +49 -0
- package/dist/node_modules/zod/v4/locales/is.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/is.js +109 -0
- package/dist/node_modules/zod/v4/locales/it.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/it.js +108 -0
- package/dist/node_modules/zod/v4/locales/ja.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ja.js +107 -0
- package/dist/node_modules/zod/v4/locales/ka.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ka.js +112 -0
- package/dist/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/dist/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/kh.js +5 -0
- package/dist/node_modules/zod/v4/locales/km.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/km.js +110 -0
- package/dist/node_modules/zod/v4/locales/ko.cjs +138 -0
- package/dist/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ko.js +111 -0
- package/dist/node_modules/zod/v4/locales/lt.cjs +230 -0
- package/dist/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/lt.js +203 -0
- package/dist/node_modules/zod/v4/locales/mk.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/mk.js +109 -0
- package/dist/node_modules/zod/v4/locales/ms.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ms.js +107 -0
- package/dist/node_modules/zod/v4/locales/nl.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/nl.js +110 -0
- package/dist/node_modules/zod/v4/locales/no.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/no.js +108 -0
- package/dist/node_modules/zod/v4/locales/ota.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ota.js +109 -0
- package/dist/node_modules/zod/v4/locales/package.json +6 -0
- package/dist/node_modules/zod/v4/locales/pl.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pl.js +109 -0
- package/dist/node_modules/zod/v4/locales/ps.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ps.js +114 -0
- package/dist/node_modules/zod/v4/locales/pt.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pt.js +108 -0
- package/dist/node_modules/zod/v4/locales/ru.cjs +183 -0
- package/dist/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ru.js +156 -0
- package/dist/node_modules/zod/v4/locales/sl.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sl.js +109 -0
- package/dist/node_modules/zod/v4/locales/sv.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sv.js +110 -0
- package/dist/node_modules/zod/v4/locales/ta.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ta.js +110 -0
- package/dist/node_modules/zod/v4/locales/th.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/th.js +110 -0
- package/dist/node_modules/zod/v4/locales/tr.cjs +132 -0
- package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/tr.js +105 -0
- package/dist/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/dist/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/ua.js +5 -0
- package/dist/node_modules/zod/v4/locales/uk.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/uk.js +108 -0
- package/dist/node_modules/zod/v4/locales/ur.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ur.js +110 -0
- package/dist/node_modules/zod/v4/locales/uz.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/uz.js +109 -0
- package/dist/node_modules/zod/v4/locales/vi.cjs +135 -0
- package/dist/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/vi.js +108 -0
- package/dist/node_modules/zod/v4/locales/yo.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/yo.js +107 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.cjs +136 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/dist/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.js +1 -0
- package/dist/node_modules/zod/v4/mini/coerce.cjs +52 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.js +22 -0
- package/dist/node_modules/zod/v4/mini/external.cjs +63 -0
- package/dist/node_modules/zod/v4/mini/external.d.cts +12 -0
- package/dist/node_modules/zod/v4/mini/external.d.ts +12 -0
- package/dist/node_modules/zod/v4/mini/external.js +14 -0
- package/dist/node_modules/zod/v4/mini/index.cjs +32 -0
- package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/mini/index.js +3 -0
- package/dist/node_modules/zod/v4/mini/iso.cjs +64 -0
- package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.js +34 -0
- package/dist/node_modules/zod/v4/mini/package.json +6 -0
- package/dist/node_modules/zod/v4/mini/parse.cjs +16 -0
- package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.js +1 -0
- package/dist/node_modules/zod/v4/mini/schemas.cjs +1046 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.cts +427 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.ts +427 -0
- package/dist/node_modules/zod/v4/mini/schemas.js +925 -0
- package/dist/node_modules/zod/v4/package.json +6 -0
- package/dist/node_modules/zod/v4-mini/index.cjs +17 -0
- package/dist/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/dist/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/dist/node_modules/zod/v4-mini/index.js +1 -0
- package/dist/node_modules/zod/v4-mini/package.json +6 -0
- package/dist/server/collections/appBuilderExecutions.js +47 -0
- package/dist/server/collections/appBuilderGrants.js +44 -0
- package/dist/server/collections/appBuilderPlans.js +56 -0
- package/dist/server/collections/appBuilderPolicies.js +46 -0
- package/dist/server/collections/appBuilderWorkflows.js +46 -0
- package/dist/server/column-continuation.js +230 -0
- package/dist/server/contracts.js +214 -0
- package/dist/server/index.js +42 -0
- package/dist/server/native.js +208 -0
- package/dist/server/plans.js +321 -0
- package/dist/server/plugin.js +204 -0
- package/dist/server/records.js +323 -0
- package/dist/server/surfaces.js +339 -0
- package/dist/server/workflows.js +446 -0
- package/dist/shared/constants.js +86 -0
- package/dist/shared/tabs.js +68 -0
- package/package.json +65 -4
- package/server.d.ts +1 -0
- package/server.js +1 -0
- package/src/ai/skills/app-builder-records/SKILLS.md +8 -0
- package/src/ai/skills/app-builder-ui/SKILLS.md +14 -0
- package/src/ai/skills/app-builder-workflows/SKILLS.md +8 -0
- package/src/client/index.tsx +28 -0
- package/src/client-v2/builder.tsx +374 -0
- package/src/client-v2/index.tsx +32 -0
- package/src/index.ts +10 -0
- package/src/locale/en-US.json +122 -0
- package/src/locale/vi-VN.json +122 -0
- package/src/locale/zh-CN.json +122 -0
- package/src/server/collections/appBuilderExecutions.ts +26 -0
- package/src/server/collections/appBuilderGrants.ts +23 -0
- package/src/server/collections/appBuilderPlans.ts +35 -0
- package/src/server/collections/appBuilderPolicies.ts +25 -0
- package/src/server/collections/appBuilderWorkflows.ts +25 -0
- package/src/server/column-continuation.ts +239 -0
- package/src/server/contracts.ts +196 -0
- package/src/server/index.ts +10 -0
- package/src/server/native.ts +183 -0
- package/src/server/plans.ts +334 -0
- package/src/server/plugin.ts +211 -0
- package/src/server/records.ts +338 -0
- package/src/server/surfaces.ts +372 -0
- package/src/server/workflows.ts +467 -0
- package/src/shared/constants.ts +43 -0
- package/src/shared/tabs.ts +45 -0
- package/README.md +0 -3
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
var test = require('tap').test;
|
|
2
|
+
var CronExpression = require('../lib/expression');
|
|
3
|
+
|
|
4
|
+
test('It works on DST start', function(t) {
|
|
5
|
+
try {
|
|
6
|
+
var options = {
|
|
7
|
+
currentDate: '2016-03-27 02:00:01',
|
|
8
|
+
tz: 'Europe/Athens'
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
var interval, date;
|
|
12
|
+
|
|
13
|
+
interval = CronExpression.parse('0 * * * *', options);
|
|
14
|
+
t.ok(interval, 'Interval parsed');
|
|
15
|
+
|
|
16
|
+
date = interval.next();
|
|
17
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
18
|
+
t.equal(date.getHours(), 4, 'Due to DST start in Athens, 3 is skipped');
|
|
19
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
20
|
+
|
|
21
|
+
date = interval.next();
|
|
22
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
23
|
+
t.equal(date.getHours(), 5, '5 AM');
|
|
24
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
25
|
+
|
|
26
|
+
interval = CronExpression.parse('30 2 * * *', options);
|
|
27
|
+
t.ok(interval, 'Interval parsed');
|
|
28
|
+
|
|
29
|
+
date = interval.next();
|
|
30
|
+
t.equal(date.getMinutes(), 30, '30 Minutes');
|
|
31
|
+
t.equal(date.getHours(), 2, '2 AM');
|
|
32
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
33
|
+
|
|
34
|
+
date = interval.next();
|
|
35
|
+
t.equal(date.getMinutes(), 30, '30 Minutes');
|
|
36
|
+
t.equal(date.getHours(), 2, '2 AM');
|
|
37
|
+
t.equal(date.getDate(), 28, 'on the 28th');
|
|
38
|
+
|
|
39
|
+
interval = CronExpression.parse('0 3 * * *', options);
|
|
40
|
+
t.ok(interval, 'Interval parsed');
|
|
41
|
+
|
|
42
|
+
date = interval.next();
|
|
43
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
44
|
+
t.equal(date.getHours(), 4, 'Due to DST start in Athens, 3 is skipped');
|
|
45
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
46
|
+
|
|
47
|
+
date = interval.next();
|
|
48
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
49
|
+
t.equal(date.getHours(), 3, '3 on the 28th');
|
|
50
|
+
t.equal(date.getDate(), 28, 'on the 28th');
|
|
51
|
+
|
|
52
|
+
interval = CronExpression.parse('*/20 3 * * *', options);
|
|
53
|
+
t.ok(interval, 'Interval parsed');
|
|
54
|
+
|
|
55
|
+
date = interval.next();
|
|
56
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
57
|
+
t.equal(date.getHours(), 4, 'Due to DST start in Athens, 3 is skipped');
|
|
58
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
59
|
+
|
|
60
|
+
date = interval.next();
|
|
61
|
+
t.equal(date.getMinutes(), 20, '20 Minutes');
|
|
62
|
+
t.equal(date.getHours(), 4, 'Due to DST start in Athens, 3 is skipped');
|
|
63
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
64
|
+
|
|
65
|
+
date = interval.next();
|
|
66
|
+
t.equal(date.getMinutes(), 40, '20 Minutes');
|
|
67
|
+
t.equal(date.getHours(), 4, 'Due to DST start in Athens, 3 is skipped');
|
|
68
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
69
|
+
|
|
70
|
+
date = interval.next();
|
|
71
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
72
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
73
|
+
t.equal(date.getDate(), 28, 'on the 28th');
|
|
74
|
+
|
|
75
|
+
options.currentDate = '2016-03-27 00:00:01';
|
|
76
|
+
|
|
77
|
+
interval = CronExpression.parse('0 * 27 * *', options);
|
|
78
|
+
t.ok(interval, 'Interval parsed');
|
|
79
|
+
|
|
80
|
+
date = interval.next();
|
|
81
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
82
|
+
t.equal(date.getHours(), 1, '1 AM');
|
|
83
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
84
|
+
|
|
85
|
+
date = interval.next();
|
|
86
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
87
|
+
t.equal(date.getHours(), 2, '2 AM');
|
|
88
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
89
|
+
|
|
90
|
+
date = interval.next();
|
|
91
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
92
|
+
t.equal(date.getHours(), 4, '4 AM');
|
|
93
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
94
|
+
|
|
95
|
+
date = interval.next();
|
|
96
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
97
|
+
t.equal(date.getHours(), 5, '5 AM');
|
|
98
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
99
|
+
|
|
100
|
+
options.currentDate = '2016-03-27 00:00:01';
|
|
101
|
+
options.endDate = '2016-03-27 03:00:01';
|
|
102
|
+
|
|
103
|
+
interval = CronExpression.parse('0 * * * *', options);
|
|
104
|
+
t.ok(interval, 'Interval parsed');
|
|
105
|
+
|
|
106
|
+
date = interval.next();
|
|
107
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
108
|
+
t.equal(date.getHours(), 1, '1 AM');
|
|
109
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
110
|
+
|
|
111
|
+
date = interval.next();
|
|
112
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
113
|
+
t.equal(date.getHours(), 2, '2 AM');
|
|
114
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
115
|
+
|
|
116
|
+
date = interval.next();
|
|
117
|
+
t.equal(date.getMinutes(), 0, '0 Minutes');
|
|
118
|
+
t.equal(date.getHours(), 4, '4 AM');
|
|
119
|
+
t.equal(date.getDate(), 27, 'on the 27th');
|
|
120
|
+
|
|
121
|
+
// Out of the timespan range
|
|
122
|
+
t.throws(function() {
|
|
123
|
+
date = interval.next();
|
|
124
|
+
});
|
|
125
|
+
} catch (err) {
|
|
126
|
+
t.error(err, 'Interval parse error');
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
t.end();
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
test('It works on DST end', function(t) {
|
|
133
|
+
try {
|
|
134
|
+
var options = {
|
|
135
|
+
currentDate: '2016-10-30 02:00:01',
|
|
136
|
+
tz: 'Europe/Athens'
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
var interval, date;
|
|
140
|
+
|
|
141
|
+
interval = CronExpression.parse('0 * * * *', options);
|
|
142
|
+
t.ok(interval, 'Interval parsed');
|
|
143
|
+
|
|
144
|
+
date = interval.next();
|
|
145
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
146
|
+
t.equal(date.getDate(), 30, '30th');
|
|
147
|
+
|
|
148
|
+
date = interval.next();
|
|
149
|
+
t.equal(date.getHours(), 3, 'Due to DST end in Athens (4-->3)');
|
|
150
|
+
t.equal(date.getDate(), 30, '30th');
|
|
151
|
+
|
|
152
|
+
date = interval.next();
|
|
153
|
+
t.equal(date.getHours(), 4, '4 AM');
|
|
154
|
+
t.equal(date.getDate(), 30, '30th');
|
|
155
|
+
|
|
156
|
+
interval = CronExpression.parse('0 3 * * *', options);
|
|
157
|
+
t.ok(interval, 'Interval parsed');
|
|
158
|
+
|
|
159
|
+
date = interval.next();
|
|
160
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
161
|
+
t.equal(date.getDate(), 30, '30th');
|
|
162
|
+
|
|
163
|
+
date = interval.next();
|
|
164
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
165
|
+
t.equal(date.getDate(), 31, '31st');
|
|
166
|
+
|
|
167
|
+
interval = CronExpression.parse('*/20 3 * * *', options);
|
|
168
|
+
t.ok(interval, 'Interval parsed');
|
|
169
|
+
|
|
170
|
+
date = interval.next();
|
|
171
|
+
t.equal(date.getMinutes(), 0, '0');
|
|
172
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
173
|
+
t.equal(date.getDate(), 30, '30th');
|
|
174
|
+
|
|
175
|
+
date = interval.next();
|
|
176
|
+
t.equal(date.getMinutes(), 20, '20');
|
|
177
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
178
|
+
t.equal(date.getDate(), 30, '30th');
|
|
179
|
+
|
|
180
|
+
date = interval.next();
|
|
181
|
+
t.equal(date.getMinutes(), 40, '40');
|
|
182
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
183
|
+
t.equal(date.getDate(), 30, '30th');
|
|
184
|
+
|
|
185
|
+
date = interval.next();
|
|
186
|
+
t.equal(date.getMinutes(), 0, '0');
|
|
187
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
188
|
+
t.equal(date.getDate(), 31, '31st');
|
|
189
|
+
|
|
190
|
+
options.currentDate = '2016-10-30 00:00:01';
|
|
191
|
+
|
|
192
|
+
interval = CronExpression.parse('0 * 30 * *', options);
|
|
193
|
+
t.ok(interval, 'Interval parsed');
|
|
194
|
+
|
|
195
|
+
date = interval.next();
|
|
196
|
+
t.equal(date.getHours(), 1, '1 AM');
|
|
197
|
+
t.equal(date.getDate(), 30, '30th');
|
|
198
|
+
|
|
199
|
+
date = interval.next();
|
|
200
|
+
t.equal(date.getHours(), 2, '2 AM');
|
|
201
|
+
t.equal(date.getDate(), 30, '30th');
|
|
202
|
+
|
|
203
|
+
date = interval.next();
|
|
204
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
205
|
+
t.equal(date.getDate(), 30, '30th');
|
|
206
|
+
|
|
207
|
+
date = interval.next();
|
|
208
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
209
|
+
t.equal(date.getDate(), 30, '30th');
|
|
210
|
+
|
|
211
|
+
date = interval.next();
|
|
212
|
+
t.equal(date.getHours(), 4, '4 AM');
|
|
213
|
+
t.equal(date.getDate(), 30, '30th');
|
|
214
|
+
|
|
215
|
+
options.currentDate = '2016-10-30 00:00:01';
|
|
216
|
+
// specify the DST offset via ISO 8601 format, as 3am is repeated
|
|
217
|
+
options.endDate = '2016-10-30T03:00:01+03';
|
|
218
|
+
|
|
219
|
+
interval = CronExpression.parse('0 * * * *', options);
|
|
220
|
+
t.ok(interval, 'Interval parsed');
|
|
221
|
+
|
|
222
|
+
date = interval.next();
|
|
223
|
+
t.equal(date.getHours(), 1, '1 AM');
|
|
224
|
+
t.equal(date.getDate(), 30, '30th');
|
|
225
|
+
|
|
226
|
+
date = interval.next();
|
|
227
|
+
t.equal(date.getHours(), 2, '2 AM');
|
|
228
|
+
t.equal(date.getDate(), 30, '30th');
|
|
229
|
+
|
|
230
|
+
date = interval.next();
|
|
231
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
232
|
+
t.equal(date.getDate(), 30, '30th');
|
|
233
|
+
|
|
234
|
+
// Out of the timespan range
|
|
235
|
+
t.throws(function() {
|
|
236
|
+
date = interval.next();
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
options.endDate = '2016-10-30 04:00:01';
|
|
240
|
+
|
|
241
|
+
interval = CronExpression.parse('0 * * * *', options);
|
|
242
|
+
t.ok(interval, 'Interval parsed');
|
|
243
|
+
|
|
244
|
+
date = interval.next();
|
|
245
|
+
t.equal(date.getHours(), 1, '1 AM');
|
|
246
|
+
t.equal(date.getDate(), 30, '30th');
|
|
247
|
+
|
|
248
|
+
date = interval.next();
|
|
249
|
+
t.equal(date.getHours(), 2, '2 AM');
|
|
250
|
+
t.equal(date.getDate(), 30, '30th');
|
|
251
|
+
|
|
252
|
+
date = interval.next();
|
|
253
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
254
|
+
t.equal(date.getDate(), 30, '30th');
|
|
255
|
+
|
|
256
|
+
date = interval.next();
|
|
257
|
+
t.equal(date.getHours(), 3, '3 AM');
|
|
258
|
+
t.equal(date.getDate(), 30, '30th');
|
|
259
|
+
|
|
260
|
+
date = interval.next();
|
|
261
|
+
t.equal(date.getHours(), 4, '4 AM');
|
|
262
|
+
t.equal(date.getDate(), 30, '30th');
|
|
263
|
+
|
|
264
|
+
// Out of the timespan range
|
|
265
|
+
t.throws(function() {
|
|
266
|
+
date = interval.next();
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
options = {
|
|
270
|
+
currentDate : new Date('Sun Oct 29 2016 01:00:00 GMT+0200')
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
interval = CronExpression.parse('0 12 * * *', options);
|
|
274
|
+
t.ok(interval, 'Interval parsed');
|
|
275
|
+
|
|
276
|
+
date = interval.next();
|
|
277
|
+
t.equal(date.getHours(), 12, '12');
|
|
278
|
+
t.equal(date.getDate(), 29, '29th');
|
|
279
|
+
date = interval.next();
|
|
280
|
+
t.equal(date.getHours(), 12, '12');
|
|
281
|
+
t.equal(date.getDate(), 30, '30th');
|
|
282
|
+
date = interval.next();
|
|
283
|
+
t.equal(date.getHours(), 12, '12');
|
|
284
|
+
t.equal(date.getDate(), 31, '31st');
|
|
285
|
+
|
|
286
|
+
options = {
|
|
287
|
+
currentDate : new Date('Sun Oct 29 2016 02:59:00 GMT+0200')
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
interval = CronExpression.parse('0 12 * * *', options);
|
|
291
|
+
t.ok(interval, 'Interval parsed');
|
|
292
|
+
|
|
293
|
+
date = interval.next();
|
|
294
|
+
t.equal(date.getHours(), 12, '12');
|
|
295
|
+
t.equal(date.getDate(), 29, '29th');
|
|
296
|
+
date = interval.next();
|
|
297
|
+
t.equal(date.getHours(), 12, '12');
|
|
298
|
+
t.equal(date.getDate(), 30, '30th');
|
|
299
|
+
date = interval.next();
|
|
300
|
+
t.equal(date.getHours(), 12, '12');
|
|
301
|
+
t.equal(date.getDate(), 31, '31st');
|
|
302
|
+
|
|
303
|
+
options = {
|
|
304
|
+
currentDate : new Date('Sun Oct 29 2016 02:59:59 GMT+0200')
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
interval = CronExpression.parse('0 12 * * *', options);
|
|
308
|
+
t.ok(interval, 'Interval parsed');
|
|
309
|
+
|
|
310
|
+
date = interval.next();
|
|
311
|
+
t.equal(date.getHours(), 12, '12');
|
|
312
|
+
t.equal(date.getDate(), 29, '29th');
|
|
313
|
+
date = interval.next();
|
|
314
|
+
t.equal(date.getHours(), 12, '12');
|
|
315
|
+
t.equal(date.getDate(), 30, '30th');
|
|
316
|
+
date = interval.next();
|
|
317
|
+
t.equal(date.getHours(), 12, '12');
|
|
318
|
+
t.equal(date.getDate(), 31, '31st');
|
|
319
|
+
|
|
320
|
+
options = {
|
|
321
|
+
currentDate : new Date('Sun Oct 30 2016 01:00:00 GMT+0200')
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
interval = CronExpression.parse('0 12 * * *', options);
|
|
325
|
+
t.ok(interval, 'Interval parsed');
|
|
326
|
+
|
|
327
|
+
date = interval.next();
|
|
328
|
+
t.equal(date.getHours(), 12, '12');
|
|
329
|
+
t.equal(date.getDate(), 30, '30th');
|
|
330
|
+
date = interval.next();
|
|
331
|
+
t.equal(date.getHours(), 12, '12');
|
|
332
|
+
t.equal(date.getDate(), 31, '31st');
|
|
333
|
+
|
|
334
|
+
options = {
|
|
335
|
+
currentDate : new Date('Sun Oct 30 2016 01:59:00 GMT+0200')
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
interval = CronExpression.parse('0 12 * * *', options);
|
|
339
|
+
t.ok(interval, 'Interval parsed');
|
|
340
|
+
|
|
341
|
+
date = interval.next();
|
|
342
|
+
t.equal(date.getHours(), 12, '12');
|
|
343
|
+
t.equal(date.getDate(), 30, '30th');
|
|
344
|
+
date = interval.next();
|
|
345
|
+
t.equal(date.getHours(), 12, '12');
|
|
346
|
+
t.equal(date.getDate(), 31, '31st');
|
|
347
|
+
|
|
348
|
+
options = {
|
|
349
|
+
currentDate : new Date('Sun Oct 30 2016 01:59:59 GMT+0200')
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
interval = CronExpression.parse('0 12 * * *', options);
|
|
353
|
+
t.ok(interval, 'Interval parsed');
|
|
354
|
+
|
|
355
|
+
date = interval.next();
|
|
356
|
+
t.equal(date.getHours(), 12, '12');
|
|
357
|
+
t.equal(date.getDate(), 30, '30th');
|
|
358
|
+
date = interval.next();
|
|
359
|
+
t.equal(date.getHours(), 12, '12');
|
|
360
|
+
t.equal(date.getDate(), 31, '31st');
|
|
361
|
+
|
|
362
|
+
options = {
|
|
363
|
+
currentDate : new Date('Sun Oct 30 2016 02:59:00 GMT+0200')
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
interval = CronExpression.parse('0 12 * * *', options);
|
|
367
|
+
t.ok(interval, 'Interval parsed');
|
|
368
|
+
|
|
369
|
+
date = interval.next();
|
|
370
|
+
t.equal(date.getHours(), 12, '12');
|
|
371
|
+
t.equal(date.getDate(), 30, '30th');
|
|
372
|
+
date = interval.next();
|
|
373
|
+
t.equal(date.getHours(), 12, '12');
|
|
374
|
+
t.equal(date.getDate(), 31, '31st');
|
|
375
|
+
} catch (err) {
|
|
376
|
+
t.error(err, 'Interval parse error');
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
t.end();
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
test('it will work with #131 issue case', function(t) {
|
|
383
|
+
var options = {
|
|
384
|
+
tz: 'America/Sao_Paulo',
|
|
385
|
+
currentDate : new Date('Sun Oct 30 2018 02:59:00 GMT+0200')
|
|
386
|
+
};
|
|
387
|
+
|
|
388
|
+
var interval = CronExpression.parse('0 9 1 1 *', options);
|
|
389
|
+
var date = interval.next();
|
|
390
|
+
|
|
391
|
+
t.equal(date.getFullYear(), 2019);
|
|
392
|
+
t.equal(date.getDate(), 1);
|
|
393
|
+
t.equal(date.getMonth(), 0);
|
|
394
|
+
|
|
395
|
+
date = interval.prev();
|
|
396
|
+
t.equal(date.getFullYear(), 2018);
|
|
397
|
+
t.equal(date.getDate(), 1);
|
|
398
|
+
t.equal(date.getMonth(), 0);
|
|
399
|
+
|
|
400
|
+
date = interval.prev();
|
|
401
|
+
t.equal(date.getFullYear(), 2017);
|
|
402
|
+
t.equal(date.getDate(), 1);
|
|
403
|
+
t.equal(date.getMonth(), 0);
|
|
404
|
+
|
|
405
|
+
t.end();
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
test('it will work with #137 issue case', function(t) {
|
|
409
|
+
var options = {
|
|
410
|
+
tz: 'America/New_York',
|
|
411
|
+
currentDate : new Date('10/28/2018')
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
var interval = CronExpression.parse('0 12 * * 3', options);
|
|
415
|
+
var date = interval.next();
|
|
416
|
+
|
|
417
|
+
t.equal(date.getFullYear(), 2018);
|
|
418
|
+
t.equal(date.getDate(), 31);
|
|
419
|
+
t.equal(date.getMonth(), 9);
|
|
420
|
+
|
|
421
|
+
t.end();
|
|
422
|
+
});
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export type DateType = Date | number | string
|
|
2
|
+
|
|
3
|
+
export interface CronDate {
|
|
4
|
+
addYear(): void
|
|
5
|
+
|
|
6
|
+
addMonth(): void
|
|
7
|
+
|
|
8
|
+
addDay(): void
|
|
9
|
+
|
|
10
|
+
addHour(): void
|
|
11
|
+
|
|
12
|
+
addMinute(): void
|
|
13
|
+
|
|
14
|
+
addSecond(): void
|
|
15
|
+
|
|
16
|
+
subtractYear(): void
|
|
17
|
+
|
|
18
|
+
subtractMonth(): void
|
|
19
|
+
|
|
20
|
+
subtractDay(): void
|
|
21
|
+
|
|
22
|
+
subtractHour(): void
|
|
23
|
+
|
|
24
|
+
subtractMinute(): void
|
|
25
|
+
|
|
26
|
+
subtractSecond(): void
|
|
27
|
+
|
|
28
|
+
getDate(): number
|
|
29
|
+
|
|
30
|
+
getFullYear(): number
|
|
31
|
+
|
|
32
|
+
getDay(): number
|
|
33
|
+
|
|
34
|
+
getMonth(): number
|
|
35
|
+
|
|
36
|
+
getHours(): number
|
|
37
|
+
|
|
38
|
+
getMinutes(): number
|
|
39
|
+
|
|
40
|
+
getSeconds(): number
|
|
41
|
+
|
|
42
|
+
getMilliseconds(): number
|
|
43
|
+
|
|
44
|
+
getTime(): number
|
|
45
|
+
|
|
46
|
+
getUTCDate(): number
|
|
47
|
+
|
|
48
|
+
getUTCFullYear(): number
|
|
49
|
+
|
|
50
|
+
getUTCDay(): number
|
|
51
|
+
|
|
52
|
+
getUTCMonth(): number
|
|
53
|
+
|
|
54
|
+
getUTCHours(): number
|
|
55
|
+
|
|
56
|
+
getUTCMinutes(): number
|
|
57
|
+
|
|
58
|
+
getUTCSeconds(): number
|
|
59
|
+
|
|
60
|
+
toISOString(): string
|
|
61
|
+
|
|
62
|
+
toJSON(): string
|
|
63
|
+
|
|
64
|
+
setDate(d: number): void
|
|
65
|
+
|
|
66
|
+
setFullYear(y: number): void
|
|
67
|
+
|
|
68
|
+
setDay(d: number): void
|
|
69
|
+
|
|
70
|
+
setMonth(m: number): void
|
|
71
|
+
|
|
72
|
+
setHours(h: number): void
|
|
73
|
+
|
|
74
|
+
setMinutes(m: number): void
|
|
75
|
+
|
|
76
|
+
setSeconds(s: number): void
|
|
77
|
+
|
|
78
|
+
setMilliseconds(s: number): void
|
|
79
|
+
|
|
80
|
+
getTime(): number
|
|
81
|
+
|
|
82
|
+
toString(): string
|
|
83
|
+
|
|
84
|
+
toDate(): Date
|
|
85
|
+
|
|
86
|
+
isLastDayOfMonth(): boolean
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface ParserOptions<IsIterable extends boolean = false> {
|
|
90
|
+
currentDate?: DateType
|
|
91
|
+
startDate?: DateType
|
|
92
|
+
endDate?: DateType
|
|
93
|
+
utc?: boolean
|
|
94
|
+
tz?: string
|
|
95
|
+
nthDayOfWeek?: number
|
|
96
|
+
iterator?: IsIterable
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
type IteratorResultOrCronDate<IsIterable extends boolean> = IsIterable extends true
|
|
100
|
+
? IteratorResult<CronDate, CronDate>
|
|
101
|
+
: CronDate;
|
|
102
|
+
|
|
103
|
+
export interface ICronExpression<CronFields, IsIterable extends boolean> {
|
|
104
|
+
readonly fields: CronFields;
|
|
105
|
+
|
|
106
|
+
/** Find next suitable date */
|
|
107
|
+
next(): IteratorResultOrCronDate<IsIterable>
|
|
108
|
+
|
|
109
|
+
/** Find previous suitable date */
|
|
110
|
+
prev(): IteratorResultOrCronDate<IsIterable>
|
|
111
|
+
|
|
112
|
+
/** Check if next suitable date exists */
|
|
113
|
+
hasNext(): boolean
|
|
114
|
+
|
|
115
|
+
/** Check if previous suitable date exists */
|
|
116
|
+
hasPrev(): boolean
|
|
117
|
+
|
|
118
|
+
/** Iterate over expression iterator */
|
|
119
|
+
iterate(steps: number, callback?: (item: IteratorResultOrCronDate<IsIterable>, i: number) => void): IteratorResultOrCronDate<IsIterable>[]
|
|
120
|
+
|
|
121
|
+
/** Reset expression iterator state */
|
|
122
|
+
reset(resetDate?: string | number | Date): void
|
|
123
|
+
|
|
124
|
+
stringify(includeSeconds?: boolean): string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface IStringResult<CronFields> {
|
|
128
|
+
variables: Record<string, string>,
|
|
129
|
+
expressions: ICronExpression<CronFields, false>[],
|
|
130
|
+
errors: Record<string, any>,
|
|
131
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CronDate,
|
|
3
|
+
DateType,
|
|
4
|
+
ICronExpression,
|
|
5
|
+
IStringResult,
|
|
6
|
+
ParserOptions,
|
|
7
|
+
} from './common';
|
|
8
|
+
|
|
9
|
+
type BuildRangeTuple<Current extends [...number[]], Count extends number> =
|
|
10
|
+
Current["length"] extends Count
|
|
11
|
+
? Current
|
|
12
|
+
: BuildRangeTuple<[number, ...Current], Count>
|
|
13
|
+
type RangeTuple<Count extends number> = BuildRangeTuple<[], Count>
|
|
14
|
+
type BuildRange<Current extends number, End extends number, Accu extends [...number[]]> =
|
|
15
|
+
Accu["length"] extends End
|
|
16
|
+
? Current
|
|
17
|
+
: BuildRange<Current | Accu["length"], End, [number, ...Accu]>
|
|
18
|
+
type Range<StartInclusive extends number, EndExclusive extends number> = BuildRange<StartInclusive, EndExclusive, RangeTuple<StartInclusive>>
|
|
19
|
+
|
|
20
|
+
export type SixtyRange = Range<0, 30> | Range<30, 60>; // Typescript restriction on recursion depth
|
|
21
|
+
export type HourRange = Range<0, 24>;
|
|
22
|
+
export type DayOfTheMonthRange = Range<1, 32> | 'L';
|
|
23
|
+
export type MonthRange = Range<1, 13>;
|
|
24
|
+
export type DayOfTheWeekRange = Range<0, 8>;
|
|
25
|
+
|
|
26
|
+
export type CronFields = {
|
|
27
|
+
readonly second: readonly SixtyRange[];
|
|
28
|
+
readonly minute: readonly SixtyRange[];
|
|
29
|
+
readonly hour: readonly HourRange[];
|
|
30
|
+
readonly dayOfMonth: readonly DayOfTheMonthRange[];
|
|
31
|
+
readonly month: readonly MonthRange[];
|
|
32
|
+
readonly dayOfWeek: readonly DayOfTheWeekRange[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {ParserOptions, CronDate, DateType}
|
|
36
|
+
export type CronExpression<IsIterable extends boolean = false> = ICronExpression<CronFields, IsIterable>
|
|
37
|
+
export type StringResult = IStringResult<CronFields>
|
|
38
|
+
|
|
39
|
+
export function parseExpression<IsIterable extends boolean = false>(expression: string, options?: ParserOptions<IsIterable>): CronExpression<IsIterable>;
|
|
40
|
+
|
|
41
|
+
export function fieldsToExpression<IsIterable extends boolean = false>(fields: CronFields, options?: ParserOptions<IsIterable>): CronExpression<IsIterable>;
|
|
42
|
+
|
|
43
|
+
export function parseFile(filePath: string, callback: (err: any, data: StringResult) => any): void;
|
|
44
|
+
|
|
45
|
+
export function parseString(data: string): StringResult;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CronDate,
|
|
3
|
+
DateType,
|
|
4
|
+
ICronExpression,
|
|
5
|
+
IStringResult,
|
|
6
|
+
ParserOptions,
|
|
7
|
+
} from '../common';
|
|
8
|
+
|
|
9
|
+
export type CronFields = {
|
|
10
|
+
readonly second: readonly number[];
|
|
11
|
+
readonly minute: readonly number[];
|
|
12
|
+
readonly hour: readonly number[];
|
|
13
|
+
readonly dayOfMonth: readonly (number | 'L')[];
|
|
14
|
+
readonly month: readonly number[];
|
|
15
|
+
readonly dayOfWeek: readonly number[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {ParserOptions, CronDate, DateType}
|
|
19
|
+
export type CronExpression<IsIterable extends boolean = false> = ICronExpression<CronFields, IsIterable>
|
|
20
|
+
export type StringResult = IStringResult<CronFields>
|
|
21
|
+
|
|
22
|
+
export function parseExpression<IsIterable extends boolean = false>(expression: string, options?: ParserOptions<IsIterable>): CronExpression<IsIterable>;
|
|
23
|
+
|
|
24
|
+
export function fieldsToExpression<IsIterable extends boolean = false>(fields: CronFields, options?: ParserOptions<IsIterable>): CronExpression<IsIterable>;
|
|
25
|
+
|
|
26
|
+
export function parseFile(filePath: string, callback: (err: any, data: StringResult) => any): void;
|
|
27
|
+
|
|
28
|
+
export function parseString(data: string): StringResult;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: "github-actions"
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: "monthly"
|
|
7
|
+
open-pull-requests-limit: 10
|
|
8
|
+
|
|
9
|
+
- package-ecosystem: "npm"
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: "monthly"
|
|
13
|
+
open-pull-requests-limit: 10
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Number of days of inactivity before an issue becomes stale
|
|
2
|
+
daysUntilStale: 15
|
|
3
|
+
# Number of days of inactivity before a stale issue is closed
|
|
4
|
+
daysUntilClose: 7
|
|
5
|
+
# Issues with these labels will never be considered stale
|
|
6
|
+
exemptLabels:
|
|
7
|
+
- "discussion"
|
|
8
|
+
- "feature request"
|
|
9
|
+
- "bug"
|
|
10
|
+
- "help wanted"
|
|
11
|
+
- "plugin suggestion"
|
|
12
|
+
- "good first issue"
|
|
13
|
+
# Label to use when marking an issue as stale
|
|
14
|
+
staleLabel: stale
|
|
15
|
+
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
16
|
+
markComment: >
|
|
17
|
+
This issue has been automatically marked as stale because it has not had
|
|
18
|
+
recent activity. It will be closed if no further activity occurs. Thank you
|
|
19
|
+
for your contributions.
|
|
20
|
+
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
21
|
+
closeComment: false
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Benchmark PR
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request_target:
|
|
5
|
+
types:
|
|
6
|
+
- labeled
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
benchmark:
|
|
10
|
+
if: ${{ github.event.label.name == 'benchmark' }}
|
|
11
|
+
uses: fastify/workflows/.github/workflows/plugins-benchmark-pr.yml@v5
|
|
12
|
+
with:
|
|
13
|
+
npm-script: benchmark
|
|
14
|
+
|
|
15
|
+
remove-label:
|
|
16
|
+
if: "always()"
|
|
17
|
+
needs:
|
|
18
|
+
- benchmark
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- name: Remove benchmark label
|
|
22
|
+
uses: octokit/request-action@v2.x
|
|
23
|
+
id: remove-label
|
|
24
|
+
with:
|
|
25
|
+
route: DELETE /repos/{repo}/issues/{issue_number}/labels/{name}
|
|
26
|
+
repo: ${{ github.event.pull_request.head.repo.full_name }}
|
|
27
|
+
issue_number: ${{ github.event.pull_request.number }}
|
|
28
|
+
name: benchmark
|
|
29
|
+
env:
|
|
30
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|