Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@expressen/tallahassee

Package Overview
Dependencies
Maintainers
10
Versions
207
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expressen/tallahassee - npm Package Compare versions

Comparing version 11.13.0 to 11.14.0

4

CHANGELOG.md
Changelog
=========
## 11.14.0
- add `method` and `action` properties to form element
## 11.13.0

@@ -5,0 +9,0 @@

@@ -9,2 +9,4 @@ "use strict";

const originSymbol = Symbol.for("origin");
module.exports = class HTMLFormElement extends Element {

@@ -34,2 +36,4 @@ constructor(document, $elm) {

this[originSymbol] = document.location.href;
return new Proxy(element, nameHandler);

@@ -40,2 +44,23 @@ }

}
get method() {
return (this.getAttribute("method") || "get").toLowerCase();
}
set method(val) {
const validMethods = ["get", "post"];
if (typeof val === "string" && validMethods.includes(val.toLowerCase())) {
const method = val.toLowerCase();
this.setAttribute("method", method);
} else {
this.setAttribute("method", "get");
}
return val;
}
get action() {
return this.getAttribute("action") || this[originSymbol];
}
set action(val) {
this.setAttribute("action", val);
return val;
}
submit() {

@@ -42,0 +67,0 @@ this.dispatchEvent(new Event("_form_submit", { bubbles: true }));

2

package.json
{
"name": "@expressen/tallahassee",
"version": "11.13.0",
"version": "11.14.0",
"description": "Lightweight client testing framework",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc