@atscript/core 0.1.74 → 0.1.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -4704,34 +4704,17 @@ const primitives = {
4704
4704
  },
4705
4705
  date: {
4706
4706
  documentation: "Represents a date string.",
4707
- annotations: { "expect.pattern": [
4708
- {
4709
- pattern: "^\\d{4}-\\d{2}-\\d{2}$",
4710
- message: "Invalid date format."
4711
- },
4712
- {
4713
- pattern: "^\\d{2}/\\d{2}/\\d{4}$",
4714
- message: "Invalid date format."
4715
- },
4716
- {
4717
- pattern: "^\\d{2}-\\d{2}-\\d{4}$",
4718
- message: "Invalid date format."
4719
- },
4720
- {
4721
- pattern: "^\\d{1,2} [A-Za-z]+ \\d{4}$",
4722
- message: "Invalid date format."
4723
- }
4724
- ] }
4707
+ annotations: { "expect.pattern": {
4708
+ pattern: "^(?:\\d{4}-\\d{2}-\\d{2}|\\d{2}/\\d{2}/\\d{4}|\\d{2}-\\d{2}-\\d{4}|\\d{1,2} [A-Za-z]+ \\d{4})$",
4709
+ message: "Invalid date format."
4710
+ } }
4725
4711
  },
4726
4712
  isoDate: {
4727
4713
  documentation: "Represents a date string in ISO format.",
4728
- annotations: { "expect.pattern": [{
4729
- pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$",
4730
- message: "Invalid ISO date format."
4731
- }, {
4732
- pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?([+-]\\d{2}:\\d{2})$",
4714
+ annotations: { "expect.pattern": {
4715
+ pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$",
4733
4716
  message: "Invalid ISO date format."
4734
- }] }
4717
+ } }
4735
4718
  },
4736
4719
  uuid: {
4737
4720
  documentation: "Represents a UUID.",
package/dist/index.mjs CHANGED
@@ -4680,34 +4680,17 @@ const primitives = {
4680
4680
  },
4681
4681
  date: {
4682
4682
  documentation: "Represents a date string.",
4683
- annotations: { "expect.pattern": [
4684
- {
4685
- pattern: "^\\d{4}-\\d{2}-\\d{2}$",
4686
- message: "Invalid date format."
4687
- },
4688
- {
4689
- pattern: "^\\d{2}/\\d{2}/\\d{4}$",
4690
- message: "Invalid date format."
4691
- },
4692
- {
4693
- pattern: "^\\d{2}-\\d{2}-\\d{4}$",
4694
- message: "Invalid date format."
4695
- },
4696
- {
4697
- pattern: "^\\d{1,2} [A-Za-z]+ \\d{4}$",
4698
- message: "Invalid date format."
4699
- }
4700
- ] }
4683
+ annotations: { "expect.pattern": {
4684
+ pattern: "^(?:\\d{4}-\\d{2}-\\d{2}|\\d{2}/\\d{2}/\\d{4}|\\d{2}-\\d{2}-\\d{4}|\\d{1,2} [A-Za-z]+ \\d{4})$",
4685
+ message: "Invalid date format."
4686
+ } }
4701
4687
  },
4702
4688
  isoDate: {
4703
4689
  documentation: "Represents a date string in ISO format.",
4704
- annotations: { "expect.pattern": [{
4705
- pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?Z$",
4706
- message: "Invalid ISO date format."
4707
- }, {
4708
- pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?([+-]\\d{2}:\\d{2})$",
4690
+ annotations: { "expect.pattern": {
4691
+ pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$",
4709
4692
  message: "Invalid ISO date format."
4710
- }] }
4693
+ } }
4711
4694
  },
4712
4695
  uuid: {
4713
4696
  documentation: "Represents a UUID.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/core",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "Core library for Atscript parsing and file generation.",
5
5
  "keywords": [
6
6
  "annotations",