@redneckz/wildless-cms-uni-blocks 0.14.164 → 0.14.166

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.
@@ -1,8 +1,28 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('path'), require('fs/promises')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'path', 'fs/promises'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.UniBlocks = {}));
5
- })(this, (function (exports) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('fs'), require('path'), require('util')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'fs', 'path', 'util'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.UniBlocks = {}, global.fs, null, global.util));
5
+ })(this, (function (exports, fs, path, util) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
6
26
 
7
27
  let _hooks;
8
28
  const setupHooks = (_) => {
@@ -733,6 +753,8 @@
733
753
  return refs;
734
754
  };
735
755
 
756
+ util.promisify(fs__namespace.readFile);
757
+
736
758
  async function fetchJSON(url, options) {
737
759
  try {
738
760
  return url ? await fetchJSONUnsafe(url, options) : null;
@@ -6007,7 +6029,7 @@
6007
6029
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6008
6030
  });
6009
6031
 
6010
- const packageVersion = "0.14.163";
6032
+ const packageVersion = "0.14.165";
6011
6033
 
6012
6034
  exports.Blocks = Blocks;
6013
6035
  exports.ContentPage = ContentPage;