enigmatic 0.21.1 → 0.21.2

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.
Files changed (2) hide show
  1. package/enigmatic.js +3 -4
  2. package/package.json +1 -1
package/enigmatic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const w = {}, d = document
2
- w.enigmatic = { version: '2023-07-29 0.21.1' }
2
+ w.enigmatic = { version: '2023-07-29 0.21.2' }
3
3
 
4
4
  window.onerror = (err, l, n) => {
5
5
  document.write(`<h2 style="border:8px solid Tomato;">${[l, 'line: ' + n, err].join('<br>')}</h2>`)
@@ -148,9 +148,8 @@ w.start = async () => {
148
148
  e.fetch = async () => {
149
149
  return w.get(e.attr.fetch, {}, null, e.attr.data)
150
150
  }
151
- }
152
- if (!e.hasAttribute('defer')) {
153
- e.fetch()
151
+ if (!e.hasAttribute('defer'))
152
+ e.fetch()
154
153
  }
155
154
  if (e.attr?.stream) {
156
155
  e.stream = w.stream.bind(null, e.pr.stream, null, window[e.pr.transform], e.id)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "enigmatic",
3
3
  "main": "enigmatic.js",
4
- "version": "0.21.1",
4
+ "version": "0.21.2",
5
5
  "scripts": {
6
6
  "test": "node test.mjs"
7
7
  },