@purescraps/purehtml 0.1.4 → 0.1.5
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
|
}
|