@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/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
|
|
7124
|
+
const url = new URL(val);
|
|
7126
7125
|
if (args.length === 0) {
|
|
7127
7126
|
return Object.fromEntries(url.searchParams.entries());
|
|
7128
7127
|
}
|