@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/examples/simple.js
CHANGED
|
@@ -7093,7 +7093,6 @@ var Trim = class extends Transformer {
|
|
|
7093
7093
|
};
|
|
7094
7094
|
|
|
7095
7095
|
// src/transformers/url-query-param.ts
|
|
7096
|
-
var import_url = require("url");
|
|
7097
7096
|
var UrlQueryParamTransformer = class _UrlQueryParamTransformer extends Transformer {
|
|
7098
7097
|
constructor(args) {
|
|
7099
7098
|
super();
|
|
@@ -7119,7 +7118,7 @@ var UrlQueryParamTransformer = class _UrlQueryParamTransformer extends Transform
|
|
|
7119
7118
|
)}`
|
|
7120
7119
|
);
|
|
7121
7120
|
}
|
|
7122
|
-
const url = new
|
|
7121
|
+
const url = new URL(val);
|
|
7123
7122
|
if (args.length === 0) {
|
|
7124
7123
|
return Object.fromEntries(url.searchParams.entries());
|
|
7125
7124
|
}
|
|
@@ -7406,14 +7405,12 @@ var oneOf = [
|
|
|
7406
7405
|
then: { properties: { type: { const: "array" } } }
|
|
7407
7406
|
},
|
|
7408
7407
|
{
|
|
7409
|
-
$comment: 'when the "type" is "array", then the "
|
|
7408
|
+
$comment: 'when the "type" is "array", then the "items" MUST be defined.',
|
|
7410
7409
|
if: {
|
|
7411
7410
|
properties: { type: { const: "array" } },
|
|
7412
7411
|
required: ["type"]
|
|
7413
7412
|
},
|
|
7414
|
-
then: {
|
|
7415
|
-
oneOf: [{ required: ["items"] }, { required: ["transform"] }]
|
|
7416
|
-
}
|
|
7413
|
+
then: { required: ["items"] }
|
|
7417
7414
|
}
|
|
7418
7415
|
]
|
|
7419
7416
|
},
|