New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@joinbox/formsync

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joinbox/formsync - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

rollup.config.mjs

35

CHANGELOG.md

@@ -6,5 +6,12 @@ # Change Log

# [2.3.0](https://github.com/joinbox/ui-components/compare/@joinbox/formsync@2.2.1...@joinbox/formsync@2.3.0) (2022-12-20)
## [2.3.1](https://github.com/joinbox/ui-components/compare/@joinbox/formsync@2.2.1...@joinbox/formsync@2.3.1) (2023-07-03)
### Bug Fixes
* **debounce:** simplify debounce function ([d12f74d](https://github.com/joinbox/ui-components/commit/d12f74d7c0fc7ca77f0873c59caffd175769d149))
* update rollup configs to reflect version update ([0f9c450](https://github.com/joinbox/ui-components/commit/0f9c4504fd607c325aa0f337c1b36c46f2d48496))
* update rollup configs to reflect version update ([446b3f7](https://github.com/joinbox/ui-components/commit/446b3f7a6718d277efd7194345a23b90083026cb))
### Features

@@ -18,30 +25,28 @@

* **form-sync:** implement functionality to clone select options to checkbox or radio inputs ([3ca8b07](https://github.com/joinbox/ui-components/commit/3ca8b07e7913a94dbb250f76af8b5ebdfc4ccb7b))
* **tools:** move createDebounce and once to tools ([421a66e](https://github.com/joinbox/ui-components/commit/421a66ee43154be4980aabbdc39f198532ab246c))
### BREAKING CHANGES
# 3.6.0 (2021-12-03)
* **tools:** move createDebounce and once to a new repo ui-tools
# 3.4.0 (2021-07-14)
# [2.3.0](https://github.com/joinbox/ui-components/compare/@joinbox/formsync@2.2.1...@joinbox/formsync@2.3.0) (2023-04-28)
# 3.3.0 (2021-07-14)
### Features
* **form-sync:** changes after code review ([ccb9eb3](https://github.com/joinbox/ui-components/commit/ccb9eb376a14c89e11c645aae0129d110b773246))
* **form-sync:** changes after code review ([d94161c](https://github.com/joinbox/ui-components/commit/d94161cbd479ba4a826a9bcfdf0af9defd5317c3))
* **form-sync:** implement functionalit to clone select options to checkbox or radio inputs ([4ef4882](https://github.com/joinbox/ui-components/commit/4ef4882019e2f6099040228a396211b6e73c05f4))
* **form-sync:** implement functionality to clone select options to checkbox or radio inputs ([582ffcf](https://github.com/joinbox/ui-components/commit/582ffcfb31709cf2dc9febc38ee76227079ce448))
* **form-sync:** implement functionality to clone select options to checkbox or radio inputs ([ec7517d](https://github.com/joinbox/ui-components/commit/ec7517dc769752d9a8f45997cb02a781176627f9))
* **form-sync:** implement functionality to clone select options to checkbox or radio inputs ([3ca8b07](https://github.com/joinbox/ui-components/commit/3ca8b07e7913a94dbb250f76af8b5ebdfc4ccb7b))
## 3.2.1 (2021-07-06)
# 3.2.0 (2021-07-06)
# [2.2.0](https://github.com/joinbox/ui-components/compare/@joinbox/formsync@2.1.3...@joinbox/formsync@2.2.0) (2021-12-03)
## [2.2.1](https://github.com/joinbox/ui-components/compare/@joinbox/formsync@2.0.2...@joinbox/formsync@2.2.1) (2022-04-27)
## [2.2.0](https://github.com/joinbox/ui-components/compare/@joinbox/formsync@2.1.3...@joinbox/formsync@2.2.0) (2021-12-03)

@@ -48,0 +53,0 @@ ### Bug Fixes

@@ -82,10 +82,7 @@ (function () {

/**
* Simple debounce implementation. Use:
* import { createDebounce } from '@joinbox/ui-components;
* const debounce = createDebounce();
* debounce(() => {}), 500);
* Simple debounce implementation. See README.
*/
var createDebounce = () => {
var debounce = (callback, offset) => {
let timeout;
return (callback, offset) => {
return () => {
if (timeout) clearTimeout(timeout);

@@ -208,8 +205,3 @@ timeout = setTimeout(callback, offset);

if (debounceTime) {
const debounce = createDebounce();
submitHandler = debounce.bind(
null,
this.submitOriginalForm.bind(this),
debounceTime,
);
submitHandler = debounce(this.submitOriginalForm.bind(this), debounceTime);
}

@@ -216,0 +208,0 @@ this.clonedElement.addEventListener(eventName, submitHandler);

{
"name": "@joinbox/formsync",
"version": "2.3.0",
"version": "2.3.1",
"description": "Synchronizes forms and elements between an original form (e.g. one created by Drupal) and another form (e.g. freely created as a template based on mockups).",

@@ -8,3 +8,3 @@ "main": "FormSyncElement.js",

"test": "npx ava --verbose",
"build": "npx rollup --c rollup.config.js"
"build": "npx rollup --c rollup.config.mjs"
},

@@ -23,8 +23,8 @@ "author": "Felix Steiner <felix@joinbox.com>",

"devDependencies": {
"@babel/eslint-parser": "^7.17.0",
"@joinbox/eslint-config-joinbox": "^1.0.10",
"ava": "^4.2.0",
"jsdom": "^19.0.0",
"lerna": "^4.0.0",
"rollup": "^2.70.1"
"@babel/eslint-parser": "^7.22.5",
"@joinbox/eslint-config-joinbox": "^1.0.11",
"ava": "^5.3.1",
"jsdom": "^22.1.0",
"lerna": "^7.1.0",
"rollup": "^3.25.3"
},

@@ -34,3 +34,3 @@ "publishConfig": {

},
"gitHead": "3ec0e5dc835ba64a579e6e0cb6d3b6ceeac040d3"
"gitHead": "77e4455ad467209f0bd9af0bd306b7130677b29c"
}
import submitForm from './submitForm.js';
import createDebounce from '../../../src/shared/createDebounce.mjs';
import debounce from '../../tools/src/debounce.mjs';

@@ -116,8 +116,3 @@ /* global HTMLElement */

if (debounceTime) {
const debounce = createDebounce();
submitHandler = debounce.bind(
null,
this.submitOriginalForm.bind(this),
debounceTime,
);
submitHandler = debounce(this.submitOriginalForm.bind(this), debounceTime);
}

@@ -124,0 +119,0 @@ this.clonedElement.addEventListener(eventName, submitHandler);

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