@purescraps/purehtml 0.1.5 → 0.2.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.
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2024 Fatih Kaya <1994274@gmail.com>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -6812,6 +6812,9 @@ var ConfigWithSelector = class extends Config {
6812
6812
  if (this.selector === null) {
6813
6813
  return $2;
6814
6814
  }
6815
+ if ($2.is(this.selector)) {
6816
+ return $2;
6817
+ }
6815
6818
  return $2.find(this.selector);
6816
6819
  }
6817
6820
  };
@@ -7405,14 +7408,12 @@ var oneOf = [
7405
7408
  then: { properties: { type: { const: "array" } } }
7406
7409
  },
7407
7410
  {
7408
- $comment: 'when the "type" is "array", then the "properties" MUST be defined.',
7411
+ $comment: 'when the "type" is "array", then the "items" MUST be defined.',
7409
7412
  if: {
7410
7413
  properties: { type: { const: "array" } },
7411
7414
  required: ["type"]
7412
7415
  },
7413
- then: {
7414
- oneOf: [{ required: ["items"] }, { required: ["transform"] }]
7415
- }
7416
+ then: { required: ["items"] }
7416
7417
  }
7417
7418
  ]
7418
7419
  },