@t007/utils 0.0.6 → 0.0.7

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/dist/index.cjs CHANGED
@@ -69,7 +69,7 @@ function assignEl(el, props, dataset, styles) {
69
69
  }
70
70
  var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
71
71
  function loadResource(req, type = "style", { module: module2, media, crossOrigin, integrity, referrerPolicy, nonce, fetchPriority, attempts = 3, retryKey = false } = {}, w = window) {
72
- w.t007._resourceCache ??= {};
72
+ w.t007 ??= {}, w.t007._resourceCache ??= {};
73
73
  if (req === VIRTUAL_RESOURCE || "symbol" === typeof req) return Promise.resolve();
74
74
  const src = req;
75
75
  if (w.t007._resourceCache[src]) return w.t007._resourceCache[src];
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ function assignEl(el, props, dataset, styles) {
30
30
  }
31
31
  var VIRTUAL_RESOURCE = /* @__PURE__ */ Symbol.for("T007_VIRTUAL_RESOURCE");
32
32
  function loadResource(req, type = "style", { module, media, crossOrigin, integrity, referrerPolicy, nonce, fetchPriority, attempts = 3, retryKey = false } = {}, w = window) {
33
- w.t007._resourceCache ??= {};
33
+ w.t007 ??= {}, w.t007._resourceCache ??= {};
34
34
  if (req === VIRTUAL_RESOURCE || "symbol" === typeof req) return Promise.resolve();
35
35
  const src = req;
36
36
  if (w.t007._resourceCache[src]) return w.t007._resourceCache[src];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t007/utils",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "High-performance, zero-dependency utility functions for the t007 ecosystem.",
5
5
  "author": "Oketade Oluwatobiloba <tobioketade007@gmail.com>",
6
6
  "license": "MIT",