implement direct and indirect eval

This commit is contained in:
velzie 2024-07-28 21:45:41 -04:00
parent e6b237c525
commit ec8421be8f
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
12 changed files with 171 additions and 101 deletions

View file

@ -1,8 +1,7 @@
import { encodeUrl } from "../shared";
import { importfn } from "../";
import { config, encodeUrl } from "../shared";
export default function (client, self) {
self[importfn] = function (base) {
self[config.importfn] = function (base) {
return function (url) {
const resolved = new URL(url, base).href;