@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.UniMobileBlocks = {}));
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.UniMobileBlocks = {}, 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 = (_) => {
@@ -741,6 +761,8 @@
741
761
  return refs;
742
762
  };
743
763
 
764
+ util.promisify(fs__namespace.readFile);
765
+
744
766
  async function fetchJSON(url, options) {
745
767
  try {
746
768
  return url ? await fetchJSONUnsafe(url, options) : null;
@@ -5629,7 +5651,7 @@
5629
5651
 
5630
5652
  const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
5631
5653
 
5632
- const packageVersion = "0.14.163";
5654
+ const packageVersion = "0.14.165";
5633
5655
 
5634
5656
  exports.Blocks = Blocks;
5635
5657
  exports.ContentPage = ContentPage;