bigpipe-util 0.2.12 → 0.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to `bigpipe-util` will be documented in this file.
4
4
 
5
5
  Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
6
6
 
7
+ ## v0.2.13 - 2026-04-05
8
+ ### Fixed
9
+ - submitter and \_\_DEV\_\_ checks
10
+
7
11
  ## v0.2.12 - 2026-01-12
8
12
  ### Added
9
13
  - Added `Pagelet.js`, `BigPipe.js`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bigpipe-util",
3
3
  "description": "This library currently implements small part of Facebook BigPipe so far, but the advantage is to efficiently insert/replace content and work with the DOM. It is also possible to easily call JavaScript modules from PHP.",
4
- "version": "0.2.12",
4
+ "version": "0.2.13",
5
5
  "keywords": [
6
6
  "bigpipe",
7
7
  "xhr",
package/src/Primer.js CHANGED
@@ -87,7 +87,7 @@ export default function Primer() {
87
87
  const submitter = event.submitter || eventTarget.querySelector("button[type='submit']");
88
88
  const activeControls = eventTarget.querySelectorAll("input:not([readonly]),select:not([readonly]),textarea:not([readonly])");
89
89
 
90
- if (submitter.name) {
90
+ if (submitter && submitter.name) {
91
91
  formData.append(submitter.name, submitter.value);
92
92
  }
93
93
 
@@ -11,8 +11,10 @@ export default class AsyncDOM {
11
11
  node = (node || document.documentElement).querySelector(selector);
12
12
  }
13
13
 
14
- if (__DEV__ && !node) {
15
- console.error(`Selector '${selector}' does not match anything!`)
14
+ if (!node) {
15
+ if (typeof __DEV__ !== "undefined" && __DEV__) {
16
+ console.error(`Selector '${selector}' does not match anything!`)
17
+ }
16
18
  continue;
17
19
  }
18
20