data-restructor 3.4.3 → 3.4.5

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 (45) hide show
  1. package/.auto-changelog-template.hbs +1 -1
  2. package/.github/workflows/codeql-analysis.yml +6 -6
  3. package/.github/workflows/continuous-integration.yaml +11 -11
  4. package/.nvmrc +1 -0
  5. package/CHANGELOG.md +71 -1
  6. package/CONTRIBUTING.md +3 -3
  7. package/README.md +25 -25
  8. package/coverage/datarestructor.js.html +133 -133
  9. package/coverage/describedfield.js.html +45 -45
  10. package/coverage/index.html +1 -1
  11. package/coverage/templateResolver.js.html +26 -26
  12. package/devdist/datarestructor-ie.js +86 -21
  13. package/devdist/datarestructor.js +77 -12
  14. package/devdist/describedfield-ie.js +75 -10
  15. package/devdist/describedfield.js +74 -9
  16. package/devdist/templateResolver-ie.js +79 -14
  17. package/devdist/templateResolver.js +75 -10
  18. package/dist/datarestructor-ie.js +1 -1
  19. package/dist/datarestructor-ie.js.map +1 -1
  20. package/dist/datarestructor.js +1 -1
  21. package/dist/datarestructor.js.map +1 -1
  22. package/dist/describedfield-ie.js +1 -1
  23. package/dist/describedfield-ie.js.map +1 -1
  24. package/dist/describedfield.js +1 -1
  25. package/dist/describedfield.js.map +1 -1
  26. package/dist/templateResolver-ie.js +1 -1
  27. package/dist/templateResolver-ie.js.map +1 -1
  28. package/dist/templateResolver.js +1 -1
  29. package/dist/templateResolver.js.map +1 -1
  30. package/docs/datarestructor.js.html +1 -1
  31. package/docs/describedfield.js.html +1 -1
  32. package/docs/index.html +26 -26
  33. package/docs/module-datarestructor.DescribedEntryCreator.html +1 -1
  34. package/docs/module-datarestructor.PropertyStructureDescriptionBuilder.html +1 -1
  35. package/docs/module-datarestructor.Restructor.html +1 -1
  36. package/docs/module-datarestructor.Transform.html +1 -1
  37. package/docs/module-datarestructor.html +1 -1
  38. package/docs/module-described_field.DescribedDataFieldBuilder.html +1 -1
  39. package/docs/module-described_field.DescribedDataFieldGroup.html +1 -1
  40. package/docs/module-described_field.html +1 -1
  41. package/docs/module-template_resolver.Resolver.html +1 -1
  42. package/docs/module-template_resolver.html +1 -1
  43. package/docs/templateResolver.js.html +1 -1
  44. package/merger-config.json +2 -2
  45. package/package.json +12 -12
@@ -6,7 +6,16 @@
6
6
  // anything defined in a previous bundle is accessed via the
7
7
  // orig method which is the require for previous bundles
8
8
 
9
- (function (modules, entry, mainEntry, parcelRequireName, globalName) {
9
+ (function (
10
+ modules,
11
+ entry,
12
+ mainEntry,
13
+ parcelRequireName,
14
+ externals,
15
+ distDir,
16
+ publicUrl,
17
+ devServer
18
+ ) {
10
19
  /* eslint-disable no-undef */
11
20
  var globalObject =
12
21
  typeof globalThis !== 'undefined'
@@ -25,6 +34,7 @@
25
34
  typeof globalObject[parcelRequireName] === 'function' &&
26
35
  globalObject[parcelRequireName];
27
36
 
37
+ var importMap = previousRequire.i || {};
28
38
  var cache = previousRequire.cache || {};
29
39
  // Do not use `require` to prevent Webpack from trying to bundle this call
30
40
  var nodeRequire =
@@ -35,6 +45,9 @@
35
45
  function newRequire(name, jumped) {
36
46
  if (!cache[name]) {
37
47
  if (!modules[name]) {
48
+ if (externals[name]) {
49
+ return externals[name];
50
+ }
38
51
  // if we cannot find the module within our internal map or
39
52
  // cache jump to the current global require ie. the last bundle
40
53
  // that was added to the page.
@@ -73,7 +86,7 @@
73
86
  localRequire,
74
87
  module,
75
88
  module.exports,
76
- this
89
+ globalObject
77
90
  );
78
91
  }
79
92
 
@@ -81,7 +94,54 @@
81
94
 
82
95
  function localRequire(x) {
83
96
  var res = localRequire.resolve(x);
84
- return res === false ? {} : newRequire(res);
97
+ if (res === false) {
98
+ return {};
99
+ }
100
+ // Synthesize a module to follow re-exports.
101
+ if (Array.isArray(res)) {
102
+ var m = {__esModule: true};
103
+ res.forEach(function (v) {
104
+ var key = v[0];
105
+ var id = v[1];
106
+ var exp = v[2] || v[0];
107
+ var x = newRequire(id);
108
+ if (key === '*') {
109
+ Object.keys(x).forEach(function (key) {
110
+ if (
111
+ key === 'default' ||
112
+ key === '__esModule' ||
113
+ Object.prototype.hasOwnProperty.call(m, key)
114
+ ) {
115
+ return;
116
+ }
117
+
118
+ Object.defineProperty(m, key, {
119
+ enumerable: true,
120
+ get: function () {
121
+ return x[key];
122
+ },
123
+ });
124
+ });
125
+ } else if (exp === '*') {
126
+ Object.defineProperty(m, key, {
127
+ enumerable: true,
128
+ value: x,
129
+ });
130
+ } else {
131
+ Object.defineProperty(m, key, {
132
+ enumerable: true,
133
+ get: function () {
134
+ if (exp === 'default') {
135
+ return x.__esModule ? x.default : x;
136
+ }
137
+ return x[exp];
138
+ },
139
+ });
140
+ }
141
+ });
142
+ return m;
143
+ }
144
+ return newRequire(res);
85
145
  }
86
146
 
87
147
  function resolve(x) {
@@ -93,6 +153,7 @@
93
153
  function Module(moduleName) {
94
154
  this.id = moduleName;
95
155
  this.bundle = newRequire;
156
+ this.require = nodeRequire;
96
157
  this.exports = {};
97
158
  }
98
159
 
@@ -101,6 +162,10 @@
101
162
  newRequire.modules = modules;
102
163
  newRequire.cache = cache;
103
164
  newRequire.parent = previousRequire;
165
+ newRequire.distDir = distDir;
166
+ newRequire.publicUrl = publicUrl;
167
+ newRequire.devServer = devServer;
168
+ newRequire.i = importMap;
104
169
  newRequire.register = function (id, exports) {
105
170
  modules[id] = [
106
171
  function (require, module) {
@@ -110,6 +175,10 @@
110
175
  ];
111
176
  };
112
177
 
178
+ // Only insert newRequire.load when it is actually used.
179
+ // The code in this file is linted against ES5, so dynamic import is not allowed.
180
+ // INSERT_LOAD_HERE
181
+
113
182
  Object.defineProperty(newRequire, 'root', {
114
183
  get: function () {
115
184
  return globalObject[parcelRequireName];
@@ -136,13 +205,9 @@
136
205
  define(function () {
137
206
  return mainExports;
138
207
  });
139
-
140
- // <script>
141
- } else if (globalName) {
142
- this[globalName] = mainExports;
143
208
  }
144
209
  }
145
- })({"6zDs3":[function(require,module,exports) {
210
+ })({"6zDs3":[function(require,module,exports,__globalThis) {
146
211
  /**
147
212
  * @file datarestructor transforms parsed JSON objects into a uniform data structure
148
213
  * @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
@@ -1186,7 +1251,7 @@ var described_field = described_field || require("8c4b9c5cf6a20f4c"); // support
1186
1251
  return restructor.processJson(jsonData);
1187
1252
  };
1188
1253
 
1189
- },{"18c4c58e0f058705":"4biBi","1294899c93dea6c7":"bUhQb","8c4b9c5cf6a20f4c":"chJzc"}],"4biBi":[function(require,module,exports) {
1254
+ },{"18c4c58e0f058705":"4biBi","1294899c93dea6c7":"bUhQb","8c4b9c5cf6a20f4c":"chJzc"}],"4biBi":[function(require,module,exports,__globalThis) {
1190
1255
  "use strict";
1191
1256
  /**
1192
1257
  * @fileOverview Modded (compatibility, recursion depth) version of: https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss
@@ -1242,7 +1307,7 @@ var described_field = described_field || require("8c4b9c5cf6a20f4c"); // support
1242
1307
  return result;
1243
1308
  };
1244
1309
 
1245
- },{}],"bUhQb":[function(require,module,exports) {
1310
+ },{}],"bUhQb":[function(require,module,exports,__globalThis) {
1246
1311
  /**
1247
1312
  * @file Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
1248
1313
  * @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
@@ -1387,7 +1452,7 @@ template_resolver.Resolver = function() {
1387
1452
  return Resolver;
1388
1453
  }();
1389
1454
 
1390
- },{"cbde56e74c44f93f":"4biBi"}],"chJzc":[function(require,module,exports) {
1455
+ },{"cbde56e74c44f93f":"4biBi"}],"chJzc":[function(require,module,exports,__globalThis) {
1391
1456
  /**
1392
1457
  * @file Describes a data field of the restructured data.
1393
1458
  * @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
@@ -1645,5 +1710,5 @@ described_field.DescribedDataFieldGroup = function() {
1645
1710
  return DescribedDataFieldGroup;
1646
1711
  }();
1647
1712
 
1648
- },{}]},["6zDs3"], "6zDs3", "parcelRequirec1f2")
1713
+ },{}]},["6zDs3"], "6zDs3", "parcelRequirec1f2", {})
1649
1714
 
@@ -6,7 +6,16 @@
6
6
  // anything defined in a previous bundle is accessed via the
7
7
  // orig method which is the require for previous bundles
8
8
 
9
- (function (modules, entry, mainEntry, parcelRequireName, globalName) {
9
+ (function (
10
+ modules,
11
+ entry,
12
+ mainEntry,
13
+ parcelRequireName,
14
+ externals,
15
+ distDir,
16
+ publicUrl,
17
+ devServer
18
+ ) {
10
19
  /* eslint-disable no-undef */
11
20
  var globalObject =
12
21
  typeof globalThis !== 'undefined'
@@ -25,6 +34,7 @@
25
34
  typeof globalObject[parcelRequireName] === 'function' &&
26
35
  globalObject[parcelRequireName];
27
36
 
37
+ var importMap = previousRequire.i || {};
28
38
  var cache = previousRequire.cache || {};
29
39
  // Do not use `require` to prevent Webpack from trying to bundle this call
30
40
  var nodeRequire =
@@ -35,6 +45,9 @@
35
45
  function newRequire(name, jumped) {
36
46
  if (!cache[name]) {
37
47
  if (!modules[name]) {
48
+ if (externals[name]) {
49
+ return externals[name];
50
+ }
38
51
  // if we cannot find the module within our internal map or
39
52
  // cache jump to the current global require ie. the last bundle
40
53
  // that was added to the page.
@@ -73,7 +86,7 @@
73
86
  localRequire,
74
87
  module,
75
88
  module.exports,
76
- this
89
+ globalObject
77
90
  );
78
91
  }
79
92
 
@@ -81,7 +94,54 @@
81
94
 
82
95
  function localRequire(x) {
83
96
  var res = localRequire.resolve(x);
84
- return res === false ? {} : newRequire(res);
97
+ if (res === false) {
98
+ return {};
99
+ }
100
+ // Synthesize a module to follow re-exports.
101
+ if (Array.isArray(res)) {
102
+ var m = {__esModule: true};
103
+ res.forEach(function (v) {
104
+ var key = v[0];
105
+ var id = v[1];
106
+ var exp = v[2] || v[0];
107
+ var x = newRequire(id);
108
+ if (key === '*') {
109
+ Object.keys(x).forEach(function (key) {
110
+ if (
111
+ key === 'default' ||
112
+ key === '__esModule' ||
113
+ Object.prototype.hasOwnProperty.call(m, key)
114
+ ) {
115
+ return;
116
+ }
117
+
118
+ Object.defineProperty(m, key, {
119
+ enumerable: true,
120
+ get: function () {
121
+ return x[key];
122
+ },
123
+ });
124
+ });
125
+ } else if (exp === '*') {
126
+ Object.defineProperty(m, key, {
127
+ enumerable: true,
128
+ value: x,
129
+ });
130
+ } else {
131
+ Object.defineProperty(m, key, {
132
+ enumerable: true,
133
+ get: function () {
134
+ if (exp === 'default') {
135
+ return x.__esModule ? x.default : x;
136
+ }
137
+ return x[exp];
138
+ },
139
+ });
140
+ }
141
+ });
142
+ return m;
143
+ }
144
+ return newRequire(res);
85
145
  }
86
146
 
87
147
  function resolve(x) {
@@ -93,6 +153,7 @@
93
153
  function Module(moduleName) {
94
154
  this.id = moduleName;
95
155
  this.bundle = newRequire;
156
+ this.require = nodeRequire;
96
157
  this.exports = {};
97
158
  }
98
159
 
@@ -101,6 +162,10 @@
101
162
  newRequire.modules = modules;
102
163
  newRequire.cache = cache;
103
164
  newRequire.parent = previousRequire;
165
+ newRequire.distDir = distDir;
166
+ newRequire.publicUrl = publicUrl;
167
+ newRequire.devServer = devServer;
168
+ newRequire.i = importMap;
104
169
  newRequire.register = function (id, exports) {
105
170
  modules[id] = [
106
171
  function (require, module) {
@@ -110,6 +175,10 @@
110
175
  ];
111
176
  };
112
177
 
178
+ // Only insert newRequire.load when it is actually used.
179
+ // The code in this file is linted against ES5, so dynamic import is not allowed.
180
+ // INSERT_LOAD_HERE
181
+
113
182
  Object.defineProperty(newRequire, 'root', {
114
183
  get: function () {
115
184
  return globalObject[parcelRequireName];
@@ -136,20 +205,16 @@
136
205
  define(function () {
137
206
  return mainExports;
138
207
  });
139
-
140
- // <script>
141
- } else if (globalName) {
142
- this[globalName] = mainExports;
143
208
  }
144
209
  }
145
- })({"f0m8P":[function(require,module,exports) {
210
+ })({"f0m8P":[function(require,module,exports,__globalThis) {
146
211
  "use strict";
147
212
  var described_field = require("1530c399d3d9940b");
148
213
  module.exports = {
149
214
  described_field: described_field
150
215
  };
151
216
 
152
- },{"1530c399d3d9940b":"chJzc"}],"chJzc":[function(require,module,exports) {
217
+ },{"1530c399d3d9940b":"chJzc"}],"chJzc":[function(require,module,exports,__globalThis) {
153
218
  /**
154
219
  * @file Describes a data field of the restructured data.
155
220
  * @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
@@ -407,5 +472,5 @@ described_field.DescribedDataFieldGroup = function() {
407
472
  return DescribedDataFieldGroup;
408
473
  }();
409
474
 
410
- },{}]},["f0m8P"], "f0m8P", "parcelRequirec1f2")
475
+ },{}]},["f0m8P"], "f0m8P", "parcelRequirec1f2", {})
411
476
 
@@ -6,7 +6,16 @@
6
6
  // anything defined in a previous bundle is accessed via the
7
7
  // orig method which is the require for previous bundles
8
8
 
9
- (function (modules, entry, mainEntry, parcelRequireName, globalName) {
9
+ (function (
10
+ modules,
11
+ entry,
12
+ mainEntry,
13
+ parcelRequireName,
14
+ externals,
15
+ distDir,
16
+ publicUrl,
17
+ devServer
18
+ ) {
10
19
  /* eslint-disable no-undef */
11
20
  var globalObject =
12
21
  typeof globalThis !== 'undefined'
@@ -25,6 +34,7 @@
25
34
  typeof globalObject[parcelRequireName] === 'function' &&
26
35
  globalObject[parcelRequireName];
27
36
 
37
+ var importMap = previousRequire.i || {};
28
38
  var cache = previousRequire.cache || {};
29
39
  // Do not use `require` to prevent Webpack from trying to bundle this call
30
40
  var nodeRequire =
@@ -35,6 +45,9 @@
35
45
  function newRequire(name, jumped) {
36
46
  if (!cache[name]) {
37
47
  if (!modules[name]) {
48
+ if (externals[name]) {
49
+ return externals[name];
50
+ }
38
51
  // if we cannot find the module within our internal map or
39
52
  // cache jump to the current global require ie. the last bundle
40
53
  // that was added to the page.
@@ -73,7 +86,7 @@
73
86
  localRequire,
74
87
  module,
75
88
  module.exports,
76
- this
89
+ globalObject
77
90
  );
78
91
  }
79
92
 
@@ -81,7 +94,54 @@
81
94
 
82
95
  function localRequire(x) {
83
96
  var res = localRequire.resolve(x);
84
- return res === false ? {} : newRequire(res);
97
+ if (res === false) {
98
+ return {};
99
+ }
100
+ // Synthesize a module to follow re-exports.
101
+ if (Array.isArray(res)) {
102
+ var m = {__esModule: true};
103
+ res.forEach(function (v) {
104
+ var key = v[0];
105
+ var id = v[1];
106
+ var exp = v[2] || v[0];
107
+ var x = newRequire(id);
108
+ if (key === '*') {
109
+ Object.keys(x).forEach(function (key) {
110
+ if (
111
+ key === 'default' ||
112
+ key === '__esModule' ||
113
+ Object.prototype.hasOwnProperty.call(m, key)
114
+ ) {
115
+ return;
116
+ }
117
+
118
+ Object.defineProperty(m, key, {
119
+ enumerable: true,
120
+ get: function () {
121
+ return x[key];
122
+ },
123
+ });
124
+ });
125
+ } else if (exp === '*') {
126
+ Object.defineProperty(m, key, {
127
+ enumerable: true,
128
+ value: x,
129
+ });
130
+ } else {
131
+ Object.defineProperty(m, key, {
132
+ enumerable: true,
133
+ get: function () {
134
+ if (exp === 'default') {
135
+ return x.__esModule ? x.default : x;
136
+ }
137
+ return x[exp];
138
+ },
139
+ });
140
+ }
141
+ });
142
+ return m;
143
+ }
144
+ return newRequire(res);
85
145
  }
86
146
 
87
147
  function resolve(x) {
@@ -93,6 +153,7 @@
93
153
  function Module(moduleName) {
94
154
  this.id = moduleName;
95
155
  this.bundle = newRequire;
156
+ this.require = nodeRequire;
96
157
  this.exports = {};
97
158
  }
98
159
 
@@ -101,6 +162,10 @@
101
162
  newRequire.modules = modules;
102
163
  newRequire.cache = cache;
103
164
  newRequire.parent = previousRequire;
165
+ newRequire.distDir = distDir;
166
+ newRequire.publicUrl = publicUrl;
167
+ newRequire.devServer = devServer;
168
+ newRequire.i = importMap;
104
169
  newRequire.register = function (id, exports) {
105
170
  modules[id] = [
106
171
  function (require, module) {
@@ -110,6 +175,10 @@
110
175
  ];
111
176
  };
112
177
 
178
+ // Only insert newRequire.load when it is actually used.
179
+ // The code in this file is linted against ES5, so dynamic import is not allowed.
180
+ // INSERT_LOAD_HERE
181
+
113
182
  Object.defineProperty(newRequire, 'root', {
114
183
  get: function () {
115
184
  return globalObject[parcelRequireName];
@@ -136,13 +205,9 @@
136
205
  define(function () {
137
206
  return mainExports;
138
207
  });
139
-
140
- // <script>
141
- } else if (globalName) {
142
- this[globalName] = mainExports;
143
208
  }
144
209
  }
145
- })({"chJzc":[function(require,module,exports) {
210
+ })({"chJzc":[function(require,module,exports,__globalThis) {
146
211
  /**
147
212
  * @file Describes a data field of the restructured data.
148
213
  * @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
@@ -400,5 +465,5 @@ described_field.DescribedDataFieldGroup = function() {
400
465
  return DescribedDataFieldGroup;
401
466
  }();
402
467
 
403
- },{}]},["chJzc"], "chJzc", "parcelRequirec1f2")
468
+ },{}]},["chJzc"], "chJzc", "parcelRequirec1f2", {})
404
469
 
@@ -6,7 +6,16 @@
6
6
  // anything defined in a previous bundle is accessed via the
7
7
  // orig method which is the require for previous bundles
8
8
 
9
- (function (modules, entry, mainEntry, parcelRequireName, globalName) {
9
+ (function (
10
+ modules,
11
+ entry,
12
+ mainEntry,
13
+ parcelRequireName,
14
+ externals,
15
+ distDir,
16
+ publicUrl,
17
+ devServer
18
+ ) {
10
19
  /* eslint-disable no-undef */
11
20
  var globalObject =
12
21
  typeof globalThis !== 'undefined'
@@ -25,6 +34,7 @@
25
34
  typeof globalObject[parcelRequireName] === 'function' &&
26
35
  globalObject[parcelRequireName];
27
36
 
37
+ var importMap = previousRequire.i || {};
28
38
  var cache = previousRequire.cache || {};
29
39
  // Do not use `require` to prevent Webpack from trying to bundle this call
30
40
  var nodeRequire =
@@ -35,6 +45,9 @@
35
45
  function newRequire(name, jumped) {
36
46
  if (!cache[name]) {
37
47
  if (!modules[name]) {
48
+ if (externals[name]) {
49
+ return externals[name];
50
+ }
38
51
  // if we cannot find the module within our internal map or
39
52
  // cache jump to the current global require ie. the last bundle
40
53
  // that was added to the page.
@@ -73,7 +86,7 @@
73
86
  localRequire,
74
87
  module,
75
88
  module.exports,
76
- this
89
+ globalObject
77
90
  );
78
91
  }
79
92
 
@@ -81,7 +94,54 @@
81
94
 
82
95
  function localRequire(x) {
83
96
  var res = localRequire.resolve(x);
84
- return res === false ? {} : newRequire(res);
97
+ if (res === false) {
98
+ return {};
99
+ }
100
+ // Synthesize a module to follow re-exports.
101
+ if (Array.isArray(res)) {
102
+ var m = {__esModule: true};
103
+ res.forEach(function (v) {
104
+ var key = v[0];
105
+ var id = v[1];
106
+ var exp = v[2] || v[0];
107
+ var x = newRequire(id);
108
+ if (key === '*') {
109
+ Object.keys(x).forEach(function (key) {
110
+ if (
111
+ key === 'default' ||
112
+ key === '__esModule' ||
113
+ Object.prototype.hasOwnProperty.call(m, key)
114
+ ) {
115
+ return;
116
+ }
117
+
118
+ Object.defineProperty(m, key, {
119
+ enumerable: true,
120
+ get: function () {
121
+ return x[key];
122
+ },
123
+ });
124
+ });
125
+ } else if (exp === '*') {
126
+ Object.defineProperty(m, key, {
127
+ enumerable: true,
128
+ value: x,
129
+ });
130
+ } else {
131
+ Object.defineProperty(m, key, {
132
+ enumerable: true,
133
+ get: function () {
134
+ if (exp === 'default') {
135
+ return x.__esModule ? x.default : x;
136
+ }
137
+ return x[exp];
138
+ },
139
+ });
140
+ }
141
+ });
142
+ return m;
143
+ }
144
+ return newRequire(res);
85
145
  }
86
146
 
87
147
  function resolve(x) {
@@ -93,6 +153,7 @@
93
153
  function Module(moduleName) {
94
154
  this.id = moduleName;
95
155
  this.bundle = newRequire;
156
+ this.require = nodeRequire;
96
157
  this.exports = {};
97
158
  }
98
159
 
@@ -101,6 +162,10 @@
101
162
  newRequire.modules = modules;
102
163
  newRequire.cache = cache;
103
164
  newRequire.parent = previousRequire;
165
+ newRequire.distDir = distDir;
166
+ newRequire.publicUrl = publicUrl;
167
+ newRequire.devServer = devServer;
168
+ newRequire.i = importMap;
104
169
  newRequire.register = function (id, exports) {
105
170
  modules[id] = [
106
171
  function (require, module) {
@@ -110,6 +175,10 @@
110
175
  ];
111
176
  };
112
177
 
178
+ // Only insert newRequire.load when it is actually used.
179
+ // The code in this file is linted against ES5, so dynamic import is not allowed.
180
+ // INSERT_LOAD_HERE
181
+
113
182
  Object.defineProperty(newRequire, 'root', {
114
183
  get: function () {
115
184
  return globalObject[parcelRequireName];
@@ -136,13 +205,9 @@
136
205
  define(function () {
137
206
  return mainExports;
138
207
  });
139
-
140
- // <script>
141
- } else if (globalName) {
142
- this[globalName] = mainExports;
143
208
  }
144
209
  }
145
- })({"btK3Z":[function(require,module,exports) {
210
+ })({"btK3Z":[function(require,module,exports,__globalThis) {
146
211
  "use strict";
147
212
  require("b3504c6476ecf38d");
148
213
  require("89ce2effd221e06f");
@@ -151,7 +216,7 @@ module.exports = {
151
216
  template_resolver: template_resolver
152
217
  };
153
218
 
154
- },{"b3504c6476ecf38d":"eZRd3","89ce2effd221e06f":"7uZBC","875b6c9f7bedeb5":"bUhQb"}],"eZRd3":[function(require,module,exports) {
219
+ },{"b3504c6476ecf38d":"eZRd3","89ce2effd221e06f":"7uZBC","875b6c9f7bedeb5":"bUhQb"}],"eZRd3":[function(require,module,exports,__globalThis) {
155
220
  //https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf#Polyfill
156
221
  if (!Array.prototype.indexOf) Array.prototype.indexOf = function(Object1, max, min) {
157
222
  "use strict";
@@ -169,16 +234,16 @@ if (!Array.prototype.indexOf) Array.prototype.indexOf = function(Object1, max, m
169
234
  };
170
235
  }(Object, Math.max, Math.min);
171
236
 
172
- },{}],"7uZBC":[function(require,module,exports) {
237
+ },{}],"7uZBC":[function(require,module,exports,__globalThis) {
173
238
  //http://tokenposts.blogspot.com/2012/04/javascript-objectkeys-browser.html
174
239
  if (!Object.keys) Object.keys = function(o) {
175
- if (o !== Object(o)) throw new TypeError("Object.keys called on a non-object");
240
+ if (o !== Object(o)) throw new TypeError('Object.keys called on a non-object');
176
241
  var k = [], p;
177
242
  for(p in o)if (Object.prototype.hasOwnProperty.call(o, p)) k.push(p);
178
243
  return k;
179
244
  };
180
245
 
181
- },{}],"bUhQb":[function(require,module,exports) {
246
+ },{}],"bUhQb":[function(require,module,exports,__globalThis) {
182
247
  /**
183
248
  * @file Provides a simple template resolver, that replaces variables in double curly brackets with the values of a given object.
184
249
  * @version {@link https://github.com/JohT/data-restructor-js/releases/latest latest version}
@@ -323,7 +388,7 @@ template_resolver.Resolver = function() {
323
388
  return Resolver;
324
389
  }();
325
390
 
326
- },{"cbde56e74c44f93f":"4biBi"}],"4biBi":[function(require,module,exports) {
391
+ },{"cbde56e74c44f93f":"4biBi"}],"4biBi":[function(require,module,exports,__globalThis) {
327
392
  "use strict";
328
393
  /**
329
394
  * @fileOverview Modded (compatibility, recursion depth) version of: https://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objectss
@@ -379,5 +444,5 @@ template_resolver.Resolver = function() {
379
444
  return result;
380
445
  };
381
446
 
382
- },{}]},["btK3Z"], "btK3Z", "parcelRequirec1f2")
447
+ },{}]},["btK3Z"], "btK3Z", "parcelRequirec1f2", {})
383
448