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

@ampify/plugin-forms

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ampify/plugin-forms - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

babel.config.js
module.exports = {
env: {
test: {
plugins: ["transform-es2015-modules-commonjs"]
plugins: ['transform-es2015-modules-commonjs']
}
}
};
{
"name": "@ampify/plugin-forms",
"version": "0.1.1",
"version": "0.1.2",
"main": "./src",

@@ -20,3 +20,3 @@ "license": "MIT",

},
"gitHead": "c73bb3f837727c969b0fdeb3a93c31741d3e3ac4"
"gitHead": "4f295fd94043d1cf243b95425cf226eb3a9c0a23"
}
# Forms
Convert forms to support amp submission via proxy
Convert forms to support amp submission via proxy

@@ -1,13 +0,10 @@

import { prepare, run } from './';
import exec from './';
beforeAll(() => {
document.body.innerHTML = `<html><body><div role="form" class="wpcf7" id="wpcf7-f179-o2" lang="he-IL" dir="rtl"><div class="screen-reader-response"></div><form action="/blog/#wpcf7-f179-o2" method="post" class="wpcf7-form mailchimp-ext-0.5.08" novalidate="novalidate"><div style="display: none;"> <input type="hidden" name="_wpcf7" value="179"> <input type="hidden" name="_wpcf7_version" value="5.1.4"> <input type="hidden" name="_wpcf7_locale" value="he_IL"> <input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f179-o2"> <input type="hidden" name="_wpcf7_container_post" value="0"></div><p><span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false" placeholder="איך קוראים לך?"></span><span class="wpcf7-form-control-wrap your-email"><input type="email" name="your-email" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" aria-required="true" aria-invalid="false" placeholder="מה המייל שלך?"></span><span class="wpcf7-form-control-wrap your-phone"><input type="text" name="your-phone" value="" size="40" class="wpcf7-form-control wpcf7-text" aria-invalid="false" placeholder="לאיזה טלפון להתקשר?"></span><input type="submit" value="דבר איתי!" class="wpcf7-form-control wpcf7-submit"><span class="ajax-loader"></span></p><div class="wpcf7-response-output wpcf7-display-none"></div><p style="display: none !important"><span class="wpcf7-form-control-wrap referer-page"><input type="hidden" name="referer-page" value="direct visit" class="wpcf7-form-control wpcf7-text referer-page" aria-invalid="false"></span></p></form></div></body></html>`;
document.documentElement.innerHTML = `<html><body><div role="form" class="wpcf7" id="wpcf7-f179-o2" lang="he-IL" dir="rtl"><div class="screen-reader-response"></div><form action="/blog/#wpcf7-f179-o2" method="post" class="wpcf7-form mailchimp-ext-0.5.08" novalidate="novalidate"><div style="display: none;"> <input type="hidden" name="_wpcf7" value="179"> <input type="hidden" name="_wpcf7_version" value="5.1.4"> <input type="hidden" name="_wpcf7_locale" value="he_IL"> <input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f179-o2"> <input type="hidden" name="_wpcf7_container_post" value="0"></div><p><span class="wpcf7-form-control-wrap your-name"><input type="text" name="your-name" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false" placeholder="איך קוראים לך?"></span><span class="wpcf7-form-control-wrap your-email"><input type="email" name="your-email" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" aria-required="true" aria-invalid="false" placeholder="מה המייל שלך?"></span><span class="wpcf7-form-control-wrap your-phone"><input type="text" name="your-phone" value="" size="40" class="wpcf7-form-control wpcf7-text" aria-invalid="false" placeholder="לאיזה טלפון להתקשר?"></span><input type="submit" value="דבר איתי!" class="wpcf7-form-control wpcf7-submit"><span class="ajax-loader"></span></p><div class="wpcf7-response-output wpcf7-display-none"></div><p style="display: none !important"><span class="wpcf7-form-control-wrap referer-page"><input type="hidden" name="referer-page" value="direct visit" class="wpcf7-form-control wpcf7-text referer-page" aria-invalid="false"></span></p></form></div></body></html>`;
});
test('prepare', () => {
expect(prepare({ test: 1 })).toMatchSnapshot();
test('exec', () => {
exec();
expect(document.documentElement.outerHTML).toMatchSnapshot();
});
test('run', () => {
expect(run()).toMatchSnapshot();
});

@@ -1,2 +0,2 @@

const { name } = require('./package');
const { name } = require('./package');
const camelCase = require('lodash.camelcase');

@@ -3,0 +3,0 @@

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