arktype 1.1.0-dev-1 → 2.0.0-beta.0

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.
Files changed (66) hide show
  1. package/LICENSE +7 -0
  2. package/out/ark.d.ts +24 -0
  3. package/out/ark.js +8 -0
  4. package/out/config.d.ts +1 -0
  5. package/out/config.js +2 -0
  6. package/out/generic.d.ts +54 -0
  7. package/out/generic.js +39 -0
  8. package/out/index.d.ts +6 -0
  9. package/out/index.js +5 -0
  10. package/out/match.d.ts +71 -0
  11. package/out/match.js +50 -0
  12. package/out/module.d.ts +11 -0
  13. package/out/module.js +2 -0
  14. package/out/parser/definition.d.ts +32 -0
  15. package/out/parser/definition.js +29 -0
  16. package/out/parser/objectLiteral.d.ts +79 -0
  17. package/out/parser/objectLiteral.js +100 -0
  18. package/out/parser/semantic/bounds.d.ts +15 -0
  19. package/out/parser/semantic/bounds.js +1 -0
  20. package/out/parser/semantic/default.d.ts +8 -0
  21. package/out/parser/semantic/default.js +1 -0
  22. package/out/parser/semantic/divisor.d.ts +7 -0
  23. package/out/parser/semantic/divisor.js +1 -0
  24. package/out/parser/semantic/infer.d.ts +25 -0
  25. package/out/parser/semantic/infer.js +1 -0
  26. package/out/parser/semantic/utils.d.ts +4 -0
  27. package/out/parser/semantic/utils.js +1 -0
  28. package/out/parser/semantic/validate.d.ts +30 -0
  29. package/out/parser/semantic/validate.js +2 -0
  30. package/out/parser/string/reduce/dynamic.d.ts +43 -0
  31. package/out/parser/string/reduce/dynamic.js +139 -0
  32. package/out/parser/string/reduce/shared.d.ts +42 -0
  33. package/out/parser/string/reduce/shared.js +27 -0
  34. package/out/parser/string/reduce/static.d.ts +179 -0
  35. package/out/parser/string/reduce/static.js +1 -0
  36. package/out/parser/string/shift/operand/date.d.ts +9 -0
  37. package/out/parser/string/shift/operand/date.js +23 -0
  38. package/out/parser/string/shift/operand/enclosed.d.ts +38 -0
  39. package/out/parser/string/shift/operand/enclosed.js +50 -0
  40. package/out/parser/string/shift/operand/genericArgs.d.ts +28 -0
  41. package/out/parser/string/shift/operand/genericArgs.js +16 -0
  42. package/out/parser/string/shift/operand/operand.d.ts +9 -0
  43. package/out/parser/string/shift/operand/operand.js +12 -0
  44. package/out/parser/string/shift/operand/unenclosed.d.ts +30 -0
  45. package/out/parser/string/shift/operand/unenclosed.js +53 -0
  46. package/out/parser/string/shift/operator/bounds.d.ts +27 -0
  47. package/out/parser/string/shift/operator/bounds.js +94 -0
  48. package/out/parser/string/shift/operator/default.d.ts +24 -0
  49. package/out/parser/string/shift/operator/default.js +23 -0
  50. package/out/parser/string/shift/operator/divisor.d.ts +7 -0
  51. package/out/parser/string/shift/operator/divisor.js +11 -0
  52. package/out/parser/string/shift/operator/operator.d.ts +13 -0
  53. package/out/parser/string/shift/operator/operator.js +22 -0
  54. package/out/parser/string/shift/scanner.d.ts +67 -0
  55. package/out/parser/string/shift/scanner.js +102 -0
  56. package/out/parser/string/string.d.ts +28 -0
  57. package/out/parser/string/string.js +24 -0
  58. package/out/parser/tuple.d.ts +130 -0
  59. package/out/parser/tuple.js +157 -0
  60. package/out/scope.d.ts +84 -0
  61. package/out/scope.js +131 -0
  62. package/out/type.d.ts +79 -0
  63. package/out/type.js +37 -0
  64. package/package.json +37 -36
  65. package/dist/main.d.ts +0 -1018
  66. package/dist/main.js +0 -1450
package/package.json CHANGED
@@ -1,37 +1,38 @@
1
1
  {
2
- "name": "arktype",
3
- "description": "TypeScript's 1:1 validator, optimized from editor to runtime",
4
- "version": "1.1.0-dev-1",
5
- "license": "MIT",
6
- "author": {
7
- "name": "David Blass",
8
- "email": "david@arktype.io",
9
- "url": "https://arktype.io"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/arktypeio/arktype.git"
14
- },
15
- "type": "module",
16
- "exports": {
17
- ".": {
18
- "arktype-repo": "./main.js",
19
- "import": "./dist/main.js"
20
- },
21
- "./internal/*": {
22
- "arktype-repo": "./*",
23
- "import": "./dist/*"
24
- }
25
- },
26
- "files": [
27
- "dist"
28
- ],
29
- "scripts": {
30
- "build": "tsup --config ../repo/tsup.config.ts",
31
- "test": "ts ../repo/testPackage.ts"
32
- },
33
- "dependencies": {
34
- "@arktype/util": "0.0.4",
35
- "@arktype/schema": "0.0.1"
36
- }
37
- }
2
+ "name": "arktype",
3
+ "description": "TypeScript's 1:1 validator, optimized from editor to runtime",
4
+ "version": "2.0.0-beta.0",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "David Blass",
8
+ "email": "david@arktype.io",
9
+ "url": "https://arktype.io"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/arktypeio/arktype.git",
14
+ "directory": "ark/type"
15
+ },
16
+ "type": "module",
17
+ "main": "./out/index.js",
18
+ "types": "./out/index.d.ts",
19
+ "exports": {
20
+ ".": "./out/index.js",
21
+ "./config": "./out/config.js",
22
+ "./internal/*": "./out/*"
23
+ },
24
+ "files": [
25
+ "out"
26
+ ],
27
+ "dependencies": {
28
+ "@ark/util": "0.1.0",
29
+ "@ark/schema": "0.2.0"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "scripts": {
35
+ "build": "tsx ../repo/build.ts",
36
+ "test": "tsx ../repo/testPackage.ts"
37
+ }
38
+ }