@purescraps/purehtml 0.1.4 → 0.1.6

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
@@ -7096,7 +7096,6 @@ var Trim = class extends Transformer {
7096
7096
  };
7097
7097
 
7098
7098
  // src/transformers/url-query-param.ts
7099
- var import_url = require("url");
7100
7099
  var UrlQueryParamTransformer = class _UrlQueryParamTransformer extends Transformer {
7101
7100
  constructor(args) {
7102
7101
  super();
@@ -7122,7 +7121,7 @@ var UrlQueryParamTransformer = class _UrlQueryParamTransformer extends Transform
7122
7121
  )}`
7123
7122
  );
7124
7123
  }
7125
- const url = new import_url.URL(val);
7124
+ const url = new URL(val);
7126
7125
  if (args.length === 0) {
7127
7126
  return Object.fromEntries(url.searchParams.entries());
7128
7127
  }
@@ -7409,14 +7408,12 @@ var oneOf = [
7409
7408
  then: { properties: { type: { const: "array" } } }
7410
7409
  },
7411
7410
  {
7412
- $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.',
7413
7412
  if: {
7414
7413
  properties: { type: { const: "array" } },
7415
7414
  required: ["type"]
7416
7415
  },
7417
- then: {
7418
- oneOf: [{ required: ["items"] }, { required: ["transform"] }]
7419
- }
7416
+ then: { required: ["items"] }
7420
7417
  }
7421
7418
  ]
7422
7419
  },