@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/dist/src/index.js CHANGED
@@ -6815,6 +6815,9 @@ var ConfigWithSelector = class extends Config {
6815
6815
  if (this.selector === null) {
6816
6816
  return $;
6817
6817
  }
6818
+ if ($.is(this.selector)) {
6819
+ return $;
6820
+ }
6818
6821
  return $.find(this.selector);
6819
6822
  }
6820
6823
  };
@@ -7408,14 +7411,12 @@ var oneOf = [
7408
7411
  then: { properties: { type: { const: "array" } } }
7409
7412
  },
7410
7413
  {
7411
- $comment: 'when the "type" is "array", then the "properties" MUST be defined.',
7414
+ $comment: 'when the "type" is "array", then the "items" MUST be defined.',
7412
7415
  if: {
7413
7416
  properties: { type: { const: "array" } },
7414
7417
  required: ["type"]
7415
7418
  },
7416
- then: {
7417
- oneOf: [{ required: ["items"] }, { required: ["transform"] }]
7418
- }
7419
+ then: { required: ["items"] }
7419
7420
  }
7420
7421
  ]
7421
7422
  },