diff --git a/package-lock.json b/package-lock.json index 498dd38..2a7357b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "license": "MIT", "dependencies": { "@leafac/css": "^0.0.1", - "@leafac/html": "^1.3.0", + "@leafac/html": "^2.0.0", "@leafac/sqlite": "^1.1.2", "@leafac/sqlite-migration": "^1.0.3", "@small-tech/auto-encrypt": "^2.0.5", @@ -903,7 +903,7 @@ "tagged-template-noop": "^2.1.1" } }, - "node_modules/@leafac/html": { + "node_modules/@leafac/css/node_modules/@leafac/html": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@leafac/html/-/html-1.3.0.tgz", "integrity": "sha512-8j0WX1wziB8oP1wNJU3NscukXUI9rZoefOQYvHjEsb5C0tMFfoEhcb7V8rRt1+jOA5oNa8IyOyYwDZVrxHD/XA==", @@ -912,6 +912,15 @@ "sanitize-xml-string": "^1.1.0" } }, + "node_modules/@leafac/html": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@leafac/html/-/html-2.0.0.tgz", + "integrity": "sha512-ir2To38QSgDOs6QSc8lw+NA3I8amhQzkdw7K0OU5eQGcNppqcaPNjetG4gN/Psu8LqV3PUuaDUqIF6ku7JZBYg==", + "dependencies": { + "he": "^1.2.0", + "sanitize-xml-string": "^1.1.0" + } + }, "node_modules/@leafac/sqlite": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@leafac/sqlite/-/sqlite-1.1.2.tgz", @@ -9884,12 +9893,23 @@ "postcss": "^8.2.7", "postcss-nested": "^5.0.4", "tagged-template-noop": "^2.1.1" + }, + "dependencies": { + "@leafac/html": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@leafac/html/-/html-1.3.0.tgz", + "integrity": "sha512-8j0WX1wziB8oP1wNJU3NscukXUI9rZoefOQYvHjEsb5C0tMFfoEhcb7V8rRt1+jOA5oNa8IyOyYwDZVrxHD/XA==", + "requires": { + "he": "^1.2.0", + "sanitize-xml-string": "^1.1.0" + } + } } }, "@leafac/html": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@leafac/html/-/html-1.3.0.tgz", - "integrity": "sha512-8j0WX1wziB8oP1wNJU3NscukXUI9rZoefOQYvHjEsb5C0tMFfoEhcb7V8rRt1+jOA5oNa8IyOyYwDZVrxHD/XA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@leafac/html/-/html-2.0.0.tgz", + "integrity": "sha512-ir2To38QSgDOs6QSc8lw+NA3I8amhQzkdw7K0OU5eQGcNppqcaPNjetG4gN/Psu8LqV3PUuaDUqIF6ku7JZBYg==", "requires": { "he": "^1.2.0", "sanitize-xml-string": "^1.1.0" diff --git a/package.json b/package.json index b68c360..9b97eca 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "dependencies": { "@leafac/css": "^0.0.1", - "@leafac/html": "^1.3.0", + "@leafac/html": "^2.0.0", "@leafac/sqlite": "^1.1.2", "@leafac/sqlite-migration": "^1.0.3", "@small-tech/auto-encrypt": "^2.0.5", diff --git a/src/index.ts b/src/index.ts index 5e13ae0..179f79b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -257,6 +257,7 @@ export default function killTheNewsletter( placeholder="Newsletter nameā€¦" maxlength="500" required + pattern=".*\S.*" autocomplete="off" autofocus />