oak-domain/lib/utils/url/whatwg-url/index.js

17 lines
661 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.URLSearchParams = exports.URL = void 0;
/**
* 为了能在小程序中使用URL、URLSearchParams
* 但whatwg-url-without-unicode这个库未更新把其的代码放本地进行更新
*/
const whatwgUrl = require('./lib/URL');
const whatwgUrlSearchParams = require('./lib/URLSearchParams');
const sharedGlobalObject = {};
whatwgUrl.install(sharedGlobalObject);
whatwgUrlSearchParams.install(sharedGlobalObject);
const URL = sharedGlobalObject.URL;
exports.URL = URL;
const URLSearchParams = sharedGlobalObject.URLSearchParams;
exports.URLSearchParams = URLSearchParams;